:root{
    --bg: #07050f;
    --bg-soft: #0b0817;
    --surface: #12101f;
    --surface-2: #171326;
    --surface-3: #201a34;
    --border: #2b2442;
    --border-strong: #3c335c;
    --text: #f6f3ff;
    --text-soft: #d0c8e8;
    --muted: #9990b8;
    --accent: #8b5cf6;
    --accent-bright: #a78bfa;
    --accent-soft: rgba(139, 92, 246, 0.16);
    --success: #42d6a3;
    --success-soft: rgba(66, 214, 163, 0.12);
    --warning: #f1b85c;
    --warning-soft: rgba(241, 184, 92, 0.12);
    --danger: #ff6575;
    --danger-soft: rgba(255, 101, 117, 0.1);
    --info: #67b8ff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
*{
    box-sizing: border-box;
}
html{
    scroll-behavior: auto;
}
body{
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 78% -8%, rgba(139, 92, 246, 0.18), transparent 40%),
        radial-gradient(circle at 6% 18%, rgba(217, 70, 239, 0.09), transparent 32%);
    pointer-events: none;
}
body::after{
    content: "";
    position: fixed;
    top: 160px;
    right: -220px;
    z-index: -1;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(217, 70, 239, 0.1);
    filter: blur(130px);
    pointer-events: none;
}
a{
    color: inherit;
    text-decoration: none;
}
img{
    max-width: 100%;
    display: block;
}
button,
input,
select,
textarea{
    font: inherit;
}
@media (max-width: 559.98px){input,
    select,
    textarea{
        font-size: 16px !important;
    }}
