/* ===================================
   前台公共自定义样式
   Created: 2026-02-05
   Purpose: 提取行内样式到统一CSS文件
   =================================== */

/* === 灰度模式 === */
body.grayscale-mode {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: gray; /* IE 6-9 */
}

/* === Header 样式 === */
.pop_search .pop_search-content {
    top: 73px !important;
    height: 164px;
}

.header_box .header-nav .header-logo-box .header-logo span.yd {
    font-size: 14px;
}

#currency-select {
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    background-color: #fff;
    margin-left: 8px;
}

/* === Top Notice === */
.top-notice {
    --notice-color: #ffffff;
}

.zuui-share-link {
    --share-color: #ffffff;
    --font-color: #ffffff;
}

/* === Footer 样式 === */
#card-footer .footer {
    --bg-color: #fff;
    --font-color: #000;
    clear: both;
}

/* === 产品多图标识 === */
.multi-image-icon {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    background: url('/m.png') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    cursor: pointer;
}

/* === 产品编号样式 === */
.product-item-no {
    position: absolute;
    top: 9px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 3;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === 图片画廊 === */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gallery-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
}

.image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: opacity 0.3s;
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

/* === 购物车样式 === */
.bx {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
}

.batch-delete-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 15px;
}

.btn-op {
    display: flex;
    flex-direction: row;
}

.batch-delete-btn,
.batch-clear-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.batch-delete-btn:hover,
.batch-clear-btn:hover {
    background-color: #c0392b;
}

.select-all-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-all-label {
    font-size: 14px;
    color: white;
    background-color: #FB5557;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.select-column {
    text-align: center;
    width: 40px;
}

.select-item {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

.fixed_tj .box .a {
    display: block;
    text-align: center;
    margin: 10px auto;
}

.shopcartlist {
    display: none;
}

/* === 移动端适配 === */
@media screen and (max-width: 767px) {
    .header_box .header-nav .member-icon {
        display: flex !important;
        max-width: 70px;
        overflow: hidden;
        padding-left: 0px;
        max-height: 42px;
    }

    .side-panel-content {
        max-height: 100vh !important;
    }
}

@media screen and (max-width: 750px) {
    main.index .list2 table td {
        height: auto !important;
    }

    main.index .list2 table td span {
        min-height: 25px;
        font-size: 12px;
        display: inline-block;
        line-height: 25px;
        overflow: hidden;
        height: 25px;
    }

    main.logo3 .info table {
        width: 98% !important;
    }

    main.logo3 .info table tr.cart_item {
        padding-left: 100px;
        display: block;
        position: relative;
        padding-top: 30px;
        border-bottom: 1px dashed #ccc;
    }

    main.logo3 .info table td {
        display: flex;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px 0;
        margin: 0;
    }

    main.logo3 .info table td.product-thumbnail {
        position: absolute;
        left: 10px;
        min-width: 90px;
        width: auto !important;
    }

    main.logo3 .info table td.product-thumbnail p {
        display: flex;
        width: 100%;
        position: relative;
    }

    main.logo3 .info table td.product-thumbnail p:before {
        content: '';
        width: 0;
        height: 0;
        display: block;
        padding-bottom: 148%;
    }

    main.logo3 .info table td.product-thumbnail img {
        display: block;
        max-width: 100%;
        position: absolute;
        margin: 0;
        top: 0;
        left: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    main.logo3 .info table tr {
        display: table;
        height: auto;
        width: 100%;
    }

    main.logo3 .info table td {
        display: table;
        text-align: left !important;
    }

    main.logo3 .info table td span {
        min-height: 20px;
        text-align: left !important;
        display: block;
        line-height: 20px;
        font-size: 12px;
    }

    main.logo3 .info table td.img-box {
        height: 280px;
        position: absolute;
        margin-top: -398px;
    }

    main.logo3 .info table td:nth-child(4) span {
        display: block;
        min-height: unset;
    }
}

/* === 个人中心样式 === */
main.logo2 .info .bx {
    display: block;
}

.return,
main .return {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* === 订单列表样式 === */
main.logo2 .info .list1 table {
    width: 100%;
    border-collapse: collapse;
}

main.logo2 .info .list1 table th,
main.logo2 .info .list1 table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

main.logo2 .info .list1 table td a {
    color: #fff;
    display: block;
    width: 74px;
    float: right;
    margin: 0px;
    height: 42px;
    overflow: hidden;
    margin-right: 4px;
    font-size: 12px;
    margin-bottom: 2px;
}

/* 订单列表移动端 */
@media screen and (max-width: 750px) {
    main.logo2 .info .list1 table thead {
        display: none;
    }

    main.logo2 .info .list1 table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
    }

    main.logo2 .info .list1 table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
        border-bottom: 1px solid #f5f5f5;
    }

    main.logo2 .info .list1 table td:last-child {
        border-bottom: none;
    }

    main.logo2 .info .list1 table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        text-align: left;
        font-weight: bold;
        color: #666;
    }

    main.logo2 .info .list1 table td a {
        float: none;
        display: inline-block;
        margin: 0 4px 2px 0;
    }

    main.logo2 .info .list1 table .img-box-2 {
        left: 0;
        width: 100%;
    }
}

