body,
html {
    width: 100%;
    height: 100%;
    color: #000;
    font-size: 14px;
}

body,
html,
ul,
li {
    padding: 0;
    margin: 0;
    color: #000;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #000
}

ul > li {
    list-style: none;
}


/* 底部样式 */
.footer_box {
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1024;
    left: 0;
    right: 0;
    margin: auto;
    font-size: 0;
    background: #fff;
}

.footer_item {
    width: 25%;
    height: 70px;
    padding-bottom: 10px;
    box-sizing: border-box;
    color: #aaaaaa;
    font-size: 12px;
    text-align: center;
    display: inline-block;
}

.footer_item a {
    color: #999;
}

.footer_item_active a {
    color: #000;
}

.footer_item img {
    display: block;
    width: 25px;
    height: 25px;
    margin: 10px auto 3px;
}

/*底部样式  */
/* 头部样式 */
.header_box {
    position: fixed;
    top: 0px;
    width: 100%;
    height: 50px;
    background-color: rgb(242, 242, 242, 0.9);
    z-index: 999;
    font-size: 0;
    line-height: 50px;
    text-align: center;
    left: 0;
    right: 0;
    margin: auto;
    padding: 1px;
}

.header_changeicon_title {
    font-size: 16px;
    font-weight: 500;
    margin: 10px;
}

.header_changeicon_ul {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 50px;
}

.open_icon {
    float: right;
    margin-right: 10px;
}

.open_iconjia::before {
    display: inline-block;
    content: "+";
    font-size: 14px;
    color: #000;
}

.open_iconjian::before {
    display: inline-block;
    content: "-";
    font-size: 14px;
    color: #000;
}

.header_changeicon_mark {
    position: fixed;
    height: 0px;
    background: rgb(0, 0, 0, 0.5);
    width: 100%;
    z-index: 1025;
    left: 0;
    right: 0;
    margin: auto;
    top: 50px;
    overflow-y: auto;
    box-sizing: border-box;
}

.header_changeicon_box {
    width: 60%;
    height: 100%;
    background: #fff;
    overflow-y: auto;
}

.header_changeicon_box > ul li {
    font-size: 14px;
    color: #000;
}