button{
    cursor: pointer;
}
h1,
h2,
h3,
p,
dl,
ul{
    margin: 0;
}
ul{
    padding: 0;
    list-style: none;
}
::selection{
    background: rgba(139, 92, 246, 0.4);
    color: #fff;
}
.container{
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 18px;
}
.mono{
    font-family: var(--mono);
    font-size: 0.92em;
    letter-spacing: -0.02em;
}
.text-accent{
    color: var(--accent-bright) !important;
}
.text-danger{
    color: var(--danger);
}
.is-hidden{
    display: none !important;
}
.skip-link{
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
}
.skip-link:focus{
    left: 8px;
}
.flash-wrap{
    padding-top: 16px;
}
.flash{
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--muted);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 14px;
}
.flash-success{
    border-left-color: var(--success);
    background: var(--success-soft);
    color: #c9f5e4;
}
.flash-info{
    border-left-color: var(--info);
    background: rgba(103, 184, 255, 0.1);
    color: #d5ebff;
}
.site-header{
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(60, 51, 92, 0.6);
    background: rgba(7, 5, 15, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.header-inner{
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.brand{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand-mark{
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 11px;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    color: #fff;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.brand-mark-sm{
    width: 34px;
    height: 34px;
    font-size: 15px;
}
.brand-text{
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-text strong{
    font-size: 16px;
    letter-spacing: 0.08em;
    background: linear-gradient(92deg, #c4b5fd, #f9a8d4 60%, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand-text small{
    margin-top: 5px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.18em;
}
.tabbar{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: flex;
    border-top: 1px solid rgba(60, 51, 92, 0.7);
    background: rgba(7, 5, 15, 0.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar-item{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 0 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.04em;
    transition: color 0.18s ease;
}
.tabbar-item.is-active{
    color: var(--accent-bright);
}
.tabbar-item:active{
    color: var(--text);
}
.site-body{
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover{
    transform: translateY(-1px);
}
.btn-primary{
    background: linear-gradient(135deg, var(--accent), #d946ef);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover{
    filter: brightness(1.08);
    border-color: transparent;
}
.btn-ghost{
    background: transparent;
    color: var(--text-soft);
    border-color: var(--border-strong);
}
.btn-ghost:hover{
    color: var(--text);
    border-color: var(--muted);
    background: var(--surface-2);
}
.btn-danger-ghost{
    background: transparent;
    color: #ff8d99;
    border-color: rgba(255, 101, 117, 0.28);
}
.btn-disabled{
    background: var(--surface-3);
    border-color: var(--border);
    color: var(--muted);
    cursor: not-allowed;
}
.btn-block{
    width: 100%;
}
.btn-sm{
    min-height: 36px;
    padding: 7px 14px;
    font-size: 13px;
}
.btn-xs{
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
}
.text-link{
    color: var(--accent-bright);
    font-size: 13px;
}
.text-link:hover{
    text-decoration: underline;
}
.section{
    padding: 46px 0;
}
.eyebrow{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.dot,
.eyebrow .dot{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}
.section-head{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.section-head h1,
.section-head h2{
    margin-top: 8px;
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}
.section-head-sm{
    align-items: center;
    margin-top: 20px;
}
.section-note{
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}
.hero{
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    padding: 42px 0 38px;
}
.product-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.product-card{
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.product-card:hover{
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.product-cover{
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #100d1c;
}
.product-cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.product-card:hover .product-cover img{
    transform: scale(1.035);
}
.cover-fallback{
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.18), transparent 38%),
        repeating-linear-gradient(135deg, #11131a, #11131a 8px, #0d0f15 8px, #0d0f15 16px);
}
.cover-fallback span{
    color: var(--border-strong);
    font-family: var(--mono);
    font-size: 42px;
    font-weight: 700;
}
.cover-fallback-lg span{
    font-size: 88px;
}
.cover-badge{
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(7, 5, 15, 0.74);
    color: var(--text-soft);
    font-size: 10px;
    backdrop-filter: blur(8px);
}
.product-body{
    padding: 8px;
}
.product-title-row{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.product-body h3{
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-desc{
    display: none;
}
.product-foot{
    margin-top: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}
.product-foot .stock{
    display: none;
}
.price{
    color: var(--text);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.price::first-letter{
    color: var(--accent-bright);
}
.stock{
    color: var(--muted);
    font-size: 10px;
    font-family: var(--mono);
}
.stock-out{
    color: #7b6370;
}
.detail-buy-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.detail-back{
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 16px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s ease;
}
.detail-back:hover{
    border-color: var(--accent);
}
.cart-float{
    position: fixed;
    right: 18px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    transition: transform 0.15s ease;
}
.cart-float:hover{
    transform: translateY(-2px);
}
.cart-float-badge{
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff5c7a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid var(--bg);
}
.cart-float-badge[hidden]{
    display: none;
}
.qty-stepper{
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}
.qty-stepper button{
    width: 38px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.qty-stepper button:hover{
    background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.qty-stepper button:disabled{
    opacity: 0.35;
    cursor: not-allowed;
}
.qty-stepper input,
.qty-stepper .qty-stepper-num{
    width: 52px;
    border: 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    text-align: center;
    padding: 9px 0;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}
.qty-stepper .qty-stepper-num{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qty-stepper-sm button{
    width: 30px;
    font-size: 14px;
}
.qty-stepper-sm .qty-stepper-num{
    width: 38px;
    padding: 5px 0;
    font-size: 13px;
}
.cart-badge{
    display: inline-block;
    min-width: 16px;
    height: 16px;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    vertical-align: 2px;
}
.cart-qty-form{
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}
.cart-qty-form input[type="number"]{
    width: 64px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    text-align: center;
    outline: none;
}
.cart-item-side{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.cart-item{
    align-items: flex-start;
}
.cart-actions{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}
.cat-chips{
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -16px 20px;
    padding: 0 16px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar{
    display: none;
}
.shop-tools .cat-chips{
    margin-bottom: 10px;
}
.cat-search{
    display: flex;
    gap: 8px;
}
.cat-search input[type="search"]{
    flex: 1;
    min-width: 0;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.cat-search input[type="search"]:focus{
    border-color: var(--accent);
}
.cat-search .btn{
    flex: 0 0 auto;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
}
.search-result-note{
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--muted);
}
.search-result-note a{
    color: var(--accent-bright);
    margin-left: 8px;
}
.cat-chip{
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.cat-chip:hover{
    border-color: var(--accent);
    color: var(--text);
}
.cat-chip.is-active{
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.12);
    color: var(--text);
}
.empty-state{
    padding: 60px 24px;
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: rgba(17, 20, 28, 0.55);
}
.empty-mark{
    display: inline-grid;
    place-items: center;
    min-width: 52px;
    height: 52px;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
}
.empty-state h3{
    margin-top: 18px;
    font-size: 18px;
}
.empty-state p{
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}
.empty-state .btn{
    margin-top: 22px;
}
.console-banner p:not(.eyebrow){
    max-width: 560px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}
.pagination{
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}
.page-link{
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    font-size: 12px;
    font-family: var(--mono);
}
.page-link:hover{
    color: var(--text);
    border-color: var(--border-strong);
}
.page-link.is-active{
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}
.page-link.is-disabled{
    pointer-events: none;
    opacity: 0.4;
}
.page-dots{
    padding: 0 4px;
    color: var(--muted);
    font-size: 12px;
}
.breadcrumb{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 24px;
}
.breadcrumb a:hover{
    color: var(--text);
}
.breadcrumb span{
    color: var(--border-strong);
}
.product-detail-section{
    padding-top: 30px;
}
.detail-grid{
    display: grid;
    gap: 18px;
}
.detail-media{
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}
.detail-media img{
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
.detail-media .cover-fallback{
    width: 240px;
    max-width: 72vw;
    aspect-ratio: 1;
}
.detail-index{
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(7, 5, 15, 0.72);
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    backdrop-filter: blur(8px);
}
.detail-info{
    display: flex;
    flex-direction: column;
}
.detail-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.dot-label{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
}
.dot-label::before{
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
}
.dot-label.dot-online{
    color: var(--success);
}
.dot-label.dot-online::before{
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}
.detail-stock{
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}
.detail-info h1{
    margin-top: 14px;
    font-size: clamp(28px, 6vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.05em;
}
.detail-price{
    margin-top: 13px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.05em;
}
.detail-price::first-letter{
    color: var(--accent-bright);
}
.detail-description{
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-wrap;
}
.detail-purchase{
    margin-top: 26px;
}
.purchase-note{
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}
.form{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.field{
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.field > span{
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
}
.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea{
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    outline: none;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea{
    min-height: 104px;
    resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder{
    color: #5d6476;
}
.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus{
    border-color: var(--accent);
    background: #171326;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}
.order-search{
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.order-search input{
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    outline: none;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.order-search input::placeholder{
    color: #5d6476;
}
.order-search input:focus{
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}
.order-search .btn{
    flex-shrink: 0;
}
.container-narrow{
    max-width: 640px;
}
.order-panel{
    margin-bottom: 16px;
}
.order-panel .form{
    padding: 16px 18px 20px;
}
.detail-list{
    margin: 0;
    padding: 6px 18px 14px;
}
.detail-list > div{
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}
.detail-list > div:last-child{
    border-bottom: none;
}
.detail-list dt{
    color: var(--muted);
}
.detail-list dd{
    margin: 0;
    color: var(--text);
    word-break: break-all;
    text-align: right;
}
.bind-email-hint{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.08);
    font-size: 13px;
    color: var(--text);
}
.field-code{
    display: flex;
    gap: 10px;
}
.field-code input{
    flex: 1;
    min-width: 0;
}
.field-code .btn{
    flex-shrink: 0;
    min-height: 46px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
}
.field-code .btn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
}
.field-tip{
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-dim, #8a8f9d);
    min-height: 0;
}
.field-tip.is-error{
    color: #ff8080;
}
.field select{
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
}
.form-error{
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 101, 117, 0.25);
    border-radius: 9px;
    background: var(--danger-soft);
    color: #ffc7ce;
    font-size: 13px;
}
.form-note{
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}
.field-row{
    display: grid;
    gap: 14px;
}
.auth-section{
    padding: 46px 0 70px;
}
.auth-layout{
    display: grid;
    gap: 28px;
    max-width: 940px;
}
.auth-copy{
    position: relative;
    padding: 8px 0;
}
.auth-copy h1{
    margin-top: 14px;
    font-size: clamp(34px, 8vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}
.auth-copy p:not(.eyebrow){
    max-width: 430px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}
.auth-deco{
    display: none;
    margin-top: 40px;
    color: var(--border-strong);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.25em;
}
.auth-card{
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.card-head h1,
.card-head h2{
    font-size: 22px;
    letter-spacing: -0.035em;
}
.card-head p{
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}
.card-head{
    margin-bottom: 22px;
}
.auth-switch{
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
.auth-switch a{
    color: var(--accent-bright);
}
.checkout-section{
    padding-top: 28px;
}
.checkout-grid{
    display: grid;
    gap: 18px;
}
.panel{
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.panel-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}
.panel-head h2{
    font-size: 15px;
    letter-spacing: -0.02em;
}
.panel-head > span,
.panel-head > a{
    color: var(--muted);
    font-size: 11px;
}
.panel-head > a:hover{
    color: var(--text);
}
.panel-sub{
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}
.panel-head-actions{
    align-items: center;
}
.order-summary{
    align-self: start;
}
.summary-product{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}
.summary-thumb{
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
}
.summary-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.summary-info{
    min-width: 0;
    flex: 1;
}
.summary-info h3{
    font-size: 14px;
    line-height: 1.4;
}
.summary-info p{
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}
.summary-price{
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 14px;
}
.summary-total{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 18px;
    padding: 17px 0;
    border-top: 1px solid var(--border);
}
.summary-total span{
    color: var(--muted);
    font-size: 12px;
}
.summary-total strong{
    color: var(--accent-bright);
    font-family: var(--mono);
    font-size: 27px;
    letter-spacing: -0.05em;
}
.summary-note{
    padding: 0 18px 18px;
    color: var(--muted);
    font-size: 10px;
}
.checkout-form-panel{
    padding-bottom: 20px;
}
.checkout-form-panel .form{
    padding: 18px;
}
.checkout-submit{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 5px;
}
.pay-total{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pay-total span{
    color: var(--muted);
    font-size: 12px;
}
.pay-total strong{
    color: var(--accent-bright);
    font-family: var(--mono);
    font-size: 20px;
}
.pay-total-main{
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ship-note{
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
}
.pay-amount-note{
    margin: 12px 0;
    padding: 11px 14px;
    border: 1px solid rgba(241, 184, 92, 0.35);
    border-radius: var(--radius-sm);
    background: var(--warning-soft);
    color: #f6d9a8;
    font-size: 12.5px;
    line-height: 1.7;
}
.pay-amount-note span{
    color: #ffd28a;
    font-weight: 600;
}
.pay-section{
    padding-top: 32px;
}
.pay-container{
    max-width: 900px;
}
.pay-head{
    margin-bottom: 24px;
    text-align: center;
}
.pay-head h1{
    margin-top: 10px;
    font-size: clamp(28px, 6vw, 42px);
    letter-spacing: -0.05em;
}
.pay-head p:not(.eyebrow){
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}
.pay-head .eyebrow{
    justify-content: center;
}
.pay-layout{
    display: grid;
    gap: 18px;
}
.qr-frame{
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
.qr-frame img{
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}
.qr-empty{
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 1px dashed #b9bfcc;
    border-radius: 8px;
    color: #5c6272;
    text-align: center;
}
.qr-empty strong{
    color: #2f3441;
    font-size: 14px;
}
.qr-empty span{
    font-size: 10px;
}
.pay-channel-btn.is-active{
    background: var(--bg-soft);
}
.pay-channel-btn.is-active.channel-wechat{
    border-color: #2aae67;
}
.pay-channel-btn.is-active.channel-alipay{
    border-color: #1677ff;
}
.qr-single .qr-frame{
    max-width: 240px;
    margin: 0 auto;
}
.qr-single .btn{
    margin-top: 14px;
}
.qr-channel-label i,
.channel-dot{
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.channel-dot{
    margin-right: 7px;
    vertical-align: 1px;
}
.channel-wechat{
    background: #2aae67;
}
.channel-alipay{
    background: #1677ff;
}
.admin-qr-note{
    margin-top: 14px;
    text-align: center;
}
.pay-info{
    padding: 18px;
}
.pay-status{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.pay-waiting{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--warning);
    font-size: 11px;
}
.pay-waiting i{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning);
    animation: pulse 1.7s ease-in-out infinite;
}
@keyframes pulse{
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(241, 184, 92, 0.3); }
    50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(241, 184, 92, 0); }
}
.info-list{
    padding: 6px 0;
}
.info-list > div{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(36, 41, 54, 0.5);
    font-size: 12px;
}
.info-list > div:last-child{
    border-bottom: 0;
}
.info-list span{
    color: var(--muted);
    flex-shrink: 0;
}
.info-list strong{
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}
.pay-steps{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-soft);
}
.pay-steps span{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 11px;
}
.pay-steps b{
    color: var(--accent-bright);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
}
.pay-info .btn + .btn{
    margin-top: 9px;
}
.pay-hint{
    margin-top: 13px;
    color: #6c7386;
    font-size: 10px;
    line-height: 1.65;
    text-align: center;
}
.orders-section{
    padding-top: 32px;
}
.order-list{
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.order-card{
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}
.order-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.order-number span,
.order-address > span,
.order-time > span,
.order-amount span,
.tracking-box span:first-child{
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.04em;
}
.order-number strong{
    display: block;
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
}
.status-badge{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 10px;
    white-space: nowrap;
}
.status-badge::before{
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.status-pending{
    color: var(--warning);
    border-color: rgba(241, 184, 92, 0.25);
    background: var(--warning-soft);
}
.status-verifying{
    color: #6cb4ff;
    border-color: rgba(108, 180, 255, 0.25);
    background: rgba(108, 180, 255, 0.1);
}
.status-failed{
    color: #ff8080;
    border-color: rgba(255, 128, 128, 0.28);
    background: rgba(255, 128, 128, 0.1);
}
.status-paid{
    color: var(--success);
    border-color: rgba(66, 214, 163, 0.25);
    background: var(--success-soft);
}
.status-shipped{
    color: var(--accent-bright);
    border-color: rgba(139, 92, 246, 0.28);
    background: var(--accent-soft);
}
.status-completed{
    color: var(--muted);
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.status-online{
    color: var(--success);
    border-color: rgba(66, 214, 163, 0.25);
    background: var(--success-soft);
}
.status-offline{
    color: var(--muted);
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.order-details{
    display: grid;
    gap: 10px;
    padding: 13px 16px;
    border-top: 1px solid var(--border);
}
.order-address p,
.order-time p{
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.55;
}
.order-address p + p{
    margin-top: 2px;
    color: var(--muted);
}
.tracking-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 16px 14px;
    padding: 11px 13px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: 9px;
    background: var(--accent-soft);
}
.tracking-box strong{
    display: block;
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.03em;
    word-break: break-all;
}
.tracking-note{
    flex-shrink: 0;
    color: var(--accent-bright);
    font-size: 10px;
}
.order-foot{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}
.order-hint{
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}
.order-actions{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.order-actions .inline-form{
    margin: 0;
}
.status-cancelled{
    color: var(--muted);
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.site-footer{
    margin-top: 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}
.footer-inner{
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 28px;
}
.footer-brand{
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand strong{
    font-size: 13px;
    letter-spacing: 0.06em;
}
.footer-brand p{
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}
.footer-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #5c6274;
    font-size: 10px;
}
.footer-meta a:hover{
    color: var(--muted);
}
@media (min-width: 560px){.container{
        padding: 0 24px;
    }.product-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }.product-body{
        padding: 14px;
    }.product-body h3{
        font-size: 14px;
        line-height: 1.45;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }.product-desc{
        margin-top: 7px;
        font-size: 11.5px;
        line-height: 1.55;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--muted);
    }.product-foot{
        margin-top: 15px;
    }.product-foot .stock{
        display: inline;
    }.price{
        font-size: 17px;
    }.cat-chips{
        flex-wrap: wrap;
        gap: 10px;
        margin: 0 0 24px;
        padding: 0;
        overflow-x: visible;
    }.cat-chip{
        padding: 8px 18px;
        font-size: 13px;
    }.field-row{
        grid-template-columns: 1fr 1fr;
    }.auth-card{
        padding: 30px;
    }.checkout-submit{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }.checkout-submit .btn{
        min-width: 220px;
    }.pay-info .btn + .btn{
        margin-top: 0;
    }.pay-info .btn-block{
        display: inline-flex;
        width: calc(50% - 5px);
        margin-top: 12px;
    }.order-details{
        grid-template-columns: 1.5fr 1fr;
        gap: 20px;
    }.footer-inner{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }.footer-meta{
        gap: 26px;
    }}
@media (min-width: 760px){.product-grid{
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }.section{
        padding: 64px 0;
    }.section-head h1,
    .section-head h2{
        font-size: 34px;
    }.pay-layout{
        grid-template-columns: 0.95fr 1.05fr;
        align-items: start;
    }.pay-info{
        padding: 24px;
    }.orders-section .order-card{
        border-radius: 14px;
    }.auth-layout{
        grid-template-columns: 0.9fr 1.1fr;
        align-items: center;
        gap: 60px;
        padding-top: 40px;
    }.auth-deco{
        display: block;
    }.auth-card{
        padding: 34px;
    }.checkout-grid{
        grid-template-columns: 0.92fr 1.08fr;
        align-items: start;
        gap: 22px;
    }.summary-thumb{
        width: 72px;
        height: 72px;
    }.checkout-form-panel .form{
        padding: 22px;
    }}
@media (min-width: 960px){.container{
        padding: 0 32px;
    }.detail-grid{
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
        gap: 36px;
        align-items: start;
    }.detail-media{
        position: sticky;
        top: 92px;
        max-width: 340px;
        margin: 0;
    }.detail-info{
        padding-top: 8px;
    }.product-detail-section{
        padding-top: 42px;
    }.order-summary{
        position: sticky;
        top: 92px;
    }}
.admin-body{
    background: #07080c;
}
.admin-shell{
    min-height: 100vh;
}
.admin-sidebar{
    border-bottom: 1px solid var(--border);
    background: #0b0d13;
}
.admin-brand{
    padding: 15px 18px 13px;
}
.admin-nav{
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding: 0 12px 12px;
    scrollbar-width: thin;
}
.admin-nav a{
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}
.admin-nav a span{
    color: #5b6273;
    font-family: var(--mono);
    font-size: 9px;
}
.admin-nav a:hover{
    color: var(--text-soft);
    background: var(--surface);
}
.admin-nav a.is-active{
    border-color: var(--border);
    background: var(--surface-2);
    color: var(--text);
}
.admin-nav a.is-active span{
    color: var(--accent-bright);
}
.admin-sidebar-foot{
    display: none;
}
.admin-main{
    min-width: 0;
}
.admin-topbar{
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 8, 12, 0.86);
    backdrop-filter: blur(16px);
}
.admin-topbar h1{
    margin-top: 5px;
    font-size: 23px;
    letter-spacing: -0.04em;
}
.admin-mobile-exit{
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--muted);
    font-size: 11px;
}
.admin-content{
    padding: 18px;
    max-width: 1440px;
    margin: 0 auto;
}
.stat-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.stat-card{
    position: relative;
    display: block;
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
a.stat-card:hover{
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.stat-card::after{
    content: "";
    position: absolute;
    top: -28px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.05);
}
.stat-label{
    color: var(--muted);
    font-size: 10px;
}
.stat-card strong{
    display: block;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.06em;
}
.stat-card p{
    margin-top: 9px;
    color: #616879;
    font-size: 9px;
}
.stat-card.stat-warning{
    border-color: rgba(241, 184, 92, 0.18);
}
.stat-card.stat-warning strong{
    color: var(--warning);
}
.stat-card.stat-accent{
    border-color: rgba(139, 92, 246, 0.24);
    background: linear-gradient(150deg, rgba(139, 92, 246, 0.08), var(--surface) 55%);
}
.stat-card.stat-accent strong{
    color: var(--accent-bright);
}
.stat-money{
    font-size: 22px !important;
}
.admin-grid{
    display: grid;
    gap: 16px;
}
.admin-grid > .panel{
    min-width: 0;
}
.quick-actions{
    padding: 8px;
}
.quick-actions a{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}
.quick-actions a:hover{
    background: var(--surface-2);
}
.quick-actions a > span{
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    color: var(--accent-bright);
    font-family: var(--mono);
    font-size: 13px;
}
.quick-actions strong,
.quick-actions small{
    display: block;
}
.quick-actions strong{
    font-size: 12px;
    font-weight: 500;
}
.quick-actions small{
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}
.table-wrap{
    width: 100%;
    overflow-x: auto;
}
.data-table{
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 12px;
}
.data-table th{
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: left;
    white-space: nowrap;
    background: rgba(12, 14, 20, 0.5);
}
.data-table td{
    padding: 12px 14px;
    border-bottom: 1px solid rgba(36, 41, 54, 0.65);
    color: var(--text-soft);
    vertical-align: middle;
}
.data-table tbody tr:last-child td{
    border-bottom: 0;
}
.data-table tbody tr:hover td{
    background: rgba(22, 26, 36, 0.45);
}
.table-sub{
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}
.table-address{
    max-width: 260px;
}
.table-actions{
    white-space: nowrap;
}
.table-product{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}
.table-thumb{
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-soft);
}
.table-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.table-product strong{
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.table-product small{
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}
.row-actions{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.inline-form{
    display: inline;
}
.panel-count{
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}
.filter-tabs{
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 13px;
    scrollbar-width: thin;
}
.filter-tabs a{
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
}
.filter-tabs a:hover{
    border-color: var(--border-strong);
    color: var(--text-soft);
}
.filter-tabs a.is-active{
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-bright);
}
.admin-empty{
    padding: 44px 20px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
.admin-empty .btn{
    margin-top: 15px;
}
.form-panel{
    max-width: 1080px;
}
.form-grid{
    display: grid;
    gap: 22px;
    padding: 20px 18px;
}
.form-main,
.form-side{
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-full{
    grid-column: 1 / -1;
}
.form-actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border-top: 1px solid var(--border);
}
.product-form .form-error{
    margin: 16px 18px 0;
}
.product-form .field-row{
    display: grid;
    gap: 14px;
}
.upload-box{
    padding: 11px;
    border: 1px dashed var(--border-strong);
    border-radius: 11px;
    background: var(--bg-soft);
}
.upload-preview{
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--surface-2);
}
.upload-placeholder{
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.6;
}
.upload-box input[type="file"]{
    width: 100%;
    color: var(--muted);
    font-size: 10px;
}
.upload-box input[type="file"]::file-selector-button{
    margin-right: 8px;
    padding: 7px 11px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--text-soft);
    font: inherit;
    cursor: pointer;
}
.upload-box input[type="file"]::file-selector-button:hover{
    border-color: var(--muted);
}
.account-panel{
    max-width: 520px;
    padding-bottom: 20px;
}
.account-panel .form{
    padding: 20px 18px;
}
.account-panel .form .btn{
    align-self: flex-start;
}
.account-tip{
    max-width: 520px;
    margin-top: 16px;
    padding: 18px;
}
.account-tip h2{
    font-size: 14px;
}
.account-tip p{
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    word-break: break-all;
}
.admin-page-actions{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 10px;
}
.order-detail-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    margin-bottom: 16px;
}
.order-detail-head h2{
    margin-top: 9px;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.03em;
}
.order-detail-head p{
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}
.order-detail-total{
    flex-shrink: 0;
    color: var(--accent-bright);
    font-family: var(--mono);
    font-size: 24px;
    letter-spacing: -0.05em;
}
.admin-order-grid{
    display: grid;
    gap: 16px;
}
.admin-order-main,
.admin-order-side{
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.detail-list{
    padding: 8px 18px 14px;
}
.detail-list > div{
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(36, 41, 54, 0.55);
    font-size: 12px;
}
.detail-list > div:last-child{
    border-bottom: 0;
}
.detail-list dt{
    width: 72px;
    flex-shrink: 0;
    color: var(--muted);
    font-size: 10px;
}
.detail-list dd{
    margin: 0;
    color: var(--text-soft);
    word-break: break-all;
}
.admin-order-side .panel .form{
    padding: 18px;
}
.status-guide ul{
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.status-guide li{
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}
.status-guide .status-badge{
    flex-shrink: 0;
}
.admin-qr-grid{
    display: grid;
    gap: 16px;
}
.admin-qr-preview{
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.qr-frame-admin{
    max-width: 230px;
    margin: 0;
}
.qr-empty-admin{
    width: 100%;
    min-height: 210px;
    border-color: var(--border-strong);
    background: var(--bg-soft);
    color: var(--muted);
}
.qr-empty-admin strong{
    color: var(--text-soft);
}
.admin-qr-grid .panel .form{
    padding: 18px;
}
.upload-box-simple .upload-preview{
    max-height: 240px;
    object-fit: contain;
}
.admin-qr-preview .form-note{
    margin-top: 12px;
    text-align: center;
}
.admin-login-body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    background:
        radial-gradient(circle at 50% -10%, rgba(139, 92, 246, 0.13), transparent 35%),
        var(--bg);
}
.admin-login-wrap{
    width: 100%;
    max-width: 410px;
}
.admin-login-brand{
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
}
.admin-login-brand strong,
.admin-login-brand span{
    display: block;
}
.admin-login-brand strong{
    font-size: 14px;
    letter-spacing: 0.07em;
}
.admin-login-brand span{
    margin-top: 3px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.15em;
}
.admin-login-card{
    padding: 26px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.admin-login-card .auth-switch{
    display: none;
}
.admin-login-card .btn{
    margin-top: 3px;
}
.admin-login-back{
    display: block;
    margin-top: 20px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}
.admin-login-back:hover{
    color: var(--text-soft);
}
@media (min-width: 620px){.admin-content{
        padding: 22px;
    }.stat-grid{
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }.stat-card{
        padding: 18px;
    }.stat-card strong{
        font-size: 32px;
    }.stat-money{
        font-size: 24px !important;
    }.admin-login-card{
        padding: 34px;
    }.admin-qr-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }.form-grid{
        grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
        padding: 24px;
    }.product-form .field-row{
        grid-template-columns: 1fr 1fr;
    }.upload-box{
        position: sticky;
        top: 88px;
    }}
@media (min-width: 960px){.admin-shell{
        display: grid;
        grid-template-columns: 234px minmax(0, 1fr);
    }.admin-sidebar{
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        border-right: 1px solid var(--border);
        border-bottom: 0;
    }.admin-brand{
        padding: 22px 20px 24px;
        border-bottom: 1px solid var(--border);
    }.admin-nav{
        flex-direction: column;
        overflow: visible;
        padding: 14px 10px;
        gap: 2px;
    }.admin-nav a{
        padding: 10px 12px;
    }.admin-sidebar-foot{
        display: block;
        margin-top: auto;
        padding: 16px 18px 20px;
        border-top: 1px solid var(--border);
    }.admin-user span,
    .admin-user strong{
        display: block;
    }.admin-user span{
        color: var(--muted);
        font-size: 9px;
    }.admin-user strong{
        margin-top: 3px;
        color: var(--text-soft);
        font-family: var(--mono);
        font-size: 11px;
        font-weight: 500;
    }.admin-foot-links{
        display: flex;
        gap: 15px;
        margin-top: 12px;
    }.admin-foot-links a{
        color: var(--muted);
        font-size: 10px;
    }.admin-foot-links a:hover{
        color: var(--text-soft);
    }.admin-mobile-exit{
        display: none;
    }.admin-topbar{
        padding: 21px 30px;
    }.admin-topbar h1{
        font-size: 26px;
    }.admin-content{
        padding: 26px 30px 40px;
    }.stat-grid{
        margin-bottom: 20px;
    }.admin-grid{
        grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.45fr);
        gap: 20px;
    }.admin-order-grid{
        grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
        align-items: start;
        gap: 20px;
    }.order-detail-head{
        padding: 22px;
    }.order-detail-head h2{
        font-size: 22px;
    }}
@media (min-width: 1200px){.admin-content{
        padding: 30px 38px 50px;
    }.admin-topbar{
        padding: 23px 38px;
    }}
.pay-layout-single{
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}
.pay-hint-error{
    color: #ff8080;
}
.section{ padding: 30px 0; }
.section-head{ margin-bottom: 16px; }
.section-head h1, .section-head h2{ font-size: 21px; margin-top: 6px; }
.section-head-sm{ margin-top: 8px; }
.hero{ padding: 22px 0 20px; }
.product-detail-section{ padding-top: 18px; }
.detail-back{ margin-bottom: 12px; }
.detail-info h1{ margin-top: 8px; font-size: clamp(19px, 4.6vw, 27px); line-height: 1.25; letter-spacing: -0.03em; }
.detail-price{ margin-top: 0; font-size: 24px; }
.detail-description{ margin-top: 12px; padding-top: 12px; font-size: 12.5px; line-height: 1.65; }
.detail-purchase{ margin-top: 16px; }
.purchase-note{ text-align: left; }
.summary-product{ padding: 10px 18px; gap: 10px; }
.summary-thumb{ width: 54px; height: 54px; flex: 0 0 54px; }
.summary-info h3{ font-size: 13px; }
.summary-info p{ margin-top: 3px; font-size: 11px; }
.summary-price{ font-size: 13px; }
.summary-total{ margin-top: 10px; padding-top: 10px; font-size: 13px; }
.summary-total strong{ font-size: 17px; }
.cart-qty-form{ margin-top: 6px; }
.cart-actions{ margin-top: 12px; }
.stock-ok{ color: #7bd9a8; }
.stock-low{ color: #ffc46e; }
.stock-badge{ font-size: 12.5px; }
.stock-badge small{ color: var(--muted); font-size: 11px; }
.stock-badge.stock-ok{ color: #7bd9a8; }
.stock-badge.stock-low{ color: #ffc46e; }
.stock-badge.stock-out{ color: #ff8a8a; }
.detail-stock.stock-ok{ color: #7bd9a8; }
.detail-stock.stock-low{ color: #ffc46e; }
.detail-stock.stock-out{ color: #ff8a8a; }
.stock-tier-group{
    display: flex;
    gap: 8px;
}
.stock-tier{
    flex: 1;
    cursor: pointer;
}
.stock-tier input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.stock-tier span{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.stock-tier input:checked + span{
    font-weight: 600;
}
.stock-tier-plenty input:checked + span{
    color: #7bd9a8;
    border-color: rgba(123, 217, 168, 0.5);
    background: rgba(123, 217, 168, 0.08);
}
.stock-tier-few input:checked + span{
    color: #ffc46e;
    border-color: rgba(255, 196, 110, 0.5);
    background: rgba(255, 196, 110, 0.08);
}
.stock-tier-none input:checked + span{
    color: #ff8a8a;
    border-color: rgba(255, 138, 138, 0.5);
    background: rgba(255, 138, 138, 0.08);
}
.invite-flash{
    margin-bottom: 16px;
}
.invite-box{
    display: flex;
    gap: 10px;
    align-items: center;
}
.invite-box input{
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    outline: none;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
}
.invite-box input:focus{
    border-color: var(--accent);
}
.inline-form{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
}
.inline-note{
    width: 120px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    outline: none;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 12px;
}
.wd-qr{
    display: block;
    width: 44px;
    height: 44px;
    margin-top: 6px;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}
.field-inline-tip{
    margin-left: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}
.order-search select{
    min-height: 42px;
    max-width: 180px;
    padding: 9px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    outline: none;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 13px;
}
.cat-empty{
    color: var(--muted);
    font-size: 12px;
}
.cat-toggle{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-size: 12px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cat-toggle:hover{
    color: var(--text);
    border-color: var(--muted);
    background: var(--surface-2);
}
.cat-toggle svg{
    transition: transform 0.2s ease;
}
.cat-toggle.is-open{
    color: var(--accent-bright);
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--accent-soft);
}
.cat-toggle.is-open svg{
    transform: rotate(180deg);
}
.cat-expand-row > td{
    padding-top: 4px !important;
    background: var(--bg-soft);
}
.cat-sub{
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0 10px;
}
.cat-sub-item{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.2s ease;
}
.cat-sub-item:hover{
    border-color: var(--muted);
}
.cat-sub-main{
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 12px;
}
.contact-float{
    position: fixed;
    left: 18px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: 52px;
    height: 52px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.contact-float:hover{
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent-bright);
}
.contact-modal{
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.contact-modal[hidden]{
    display: none;
}
.contact-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.contact-card{
    position: relative;
    width: min(92vw, 360px);
    padding: 22px 20px 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.contact-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.contact-head strong{
    font-size: 17px;
    letter-spacing: -0.02em;
}
.contact-close{
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}
.contact-close:hover{
    color: var(--text);
}
.contact-tip{
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
}
.contact-qr{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}
.contact-qr img{
    width: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
.contact-qr span{
    color: #333;
    font-size: 13px;
}
.contact-row{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.contact-row > span{
    color: var(--muted);
    font-size: 13px;
    flex-shrink: 0;
}
.contact-row > strong{
    flex: 1;
    font-size: 14px;
    word-break: break-all;
}
.contact-link{
    flex: 1;
    font-size: 14px;
    color: var(--accent-bright);
    word-break: break-all;
}
.contact-link:hover{
    text-decoration: underline;
}
.contact-note{
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    margin-top: 4px;
}
.paste-hint{
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}
.paste-hint.is-done{
    color: var(--success);
}
.rate-input{
    width: 88px;
    padding: 5px 8px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12px;
}
.rate-input:focus{
    outline: none;
    border-color: var(--accent);
}
.addr-list{
    display: grid;
    gap: 8px;
    margin-top: 6px;
}
.addr-item{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.addr-item:hover{
    border-color: var(--border-strong);
}
.addr-item:has(input:checked){
    border-color: var(--accent);
    background: var(--accent-soft);
}
.addr-item input{
    margin-top: 3px;
    accent-color: var(--accent);
}
.addr-item.is-disabled{
    opacity: 0.5;
    cursor: not-allowed;
}
.addr-body{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    min-width: 0;
}
.addr-body strong{
    font-size: 14px;
}
.addr-body em{
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
}
.addr-body small{
    flex-basis: 100%;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
    word-break: break-all;
}
.addr-default{
    padding: 2px 7px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-bright);
    font-size: 10px;
}
.addr-new-fields{
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.addr-new-fields[hidden]{
    display: none;
}
.field-check{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    cursor: pointer;
}
.field-check input{
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}
.addr-manage{
    display: grid;
    gap: 10px;
}
.addr-card{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.addr-card-main{
    min-width: 0;
    flex: 1;
}
.addr-name{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}
.addr-phone{
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}
.addr-text{
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}
.addr-card-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.summary-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    color: var(--text-soft);
    font-size: 14px;
}
.bulk-bar{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.bulk-hint{
    color: var(--muted);
    font-size: 12px;
}
.bulk-check{
    width: 34px;
    text-align: center;
}
.bulk-check input[type="checkbox"]{
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    cursor: pointer;
}
.panel-actions{
    display: flex;
    gap: 8px;
}
.import-row-error td{
    background: rgba(255, 101, 117, 0.06);
}
.import-raw{
    max-width: 320px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.import-row-warn td{
    background: rgba(241, 184, 92, 0.07);
}
.import-row-dup td{
    background: rgba(103, 184, 255, 0.06);
}
.import-dup-label{
    color: var(--info);
    font-size: 12px;
}
.import-pending{
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 11px;
}
.import-raw-price{
    margin-left: 6px;
    color: var(--muted);
    font-size: 11px;
}
.import-new-cat{
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-bright);
    font-size: 11px;
}
.import-confirm{
    margin-top: 16px;
}
.status-toggle{
    min-width: 58px;
    min-height: 28px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.status-toggle.is-on{
    border: 1px solid rgba(66, 214, 163, 0.45);
    background: rgba(66, 214, 163, 0.15);
    color: #7bd9a8;
}
.status-toggle.is-on:hover{
    background: rgba(66, 214, 163, 0.28);
    border-color: rgba(66, 214, 163, 0.7);
}
.status-toggle.is-off{
    border: 1px solid rgba(255, 101, 117, 0.4);
    background: rgba(255, 101, 117, 0.13);
    color: #ff8a96;
}
.status-toggle.is-off:hover{
    background: rgba(255, 101, 117, 0.26);
    border-color: rgba(255, 101, 117, 0.65);
}
.cat-sub-thumb{
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
}
.cat-sub-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-sub-thumb .cover-fallback{
    width: 100%;
    height: 100%;
    font-size: 14px;
    border: none;
    background: transparent;
}
.cat-sub-name{
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-sub-price{
    flex-shrink: 0;
    color: var(--text-soft);
    font-size: 12px;
}
.cat-sub-foot{
    padding: 2px 4px 0;
    font-size: 12px;
}
@media (max-width: 559.98px){.cat-sub-item{
        gap: 8px;
        padding: 6px 8px;
    }.cat-sub-price{
        display: none;
    }}
@media (max-width: 559.98px){.invite-box{
        flex-direction: column;
        align-items: stretch;
    }.inline-note{
        width: 90px;
    }}
.cat-checks{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-check{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.cat-check input{
    display: none;
}
.cat-check:has(input:checked){
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-bright);
}
.cat-tags{
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}
.cat-tag{
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: 11px;
    white-space: nowrap;
}
@media (max-width: 559.98px){.addr-list{
        gap: 6px;
    }.addr-item{
        gap: 8px;
        padding: 7px 10px;
    }.addr-item input{
        margin-top: 2px;
    }.addr-body small{
        line-height: 1.45;
    }}
.trust-list{
    list-style: none;
    margin: 14px 0 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}
.trust-list li{
    position: relative;
    padding-left: 22px;
    font-size: 13.5px;
    line-height: 1.9;
    color: #9aa3b2;
}
.trust-list li::before{
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 700;
}
.related-section{
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
}
.section-head{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-head h2{
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}
.section-more{
    font-size: 13px;
    color: #9aa3b2;
    text-decoration: none;
}
.section-more:hover{ color: #fff; }
.load-sentinel{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 56px;
    margin: 18px 0 8px;
}
.load-dot{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
    animation: loadPulse 1.2s infinite ease-in-out;
}
.load-dot:nth-child(2){ animation-delay: 0.15s; }
.load-dot:nth-child(3){ animation-delay: 0.3s; }
@keyframes loadPulse{
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}
.list-end{
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding: 22px 0 10px;
    letter-spacing: 0.04em;
}
@media (max-width: 559.98px){.hero{
        padding: 14px 0 12px;
    }.eyebrow{
        margin-bottom: 4px;
    }.shop-tools .cat-chips{
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -16px 12px;
        padding: 2px 16px 6px;
        gap: 8px;
        scroll-snap-type: x proximity;
    }.shop-tools .cat-chips::-webkit-scrollbar{
        display: none;
    }.shop-tools .cat-chip{
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }.section-head{
        margin-bottom: 14px;
    }.section-head h2{
        font-size: 17px;
    }.section-note{
        font-size: 11px;
    }}
.product-card{
    position: relative;
}
.quick-add{
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #7c5cff;
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(124, 92, 255, 0.45);
    transition: transform 0.18s ease, background 0.18s ease;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}
.quick-add:hover{
    transform: scale(1.08);
    background: #8f74ff;
}
.quick-add:active{
    transform: scale(0.92);
}
.quick-add.is-loading{
    opacity: 0.5;
    pointer-events: none;
}
.quick-add.is-done{
    background: #22c55e;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45);
    font-size: 16px;
}
.quick-add .qa-count{
    font-size: 11px;
    font-weight: 600;
    margin-left: 1px;
}
.qadd-toast.show{
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 559.98px){.quick-add{
        width: 30px;
        height: 30px;
        right: 8px;
        bottom: 8px;
        font-size: 19px;
    }}
html.sheet-lock, html.sheet-lock body{
    overflow: hidden;
}
.sheet-mask{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9000;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.sheet-mask.is-open{
    opacity: 1;
    pointer-events: auto;
}
.sheet{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9001;
    background: #14161d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px 20px 0 0;
    transform: translateY(101%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
}
.sheet.is-open{
    transform: translateY(0);
}
.sheet-inner{
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 78vh;
}
.sheet-grip{
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    margin: 10px auto 4px;
    flex: 0 0 auto;
}
.sheet-close{
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cfd6e4;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.sheet-close:hover{
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.sheet-scroll{
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 16px;
    min-height: 0;
}
.sheet-media{
    width: min(70vw, 250px);
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto 14px;
    border-radius: 14px;
    overflow: hidden;
    background: #100d1c;
    flex: 0 0 auto;
}
.sheet-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.sheet-title{
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #f0f3f8;
}
.sheet-price-row{
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}
.sheet-price{
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.sheet-stock{
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 999px;
}
.sheet-stock.is-on{
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
}
.sheet-stock.is-off{
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}
.sheet-desc{
    font-size: 13.5px;
    line-height: 1.75;
    color: #9aa3b2;
    margin: 0 0 16px;
}
.sheet-desc-empty{
    color: #6b7280;
    font-style: italic;
}
.sheet-qty-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}
.sheet-qty-label{
    font-size: 14px;
    color: #cfd6e4;
}
.sheet-detail-link{
    display: inline-block;
    font-size: 13px;
    color: #7c5cff;
    text-decoration: none;
    padding: 6px 0;
}
.sheet-detail-link:hover{
    color: #9d86ff;
}
.sheet-foot{
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #14161d;
    flex: 0 0 auto;
}
.sheet-foot .btn{
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 12px;
}
.sheet-foot .btn.is-loading{
    opacity: 0.7;
    pointer-events: none;
}
.sheet-loading{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}
.sheet-loading span{
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #7c5cff;
    animation: sheetSpin 0.7s linear infinite;
}
@keyframes sheetSpin{
    to { transform: rotate(360deg); }
}
.sheet-empty{
    padding: 40px;
    text-align: center;
    color: #9aa3b2;
}
@media (min-width: 560px){.sheet{
        left: 50%;
        right: auto;
        bottom: 50%;
        transform: translate(-50%, 50%) scale(0.94);
        opacity: 0;
        width: 520px;
        max-height: 86vh;
        border-radius: 18px;
        transition: transform 0.24s ease, opacity 0.24s ease;
    }.sheet.is-open{
        transform: translate(-50%, 50%) scale(1);
        opacity: 1;
    }.sheet-grip{ display: none; }.sheet-media{ width: 220px; }}
.contact-float{
    left: auto;
    right: 18px;
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    background: rgba(18, 20, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.contact-float:hover{
    transform: translateY(-2px);
    border-color: #7c5cff;
    color: #a78bfa;
}
.contact-float svg{
    width: 19px;
    height: 19px;
}
.cart-float{
    right: 21px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
}
.cart-float svg{
    width: 20px;
    height: 20px;
}
.cart-float-badge{
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10.5px;
    top: -3px;
    right: -3px;
}
.site-body{
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
.product-title-row h3{
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}
.tabbar-item{
    gap: 5px;
    padding: 8px 0 9px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
}
.tabbar-item svg{
    width: 20px;
    height: 20px;
}
.section-head h2{
    font-size: 18px;
    letter-spacing: -0.01em;
}
.shop-tools .cat-chip{
    font-size: 12.5px;
    padding: 7px 15px;
}
@media (max-width: 559.98px){.contact-float{
        right: 14px;
        bottom: calc(136px + env(safe-area-inset-bottom, 0px));
        width: 42px;
        height: 42px;
    }.cart-float{
        right: 17px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }.site-body{
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }.product-title-row h3{
        font-size: 12.5px;
    }}
.order-items{
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.order-items-head{
    font-size: 11.5px;
    color: #7d8590;
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    letter-spacing: 0.02em;
}
.order-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.order-item + .order-item{
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.order-item-thumb{
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 8px;
    overflow: hidden;
    background: #100d1c;
}
.order-item-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.order-item-info{
    flex: 1;
    min-width: 0;
}
.order-item-info h4{
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 3px;
    color: #e6edf3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}
.order-item-info p{
    font-size: 11.5px;
    color: #7d8590;
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.order-item-sub{
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: #e6edf3;
    font-variant-numeric: tabular-nums;
    padding-left: 6px;
}
.order-total-row{
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.order-total-row span{
    font-size: 11.5px;
    color: #7d8590;
}
.order-total-row strong{
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 559.98px){.order-item-thumb{
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }.order-item-info h4{
        font-size: 12.5px;
    }.order-total-row strong{
        font-size: 17px;
    }}
.unit-switch{
    display: flex;
    background: #101219;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 3px;
    margin: 0 0 14px;
}
.unit-tab{
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13.5px;
    color: #8b949e;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.unit-tab.is-on{
    background: #7c5cff;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}
.product-grid.is-carton{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.unit-badge{
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 2;
}
.unit-badge-carton{
    background: rgba(124, 92, 255, 0.92);
    color: #fff;
    box-shadow: 0 3px 10px rgba(124, 92, 255, 0.4);
}
.unit-line{
    font-size: 10px;
    color: #6b7280;
    margin: 4px 0 2px;
    letter-spacing: 0.01em;
}
.price-old{
    font-size: 11px;
    color: #4b5563;
    text-decoration: line-through;
    margin-left: 5px;
    font-weight: 400;
}
.sheet-price-old{
    font-size: 13px;
    color: #4b5563;
    text-decoration: line-through;
}
.sheet-save{
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.13);
    color: #4ade80;
    font-weight: 600;
}
.sheet-compare{
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 9px;
    padding: 10px 12px;
    margin: 10px 0 12px;
    font-size: 11.5px;
    line-height: 1.8;
    color: #9aa3b2;
}
.sheet-compare div{
    display: flex;
    justify-content: space-between;
}
.sheet-compare b{
    color: #4ade80;
    font-weight: 600;
}
@media (max-width: 559.98px){.unit-tab{ padding: 9px 0; font-size: 13px; }.product-grid.is-carton{ gap: 8px; }}
.back-top{
    position: fixed;
    right: 18px;
    bottom: calc(198px + env(safe-area-inset-bottom, 0px));
    z-index: 89;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 20, 28, 0.94);
    color: #cfd6e4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s,
                border-color 0.18s ease, color 0.18s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-tap-highlight-color: transparent;
}
.back-top.is-show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-top:hover{
    border-color: #7c5cff;
    color: #a78bfa;
}
.back-top:active{
    transform: scale(0.92);
}
@media (max-width: 559.98px){.back-top{
        right: 14px;
        bottom: calc(190px + env(safe-area-inset-bottom, 0px));
        width: 42px;
        height: 42px;
    }}
.unit-chip{
    display: inline-block;
    padding: 1px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}
.unit-chip-carton{
    background: rgba(124, 92, 255, 0.18);
    color: #a78bfa;
    border: 1px solid rgba(124, 92, 255, 0.35);
}
.unit-chip-pack{
    background: rgba(255, 255, 255, 0.06);
    color: #8b949e;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.unit-chip-vape{
    background: rgba(45, 212, 191, 0.14);
    color: #5eead4;
    border: 1px solid rgba(45, 212, 191, 0.35);
}
.unit-chip-gk{
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.channel-tab.is-on{
    border-color: #7c5cff;
    background: rgba(124, 92, 255, 0.14);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.22);
}
.channel-tab.is-on .channel-icon{
    color: #a78bfa;
}
.product-row.is-focus{
    background: rgba(124, 92, 255, 0.13);
    box-shadow: inset 3px 0 0 #7c5cff;
    transition: background 0.5s ease 1.8s, box-shadow 0.5s ease 1.8s;
}
.product-row.is-focus.is-fade{
    background: transparent;
    box-shadow: none;
}
html{ scroll-behavior: auto; }
.paid-auto-tag{
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 10.5px;
    font-weight: 600;
    vertical-align: middle;
}
.cat-drawer-bar{
    margin-bottom: 14px;
}
.cat-drawer-toggle{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    cursor: pointer;
}
.cat-drawer-toggle:active{
    background: rgba(255,255,255,0.1);
}
.cat-drawer-toggle-icon{
    font-size: 15px;
    line-height: 1;
}
.cat-drawer-mask{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 998;
}
.cat-drawer{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(76vw, 300px);
    background: #14161d;
    border-right: 1px solid rgba(255,255,255,0.08);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}
body.cat-drawer-open .cat-drawer{
    transform: none;
}
body.cat-drawer-open .cat-drawer-mask{
    opacity: 1;
    pointer-events: auto;
}
.cat-drawer-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cat-drawer-close{
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.cat-drawer-list{
    overflow-y: auto;
    flex: 1;
    padding: 8px 0 24px;
}
.cat-drawer-item{
    display: block;
    padding: 12px 18px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cat-drawer-item:active{
    background: rgba(255,255,255,0.06);
}
.cat-drawer-item.is-active{
    color: #a78bfa;
    background: rgba(167,139,250,0.08);
    font-weight: 600;
}
.hero{
    padding: 30px 0 28px;
    background:
        radial-gradient(620px 260px at 88% -60px, rgba(124, 92, 255, 0.16), transparent 70%),
        radial-gradient(420px 220px at -5% 115%, rgba(124, 92, 255, 0.08), transparent 70%);
}
#products .section-head{
    margin-bottom: 14px;
}
#products .section-head h2{
    font-size: 24px;
}
.cat-search{
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    transition: border-color 0.2s ease;
}
.cat-search:focus-within{
    border-color: var(--accent);
}
.cat-search input[type="search"]{
    border: none;
    background: transparent;
    padding: 8px 16px;
}
.cat-search .btn{
    border-radius: 999px;
    padding: 8px 20px;
    white-space: nowrap;
}
.cat-drawer-bar{
    margin: 10px 0 16px;
}
.cat-drawer-toggle{
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    letter-spacing: 0.04em;
}
.cat-drawer-toggle:hover{
    border-color: rgba(124, 92, 255, 0.4);
    color: #fff;
}
.unit-switch{
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 12px;
}
.unit-tab{
    border-radius: 999px;
}
@media (max-width: 640px){.hero{ padding: 24px 0 22px; }}
.cat-filter-input{
    width: 100%;
    margin: 6px 0 10px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}
.cat-filter-input:focus{
    border-color: var(--accent);
}
.bulk-cat-select{
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    max-width: 160px;
}
.profile-section{
    padding-top: 28px;
}
.profile-hero{
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(167, 139, 250, 0.26);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.09));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}
.profile-hero::after{
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(217, 70, 239, 0.18);
    filter: blur(60px);
    pointer-events: none;
}
.profile-avatar{
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
    box-shadow: 0 10px 26px rgba(139, 92, 246, 0.4);
    color: #fff;
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
}
.profile-who{
    flex: 1;
    min-width: 0;
}
.profile-who h1{
    margin: 3px 0 4px;
    font-size: 25px;
    letter-spacing: -0.02em;
}
.profile-who p:last-child{
    color: var(--text-soft);
    font-size: 12px;
}
.profile-balance{
    position: relative;
    z-index: 1;
    margin-left: auto;
    text-align: right;
}
.profile-balance span{
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
}
.profile-balance strong{
    display: block;
    margin: 2px 0 1px;
    background: linear-gradient(96deg, #fff, #e9c8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--mono);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.profile-balance small{
    color: var(--muted);
    font-size: 10px;
}
.profile-actions{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 26px;
}
.profile-action{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 13px;
    transition: 0.2s ease;
}
.profile-action:hover{
    border-color: rgba(167, 139, 250, 0.45);
    background: var(--surface-2);
    color: #fff;
}
.profile-action small{
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}
.profile-block-head{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 14px;
    scroll-margin-top: 82px;
}
.profile-block-head h2{
    font-size: 18px;
    letter-spacing: -0.01em;
}
.profile-block-head p{
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}
.profile-page .stat-grid{
    margin-top: 0;
}
.profile-fold{
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
    scroll-margin-top: 82px;
}
.profile-fold > summary{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}
.profile-fold > summary::-webkit-details-marker{
    display: none;
}
.profile-fold > summary:hover{
    background: var(--surface-2);
}
.fold-title{
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.fold-title strong{
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}
.fold-title small{
    color: var(--muted);
    font-size: 11px;
}
.fold-meta{
    margin-left: auto;
    padding: 4px 10px;
    border: 1px solid rgba(167, 139, 250, 0.24);
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.12);
    color: #d8ccff;
    font-size: 10px;
    white-space: nowrap;
}
.fold-chevron{
    flex: 0 0 auto;
    color: var(--muted);
    transition: transform 0.22s ease;
}
.profile-fold[open] > summary{
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.profile-fold[open] .fold-chevron{
    transform: rotate(180deg);
}
.profile-fold-body{
    padding: 16px;
}
.profile-fold-body > :last-child{
    margin-bottom: 0;
}
.profile-fold-body .panel.order-panel{
    margin-bottom: 12px;
    background: var(--surface-2);
}
.fold-note{
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}
.logout-body{
    padding: 16px 18px 20px;
}
.logout-body .panel-sub{
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.75;
}
.btn-logout{
    padding: 12px 18px;
    border: 1px solid rgba(255, 101, 117, 0.34);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(255, 101, 117, 0.16), rgba(217, 70, 239, 0.1));
    color: #ffb3bd;
    font-weight: 600;
    text-align: center;
    transition: 0.2s ease;
}
.btn-logout:hover{
    border-color: rgba(255, 101, 117, 0.55);
    background: linear-gradient(135deg, rgba(255, 101, 117, 0.24), rgba(217, 70, 239, 0.16));
    color: #fff;
}
@media (max-width: 559.98px){.profile-hero{
        padding: 18px;
        gap: 13px;
    }.profile-avatar{
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
        font-size: 18px;
    }.profile-who h1{
        font-size: 21px;
    }.profile-balance{
        width: 100%;
        margin: 2px 0 0;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        text-align: left;
    }.profile-balance strong{
        font-size: 23px;
    }.profile-actions{
        gap: 8px;
    }.profile-action{
        padding: 11px 12px;
        font-size: 12px;
    }.profile-action small{
        display: none;
    }}
.header-search{
    flex: 0 1 440px;
    min-width: 180px;
    margin-left: auto;
}
.header-search input[type="search"]{
    font-size: 13px;
}
.header-search .btn{
    white-space: nowrap;
}
@media (max-width: 640px){.header-search{
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 4px;
    }.header-search input[type="search"]{
        padding: 8px 10px;
        font-size: 12px;
    }.header-search .btn{
        padding: 8px 12px;
        font-size: 12px;
    }}
@media (max-width: 420px){.site-header .brand-text{
        display: none;
    }}
@media (max-width: 900px){.site-header .header-search{
        display: none;
    }}
.detail-flavors{
    margin-top: 20px;
}
.detail-flavors-label{
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}
.flavor-list{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.flavor-chip{
    position: relative;
    cursor: pointer;
}
.flavor-chip input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.flavor-chip span{
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-2);
    color: var(--text);
    font-size: 12px;
    line-height: 1.2;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.flavor-chip input:checked + span{
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-bright);
}
.cart-flavor{
    color: var(--accent-bright);
    font-weight: 400;
    font-size: 12px;
}
.flavor-tip{
    flex: 0 0 auto;
    color: var(--accent-bright);
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

/* 58国烤 · 详情页单位后缀 */
.detail-price-unit{
    font-size: 12px;
    font-weight: 400;
    color: var(--text-soft, #9ca3af);
    margin-left: 2px;
}

/* 微信 / QQ 内置浏览器提示条 */
.wechat-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    background: #241a0e;
    border-bottom: 1px solid rgba(212, 175, 55, .35);
    color: #e8d9b5;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    z-index: 60;
}
.wechat-tip b { color: #d4af37; font-weight: 600; }
.wechat-tip-close {
    flex: 0 0 auto;
    background: none;
    border: 0;
    color: #9c8b6a;
    font-size: 18px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
}
@media (max-width: 640px) {
    .wechat-tip { font-size: 12.5px; padding: 8px 12px; }
}

/* ==========================================================================
   桌面端头部操作区（960px 以上）：账号 / 订单 / 购物篮
   移动端保持底部 tabbar + 悬浮购物篮，两套入口互不干扰
   ========================================================================== */
.header-actions {
    display: none;
}

.cart-ship-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(139, 92, 246, 0.07);
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.cart-ship-tip b {
    color: var(--accent-bright);
}

.cart-ship-tip.is-free {
    border-style: solid;
    border-color: rgba(66, 214, 163, 0.35);
    background: var(--success-soft);
    color: #b8f2dc;
}

@media (min-width: 960px) {
    .header-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 0 0 auto;
    }

    .header-action {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 12px;
        border: 1px solid transparent;
        border-radius: 100px;
        color: var(--muted);
        font-size: 12.5px;
        white-space: nowrap;
        transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

    .header-action:hover {
        border-color: var(--border);
        background: var(--surface);
        color: var(--text);
    }

    .header-cart {
        border-color: rgba(167, 139, 250, 0.3);
        background: var(--accent-soft);
        color: #ddd2ff;
    }

    .header-cart-count {
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: #ff5c7a;
        color: #fff;
        font-size: 10.5px;
        line-height: 18px;
        text-align: center;
    }

    .header-cart-count[hidden] {
        display: none;
    }

    /* 桌面端不再需要移动端的底部导航与悬浮购物篮 */
    .tabbar {
        display: none;
    }

    .site-body {
        padding-bottom: 0;
    }

    .cart-float {
        display: none;
    }

    .contact-float {
        bottom: 24px;
    }
}

/* ==========================================================================
   2026-11-06 · 前台内页视觉统一 & 键盘可访问性
   ========================================================================== */

/* 键盘焦点环：链接、按钮、可聚焦元素统一高亮，不影响输入框自带的聚焦样式 */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.65);
    outline-offset: 2px;
}

/* 内页标题层级向首页看齐：桌面 24px、手机 19px（原先各页停在 20px） */
@media (min-width: 760px) {
    .section-head h1,
    .section-head h2 {
        font-size: 24px;
        letter-spacing: -0.035em;
    }

    .panel-head h2 {
        font-size: 16px;
    }
}

@media (max-width: 559.98px) {
    .section-head h1,
    .section-head h2 {
        font-size: 19px;
    }
}

/* 卡片描边过渡统一，hover 时不出现跳变 */
.panel,
.form-panel,
.order-panel {
    transition: border-color 0.2s ease;
}

/* ==========================================================================
   2026-11-06 · 顾客端易用性优化（购物篮 / 详情 / 商品卡）
   ========================================================================== */

/* 购物篮：包邮进度条，让顾客一眼看出还差多少 */
.cart-ship-tip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.cart-ship-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.cart-ship-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b5cf6, #d946ef);
    transition: width 0.3s ease;
}

.cart-ship-tip.is-free .cart-ship-bar span {
    background: linear-gradient(90deg, #42d6a3, #22d3ee);
}

/* 购物篮：合计明细（商品 / 运费 / 应付），避免到结算页才发现运费 */
.cart-total-lines {
    margin-top: 6px;
    padding: 0 18px;
    border-top: 1px dashed var(--border);
}

.cart-total-lines .summary-line {
    padding: 6px 0;
    font-size: 13px;
}

.cart-cta-note {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* 详情页：购买区下方的购物篮入口，明确告诉顾客下一步 */
.detail-cart-link {
    margin-top: 10px;
}

/* 商品卡快捷加购：由圆形「+」改为带文字的胶囊按钮，语义更清楚 */
.product-card .quick-add {
    width: auto;
    min-width: 46px;
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.product-card .quick-add.is-done {
    font-size: 13px;
}

.product-card .price-wrap {
    padding-right: 58px;
}

@media (max-width: 559.98px) {
    .product-card .quick-add {
        height: 28px;
        min-width: 44px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .product-card .price-wrap {
        padding-right: 54px;
    }
}

/* ==========================================================================
   2026-11-06 · 顾客端易用性优化 · 第二批
   ========================================================================== */

/* 详情页手机端底部常驻购买栏 */
.buy-bar {
    display: none;
}

@media (max-width: 959.98px) {
    .buy-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
        z-index: 80;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 16px;
        border-top: 1px solid rgba(60, 51, 92, 0.7);
        background: rgba(10, 8, 18, 0.96);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .buy-bar-info {
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
        flex: 1;
    }

    .buy-bar-info strong {
        color: #fff;
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .buy-bar-info small {
        color: var(--muted);
        font-size: 11px;
        line-height: 1.4;
    }

    .buy-bar-btn {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 9px 18px;
        font-size: 13px;
    }

    /* 详情页已有常驻购买栏，隐藏悬浮购物篮并给页面留出空间 */
    .site-body.product-page {
        padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px));
    }

    .product-page .cart-float {
        display: none;
    }

    .product-page .contact-float {
        bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    }
}

/* 搜索无结果时的常见款推荐 */
.search-suggest {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 14px;
}

.search-suggest a {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.2;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.search-suggest a:hover {
    border-color: rgba(167, 139, 250, 0.55);
    color: var(--accent-bright);
}

/* 结算错误提示：嵌在收货信息面板内，左右留白与面板内容对齐 */
#checkoutError {
    margin: 0 18px 12px;
}

/* 购物篮：数量已达库存上限的说明 */
.cart-limit-note {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

/* ---------- 我的优惠券 ---------- */
.coupon-hero-icon svg {
    color: var(--gold-deep);
}

.coupon-hero-icon {
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 0;
}

.coupon-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.coupon-amount {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 128px;
    padding: 18px 14px;
    border-right: 1px dashed var(--border-strong);
    background: linear-gradient(180deg, #fffdf7, #fff9ec);
    color: var(--gold-deep);
}

.coupon-amount strong {
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.coupon-amount strong small {
    margin-right: 2px;
    font-size: 15px;
    font-weight: 600;
}

.coupon-amount span {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-dim);
}

.coupon-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 16px 18px;
}

.coupon-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.coupon-meta {
    font-size: 12px;
    color: var(--text-dim);
}

.coupon-cta {
    font-size: 12px;
    color: var(--success);
}

.coupon-state {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--text-dim);
}

.coupon-card.is-inactive {
    opacity: 0.58;
}

.coupon-card.is-inactive .coupon-amount {
    background: var(--surface-2);
    color: var(--text-dim);
}

.coupon-note {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-dim);
}

.empty-sub {
    max-width: 460px;
    margin: 0 auto 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
}

/* 首页优惠券提示条 */
.hv-coupon-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 0;
    padding: 14px 18px;
    border: 1px solid var(--gold-line);
    border-radius: 14px;
    background: linear-gradient(100deg, #fffaf0, #ffffff 62%);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hv-coupon-strip:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(169, 123, 51, 0.14);
}

.hv-coupon-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.hv-coupon-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hv-coupon-text strong {
    font-size: 14px;
    font-weight: 600;
}

.hv-coupon-text small {
    font-size: 12px;
    color: var(--text-dim);
}

.hv-coupon-cta {
    flex: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--gold-deep);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 559.98px) {
    .coupon-amount {
        min-width: 104px;
        padding: 14px 10px;
    }

    .coupon-amount strong {
        font-size: 26px;
    }

    .coupon-body {
        padding: 14px 14px;
    }

    .hv-coupon-strip {
        margin: 14px 0 0;
        padding: 12px 14px;
        gap: 10px;
    }

    .hv-coupon-ico {
        width: 36px;
        height: 36px;
    }

    .hv-coupon-cta {
        padding: 7px 12px;
    }
}

/* 头部优惠券数量角标 */
.header-coupon-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    margin-left: 2px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold-deep);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    vertical-align: 1px;
}

/* ===== 移动端性能优化：关掉毛玻璃，减少 GPU 合成 ===== */
@media (max-width: 900px) {
    .site-header,
    .topbar,
    .header,
    .mobile-tabbar,
    .cart-float,
    .drawer,
    .modal,
    .announce-modal,
    [class*="backdrop"] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .site-header,
    .topbar,
    .header {
        background: #ffffff !important;
    }
    img { content-visibility: auto; }
    .product-card,
    .p-card {
        contain: layout style paint;
    }
}

/* 邀请二维码 */
.invite-qr {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line, #ececee);
    border-radius: 16px;
    background: #fafafb;
}
.invite-qr img {
    width: 132px;
    height: 132px;
    border-radius: 12px;
    background: #fff;
    flex: 0 0 auto;
}
.invite-qr-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.invite-qr-text strong { font-size: 15px; color: #111; }
.invite-qr-text span { font-size: 12.5px; color: #8a8a90; line-height: 1.6; }
.invite-qr-text .btn { align-self: flex-start; }
@media (max-width: 480px) {
    .invite-qr { gap: 14px; padding: 14px; }
    .invite-qr img { width: 108px; height: 108px; }
}

/* 代理规则页 */
.tier-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 14px;
}
.tier-node {
    flex: 1 1 130px;
    padding: 14px 16px;
    border: 1px solid var(--line, #ececee);
    border-radius: 14px;
    background: #fafafb;
    text-align: center;
}
.tier-node strong { display: block; font-size: 15px; color: #111; margin-bottom: 6px; }
.tier-node span { font-size: 12.5px; color: #8a8a90; }
.tier-node-end { background: #111; border-color: #111; }
.tier-node-end strong { color: #fff; }
.tier-node-end span { color: rgba(255,255,255,.65); }
.tier-arrow { color: #c8c8ce; font-size: 16px; flex: 0 0 auto; }

.rule-list { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 2; color: #4a4a50; }
.rule-list li { margin-bottom: 4px; }
.rule-list-ordered { list-style: decimal; }
@media (max-width: 560px) {
    .tier-flow { gap: 6px; }
    .tier-node { flex: 1 1 100%; }
    .tier-arrow { display: none; }
}
/* 推广页：代理中心入口 */
.agent-entry { margin: 0 0 14px; }
.agent-entry .btn { font-size: 13px; }

/* 代理中心入口 */
.fold-agent-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #111;
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
}
.profile-action-agent { background: #111 !important; border-color: #111 !important; }
.profile-action-agent span { color: #fff !important; }
.profile-action-agent small { color: rgba(255,255,255,.65) !important; }
.invite-agent-link { flex: 0 0 auto; }

/* 付款页：取消订单按钮 */
.pay-cancel-form { margin: 8px 0 0; }
.pay-cancel-btn {
    color: #c0392b !important;
    border-color: #f0d4d0 !important;
    background: #fff5f4 !important;
}
.pay-cancel-btn:hover { background: #fdeceb !important; }

/* 抽屉：加载态与失败态 */
.sheet-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 0;
}
.sheet-loading em {
    font-style: normal;
    font-size: 13px;
    color: #8a8a90;
}
.sheet-fail {
    padding: 48px 24px;
    text-align: center;
    font-size: 14px;
    line-height: 2;
    color: #5a5a60;
}
.sheet-fail .btn { margin-top: 12px; }

/* 手机端：遮罩不用毛玻璃，改纯色（老机型上毛玻璃会卡） */
@media (max-width: 900px) {
    .sheet-mask,
    .notice-backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(12, 12, 14, .55) !important;
    }
}

/* 抽屉：淡入 + 骨架（替代转圈） */
.sheet-inner.is-ready {
    animation: sheetFadeIn .18s ease-out;
}
@keyframes sheetFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sheet-skeleton {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 26px;
}
.sheet-skeleton span {
    display: block;
    border-radius: 10px;
    background: linear-gradient(90deg, #f2f2f4 25%, #e9e9ec 37%, #f2f2f4 63%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.2s ease infinite;
}
.sheet-skeleton span:nth-child(1) { height: 180px; }
.sheet-skeleton span:nth-child(2) { height: 22px; width: 62%; }
.sheet-skeleton span:nth-child(3) { height: 16px; width: 40%; }
@keyframes skeletonShimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* 订单物流区块 */
.tracking-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tracking-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.tracking-no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .3px; }
.tracking-corp { font-style: normal; font-size: 12px; color: #8a8a90; }
.tracking-copy {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #e2e2e6;
    background: #fff;
    color: #333;
    font-size: 12px;
    cursor: pointer;
}
.tracking-copy:hover { background: #111; color: #fff; border-color: #111; }
.tracking-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.tracking-qr img { width: 74px; height: 74px; border-radius: 8px; border: 1px solid #ececee; background: #fff; }
.tracking-qr small { font-size: 10.5px; color: #9a9aa0; }

/* 收银台：收款方说明 */
.payee-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f7f8;
    border: 1px dashed #e2e2e6;
    font-size: 12.5px;
    line-height: 1.8;
    color: #4a4a50;
}
.payee-note strong { color: #111; }
.payee-note span { color: #8a8a90; font-size: 12px; }

/* ==========================================================================
   MOZ1 首页 v2（方案 B4）
   所有规则作用域限定在 body.home-v2，避免影响其他页面
   ========================================================================== */

.home-v2 .site-header {
    border-bottom-color: rgba(20, 20, 23, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.home-v2 .header-inner {
    min-height: 64px;
}

.home-v2 .brand-text strong {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--text);
}

/* ---------- 滚动公告条 ---------- */
.hv-ticker {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(20, 20, 23, 0.08);
    background: #f5f5f6;
}

.hv-ticker-rail {
    display: flex;
    gap: 56px;
    width: max-content;
    padding: 8px 0;
    animation: hv-marq 26s linear infinite;
}

.hv-ticker-rail span {
    font-size: 12px;
    color: #3d3d44;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.hv-ticker-rail b {
    color: #8a6329;
    font-weight: 700;
}

@keyframes hv-marq {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */
.hv-hero {
    padding: 46px 0 34px;
}

.hv-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 46px;
    align-items: center;
}

.hv-hero-grid > * {
    min-width: 0;
}

.hv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(20, 20, 23, 0.14);
    border-radius: 100px;
    background: #f5f5f6;
    color: #3d3d44;
    font-size: 11px;
    letter-spacing: 0.16em;
}

.hv-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a97b33;
    box-shadow: 0 0 0 4px rgba(169, 123, 51, 0.16);
    animation: hv-pulse 2.4s infinite;
}

@keyframes hv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.hv-hero h1 {
    margin: 20px 0 16px;
    font-size: 60px;
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.hv-hero h1 em {
    font-style: normal;
    background: linear-gradient(96deg, #141417, #a97b33);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hv-lede {
    max-width: 430px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.85;
}

.hv-lede b {
    color: var(--text);
    font-weight: 600;
}

.home-v2 .hv-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 470px;
    margin: 28px auto 0;
    padding: 7px 7px 7px 20px;
    border: 1px solid rgba(20, 20, 23, 0.12);
    border-radius: 100px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(17, 17, 20, 0.07), inset 0 1px 0 #ffffff;
}

.hv-search-icon {
    display: inline-flex;
    color: var(--muted);
}

.home-v2 .hv-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--text);
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.home-v2 .hv-search input[type="search"]::placeholder {
    color: #9a9aa2;
}

.home-v2 .hv-search input[type="search"]:focus {
    border-color: transparent;
}

.home-v2 .hv-search button {
    flex: 0 0 auto;
    padding: 11px 24px;
    border: 0;
    border-radius: 100px;
    background: #141417;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.home-v2 .hv-search button:hover {
    filter: brightness(0.85);
}

.hv-hotsearch {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 470px;
    min-width: 0;
    margin: 14px auto 0;
}

.hv-hs-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hv-hs-list {
    display: flex;
    gap: 8px;
    min-width: 0;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.hv-hs-list::-webkit-scrollbar {
    display: none;
}

.hv-hs-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid rgba(20, 20, 23, 0.10);
    border-radius: 100px;
    background: #f5f5f6;
    color: #3d3d44;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
}

.hv-hs-item:hover {
    border-color: rgba(20, 20, 23, 0.28);
    background: #ececef;
    color: #141417;
}

.hv-hs-item:active {
    transform: scale(0.96);
}

.hv-hs-item i {
    color: var(--muted);
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
}

/* ---------- 右侧拼块（1 大 2 小） ---------- */
.hv-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 0.72fr;
    gap: 12px;
    height: 420px;
}

.hv-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 20, 23, 0.10);
    border-radius: 20px;
    background: #f0f0f2;
    color: #ffffff;
    transition: 0.3s ease;
}

.hv-tile:hover {
    border-color: rgba(20, 20, 23, 0.28);
    box-shadow: 0 18px 40px rgba(17, 17, 20, 0.14);
}

.hv-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hv-tile:hover img {
    transform: scale(1.05);
}

.hv-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 5, 15, 0.15) 0%, rgba(7, 5, 15, 0.05) 40%, rgba(7, 5, 15, 0.92) 100%);
    pointer-events: none;
}

.hv-tile-main {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.hv-tile-cap {
    position: relative;
    z-index: 2;
}

.hv-tile-main h3 {
    margin-bottom: 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hv-tile-main p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.hv-tile-main .hv-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    margin-top: 16px;
    padding: 9px 18px;
    border-radius: 100px;
    background: #fff;
    color: #0d0718;
    font-size: 12px;
    font-weight: 600;
}

.hv-tile-mini {
    padding: 14px;
}

.hv-tile-mini h4 {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.hv-tile-mini .hv-tile-price {
    margin-top: 3px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.hv-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 100px;
    background: #a97b33;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* ---------- 通用区块 ---------- */
.hv-sec {
    padding: 44px 0;
}

.hv-sec-tight {
    padding-top: 0;
}

.hv-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.hv-sec-head h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hv-sec-head h2 em {
    font-style: normal;
    background: linear-gradient(96deg, #141417, #a97b33);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hv-note {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.06em;
}

.hv-sec-head .hv-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.hv-sec-head .hv-more:hover {
    color: var(--text);
}

/* ---------- 热卖横滑榜单 ---------- */
.hv-rail {
    display: flex;
    gap: 12px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.hv-rail::-webkit-scrollbar {
    display: none;
}

.hv-rk {
    flex: 0 0 172px;
    overflow: hidden;
    border: 1px solid rgba(20, 20, 23, 0.10);
    border-radius: 16px;
    background: #ffffff;
    transition: 0.25s ease;
}

.hv-rk:hover {
    border-color: rgba(20, 20, 23, 0.26);
    transform: translateY(-3px);
}

.hv-rk-thumb {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f6;
}

.hv-rk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hv-rk-rank {
    position: absolute;
    top: 6px;
    left: 8px;
    z-index: 2;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.hv-rk-rank.top {
    background: linear-gradient(180deg, #f6e7c6, #b8894a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(17, 17, 20, 0.55));
}

.hv-rk-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 9px;
    border-radius: 100px;
    background: #141417;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.hv-rk-badge.is-pack {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(20, 20, 23, 0.16);
    color: #141417;
    font-weight: 500;
}

.hv-rk-body {
    padding: 11px 12px 13px;
}

.hv-rk-name {
    display: -webkit-box;
    height: 36px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hv-rk-price {
    margin-top: 7px;
    color: #a97b33;
    font-size: 17px;
    font-weight: 800;
}

.hv-rk-price small {
    margin-left: 1px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

/* ---------- 分类胶囊 ---------- */
.hv-chips {
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hv-chips::-webkit-scrollbar {
    display: none;
}

.home-v2 .hv-chip {
    white-space: nowrap;
    padding: 9px 18px;
    border: 1px solid rgba(20, 20, 23, 0.10);
    border-radius: 100px;
    background: #f5f5f6;
    color: var(--muted);
    font-size: 12.5px;
    cursor: pointer;
    transition: 0.2s ease;
}

.home-v2 .hv-chip:hover {
    color: var(--text);
}

.home-v2 .hv-chip.is-active {
    border-color: #141417;
    background: #141417;
    box-shadow: 0 8px 22px rgba(17, 17, 20, 0.16);
    color: #ffffff;
}

/* ---------- 商品区 ---------- */
.home-v2 #products {
    padding-top: 8px;
    scroll-margin-top: 76px;
}

.home-v2 .unit-switch.hv-unit-switch {
    display: inline-flex;
    gap: 4px;
    margin: 0;
    padding: 5px;
    border: 1px solid rgba(20, 20, 23, 0.10);
    border-radius: 100px;
    background: #f5f5f6;
}

.home-v2 .hv-unit-switch .unit-tab {
    padding: 8px 18px;
    border-radius: 100px;
    color: var(--muted);
    font-size: 13px;
}

.home-v2 .hv-unit-switch .unit-tab.is-on {
    background: #141417;
    box-shadow: 0 8px 26px rgba(17, 17, 20, 0.18);
    color: #ffffff;
}

.home-v2 .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-v2 .product-card {
    border-color: rgba(20, 20, 23, 0.10);
    border-radius: 18px;
    background: #ffffff;
}

.home-v2 .product-card:hover {
    border-color: rgba(20, 20, 23, 0.26);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(17, 17, 20, 0.10);
}

.home-v2 .product-card .product-body {
    padding: 12px 13px 14px;
}

.home-v2 .product-card .product-body h3 {
    display: -webkit-box;
    height: 40px;
    overflow: hidden;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.5;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-v2 .product-card .product-foot {
    position: relative;
    align-items: flex-end;
    margin-top: 10px;
}

.home-v2 .product-card .price {
    color: #a97b33;
    font-family: var(--font);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-v2 .product-card .price::first-letter {
    color: #a97b33;
}

.price-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px;
    min-width: 0;
    padding-right: 34px;
}

.price-unit {
    color: var(--muted);
    font-size: 11px;
}

.price-sub {
    flex: 1 0 100%;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.home-v2 .product-card .unit-badge {
    top: 9px;
    left: 9px;
    right: auto;
    width: max-content;
    max-width: calc(100% - 18px);
    padding: 4px 9px;
    border-radius: 100px;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.home-v2 .product-card .unit-badge-carton {
    border: 0;
    background: #a97b33;
    color: #ffffff;
    font-weight: 700;
}

.home-v2 .product-card .unit-badge-pack {
    border: 1px solid rgba(20, 20, 23, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: #3d3d44;
    backdrop-filter: blur(6px);
}

.home-v2 .product-card .unit-line {
    display: none;
}

.home-v2 .product-card .cover-badge {
    top: 9px;
    right: 9px;
}

/* 快捷加购 */
.quick-add {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #141417;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(17, 17, 20, 0.18);
    cursor: pointer;
    user-select: none;
    transition: 0.2s ease;
}

.quick-add:hover {
    transform: scale(1.08);
}

.quick-add:active {
    transform: scale(0.94);
}

.quick-add.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.quick-add.is-done {
    background: #0f7a5c;
    font-size: 13px;
}

.home-v2 .load-sentinel,
.home-v2 .list-end {
    margin-top: 18px;
}

/* ---------- 四通道专区头图 ---------- */
.home-v2 .hv-zone {
    position: relative;
    margin: 14px 0 4px;
    padding: 32px 30px 28px;
    border: 1px solid rgba(20, 20, 23, 0.10);
    border-radius: 20px;
    background:
        radial-gradient(420px 220px at 82% 18%, var(--zone-g2, rgba(20, 20, 23, 0.05)), transparent 68%),
        radial-gradient(380px 240px at 12% 90%, var(--zone-g1, rgba(20, 20, 23, 0.04)), transparent 70%),
        linear-gradient(125deg, #fbfbfc 0%, #f4f4f6 100%);
    overflow: hidden;
}

.home-v2 .hv-zone-pack {
    --zone-g1: rgba(20, 20, 23, 0.05);
    --zone-g2: rgba(20, 20, 23, 0.07);
}

.home-v2 .hv-zone-carton {
    --zone-g1: rgba(20, 20, 23, 0.06);
    --zone-g2: rgba(20, 20, 23, 0.05);
}

.home-v2 .hv-zone-douc {
    --zone-g1: rgba(20, 20, 23, 0.05);
    --zone-g2: rgba(20, 20, 23, 0.06);
}

.home-v2 .hv-zone-vape {
    --zone-g1: rgba(20, 20, 23, 0.04);
    --zone-g2: rgba(20, 20, 23, 0.07);
}

.home-v2 .hv-zone::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(20, 20, 23, 0.12);
    box-shadow: 0 0 0 28px rgba(20, 20, 23, 0.03), 0 0 0 60px rgba(20, 20, 23, 0.02);
    pointer-events: none;
}

.home-v2 .hv-zone-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid rgba(169, 123, 51, 0.36);
    border-radius: 5px;
    background: rgba(169, 123, 51, 0.10);
    color: #8a6329;
    font-size: 10px;
    letter-spacing: 1px;
}

.home-v2 .hv-zone h2 {
    margin: 13px 0 8px;
    font-size: clamp(26px, 4.4vw, 40px);
    line-height: 1.15;
    letter-spacing: 2px;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--text);
}

.home-v2 .hv-zone p {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.4px;
}

.home-v2 .hv-zone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.home-v2 .hv-zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(20, 20, 23, 0.10);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    font-size: 10.5px;
}

.home-v2 .hv-zone-chip i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a97b33;
    box-shadow: none;
}

.home-v2 .hv-zone-mark {
    position: absolute;
    right: 28px;
    bottom: 22px;
    color: rgba(20, 20, 23, 0.20);
    font-family: var(--mono, monospace);
    font-size: 10px;
    letter-spacing: 2px;
}

/* ---------- 顶部四通道 tab（首页 header） ---------- */
.home-v2 .hv-channels {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-v2 .hv-channels::-webkit-scrollbar {
    display: none;
}

.home-v2 .hv-ch-tab {
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 100px;
    color: var(--muted);
    font-size: 13px;
    transition: 0.18s;
}

.home-v2 .hv-ch-tab:hover {
    color: var(--text);
}

.home-v2 .hv-ch-tab.is-on {
    color: #ffffff;
    background: #141417;
    box-shadow: 0 4px 14px rgba(17, 17, 20, 0.16);
    font-weight: 600;
}

/* 专区下方分类胶囊 */
.home-v2 #products .cat-chips {
    padding: 14px 0 2px;
}

.home-v2 .hv-chip .chip-count {
    margin-left: 2px;
    color: var(--dim);
    font-size: 10px;
}

/* 商品卡规格标签 */
.home-v2 .product-card .product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.home-v2 .product-card .product-specs .spec {
    padding: 2px 6px;
    border: 1px solid rgba(20, 20, 23, 0.08);
    border-radius: 4px;
    background: #f5f5f6;
    color: #76767e;
    font-size: 9px;
    line-height: 1.3;
}

.home-v2 .product-card .unit-badge-douc {
    border: 1px solid rgba(20, 20, 23, 0.14);
    background: #ececef;
    color: #3d3d44;
}

.home-v2 .product-card .unit-badge-vape {
    border: 1px solid rgba(20, 20, 23, 0.14);
    background: #ececef;
    color: #3d3d44;
}

.home-v2 .product-card .unit-badge-gk {
    border: 1px solid rgba(20, 20, 23, 0.14);
    background: #ececef;
    color: #3d3d44;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .hv-hero {
        padding: 26px 0 18px;
    }

    .hv-hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hv-hero h1 {
        margin: 16px 0 12px;
        font-size: 38px;
    }

    .hv-lede {
        font-size: 13.5px;
    }

    .home-v2 .hv-search {
        margin-top: 20px;
    }

    .hv-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .hv-tile-main {
        grid-row: auto;
        grid-column: span 2;
        height: 230px;
        padding: 18px;
    }

    .hv-tile-main h3 {
        font-size: 20px;
    }

    .hv-tile-main .hv-buy {
        margin-top: 10px;
        padding: 8px 15px;
        font-size: 11.5px;
    }

    .hv-tile-mini {
        height: 132px;
    }

    .hv-sec {
        padding: 32px 0;
    }

    .hv-sec-head {
        flex-wrap: wrap;
        align-items: center;
    }

    .hv-sec-head h2 {
        font-size: 20px;
    }

    .hv-rk {
        flex: 0 0 148px;
        border-radius: 14px;
    }

    .home-v2 .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-v2 .product-card .product-body h3 {
        height: 37px;
        font-size: 12.5px;
    }

    .home-v2 .product-card .price {
        font-size: 18px;
    }

    .home-v2 .unit-switch.hv-unit-switch {
        width: 100%;
    }

    .home-v2 .hv-unit-switch .unit-tab {
        flex: 1;
        padding: 8px 0;
        text-align: center;
        font-size: 12px;
    }

    /* 手机端与通道样板一致：打开即见四通道 tab + 专区头图 */
    .home-v2 .hv-ticker,
    .home-v2 .hv-hero,
    .home-v2 .hv-hot-section {
        display: none;
    }

    /* 手机端关闭毛玻璃，减少滚动卡顿 */
    .home-v2 .site-header {
        background: #ffffff;
        border-bottom-color: rgba(20, 20, 23, 0.08);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .home-v2 .product-card .unit-badge-pack {
        backdrop-filter: none;
    }

    .home-v2 .header-inner {
        flex-wrap: wrap;
        min-height: 50px;
        padding-top: 8px;
        padding-bottom: 6px;
        gap: 7px 10px;
    }

    .home-v2 .header-inner .brand {
        order: 1;
    }

    .home-v2 .header-inner .header-search {
        display: flex;
        order: 2;
        flex: 1 1 0;
        min-width: 0;
        margin-left: auto;
    }

    .home-v2 .header-inner .header-search input[type="search"] {
        min-width: 0;
        padding: 8px 10px;
        font-size: 12px;
    }

    .home-v2 .header-inner .header-search .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .home-v2 .header-inner .brand-text {
        display: flex;
    }

    .home-v2 .hv-channels {
        order: 3;
        flex: 0 0 100%;
        margin-right: 0;
        justify-content: center;
        gap: 6px;
    }

    .home-v2 .hv-ch-tab {
        padding: 6px 11px;
        font-size: 12px;
    }

    .home-v2 #products {
        padding-top: 12px;
    }

    .home-v2 #products .hv-sec-head {
        display: none;
    }

    .home-v2 .hv-zone {
        margin-top: 0;
    }

    .home-v2 .cat-drawer-bar {
        display: none;
    }

    .home-v2 .hv-zone {
        margin-top: 0;
        padding: 22px 18px 20px;
        border-radius: 16px;
    }

    .home-v2 .hv-zone h2 {
        font-size: 27px;
    }

    .home-v2 .hv-zone p {
        font-size: 12px;
    }

    .home-v2 .hv-zone-chips {
        gap: 6px;
        margin-top: 14px;
    }

    .home-v2 .hv-zone-mark {
        display: none;
    }

    .home-v2 #products .cat-chips {
        padding-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hv-ticker-rail {
        animation: none;
    }

    .hv-live {
        animation: none;
    }

    .hv-tile img,
    .hv-rk {
        transition: none;
    }
}


/* 价格筛选（折叠式） */
.home-v2 .price-filter {
    margin: 0 0 18px;
}

.home-v2 .price-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-soft, #9ca3af);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.home-v2 .price-filter-toggle:hover,
.home-v2 .price-filter-toggle.is-active {
    border-color: var(--accent);
    color: var(--text);
}

.home-v2 .price-filter-toggle.is-active {
    background: rgba(169, 123, 51, 0.10);
}

.home-v2 .price-filter-toggle small {
    font-size: 12px;
    opacity: 0.85;
}

.home-v2 .price-filter-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
}

.home-v2 .price-filter.is-open .price-filter-caret {
    transform: rotate(180deg);
}

.home-v2 .price-filter-panel {
    display: none;
    margin-top: 10px;
}

.home-v2 .price-filter.is-open .price-filter-panel {
    display: block;
}

.home-v2 .price-filter-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f6;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 4px 4px 12px;
}

.home-v2 .price-filter-custom input[type="number"] {
    width: 62px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.home-v2 .price-filter-custom input[type="number"]::-webkit-outer-spin-button,
.home-v2 .price-filter-custom input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.home-v2 .price-filter-custom input::placeholder {
    color: var(--text-soft, #9ca3af);
    opacity: 0.7;
}

.home-v2 .price-filter-dash {
    color: var(--text-soft, #9ca3af);
    font-size: 12px;
}

.home-v2 .price-filter-custom button {
    padding: 5px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.home-v2 .price-filter-custom button:hover {
    filter: brightness(1.1);
}

.home-v2 .price-filter-clear {
    padding: 0 8px;
    color: var(--text-soft, #9ca3af);
    font-size: 12px;
    text-decoration: underline;
}

.home-v2 .price-filter-clear:hover {
    color: var(--text);
}

/* ==========================================================================
   MOZ1 前台浅色主题（纯白 + 纯黑）
   仅由前台 partials/header.php 引入，加载在 style.css / home-v2.css 之后。
   后台页面不引入本文件，配色保持原样。
   ========================================================================== */

:root {
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --surface: #ffffff;
    --surface-2: #f5f5f6;
    --surface-3: #ececef;
    --border: #e4e4e7;
    --border-strong: #cfcfd4;
    --text: #141417;
    --text-soft: #3d3d44;
    --text-dim: #76767e;
    --muted: #76767e;
    --accent: #141417;
    --accent-bright: #3d3d44;
    --accent-soft: rgba(20, 20, 23, 0.06);
    --success: #0f7a5c;
    --success-soft: rgba(15, 122, 92, 0.10);
    --warning: #8a5a12;
    --warning-soft: rgba(138, 90, 18, 0.10);
    --danger: #c0263c;
    --danger-soft: rgba(192, 38, 60, 0.08);
    --info: #1557b0;
    --shadow: 0 18px 44px rgba(17, 17, 20, 0.08);
    --gold: #a97b33;
    --gold-deep: #8a6329;
    --gold-soft: rgba(169, 123, 51, 0.10);
    --gold-line: rgba(169, 123, 51, 0.32);
}

/* ---------- 基础 ---------- */
body::before,
body::after {
    display: none;
}

::selection {
    background: rgba(20, 20, 23, 0.82);
    color: #ffffff;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid rgba(20, 20, 23, 0.55);
    outline-offset: 2px;
}

/* ---------- 头部 / 底部导航 ---------- */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
}

.brand-mark {
    background: #141417;
    color: #ffffff;
    box-shadow: none;
}

.brand-text strong {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--text);
    -webkit-text-fill-color: currentColor;
}

.brand-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 11px;
    display: block;
}

.brand-logo-sm {
    width: 34px;
    height: 34px;
}

.brand-text strong .brand-gold {
    color: var(--gold);
}

/* ---------- 我的页：下载 App 横幅 ---------- */
.profile-section .app-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--gold-line);
    border-radius: 16px;
    background: linear-gradient(100deg, rgba(169, 123, 51, 0.12), rgba(169, 123, 51, 0.03) 62%, #ffffff 100%);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-section .app-banner:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(17, 17, 20, 0.06);
}

.profile-section .app-banner-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(17, 17, 20, 0.10);
}

.profile-section .app-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profile-section .app-banner-text strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.profile-section .app-banner-text small {
    color: var(--muted);
    font-size: 11.5px;
}

.profile-section .app-banner-cta {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 9px 15px;
    border-radius: 100px;
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* 手机端保留站名文字，避免只显示一个 M 方块 */
@media (max-width: 420px) {
    .site-header .brand-text {
        display: flex;
    }
}

.header-cart {
    border-color: rgba(20, 20, 23, 0.16);
    color: var(--text-soft);
}

.header-cart-count {
    background: #141417;
    color: #ffffff;
}

.tabbar {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
}

/* ---------- 按钮 ---------- */
.btn-primary {
    background: #141417;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 17, 20, 0.14);
}

.btn-primary:hover {
    background: #3d3d44;
}

.btn-danger-ghost {
    border-color: rgba(192, 38, 60, 0.26);
    color: #b3202f;
}

.cart-float {
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 17, 20, 0.22);
}

.cart-float-badge {
    background: #ffffff;
    color: #141417;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.cart-badge {
    background: #141417;
    color: #ffffff;
}

/* ---------- 商品卡 / 封面 ---------- */
.product-cover {
    background: #f5f5f6;
}

.cover-fallback {
    background:
        radial-gradient(circle at 30% 20%, rgba(20, 20, 23, 0.05), transparent 40%),
        repeating-linear-gradient(135deg, #f7f7f8, #f7f7f8 8px, #f0f0f2 8px, #f0f0f2 16px);
}

.cover-fallback span {
    color: #9a9aa2;
}

.cover-badge {
    border: 1px solid rgba(20, 20, 23, 0.12);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    backdrop-filter: blur(6px);
}

.stock-out {
    color: #8a8a92;
}

.quick-add {
    background: #141417;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(17, 17, 20, 0.18);
}

.quick-add:hover {
    background: #3d3d44;
}

.quick-add.is-done {
    background: #0f7a5c;
    box-shadow: 0 4px 14px rgba(15, 122, 92, 0.22);
}

/* ---------- 通道 / 单位标签 ---------- */
.unit-switch {
    background: #f5f5f6;
    border: 1px solid var(--border);
}

.unit-tab {
    color: var(--muted);
}

.unit-tab.is-on {
    background: #141417;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(17, 17, 20, 0.16);
}

.unit-badge-carton {
    background: #141417;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(17, 17, 20, 0.16);
}

.unit-line {
    color: var(--muted);
}

.price-old,
.sheet-price-old {
    color: #a1a1a8;
}

.unit-chip-carton {
    border: 1px solid rgba(20, 20, 23, 0.14);
    background: #ececef;
    color: #3d3d44;
}

.unit-chip-pack {
    border: 1px solid rgba(20, 20, 23, 0.10);
    background: #f5f5f6;
    color: var(--muted);
}

.unit-chip-vape,
.unit-chip-gk {
    border: 1px solid rgba(20, 20, 23, 0.14);
    background: #ececef;
    color: #3d3d44;
}

.cat-chip.is-active {
    border-color: #141417;
    background: #141417;
    color: #ffffff;
}

.cat-toggle.is-open {
    border-color: rgba(20, 20, 23, 0.35);
}

/* ---------- 空状态 / 详情 ---------- */
.empty-state {
    background: #fafafa;
}

.detail-index {
    border: 1px solid rgba(20, 20, 23, 0.12);
    background: rgba(255, 255, 255, 0.86);
}

.detail-price-unit {
    color: var(--muted);
}

.detail-list > div {
    border-bottom: 1px solid #ececef;
}

.info-list > div {
    border-bottom: 1px solid #ececef;
}

.bind-email-hint {
    border: 1px solid rgba(20, 20, 23, 0.14);
    background: #f5f5f6;
}

.trust-list {
    border: 1px solid var(--border);
    background: #fafafa;
}

.trust-list li {
    color: var(--muted);
}

.trust-list li::before {
    color: #141417;
}

.related-section {
    border-top: 1px solid var(--border);
}

.section-more {
    color: var(--muted);
}

.section-more:hover {
    color: var(--text);
}

/* ---------- 表单 ---------- */
.field input::placeholder,
.field textarea::placeholder {
    color: #9a9aa2;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 20, 23, 0.07);
}

.field-tip {
    color: var(--muted);
}

.field-tip.is-error {
    color: #c0263c;
}

.form-error {
    border: 1px solid rgba(192, 38, 60, 0.22);
    background: #fbf3f4;
    color: #b3202f;
}

.qty-stepper button:hover {
    background: #ececef;
}

/* ---------- 搜索 / 订单查询 ---------- */
.order-search input::placeholder {
    color: #9a9aa2;
}

.order-search input:focus {
    box-shadow: 0 0 0 3px rgba(20, 20, 23, 0.07);
}

.search-suggest a:hover {
    border-color: rgba(20, 20, 23, 0.32);
}

/* ---------- 订单列表 ---------- */
.order-items {
    border: 1px solid var(--border);
    background: #fafafa;
}

.order-items-head {
    border-bottom: 1px dashed var(--border);
    color: var(--muted);
}

.order-item + .order-item {
    border-top: 1px solid var(--border);
}

.order-item-thumb {
    background: #f0f0f2;
}

.order-item-info h4,
.order-item-sub {
    color: var(--text);
}

.order-item-info p {
    color: var(--muted);
}

.order-total-row {
    border-top: 1px dashed var(--border);
}

.order-total-row span {
    color: var(--muted);
}

.order-total-row strong {
    color: var(--text);
}

/* ---------- 我的 / 会员卡 ---------- */
.profile-hero {
    border: 1px solid var(--border);
    background: #fafafa;
    box-shadow: 0 18px 44px rgba(17, 17, 20, 0.06);
}

.profile-hero::after {
    background: rgba(20, 20, 23, 0.05);
}

.profile-avatar {
    background: #141417;
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 17, 20, 0.18);
}

.profile-balance {
    border-top: 1px solid var(--border);
}

.profile-balance strong {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--text);
}

.profile-action:hover {
    border-color: rgba(20, 20, 23, 0.30);
    color: var(--text);
}

.fold-meta {
    border: 1px solid rgba(20, 20, 23, 0.12);
    background: #f0f0f2;
    color: var(--text-soft);
}

.btn-logout {
    border: 1px solid rgba(192, 38, 60, 0.26);
    background: #fbf3f4;
    color: #b3202f;
}

.btn-logout:hover {
    border-color: rgba(192, 38, 60, 0.5);
    background: #f7e9eb;
    color: #94101f;
}

/* ---------- 结算 / 支付 ---------- */
.pay-amount-note {
    border: 1px solid rgba(20, 20, 23, 0.12);
    background: #f5f5f6;
    color: var(--text-soft);
}

.pay-amount-note span {
    color: var(--text);
}

.qr-frame {
    background: #ffffff;
    box-shadow: 0 10px 34px rgba(17, 17, 20, 0.10);
}

.qr-empty {
    border: 1px dashed var(--border-strong);
    color: var(--muted);
}

.qr-empty strong {
    color: var(--text-soft);
}

.pay-channel-btn.is-active.channel-wechat,
.pay-channel-btn.is-active.channel-alipay {
    border-color: #141417;
}

.channel-wechat,
.channel-alipay {
    background: #141417;
}

.pay-hint {
    color: var(--muted);
}

.pay-hint-error {
    color: #c0263c;
}

.footer-meta {
    color: var(--muted);
}

.data-table th {
    background: #f5f5f6;
}

.data-table td {
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover td {
    background: #fafafa;
}

/* ---------- 库存状态 ---------- */
.stock-ok,
.stock-badge.stock-ok,
.detail-stock.stock-ok {
    color: #0f7a5c;
}

.stock-low,
.stock-badge.stock-low,
.detail-stock.stock-low {
    color: #8a5a12;
}

.stock-badge.stock-out,
.detail-stock.stock-out {
    color: #b3202f;
}

.stock-tier-plenty input:checked + span {
    border-color: rgba(15, 122, 92, 0.45);
    background: rgba(15, 122, 92, 0.08);
    color: #0f7a5c;
}

.stock-tier-few input:checked + span {
    border-color: rgba(138, 90, 18, 0.45);
    background: rgba(138, 90, 18, 0.08);
    color: #8a5a12;
}

.stock-tier-none input:checked + span {
    border-color: rgba(192, 38, 60, 0.45);
    background: rgba(192, 38, 60, 0.08);
    color: #b3202f;
}

/* ---------- 悬浮客服 / 回到顶部 ---------- */
.contact-float {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-soft);
    box-shadow: 0 8px 20px rgba(17, 17, 20, 0.10);
}

.contact-float:hover {
    border-color: #141417;
    color: #141417;
}

.contact-backdrop {
    background: rgba(17, 17, 20, 0.38);
}

.back-top {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-soft);
    box-shadow: 0 8px 22px rgba(17, 17, 20, 0.10);
}

.back-top:hover {
    border-color: #141417;
    color: #141417;
}

/* ---------- 加购弹层 ---------- */
.sheet-mask {
    background: rgba(17, 17, 20, 0.42);
}

.sheet {
    border-top: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 -20px 60px rgba(17, 17, 20, 0.14);
}

.sheet-grip {
    background: #d9d9dd;
}

.sheet-close {
    background: #f0f0f2;
    color: var(--text-soft);
}

.sheet-close:hover {
    background: #e4e4e7;
    color: var(--text);
}

.sheet-media {
    background: #f5f5f6;
}

.sheet-title,
.sheet-price {
    color: var(--text);
}

.sheet-stock.is-on {
    background: rgba(15, 122, 92, 0.10);
    color: #0f7a5c;
}

.sheet-stock.is-off {
    background: rgba(192, 38, 60, 0.08);
    color: #b3202f;
}

.sheet-desc {
    color: var(--muted);
}

.sheet-desc-empty {
    color: #9a9aa2;
}

.sheet-qty-row {
    border-top: 1px solid var(--border);
}

.sheet-qty-label {
    color: var(--text-soft);
}

.sheet-detail-link {
    color: #141417;
}

.sheet-detail-link:hover {
    color: #3d3d44;
}

.sheet-foot {
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.sheet-loading span {
    border: 2px solid #e4e4e7;
    border-top-color: #141417;
}

.sheet-empty {
    color: var(--muted);
}

.sheet-save {
    background: #f0f0f2;
    color: #141417;
}

.sheet-compare {
    border: 1px solid var(--border);
    background: #fafafa;
    color: var(--muted);
}

.sheet-compare b {
    color: var(--text);
}

/* ---------- 分类抽屉（移动端） ---------- */
.cat-drawer-toggle {
    border: 1px solid var(--border);
    background: #f5f5f6;
    color: var(--text-soft);
}

.cat-drawer-toggle:active {
    background: #ececef;
}

.cat-drawer-toggle:hover {
    border-color: rgba(20, 20, 23, 0.28);
    color: var(--text);
}

.cat-drawer-mask {
    background: rgba(17, 17, 20, 0.38);
}

.cat-drawer {
    border-right: 1px solid var(--border);
    background: #ffffff;
}

.cat-drawer-head {
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.cat-drawer-close {
    color: var(--muted);
}

.cat-drawer-item {
    border-bottom: 1px solid #f0f0f2;
    color: var(--text-soft);
}

.cat-drawer-item:active {
    background: #f5f5f6;
}

.cat-drawer-item.is-active {
    background: #f0f0f2;
    color: var(--text);
}

/* ---------- 首页 hero 装饰 ---------- */
.hero {
    background: none;
}

/* ---------- 结算页购买栏 ---------- */
.buy-bar {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.97);
}

.buy-bar-info strong {
    color: var(--text);
}

/* ---------- 购物篮包邮提示 ---------- */
.cart-ship-tip {
    background: #f5f5f6;
}

.cart-ship-tip.is-free {
    border-color: rgba(15, 122, 92, 0.3);
    background: rgba(15, 122, 92, 0.06);
    color: #0f7a5c;
}

.cart-ship-bar {
    background: #e4e4e7;
}

.cart-ship-bar span {
    background: #141417;
}

.cart-ship-tip.is-free .cart-ship-bar span {
    background: #0f7a5c;
}

/* ---------- 通道切换 ---------- */
.channel-tab.is-on {
    border-color: #141417;
    background: #f5f5f6;
    color: var(--text);
    box-shadow: none;
}

.channel-tab.is-on .channel-icon {
    color: #141417;
}

.product-row.is-focus {
    background: #f5f5f6;
    box-shadow: inset 3px 0 0 #141417;
}

.paid-auto-tag {
    border: 1px solid var(--border);
    background: #f5f5f6;
    color: var(--text-soft);
}

.addr-default {
    border: 1px solid rgba(20, 20, 23, 0.25);
}

/* ---------- 提示条 ---------- */
.flash-success {
    color: #0f7a5c;
}

.flash-info {
    background: #f5f5f6;
    color: var(--text-soft);
}

.wechat-tip {
    border-bottom: 1px solid var(--border);
    background: #f5f5f6;
    color: var(--text-soft);
}

.wechat-tip b {
    color: var(--text);
}

.wechat-tip-close {
    color: var(--muted);
}

/* ---------- 香槟金点缀（只用于价格、角标、选中态） ---------- */
.brand-mark {
    background: #141417;
    color: #d9b56a;
}

.header-cart-count,
.cart-badge,
.cart-float-badge {
    background: #a97b33;
    color: #ffffff;
    box-shadow: none;
}

.cover-badge {
    border-color: var(--gold-line);
    background: rgba(255, 255, 255, 0.9);
    color: var(--gold-deep);
}

.unit-badge-carton {
    background: #a97b33;
    color: #ffffff;
}

.unit-chip-carton {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.price,
.price::first-letter,
.detail-price,
.detail-price::first-letter,
.summary-price,
.summary-total strong,
.order-total-row strong,
.pay-total strong,
.buy-bar-info strong,
.sheet-price,
.cat-sub-price {
    color: #a97b33;
}

.profile-balance strong {
    color: #a97b33;
}

.profile-avatar {
    background: #141417;
    color: #d9b56a;
}

.sheet-save {
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.sheet-compare b {
    color: var(--gold-deep);
}

.paid-auto-tag {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.addr-default {
    border-color: var(--gold-line);
}

.cart-ship-bar span {
    background: #a97b33;
}

.channel-tab.is-on {
    border-color: var(--gold-line);
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.channel-tab.is-on .channel-icon {
    color: var(--gold-deep);
}

.trust-list li::before {
    color: var(--gold);
}
