:root {
    --antique-ink: #2b2118;
    --antique-wood: #4a2f22;
    --antique-wood-dark: #2f1d16;
    --antique-bronze: #9a7440;
    --antique-gold: #c7a76a;
    --antique-paper: #f6f0e4;
    --antique-paper-deep: #e9ddc8;
    --antique-jade: #48675b;
    --primary: #795838 !important;
    --hov-primary: #503722 !important;
    --soft-primary: rgba(121, 88, 56, .14) !important;
}

body.antique-theme {
    color: var(--antique-ink);
    background: #f7f3eb;
    font-family: "Noto Serif SC", "Songti SC", SimSun, "Microsoft YaHei", serif !important;
}

.antique-theme a { transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.antique-theme a:hover { color: var(--antique-bronze); }
.antique-theme .btn-primary,
.antique-theme .bg-primary,
.antique-theme .badge-primary { background-color: var(--antique-wood) !important; border-color: var(--antique-wood) !important; }
.antique-theme .btn-primary:hover { background-color: var(--antique-wood-dark) !important; border-color: var(--antique-wood-dark) !important; }
.antique-theme .text-primary { color: var(--antique-wood) !important; }
.antique-theme .text-danger { color: #8b3328 !important; }
.antique-theme .text-success { color: var(--antique-jade) !important; }
.antique-theme .border-primary { border-color: var(--antique-bronze) !important; }
.antique-theme .bg-soft-primary, .antique-theme .badge-soft-primary { background-color: rgba(154,116,64,.13) !important; color: var(--antique-wood) !important; }

.antique-theme .card {
    border-color: rgba(86, 58, 36, .12) !important;
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(65, 43, 28, .07);
}
.antique-theme .card:hover { box-shadow: 0 9px 26px rgba(65, 43, 28, .12); }
.antique-theme .card-header { background: #fbf8f1; border-bottom-color: #eadfce; }
.antique-theme .form-control:focus { border-color: var(--antique-bronze); box-shadow: 0 0 0 .2rem rgba(154,116,64,.12); }
.antique-theme .pagination .active .page-link { background: var(--antique-wood); border-color: var(--antique-wood); }

.antique-theme .antique-header {
    background: linear-gradient(110deg, #2d1c15 0%, #533524 55%, #765333 100%) !important;
    border-bottom: 1px solid rgba(210,177,112,.55);
}
.antique-theme .antique-header .top-navbar { border-color: rgba(255,255,255,.12) !important; }
.antique-theme .antique-header .front-header-search-count { background: rgba(255,255,255,.98); }
.antique-theme .antique-header .btn-primary { background: var(--antique-bronze) !important; border-color: #fff !important; }

.antique-theme footer, .antique-theme .footer-widget { border-color: #dacbb5 !important; }
.antique-theme .aiz-mobile-bottom-nav { border-top-color: #d8c7ad !important; }

.antique-theme .aiz-side-nav-wrap,
.antique-theme .aiz-sidebar.left,
.antique-theme .aiz-side-nav { background: var(--antique-wood-dark) !important; }
.antique-theme .aiz-side-nav-link { color: rgba(255,250,240,.78) !important; }
.antique-theme .aiz-side-nav-link:hover,
.antique-theme .aiz-side-nav-link.level-2-active,
.antique-theme .aiz-side-nav-link.level-3-active,
.antique-theme .aiz-side-nav-link.active { color: #fff !important; background: rgba(199,167,106,.18) !important; }
.antique-theme .aiz-side-nav-icon { color: var(--antique-gold) !important; }
.antique-theme .aiz-content-wrapper, .antique-theme .aiz-main-content { background: #f5f1e9; }
.antique-theme .aiz-topbar { background: #fffdf8; border-bottom: 1px solid #e7dccb; }
.antique-theme .indexconL2 > a { background: linear-gradient(135deg,#62442e,#967044) !important; }
.antique-theme .indexconL2 > a:nth-child(even) { background: linear-gradient(135deg,#456054,#789181) !important; }
.antique-theme .indexconL1 {
    background: linear-gradient(135deg, #fffaf0 0%, #f4ead8 52%, #ead9bf 100%) !important;
    border: 1px solid rgba(154, 116, 64, .16);
    box-shadow: 0 12px 28px rgba(74, 47, 34, .08);
}
.antique-theme .personmsg > img {
    border: 3px solid rgba(199, 167, 106, .45);
    box-shadow: 0 8px 18px rgba(74, 47, 34, .12);
    background: #fffaf0;
}
.antique-theme .personmsgR h5,
.antique-theme .personmsgR h2,
.antique-theme .shopmsgR h2 {
    color: var(--antique-wood) !important;
}
.antique-theme .quick a {
    color: #5b4734 !important;
}
.antique-theme .quick a p {
    background: rgba(255, 250, 240, .82) !important;
    border: 1px solid rgba(199, 167, 106, .22);
    box-shadow: 0 6px 16px rgba(74, 47, 34, .06);
}
.antique-theme .indexconL1 .person {
    width: 34%;
}
.antique-theme .indexconL1 > .quick.pc {
    width: 56%;
    margin-top: 10px;
}
.antique-theme .chahua {
    margin-top: -8px;
}
.antique-theme .chahua img {
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(199, 167, 106, .28);
    box-shadow: 0 12px 24px rgba(74, 47, 34, .14);
    background: #f5ead6;
}
.antique-theme .shengji {
    background: linear-gradient(135deg, #8d6439, #c09a5f) !important;
    box-shadow: 0 8px 18px rgba(121, 88, 56, .18);
}
.antique-theme .jzriqi,
.antique-theme .shopmsgR p {
    color: #8a7660 !important;
}
.antique-theme .seller-center-title { color: var(--antique-wood); font-size: 20px; font-weight: 700; line-height: 65px; white-space: nowrap; }
.antique-theme .customer_service_link {
    background: linear-gradient(135deg, #8d6439, #c09a5f) !important;
    border-color: #9a7440 !important;
    color: #fff !important;
    border-radius: 18px;
    box-shadow: 0 6px 14px rgba(121, 88, 56, .16);
}
.antique-theme .menu-locked-open > .level-2,
.antique-theme .menu-locked-open > .level-3 { display:block !important; visibility:visible !important; height:auto !important; }
.antique-page { background: #f5f1e9 !important; min-height: 70vh; }

.antique-hero {
    color: #fff;
    background: linear-gradient(135deg, #2c1b14, #65462e 62%, #9a7440) !important;
    position: relative;
}
.antique-hero:after {
    content: ""; position: absolute; inset: 9px; border: 1px solid rgba(219,188,126,.38); pointer-events: none;
}
.bargain-intro-screen { min-height:calc(100vh - 150px); display:flex; align-items:center; color:#fff; }
.bargain-intro-inner { position:relative; z-index:1; width:100%; padding:60px; }
.bargain-kicker { color:#dec28c; letter-spacing:4px; font-size:12px; margin-bottom:12px; }
.bargain-intro-screen h1 { font-size:42px; font-weight:700; letter-spacing:2px; }
.bargain-lead { max-width:760px; font-size:18px; line-height:1.9; color:rgba(255,255,255,.86); }
.bargain-benefits { margin-top:28px; max-width:1050px; }
.bargain-benefit { height:100%; padding:18px; border:1px solid rgba(222,194,140,.35); background:rgba(255,255,255,.07); border-radius:5px; }
.bargain-benefit span { display:block; color:#dec28c; font-size:12px; }
.bargain-benefit strong { display:block; font-size:17px; margin:5px 0; }
.bargain-benefit small { color:rgba(255,255,255,.72); line-height:1.7; }
.bargain-notice { max-width:1000px; margin-top:15px; font-size:12px; color:rgba(255,255,255,.65); }
.antique-section-title { position: relative; padding-left: 14px; }
.antique-section-title:before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; background: var(--antique-bronze); }

@media (max-width: 767.98px) {
    body.antique-theme { background: #f4efe6; }
    .antique-theme .container { padding-left: 12px; padding-right: 12px; }
    .antique-theme .card { border-radius: 8px; }
    .antique-theme h1, .antique-theme .h1 { font-size: 1.7rem; }
    .antique-theme h3, .antique-theme .h3 { font-size: 1.35rem; }
    .antique-hero { border-radius: 8px !important; }
    .bargain-intro-screen { min-height:calc(100vh - 120px); }
    .bargain-intro-inner { padding:35px 22px; }
    .bargain-intro-screen h1 { font-size:29px; }
    .bargain-lead { font-size:15px; line-height:1.75; }
    .bargain-benefits { margin-top:18px; }
    .bargain-benefit { padding:12px 14px; }
    .antique-theme .indexconL1 {
        padding: 18px 12px 22px !important;
        border-radius: 8px !important;
    }
    .antique-theme .indexconL1 .person {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        min-width: 0;
    }
    .antique-theme .personmsg {
        display: flex !important;
        align-items: flex-start;
        gap: 10px;
        margin: 0 0 12px !important;
        overflow: visible !important;
    }
    .antique-theme .personmsg > img {
        width: 54px !important;
        height: 54px !important;
        flex: 0 0 54px;
    }
    .antique-theme .personmsgR {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0 !important;
        overflow: hidden;
    }
    .antique-theme .personmsgR h5,
    .antique-theme .personmsgR h2 {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.45;
        margin-bottom: 2px;
    }
    .antique-theme .personmsgR p {
        line-height: 1.35;
    }
    .antique-theme .shopmsg {
        align-items: center;
        margin-top: 8px;
    }
    .antique-theme .shopmsg img {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px;
    }
    .antique-theme .shopmsgR {
        min-width: 0;
    }
    .antique-theme .shopmsgR h2,
    .antique-theme .shopmsgR p {
        line-height: 1.45;
        margin-bottom: 0;
    }
    .antique-theme .jzriqi {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        line-height: 1.5;
    }
    .antique-theme .shengji {
        width: 100% !important;
        max-width: 170px;
        margin: 12px 0 0 !important;
    }
    .antique-theme .quick.m {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 14px 10px !important;
        background: #fffaf2 !important;
        border: 1px solid rgba(154, 116, 64, .12);
    }
    .antique-theme .quick.m a {
        float: none !important;
        width: auto !important;
        min-width: 0;
    }
    .antique-theme .quick.m a p {
        width: 52px !important;
        height: 52px !important;
        line-height: 52px !important;
        margin: 0 auto 6px !important;
    }
    .antique-theme .quick.m a h2 {
        font-size: 12px !important;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .antique-theme .indexconL2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin: 12px 0 !important;
    }
    .antique-theme .indexconL2 a,
    .antique-theme .indexconL2 a:last-child {
        float: none !important;
        width: auto !important;
        height: 82px !important;
        margin: 0 !important;
        padding: 8px 10px !important;
    }
    .antique-theme .idataL {
        width: auto !important;
        margin: 0 !important;
    }
    .antique-theme .idataL p {
        font-size: 15px !important;
    }
    .antique-theme .idataL h2 {
        font-size: 18px !important;
        margin-top: 8px !important;
    }
    .antique-theme .idataR img {
        width: 58px !important;
    }
    .antique-theme .customer_service_link {
        padding: 6px 9px !important;
        font-size: 12px !important;
    }
    .antique-theme .customer_service_link .las {
        margin-right: 0 !important;
    }
}

/* Keep the seller navigation permanently visible on desktop/laptop screens. */
@media (min-width:992px) {
    .antique-theme .aiz-sidebar.left { left:0 !important; }
    .antique-theme .aiz-content-wrapper { padding-left:350px !important; }
    .antique-theme .aiz-topbar { left:350px !important; width:calc(100% - 350px) !important; }
    .antique-theme .aiz-topbar-nav-toggler { display:none !important; }
    .antique-theme .aiz-sidebar-overlay { display:none !important; }
}