/* === 订单详情样式 === */
main.logo3 .info .notes label {
    width: 100%;
}

.order-del {
    display: block;
    width: 74px;
    margin: 0px auto;
    transition: all 0.5s;
    padding: 5px;
    border-radius: 7px;
    background-color: var(--color1);
    color: #fff;
}

main.logo3 .info table tr td:last-child {
    position: static;
    opacity: 1;
    transition: all 0.3s;
    text-align: center;
}

/* 订单详情移动端 */
@media screen and (max-width: 750px) {
    main.logo3 .info table tr {
        display: table;
        height: auto;
        width: 100%;
    }

    main.logo3 .info table td {
        display: table;
    }

    main.logo3 .info table td span {
        min-height: 36px;
    }

    main.logo3 .info table td.img-box {
        height: 280px;
        position: absolute;
        margin-top: -398px;
    }

    main.logo3 .info table td:nth-child(1) {
        margin-top: 10px;
        width: 50%;
    }

    main.logo3 .info table td:nth-child(4) span {
        display: block;
        min-height: unset;
        height: auto;
    }

    main.logo3 .info table td:nth-child(2) {
        width: 50%;
        float: right;
        position: absolute;
        margin-top: -38px;
        margin-left: 50%;
    }

    main.logo3 .info table td:nth-child(10) {
        width: 40%;
        float: right;
        position: absolute;
        margin-top: -29px;
        border: none;
        margin-left: 60%;
    }

    main.logo3 .info table tr:nth-child(1) {
        display: none;
    }

    main.logo3 .info table td:nth-child(6) {
        height: 280px;
    }

    main.logo3 .info table td:nth-child(8) {
        width: 50%;
        height: 52px;
        border: none;
    }

    main.logo3 .info table td:nth-child(9) {
        width: 50%;
        height: 52px;
        border: none;
        margin-top: -90px;
        margin-left: 50%;
    }

    main.logo3 .info table td:nth-child(10) {
        display: none;
    }

    main.logo3 .info table td:nth-child(11) {
        width: 50%;
        height: 52px;
    }

    main.logo3 .info table td:nth-child(11) input {
        margin-top: 12px;
    }

    main.logo3 .info table tr td:last-child {
        height: 42px;
        margin-top: -14px;
        position: relative;
        width: 100%;
    }

    main.logo3 .info table td:nth-child(8) label::before {
        content: "SIZE:";
    }

    main.logo3 .info table td:nth-child(9) span::before {
        content: "QTY:";
    }

    main.logo3 .info table td:nth-child(8) label input {
        width: 50%;
    }

    main.logo3 .info table td:nth-child(9) label input {
        width: 50%;
    }

    main.logo3 .info table td:nth-child(1) span::before {
        content: "BRAND:";
    }

    main.logo3 .info table td:nth-child(2) span::before {
        content: "SERIES:";
    }

    main.logo3 .info table td:nth-child(3) span::before {
        content: "ITEM NO:";
    }

    main.logo3 .info table td:nth-child(4) span::before {
        content: "MATERIAL:";
    }

    main.logo3 .info table .img-box-2 {
        left: 0;
        width: 100%;
    }
}

/* === 评论页面样式 === */
.son {
    position: relative;
}

.text {
    margin-bottom: 30px;
}

.cbx {
    width: 94%;
    margin: 0 auto;
}

.swl2 {
    color: #333 !important;
    text-align: left;
}

.comment-del {
    background: var(--color1);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    right: 24px;
    bottom: 10px;
    position: absolute;
}

/* 图片上传区域 */
.upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.add-image-btn {
    width: 80px;
    height: 80px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: #f9f9f9;
}

.add-image-btn span {
    font-size: 14px;
    margin-top: 5px;
}

.file-input {
    display: none;
}