.header_changeicon_menu_text {
    display: inline-block;
    width: calc(100% - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.header_changeicon_menu {
    width: 100%;
    border-bottom: 1px solid #ccc;
    line-height: 36px;
}

.header_changeicon_menu ul {
    height: 0;
    overflow: hidden;
    padding-left: 20px;
    box-sizing: border-box;
}

.header_changeicon_menu_active ul {
    height: auto;
}

.header_changeicon_box a {
    display: block;
    width: 100%;
    height: 36px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 36px;
}


.header_changeicon,
.header_select,
.header_service,
.header_shop {
    width: 16.66%;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
}

.header_service {
    font-size: 14px;
    color: #000;
}

.header_changeicon img,
.header_select img,
.header_service img,
.header_shop img {
    width: 30px;
    height: 30px;
    margin-top: 12px;
}

.header_logo {
    width: 33.33%;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
}

.header_logo img {
    height: 100%;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 3px 0;
}

.header-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.back-button {
    color: #212121;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-left: -8px;
    background: none;
    border: none;
    cursor: pointer;
}

.page-title {
    font-size: 18px;
    font-weight: 500;
}

.header-placeholder {
    width: 30px;
    height: 30px;
}


/* list */
.good_list_box {
    width: 100%;
    font-size: 0;
}

.good_list_item {
    width: 50%;
    display: inline-block;
    min-height: 250px;
    box-sizing: border-box;
    padding: 1%;
    box-shadow: 1px -1px 5px 2px rgba(0, 0, 0, 0.18);
}

.good_img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 175px;
}


.good_name {
    font-size: 15px;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.good_price {
    text-align: center;
    line-height: 36px;
    font-size: 15px;
    color: #707070;
    position: relative;
    right: 8px;
}

/* molde */
.mark_model {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.mark_model_content {
    width: 80%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 20px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    height: 200px;
    text-align: center;
}

.model_title {
    font-size: 20px;
    font-weight: bold;
    padding: 20px;
}

.model_content {
    padding: 0 20px;
    font-size: 18px;
    color: #666;
    line-height: 26px;
    max-height: 55px;
    overflow: hidden;
}

.model_text_btn {
    padding: 0 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 0;
}

.model_text_btn span {
    display: inline-block;
    width: 50%;
    box-sizing: border-box;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    font-weight: bold;
}

.model_text_btn span:nth-child(1) {
    border-right: 1px solid #ccc;
}


/* 订单 */
.order_num {
    text-align: right;
    height: 20px;
    width: 100%;
    margin-top: 20px;
}

.order_img_right {
    display: inline-block;
    width: calc(100% - 120px);
    vertical-align: middle;
    margin-left: 10px;
}

.order_price {
    float: right;
}

.order_de_msg {
    padding: 10px 0;
    border-bottom: 1px solid #ebebeb;
}

.order_img {
    display: inline-block;
    vertical-align: middle;
    width: 105px;
    height: 105px;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

}

.order_adres {
    padding: 15px;
    font-size: 14px;
    line-height: 30px;
}

.order_titlename {
    display: inline-block;
    width: 68%;
    vertical-align: top;
    text-align: left;
}

.order_price_text {
    display: inline-block;
    text-align: right;
    width: 28%;
    vertical-align: top;
}

.book_btn_order {
    position: fixed;
    padding-top: 3px;
    bottom: 0;
    height: 70px;
    border: 1px solid #BFBFBF;
    text-align: right;
    font-size: 18px;
    background-color: white;
    box-sizing: border-box;
    width: 100%;
    box-sizing: border-box;
    padding-right: 20px;
    line-height: 68px;
}


input:focus,
input:active {
    outline: none;
}


textarea:focus,
textarea:active {
    outline: none;
}


.ev_content {
    margin: 20px 0;
    color: #6D6D6D
}

.ev_tag {
    display: inline-block;
    vertical-align: middle;
    border: 1px solid;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 4px;
}

.user_name_ev {
    margin: 0 10px;
    display: inline-block;
    vertical-align: middle;
}

.user_av_img {
    display: inline-block;
    vertical-align: middle;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.ev_list_img {
    height: 100px;
    margin: 10px;
}

.order_tab_box_ev {
    height: 50px;
    width: 100%;
    border-bottom: 1px solid #dcdbdb;
    font-size: 0;
    box-sizing: border-box;
    overflow-x: auto;
}

.order_tab_box_ev span {
    font-size: 16px;
    display: inline-block;
    width: 28%;
    box-sizing: border-box;
    text-align: center;
    color: #666;
    height: 50px;
    line-height: 50px;
}

.order_tab_box_ev .order_tab_active {
    border-bottom: 2px solid #000;
    color: #000
}

.see_detail {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: block;
    width: 70px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #fff;
    color: #000000;
    font-size: 30rpx;
    padding: 10px 14px;
    font-size: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* 滚动条整体部分 */
::-webkit-scrollbar {
    height: 0px; /* 滚动条高度 */
    width: 0px;
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0); /* 轨道背景设置为半透明黑色 */
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0); /* 滑块背景设置为半透明黑色 */
}

.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    z-index: 100;
    display: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}


.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.error {
    background-color: #ffebee;
    color: #c62828;
}

.pending {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.empty-html {
    display: flex;
    align-items: center;
    color: #cccccc;
    width: 100%;
    justify-content: center;
}


.image-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    border: 2px dashed #ddd;
    width: 80px;
    height: 80px;
    margin: 0 10px 10px 0;
    border-radius: 5px;
    overflow: hidden;
    font-size: 36px;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    font-size: 14px;
    z-index: 9
}


.fileInput {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    padding: 0;
}

.preview-symbol {
    width: 100%;
    height: 100%;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 8
}

.preview-image {
    z-index: 9;
    position: absolute;
    top: 0;
    left: 0;
}

/* 遮罩层样式 */
.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-mask.active {
    opacity: 0.5;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.translate-trigger {
    position: fixed;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 4px 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #212529;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    bottom: 140px;
    right: 20px;
    z-index: 9999;
}

.translate-trigger:hover,
.translate-trigger:focus {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    outline: none;
}

/* 弹出层样式 */
.translate-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    /* 解决iOS滚动穿透问题 */
    -webkit-overflow-scrolling: touch;
}

.translate-popup.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.translate-popup-content {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 280px;
    margin: 0 15px;
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    /* 解决iOS点击延迟 */
    -webkit-tap-highlight-color: transparent;
}

.translate-popup.active .translate-popup-content {
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
}

/* 弹出层头部 */
.translate-popup-header {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.translate-popup-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.translate-close-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
    -webkit-transition: color 0.2s ease;
    -moz-transition: color 0.2s ease;
    -ms-transition: color 0.2s ease;
    -o-transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.translate-close-btn:hover,
.translate-close-btn:focus {
    color: #212529;
    outline: none;
}

/* 选择列表样式 */
.translate-popup-body {
    padding: 12px;
    max-height: 70vh; /* 限制最大高度，防止在小屏幕溢出 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
}

.translate-section-title {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #e9ecef;
}

.translate-section-title:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.translate-option-list {
    list-style: none;
    margin-bottom: 4px;
}

.translate-option-item {
    margin-bottom: 3px;
}

.translate-option-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 8px 10px;
    border-radius: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    text-align: left;
    color: #212529;
    font-size: 13px;
    -webkit-tap-highlight-color: transparent;
}

.translate-option-btn:hover,
.translate-option-btn:focus {
    background-color: #e7f5ff;
    transform: translateX(2px);
    -webkit-transform: translateX(2px);
    -moz-transform: translateX(2px);
    -ms-transform: translateX(2px);
    -o-transform: translateX(2px);
    outline: none;
}

.translate-option-btn.selected {
    background-color: #e7f5ff;
}

.translate-flag-icon {
    width: 20px;
    height: 13px;
    background-size: cover;
    background-position: center;
    border-radius: 1px;
    margin-right: 6px;
    display: inline-block;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.translate-option-name {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

/* 底部提示 */
.translate-popup-footer {
    background-color: #f8f9fa;
    padding: 10px 12px;
    text-align: center;
    font-size: 11px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

/* 针对不同屏幕尺寸的适配 */
@media screen and (max-width: 320px) {
    .translate-popup-content {
        max-width: 250px;
    }

    .translate-option-btn {
        font-size: 12px;
        padding: 7px 8px;
    }
}

@media screen and (min-width: 768px) {
    .translate-popup-content {
        max-width: 320px;
    }
}

/* 解决IE11等旧浏览器的兼容性问题 */
@supports (-ms-accelerator: true) {
    .translate-popup {
        display: -ms-grid;
        display: grid;
        place-items: center;
    }

    .translate-popup-content {
        -ms-transform: scale(0.95);
    }

    .translate-popup.active .translate-popup-content {
        -ms-transform: scale(1);
    }
}