.submit-area {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.swiper-container:not(.multi-image) .swiper-button-prev,
.swiper-container:not(.multi-image) .swiper-button-next {
    display: none !important;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* 分页组件 */
.page-fenye {
    max-width: 100%;
    overflow-x: auto;
}

.page-fenye nav {
    padding: 15px 0;
}

.page-fenye .flex-1 {
    display: flex;
    justify-content: center;
}

.page-fenye span.relative.inline-flex,
.page-fenye a.relative.inline-flex {
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-fenye a.relative.inline-flex {
    color: #4a5568;
    background-color: #fff;
}

.page-fenye a.relative.inline-flex:hover {
    background-color: #4299e1;
    color: white;
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

@media screen and (max-width: 767px) {
    main.logo2 .info .list2 .son .text {
        margin-left: 0px;
        margin-bottom: 50px;
    }
}

/* === 优惠券页面样式 === */
.coupon-title {
    width: 95%;
    margin: 0 auto;
    margin-top: 10px;
    line-height: 60px;
    text-align: center;
    background-color: #FB5557;
    color: white;
    font-size: 36px;
    font-weight: 700;
    border-radius: 5px;
}

.coupon-stats {
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0px;
}

.stat {
    font-size: 24px;
    color: #666;
    padding: 5px 0;
    cursor: pointer;
    width: 220px;
    transition: all 0.3s ease;
}

.stat.active {
    color: #ff3333;
    font-weight: bold;
    border-bottom: 2px solid #ff3333;
}

.coupon-container {
    min-height: 300px;
}

.coupon-list {
    width: 95%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: left;
    align-items: center;
}

.coupon-item {
    width: 32%;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-right: 10px;
    margin-top: 20px;
}

.coupon-item-left {
    max-width: 110px;
}

.notuse-item {
    background-color: #ffeaea;
    border-left: 4px solid #ff3333;
}

.expired-item,
.used-item {
    background-color: #f7f7f7;
}

.coupon-amount {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
    text-align: left;
    color: #666;
}

.notuse-item .coupon-amount {
    color: #ff3333;
}

.coupon-condition {
    font-size: 14px;
    font-weight: bolder;
    margin-bottom: 3px;
    color: #666;
    text-align: left;
}

.coupon-type {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.notuse-item .coupon-type {
    color: #ff3333;
}

.coupon-item-middle {
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.coupon-expire,
.coupon-limit {
    font-size: 12px;
    color: #999;
    margin-bottom: 3px;
    width: 100%;
    text-align: left;
}

.use-btn,
.nouse-btn {
    background-color: #ff3333;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.use-btn:hover {
    background-color: #e60000;
}

.empty-state {
    min-height: 500px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.empty-img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-text {
    color: #999;
    font-size: 26px;
}

@media (max-width: 750px) {
    .coupon-list {
        display: flex;
        flex-direction: column;
    }

    .coupon-item {
        width: 100%;
        margin-top: 15px;
    }

    .coupon-stats {
        padding: 15px 0px;
    }

    .stat {
        font-size: 14px;
        width: 110px;
    }

    .empty-img {
        width: 180px;
        height: 180px;
    }
}

/* === 支付方式页面样式 === */
.paytype-content {
    width: 50%;
    margin: 0 auto;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    color: #7f8c8d;
    padding: 8px 0;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #ecf0f1;
}

.payment_method_box {
    flex: 1;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.payment_method_title {
    background: linear-gradient(90deg, #3498db, #2c3e50);
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 20px 25px;
}

.payment_method_content {
    padding: 25px;
    position: relative;
}

.payment_method_content ul {
    list-style: none;
}

.payment_method_content li {
    margin-bottom: 15px;
}

.order_radio_box {
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.order_radio_box:hover,
.order_radio_box.selected {
    border-color: #3498db;
    background-color: #f8fafd;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
}

.order_radio_box.selected {
    border-width: 3px;
}

.radio_label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

.order_radio {
    display: none;
}

.radio_icon {
    width: 22px;
    height: 22px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.order_radio:checked + .radio_icon {
    border-color: #3498db;
    background-color: #3498db;
}

.order_radio:checked + .radio_icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* === 登录/注册页面样式 === */
main.logo {
    background: none;
    display: flex;
    flex-direction: row;
}

main.logo .login_bg {
    justify-content: center;
}

.mo-card-content {
    width: 70%;
    margin: 0 auto;
}

main.logo .login_bg .loginform .box .form label input {
    width: 100%;
    height: 54px;
    padding: 0 12px;
    font-size: 14px;
    background-color: #f6f6f6;
    box-sizing: border-box;
    border: 2px solid #f6f6f6;
    transition: all 0.5s;
    border-radius: 3px;
}

.loginform {
    width: 100% !important;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: right;
}

.login_form {
    width: 80% !important;
}

main.logo .login_bg .loginform .box .form label input:focus {
    border: 2px solid #1d1f21;
}

main.logo {
    height: auto;
}

.list1,
.list2 {
    width: 60%;
    margin:0 auto;
}

.mo-header-account {
    padding-top: 20px;
}

.mo-form {
    width: 100% !important;
}



.btn-create {
    display: none !important;
}

@media screen and (max-width: 750px) {
    .list1 {
        width: 100%;
    }

    .list2 {
        display: none;
    }

    .loginform {
        width: 100% !important;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .login_form {
        width: 100% !important;
    }

    .box {
        width: 95% !important;
    }

    .btn-create {
        display: block !important;
    }
}
