﻿/* ============================================
   烛物集 Candlewowo · 前台样式
   设计语言：香薰蜡烛 · 暖黄 · 琥珀金 · 奶油白
   版本：v4.0
   ============================================ */
/* ---------- CSS 变量（设计令牌） ---------- */
:root {
    /* 颜色 */
    --bg: #FDF8F0;
    --bg-white: #FFFCF5;
    --bg-card: #FFFCF5;
    --bg-warm: #F8EFE0;
    --text-primary: #2C241C;
    --text-secondary: #8A8580;
    --text-light: rgba(44, 36, 28, 0.85);
    --text-link: #D4A06A;
    --gold: #D4A06A;
    --gold-dark: #C28D55;
    --gold-light: #F5E6D3;
    --accent: #8B6B4A;
    --border-light: #F0E6D8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.10);
    --radius: 16px;
    --radius-lg: 20px;
    --radius-full: 980px;
    /* 字体 */
    --font-serif: "Cormorant Garamond", "Times New Roman", serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
    /* 间距 */
    --container: 1200px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 72px;
    /* 过渡 */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-slow: 0.6s;
    --duration-medium: 0.3s;
}
/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-medium) ease;
}
a:hover {
    color: var(--gold);
}
/* ---------- 容器 ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}
/* 固定导航（.site-header 高 56px）下的普通内容页留白：
   main 首个子元素为 .container 的页面（购物车/结算/订单/产品详情等）
   统一加顶部内边距，避免内容被固定导航遮挡。
   排除会员中心 .member-layout（自身已有 96px 顶部留白）与首页 hero（首元素非 .container）。 */
main > .container:first-child:not(.member-layout) {
    padding-top: 96px;
}
/* ---------- 排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
h1 {
    font-size: 40px;
}
h2 {
    font-size: 32px;
}
h3 {
    font-size: 24px;
}
h4 {
    font-size: 20px;
}
@media (min-width: 768px) {
    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 38px;
    }
}
.text-serif {
    font-family: var(--font-serif);
}
.text-sans {
    font-family: var(--font-sans);
}
.text-muted {
    color: var(--text-secondary);
}
.text-gold {
    color: var(--gold);
}
.text-small {
    font-size: 12px;
    letter-spacing: 0.04em;
}
.text-center {
    text-align: center;
}
/* ---------- 导航栏 ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--duration-medium) ease,
        backdrop-filter var(--duration-medium) ease,
        box-shadow var(--duration-medium) ease;
    background: transparent;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.site-header .logo {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-light);
    transition: color var(--duration-medium) ease;
}
.site-header.scrolled .logo {
    color: var(--text-primary);
}
.site-header .logo .logo-gold {
    color: var(--gold);
}
.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    flex: 1;
    margin-left: 48px;
}
/* 弹性占位：将右侧功能区推到最右 */
.site-header .nav-links .nav-spacer {
    flex: 1;
}
.site-header .nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-light);
    transition: color var(--duration-medium) ease;
    position: relative;
}
.site-header.scrolled .nav-links a {
    color: var(--text-secondary);
}
.site-header .nav-links a:hover {
    color: var(--text-light);
}
.site-header.scrolled .nav-links a:hover {
    color: var(--text-primary);
}
/* 导航底部细线（悬停效果） */
.site-header .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--duration-medium) ease;
}
.site-header .nav-links a:hover::after {
    width: 100%;
}
/* 购物车图标 */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-light);
    transition: color var(--duration-medium) ease;
}
.site-header.scrolled .cart-icon {
    color: var(--text-secondary);
}
.site-header.scrolled .cart-icon:hover {
    color: var(--text-primary);
}
.cart-icon svg {
    width: 22px;
    height: 22px;
}
.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(6px, -6px);
    transition: transform var(--duration-medium) ease;
}
.cart-badge.empty {
    transform: scale(0);
}
/* 移动端菜单按钮（汉堡） */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: all var(--duration-medium) ease;
}
.site-header.scrolled .menu-toggle span {
    background: var(--text-primary);
}
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .site-header .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transform: translateY(-100%);
        transition: transform var(--duration-slow) var(--ease-smooth);
        padding: 40px;
        z-index: -1;
        flex: none;
        margin-left: 0;
    }
    .site-header .nav-links .nav-spacer {
        display: none;
    }
    .site-header .nav-links.open {
        transform: translateY(0);
    }
    .site-header .nav-links a {
        color: var(--text-primary);
        font-size: 20px;
    }
    .site-header .nav-links a::after {
        display: none;
    }
}
/* ---------- 首页 Hero（可选） ---------- */
.hero {
    padding: 120px 0 60px;
    text-align: center;
    background: var(--bg-warm);
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 12px;
}
.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .hero h1 {
        font-size: 64px;
    }
}
/* ---------- 画廊网格 ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: var(--spacing-xl) 0;
}
@media (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ---------- 产品卡片 ---------- */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--duration-slow) var(--ease-smooth),
        box-shadow var(--duration-slow) var(--ease-smooth);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-card .card-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-warm);
    aspect-ratio: 4 / 3;
}
.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-smooth);
}
.product-card:hover .card-image img {
    transform: scale(1.03);
}
.product-card .card-body {
    padding: 16px 0 4px;
}
.product-card .card-title {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 2px;
}
.product-card .card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}
.product-card .card-price {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    margin-top: 6px;
}
.product-card .card-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 4px;
}
/* ---------- 产品详情页 ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 0 60px;
}
@media (min-width: 1024px) {
    .product-detail {
        grid-template-columns: 3fr 2fr;
        gap: 60px;
        min-height: 80vh;
        align-items: start;
    }
}
/* 图片区域 */
.product-detail .detail-images {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.product-detail .detail-main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--bg-warm);
    transition: opacity var(--duration-slow) ease;
}
.product-detail .detail-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    overflow-x: auto;
    background: rgba(255,255,255,0.5);
}
.product-detail .detail-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--duration-medium) ease,
        transform var(--duration-medium) ease;
    flex-shrink: 0;
}
.product-detail .detail-thumbnails img:hover {
    opacity: 0.8;
}
.product-detail .detail-thumbnails img.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 0 2px var(--gold);
}
/* 信息区域 */
.product-detail .detail-info {
    padding-top: 8px;
}
.product-detail .detail-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.product-detail .detail-name {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    max-width: 100%;
}
@media (min-width: 768px) {
    .product-detail .detail-name {
        font-size: 38px;
    }
}
.product-detail .detail-price {
    font-family: var(--font-sans);
    font-size: 30px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 18px;
}
.product-detail .detail-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}
/* 规格列表 */
.product-detail .detail-specs {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    margin-bottom: 24px;
}
.product-detail .detail-specs .spec-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}
.product-detail .detail-specs .spec-key {
    color: var(--text-secondary);
}
.product-detail .detail-specs .spec-value {
    font-weight: 500;
}
/* 购买面板 */
.purchase-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.purchase-panel .stock-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.purchase-panel .stock-info.in-stock {
    color: #2b8a3e;
}
.purchase-panel .stock-info.out-of-stock {
    color: #c0392b;
}
.purchase-panel .quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.purchase-panel .quantity-row label {
    font-size: 14px;
    color: var(--text-secondary);
}
.purchase-panel .quantity-row input[type="number"] {
    width: 64px;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-sans);
    background: var(--bg);
}
.purchase-panel .btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-medium) ease;
    text-decoration: none;
    min-height: 44px;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: var(--text-primary);
    color: #fff;
}
.btn-primary:hover {
    background: #333;
    color: #fff;
    transform: scale(0.98);
}
.btn-gold {
    background: var(--gold);
    color: #fff;
}
.btn-gold:hover {
    background: var(--gold-dark);
    color: #fff;
    transform: scale(0.98);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg);
}
.btn-link {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 0;
    border-radius: 0;
}
.btn-link:hover {
    color: var(--text-primary);
}
.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
    min-height: 32px;
}
.btn-block {
    width: 100%;
    justify-content: center;
}
/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0 16px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--duration-medium) ease;
}
.pagination a:hover {
    background: var(--bg-white);
    color: var(--text-primary);
}
.pagination .active {
    background: var(--text-primary);
    color: #fff;
}
.pagination .active:hover {
    background: var(--text-primary);
    color: #fff;
}
/* ---------- 消息（Flash） ---------- */
.flash-messages {
    max-width: var(--container);
    margin: 72px auto 0;
    padding: 0 24px;
}
.flash {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 8px;
}
.flash-success {
    background: #eaf7ea;
    color: #1e6b3b;
}
.flash-error {
    background: #fdeaea;
    color: #a93226;
}
.flash-warning {
    background: #fef9e7;
    color: #8a6d3b;
}
/* ---------- 页脚（外贸品牌风格） ---------- */
.site-footer {
    background: #1E1A16;
    color: rgba(255, 255, 255, 0.78);
    padding: 48px 0 0;
    margin-top: 48px;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover { color: #D4A94E; }
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
}
.footer-brand .logo-gold { color: #D4A94E; }
.footer-brand-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    margin: 12px 0 16px;
    max-width: 300px;
}
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}
.footer-social:hover {
    background: rgba(212, 169, 78, 0.18);
    border-color: #D4A94E;
    transform: translateY(-2px);
}
.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; }
.footer-contact { list-style: none; margin: 0 0 18px; padding: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}
.footer-contact i {
    color: #D4A94E;
    margin-top: 2px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.footer-newsletter .footer-title { margin-top: 6px; }
.footer-newsletter-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: -8px 0 12px;
}
.footer-subscribe-form { display: flex; gap: 8px; }
.footer-subscribe-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}
.footer-subscribe-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer-subscribe-form input[type="email"]:focus { border-color: #D4A94E; }
.btn-subscribe {
    flex-shrink: 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, #D4A94E, #B78A2E);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-subscribe:hover { opacity: 0.88; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-bottom-links a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom-links a:hover { color: #D4A94E; }
.footer-sep { margin: 0 6px; opacity: 0.4; }
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 560px) {
    .footer-top { grid-template-columns: 1fr; }
}
/* ---------- 响应式微调 ---------- */
@media (max-width: 600px) {
    .purchase-panel .btn-group {
        flex-direction: column;
    }
    .purchase-panel .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
    .product-detail .detail-name {
        font-size: 26px;
    }
    .product-detail .detail-price {
        font-size: 22px;
    }
}
/* ---------- 会员登录 / 注册（auth 页，独立布局） ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
    padding: 24px;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 36px;
}
.auth-brand {
    display: block;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    color: var(--text-primary);
}
.auth-brand:hover {
    color: var(--text-primary);
}
.auth-brand .logo-gold {
    color: var(--gold);
}
.auth-sub {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 8px 0 24px;
}
.auth-flash {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}
.auth-flash-success {
    background: #EAF7EA;
    color: #1E6B3B;
}
.auth-flash-error {
    background: #FDEAEA;
    color: #A93226;
}
.auth-flash-warning {
    background: #FEF9E7;
    color: #8A6D3B;
}
.auth-form .auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.auth-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-sans);
    background: var(--bg);
    transition: border-color var(--duration-medium) ease,
        box-shadow var(--duration-medium) ease;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.15);
    background: var(--bg-white);
}
.auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    cursor: pointer;
}
.auth-remember input {
    accent-color: var(--gold);
}
.auth-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all var(--duration-medium) ease;
}
.auth-submit:hover {
    background: #333;
    transform: scale(0.99);
}
.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 20px;
}
.auth-footer a {
    color: var(--gold);
}
/* ---------- 导航会员菜单 ---------- */
.member-menu {
    position: relative;
}
.member-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light) !important;
}
.site-header.scrolled .member-trigger {
    color: var(--text-secondary) !important;
}
.member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.member-name {
    font-size: 13px;
}
.member-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all var(--duration-medium) ease;
    z-index: 1001;
}
.member-menu:hover .member-dropdown,
.member-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.member-dropdown li a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary) !important;
}
.member-dropdown li a:hover {
    background: var(--bg-warm);
    color: var(--gold) !important;
}
.member-dropdown li a::after {
    display: none;
}
@media (max-width: 768px) {
    .member-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 6px;
    }
    .member-dropdown li a {
        padding: 8px 0;
        color: var(--text-primary) !important;
        font-size: 16px;
    }
    .member-trigger {
        color: var(--text-primary) !important;
    }
}
/* ---------- 会员中心（两栏布局） ---------- */
.member-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 96px 0 48px;
}
.member-sidebar {
    flex: 0 0 220px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: sticky;
    top: 76px;
}
.member-profile {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-warm);
}
.member-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.member-profile-info {
    min-width: 0;
}
.member-profile-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.member-profile-level {
    font-size: 12px;
    color: var(--gold);
    margin-top: 2px;
}
.member-nav {
    padding: 8px;
}
.member-nav-item {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--duration-medium) ease;
}
.member-nav-item:hover {
    background: var(--bg-warm);
    color: var(--text-primary);
}
.member-nav-item.active {
    background: rgba(196, 168, 130, 0.12);
    color: var(--gold);
    font-weight: 500;
}
.member-content {
    flex: 1;
    min-width: 0;
}
.member-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 24px;
    margin-bottom: 20px;
}
.member-panel-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 4px;
}
.member-panel-sub {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}
.member-panel-title-sm {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}
.member-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.member-panel-head .member-panel-title-sm {
    margin-bottom: 0;
}
.member-panel-more {
    font-size: 13px;
    color: var(--gold);
}
/* 统计卡片 */
.member-stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 640px) {
    .member-stat-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}
.member-stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    transition: all var(--duration-medium) ease;
}
.member-stat-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.member-stat-number {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}
.member-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}
/* 表格 */
.member-table-wrap {
    overflow-x: auto;
}
.member-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.member-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-warm);
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}
.member-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
}
.member-table tr:last-child td {
    border-bottom: none;
}
.text-mono {
    font-family: "SF Mono", Consolas, monospace;
    font-size: 12px;
}
.member-empty {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 16px 0;
}
/* 快捷入口 */
.member-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) {
    .member-quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.member-quick-item {
    display: block;
    padding: 18px 14px;
    text-align: center;
    background: var(--bg-warm);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--duration-medium) ease;
}
.member-quick-item:hover {
    background: rgba(196, 168, 130, 0.15);
    color: var(--gold);
}
/* 表单 */
.member-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}
.member-form-label {
    flex: 0 0 110px;
    padding-top: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}
.member-form-control {
    flex: 1;
    min-width: 0;
}
.member-form-control input[type="text"],
.member-form-control input[type="email"],
.member-form-control input[type="tel"],
.member-form-control input[type="password"],
.member-form-control input[type="date"],
.member-form-control input[type="number"],
.member-form-control select,
.member-form-control textarea {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-sans);
    background: var(--bg);
    transition: border-color var(--duration-medium) ease,
        box-shadow var(--duration-medium) ease;
}
.member-form-control input:focus,
.member-form-control select:focus,
.member-form-control textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.15);
    background: var(--bg-white);
}
.member-form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.member-code-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.member-code-row input {
    flex: 1;
    max-width: 200px !important;
}
.member-code-row .btn {
    white-space: nowrap;
}
/* 头像预览 */
.avatar-preview-wrap {
    margin-bottom: 8px;
}
.avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #fff;
    font-size: 28px;
    font-weight: 600;
}
.member-bound-line {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
}
.member-link {
    color: var(--gold);
    font-size: 13px;
}
@media (max-width: 768px) {
    .member-layout {
        flex-direction: column;
        padding: 84px 0 32px;
    }
    .member-sidebar {
        flex-basis: auto;
        width: 100%;
        position: static;
    }
    .member-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .member-nav-item {
        padding: 8px 12px;
    }
    .member-form-label {
        flex-basis: 84px;
        text-align: left;
    }
}
/* ---------- 会员中心：订单 ---------- */
/* 状态标签 */
.order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-warm);
    color: var(--text-secondary);
}
.order-status-pending {
    background: #FEF9E7;
    color: #8A6D3B;
}
.order-status-paid {
    background: #E4F0FB;
    color: #1A56DB;
}
.order-status-shipped {
    background: #EAF7EA;
    color: #1E6B3B;
}
.order-status-completed {
    background: rgba(196, 168, 130, 0.16);
    color: var(--gold-dark);
}
.order-status-cancelled {
    background: #F5F5F7;
    color: #8A8580;
}
/* 筛选 Tab */
.member-order-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}
.member-order-tab {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-warm);
    transition: all var(--duration-medium) ease;
}
.member-order-tab:hover {
    color: var(--text-primary);
}
.member-order-tab.active {
    background: var(--text-primary);
    color: #fff;
}
/* 列表商品缩略图 */
.member-order-prod {
    display: flex;
    align-items: center;
    gap: 10px;
}
.member-order-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-warm);
    flex-shrink: 0;
}
.member-order-thumb-empty {
    display: block;
    background: var(--bg-warm);
}
.member-order-prod-name {
    color: var(--text-primary);
    font-size: 14px;
}
/* 订单详情 */
.member-order-no {
    font-size: 13px;
    color: var(--text-secondary);
}
.order-progress {
    margin: 16px 0 4px;
}
.order-progress-track {
    height: 6px;
    background: var(--border-light);
    border-radius: 999px;
    overflow: hidden;
}
.order-progress-bar {
    height: 100%;
    background: var(--gold);
    border-radius: 999px;
    transition: width 0.5s var(--ease-smooth);
}
.order-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}
.order-progress-labels .done {
    color: var(--gold);
    font-weight: 500;
}
/* 信息网格 */
.member-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}
@media (max-width: 640px) {
    .member-info-grid {
        grid-template-columns: 1fr;
    }
}
.member-info-item {
    display: flex;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
}
.member-info-item.member-info-full {
    grid-column: 1 / -1;
}
.member-info-key {
    flex: 0 0 76px;
    color: var(--text-secondary);
    font-size: 13px;
}
/* 金额汇总 */
.order-summary {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    max-width: 420px;
    margin-left: auto;
}
.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.order-summary-total {
    border-top: 1px solid var(--border-light);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.order-summary-total span:last-child {
    color: var(--gold);
}
/* 操作区 */
.member-action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.member-inline-form {
    display: inline;
}

/* ---------- 首页 Hero（暖黄渐变，配合透明导航） ---------- */
.hero-dark {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, #FDF8F0 0%, #F5E6D3 55%, #EED9B8 100%);
    color: var(--text-primary);
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}
.hero-dark h1 {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.hero-dark p {
    font-size: 17px;
    color: rgba(44, 36, 28, 0.72);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
}
.hero-dark .hero-gold {
    color: var(--gold);
}
@media (min-width: 768px) {
    .hero-dark h1 {
        font-size: 60px;
    }
}

/* ---------- 首页轮播（banners 数据驱动） ---------- */
.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: linear-gradient(160deg, #FDF8F0 0%, #F5E6D3 55%, #EED9B8 100%);
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background-position: center;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-slide-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    text-indent: -9999px;
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: #FDF8F0;
}
.hero-slide-content h1 {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(28, 21, 18, 0.35);
}
.hero-slide-content p {
    font-size: 17px;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 560px;
    color: rgba(253, 248, 240, 0.92);
    text-shadow: 0 1px 8px rgba(28, 21, 18, 0.4);
}
.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(253, 248, 240, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dot.active {
    background: #D4A06A;
    transform: scale(1.2);
}
@media (min-width: 768px) {
    .hero-slide-content h1 {
        font-size: 60px;
    }
}

/* ---------- 分类 TAB ---------- */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 40px 0 8px;
}
.cat-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: all var(--duration-medium) ease;
}
.cat-tab:hover {
    color: var(--text-primary);
    border-color: var(--gold);
}
.cat-tab.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 80px 0 120px;
}

/* ---------- 卡片无图占位 ---------- */
.card-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.04em;
    background: var(--bg-warm);
}

/* ---------- 购买面板内联表单（加入购物车/立即购买并排） ---------- */
.purchase-panel .btn-group form {
    flex: 1 1 0;
    display: flex;
    min-width: 0;
}
.purchase-panel .btn-group form .btn {
    width: 100%;
    justify-content: center;
}

/* ---------- 结算下单页 ---------- */
.checkout-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}
.checkout-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.checkout-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.order-table th,
.order-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-light);
}
.order-table th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.04em;
}
.amount-rows {
    margin-top: 16px;
    font-size: 14px;
}
.amount-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--text-secondary);
}
.amount-total {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    border-top: 1px solid var(--border-light);
    margin-top: 6px;
    padding-top: 12px;
}
.amount-total span:last-child {
    color: var(--gold);
}
.form-field {
    margin-bottom: 16px;
}
.form-field label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-field label em {
    color: #c0392b;
    font-style: normal;
}
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    transition: border-color var(--duration-medium) ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-white);
}

/* ---------- 购物车页 ---------- */
.cart-table td {
    vertical-align: middle;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-warm);
    flex-shrink: 0;
}
.cart-name {
    font-size: 14px;
    line-height: 1.5;
}
.cart-name a:hover {
    color: var(--gold);
}
.cart-unavailable {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-input {
    width: 64px;
    padding: 6px 4px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-sans);
    background: var(--bg);
}
.qty-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ---------- 会员中心：收货地址 ---------- */
.member-form-grid {
    max-width: 680px;
}
.member-form-field {
    flex: 1;
    min-width: 0;
}
.member-form-field input[type="text"],
.member-form-field input[type="tel"],
.member-form-field input[type="email"],
.member-form-field input[type="password"],
.member-form-field input[type="date"],
.member-form-field input[type="number"],
.member-form-field select,
.member-form-field textarea {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-sans);
    background: var(--bg);
    transition: border-color var(--duration-medium) ease,
        box-shadow var(--duration-medium) ease;
}
.member-form-field input:focus,
.member-form-field select:focus,
.member-form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.15);
    background: var(--bg-white);
}
.member-form-fields3 {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.member-form-fields3 input {
    flex: 1;
    min-width: 90px;
}
.member-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    padding-top: 9px;
}
.member-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 2px;
}
/* 地址卡片 */
.member-address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.member-address-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 18px;
    background: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: box-shadow var(--duration-medium) ease;
}
.member-address-card:hover {
    box-shadow: var(--shadow-sm);
}
.member-address-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.member-address-full {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.member-default-badge {
    background: var(--gold);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}
.member-address-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
/* 通用链接 */
.member-link {
    font-size: 13px;
    color: var(--gold-dark);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: color var(--duration-medium) ease;
}
.member-link:hover {
    color: var(--text-primary);
}
.member-link-danger {
    color: #C0392B;
}
.member-link-danger:hover {
    color: #A93226;
}
.member-order-prod-name {
    color: var(--text-primary);
    font-size: 14px;
}

/* ---------- 会员中心：钱包 / 积分 ---------- */
.wallet-card {
    background: linear-gradient(135deg, var(--text-primary) 0%, #3a3a38 100%);
    border-radius: 16px;
    padding: 24px 28px;
    color: #fff;
}
.wallet-card-label {
    font-size: 13px;
    opacity: 0.7;
    letter-spacing: 0.04em;
}
.wallet-card-balance {
    font-size: 36px;
    font-weight: 600;
    margin: 8px 0 12px;
    font-family: var(--font-sans);
}
.wallet-card-sub {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}
.wallet-card-actions {
    display: flex;
    gap: 12px;
}
.balance-pos {
    color: #1E6B3B;
    font-weight: 600;
}
.balance-neg {
    color: #C0392B;
    font-weight: 600;
}
.balance-zero {
    color: var(--text-secondary);
}
.member-points-rules {
    list-style: disc;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
}
/* ---------- 会员中心：优惠券 ---------- */
.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.coupon-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 18px;
    background: var(--bg-white);
    flex-wrap: wrap;
}
.coupon-value {
    flex: 0 0 108px;
    text-align: center;
    border-right: 1px dashed var(--border-light);
    padding-right: 16px;
}
.coupon-value-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-sans);
}
.coupon-value-unit {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}
.coupon-main {
    flex: 1;
    min-width: 180px;
}
.coupon-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.coupon-meta {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.coupon-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.coupon-status {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg-warm);
    color: var(--text-secondary);
}
.coupon-card.coupon-unused {
    border-color: rgba(196, 168, 130, 0.4);
}
.coupon-card.coupon-unused .coupon-status {
    background: rgba(196, 168, 130, 0.16);
    color: var(--gold-dark);
}
.coupon-card.coupon-expired .coupon-value-num,
.coupon-card.coupon-expired .coupon-name {
    opacity: 0.45;
}

/* ---------- 评价：星级 ---------- */
.stars {
    display: inline-flex;
    gap: 1px;
    vertical-align: middle;
}
.star {
    font-size: 16px;
    line-height: 1;
}
.star-on {
    color: var(--gold);
}
.star-off {
    color: #D8D4CE;
}
/* ---------- 评价：会员中心列表 ---------- */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.review-item {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 18px;
    background: var(--bg-white);
}
.review-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.review-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-time {
    font-size: 12px;
}
.review-content {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 10px;
}
.review-imgs,
.review-entry-imgs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.review-imgs img,
.review-entry-imgs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}
.review-status-line {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}
/* ---------- 评价：发表表单 ---------- */
.review-form-block {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    background: var(--bg-white);
}
.review-form-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}
.star-input {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-top: 6px;
}
.star-input-item {
    cursor: pointer;
    font-size: 0;
}
.star-input-item input {
    display: none;
}
.star-input-item .star {
    font-size: 26px;
    color: #D8D4CE;
    transition: color var(--duration-medium) ease;
}
.star-input-item .star.star-on {
    color: var(--gold);
}
.star-input-hint {
    margin-left: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}
/* ---------- 评价：商品详情页展示 ---------- */
.product-reviews {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}
.product-reviews-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.review-avg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 4px;
}
.review-avg b {
    font-size: 15px;
    color: var(--text-primary);
}
.review-entry {
    border-top: 1px solid var(--border-light);
    padding: 16px 0;
}
.review-entry:first-of-type {
    border-top: none;
}
.review-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.review-entry-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}
.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}
.review-entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.review-entry-content {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 10px;
    color: var(--text-primary);
}

/* ---------- 优惠券：可领取区域（会员中心） ---------- */
.coupon-claim-section {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 18px;
    background: var(--bg-warm);
    margin-bottom: 20px;
}
.coupon-claim-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.coupon-claim-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.coupon-claim-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-white);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 260px;
    flex: 1 1 260px;
}
.coupon-claim-value {
    text-align: center;
    min-width: 64px;
}
.coupon-claim-main {
    flex: 1;
}
/* checkout 优惠券抵扣行 */
.amount-coupon {
    color: #A26A2B;
    font-weight: 500;
}

/* ---------- 消息通知：列表 ---------- */
.msg-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--bg-white);
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.msg-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}
.msg-item.unread {
    border-left: 3px solid #3A82F6;
}
.msg-type {
    flex-shrink: 0;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 2px;
}
.msg-type-system { background: #E4F0FB; color: #1A56DB; }
.msg-type-order { background: #F5E9D6; color: #8A5A1B; }
.msg-type-logistics { background: #EAF7EA; color: #1E6B3B; }
.msg-type-interaction { background: #F3E8F9; color: #7A3B9B; }
.msg-type-promotion { background: #FDEBD0; color: #B9770E; }
.msg-main {
    flex: 1;
    min-width: 0;
}
.msg-title {
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--text-primary);
}
.msg-item.unread .msg-title {
    font-weight: 600;
}
.msg-summary {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msg-time {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.msg-unread-total {
    font-style: normal;
    font-size: 12px;
    color: #C0392B;
    font-weight: 500;
}
/* ---------- 消息通知：详情 ---------- */
.msg-detail {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 22px 24px;
    background: var(--bg-white);
}
.msg-detail-head {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.msg-detail-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.msg-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.msg-detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-line;
}
/* ---------- 消息通知：侧边栏角标 ---------- */
.member-nav-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #C0392B;
    color: #fff;
    font-size: 11px;
    text-align: center;
    margin-left: 6px;
    vertical-align: middle;
}
/* ---------- 消息通知：导航铃铛 ---------- */
.msg-menu {
    position: relative;
}
.msg-trigger {
    display: inline-flex;
    align-items: center;
    position: relative;
    color: var(--text-secondary);
    padding: 6px;
}
.msg-trigger svg {
    width: 20px;
    height: 20px;
}
.msg-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 280px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1200;
}
.msg-dropdown.open {
    display: block;
}
.msg-dropdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
}
.msg-dropdown-head a {
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
}
.msg-dropdown-empty {
    padding: 20px 14px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}
.msg-dropdown-item {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
}
.msg-dropdown-item:last-child {
    border-bottom: none;
}
.msg-dropdown-item:hover {
    background: var(--bg-warm);
}
.msg-dropdown-title {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.msg-dropdown-time {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ---------- 会员中心：系统设置与静态页 ---------- */
.member-form-block {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: var(--bg-white);
}
.member-form-block-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.member-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.member-form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
}
.member-form-actions {
    margin-top: 20px;
    text-align: right;
}
.member-static-page {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 22px 24px;
    background: var(--bg-white);
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-primary);
    white-space: pre-line;
}

/* ---------- 评价：商家回复 + 点赞 ---------- */
.review-entry-reply {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--bg-warm, #F7F3EC);
    border-left: 3px solid var(--gold, #D4A06A);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-primary);
}
.review-entry-reply-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold, #8A6D3B);
    margin-bottom: 4px;
}
.review-entry-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}
.review-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.review-like-btn:hover { border-color: var(--gold, #D4A06A); color: var(--gold, #8A6D3B); }
.review-like-btn .like-heart { font-style: normal; color: #B0A28A; transition: color 0.2s ease; }
.review-like-btn.liked { border-color: #E0A3A3; color: #C0392B; background: #FDF3F3; }
.review-like-btn.liked .like-heart { color: #C0392B; }


/* ============================================
   批发客户注册 · 用户类型选择器
   ============================================ */
.user-type-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.type-option {
    padding: 16px 12px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #FFFFFF;
}
.type-option:hover {
    border-color: var(--gold);
}
.type-option input[type="radio"] {
    display: none;
}
.type-option.active {
    border-color: var(--gold);
    background: var(--gold-light);
}
.type-option .type-icon {
    font-size: 32px;
    display: block;
    line-height: 1.2;
}
.type-option .type-name {
    font-weight: 600;
    display: block;
    margin-top: 4px;
    color: var(--text-primary);
}
.type-option .type-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.4;
}

/* 批发字段提示与多行文本域 */
.auth-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}
.auth-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.auth-field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 106, 0.15);
}

/* ===== 批发价展示（批发客户） ===== */
.wholesale-price-table {
    margin-top: 14px;
    padding: 16px;
    background: rgba(212, 160, 106, 0.10);
    border-radius: 12px;
    border: 1px solid #D4A06A;
}
.wholesale-price-table h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2C241C;
}
.price-tier-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}
.price-tier-table th {
    text-align: left;
    font-weight: 600;
    color: #8A7A6A;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(212, 160, 106, 0.3);
}
.price-tier-table td {
    padding: 6px 8px;
    border-bottom: 1px dashed rgba(212, 160, 106, 0.25);
}
.price-tier-table td:last-child {
    color: #C28D55;
    font-weight: 600;
}
.wholesale-notice {
    margin-top: 10px;
    font-size: 12px;
    color: #8A7A6A;
}
.wholesale-pending-notice {
    font-size: 13px;
    line-height: 1.6;
}
.card-price.wholesale-price {
    color: #C28D55;
    font-size: 14px;
}

/* ================= 批发中心 · 批量下单 ================= */
.batch-order-area textarea {
    width: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    padding: 12px;
    border: 1px solid var(--color-border, #EDE6DE);
    border-radius: var(--radius-sm, 8px);
    background: var(--color-bg, #FCF8F2);
    min-height: 200px;
    box-sizing: border-box;
    resize: vertical;
    color: var(--color-text-primary, #2C241C);
    line-height: 1.6;
}
.batch-order-area textarea:focus {
    border-color: var(--color-primary, #D4A06A);
    box-shadow: 0 0 0 3px var(--color-primary-bg, rgba(212,160,106,0.12));
    outline: none;
}
.ws-entry:hover {
    box-shadow: 0 6px 24px rgba(44,36,28,0.10);
    transform: translateY(-2px);
}
.ws-entry {
    transition: box-shadow .2s ease, transform .2s ease;
}

/* ---------- 导航文字随下方区域明暗自适应 ----------
 * 当页面顶部为深色轮播/图片时（hero-slider 背景偏暗），
 * 给 header 加 .on-dark，导航文字切换为浅色；
 * 滚动离开顶部后由 .scrolled（毛玻璃白底）接管，恢复深色。 */
.site-header.on-dark .logo {
    color: #FDF8F0;
    text-shadow: 0 1px 10px rgba(28, 21, 18, 0.3);
}
.site-header.on-dark .logo .logo-gold {
    color: var(--gold);
    text-shadow: none;
}
.site-header.on-dark .nav-links a {
    color: rgba(253, 248, 240, 0.88);
}
.site-header.on-dark .nav-links a:hover {
    color: #FFFFFF;
}
.site-header.on-dark .cart-icon {
    color: rgba(253, 248, 240, 0.9);
}
.site-header.on-dark .member-trigger {
    color: rgba(253, 248, 240, 0.9) !important;
}
.site-header.on-dark .member-name {
    color: inherit;
}
.site-header.on-dark .msg-trigger {
    color: rgba(253, 248, 240, 0.9);
}
.site-header.on-dark .menu-toggle span {
    background: rgba(253, 248, 240, 0.92);
}
/* 滚动后（毛玻璃白底）：强制恢复深色文字（优先级最高） */
.site-header.scrolled.on-dark .logo {
    color: var(--text-primary);
    text-shadow: none;
}
.site-header.scrolled.on-dark .logo .logo-gold {
    color: var(--gold);
}
.site-header.scrolled.on-dark .nav-links a {
    color: var(--text-secondary);
}
.site-header.scrolled.on-dark .nav-links a:hover {
    color: var(--text-primary);
}
.site-header.scrolled.on-dark .cart-icon {
    color: var(--text-secondary);
}
.site-header.scrolled.on-dark .member-trigger {
    color: var(--text-secondary) !important;
}
.site-header.scrolled.on-dark .msg-trigger {
    color: var(--text-secondary);
}
.site-header.scrolled.on-dark .menu-toggle span {
    background: var(--text-primary);
}


/* ---------- 产品属性列表（统一顺序展示） ---------- */
.product-attributes {
    margin: 20px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}
.attribute-row {
    display: flex;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}
.attribute-row:last-child {
    border-bottom: none;
}
.attribute-row .attr-label {
    width: 100px;
    flex-shrink: 0;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding-top: 1px;
}
.attribute-row .attr-value {
    flex: 1;
    color: var(--color-text-primary);
    font-size: 14px;
}
.attribute-row .retail-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}
.attribute-row.wholesale-price-row {
    background: var(--color-primary-bg);
}
.tier-table {
    border-collapse: collapse;
    font-size: 13px;
    width: 100%;
    max-width: 320px;
}
.tier-table td {
    padding: 2px 16px 2px 0;
}
.tier-table td:last-child {
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: right;
}
.text-muted { color: var(--color-text-muted); }

/* 自定义属性 */
.custom-specs {
    margin-top: 20px;
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.custom-specs h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.custom-specs .attribute-row {
    background: #fff;
    margin-bottom: 6px;
    border-radius: 8px;
    border-bottom: none;
}
.custom-specs .attribute-row:last-child { margin-bottom: 0; }

/* 首页卡片：型号 */
.product-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.product-model { display: inline-block; }

/* 购物车：型号 */
.cart-item-model {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 3px;
}

/* ================= 产品属性 · 卡片式展示（品牌暖色） ================= */

/* 属性卡片网格 */
.attr-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.attr-card {
    background: #FFFCF5;
    border: 1px solid var(--color-border, #EDE6DE);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.attr-card:hover {
    border-color: var(--color-primary, #D4A06A);
    box-shadow: 0 4px 14px rgba(212, 160, 106, 0.18);
    transform: translateY(-2px);
}
.attr-card-icon {
    display: block;
    font-size: 20px;
    line-height: 1.2;
}
.attr-card-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-text-secondary, #8A7A6A);
}
.attr-card-value {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary, #2C241C);
}

/* 价格卡片（琥珀渐变底） */
.attr-price-card {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F5E6D3 0%, #FFFCF5 100%);
    border: 1px solid var(--color-primary, #D4A06A);
}
.price-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.price-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secondary, #8B6B4A);
}
.price-card-badge {
    font-size: 11px;
    font-weight: 600;
    color: #1E6B3B;
    background: #E8F5E9;
    padding: 3px 10px;
    border-radius: 9999px;
}
.price-card-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-primary, #D4A06A);
}

/* 批发阶梯列表 */
.tier-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFCF5;
    border: 1px solid #F0E4D4;
    border-radius: 8px;
    padding: 8px 14px;
}
.tier-range {
    font-size: 13px;
    color: var(--color-text-secondary, #8A7A6A);
}
.tier-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary-dark, #C28D55);
}

/* 自定义属性（卡片式） */
.custom-spec-cards {
    margin: 18px 0;
}
.custom-spec-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secondary, #8B6B4A);
    margin-bottom: 10px;
}
.custom-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.custom-spec-chip {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: #FCF8F2;
    border: 1px solid var(--color-border, #EDE6DE);
    border-radius: 10px;
    padding: 9px 14px;
}
.chip-label {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--color-text-secondary, #8A7A6A);
}
.chip-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary, #2C241C);
}

/* 响应式：平板 2 列 → 手机 1 列 */
@media (max-width: 992px) {
    .attr-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .attr-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .custom-spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
    .attr-cards { grid-template-columns: 1fr; }
}

/* ================= 商品卡片 · 快速加购 ================= */

/* 标题行：标题 + 加购按钮 */
.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}
.card-title-row .card-title {
    flex: 1;
    min-width: 0;
}
/* 加购按钮（琥珀色药丸） */
.card-add-btn {
    flex-shrink: 0;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    color: #C28D55;
    background: #FFFCF5;
    border: 1px solid var(--color-primary, #D4A06A);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.card-add-btn:hover {
    background: var(--color-primary, #D4A06A);
    color: #fff;
}
.card-add-btn.added {
    background: #4A9A8E;
    border-color: #4A9A8E;
    color: #fff;
}

/* 导航激活态（首页/商店） */
.site-header .nav-links a.active {
    color: var(--text-light);
    font-weight: 600;
}
.site-header.scrolled .nav-links a.active {
    color: var(--color-primary, #D4A06A);
    font-weight: 600;
}
.site-header .nav-links a.active::after {
    width: 100%;
}

/* ================= 商店页 ================= */
.store-page {
    padding-top: 30px;
    padding-bottom: 40px;
}
.store-header {
    text-align: center;
    margin-bottom: 8px;
}
.store-header h1 {
    font-size: 30px;
    letter-spacing: 0.05em;
}
.store-header p {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ================= 商品卡片 · 动效增强（首页/商店通用） ================= */

/* 悬停图片缩放更明显 */
.product-card:hover .card-image img {
    transform: scale(1.08);
}
/* 悬停图片底部暖色渐隐遮罩 */
.product-card .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(212, 160, 106, 0) 55%, rgba(28, 21, 18, 0.28) 100%);
    opacity: 0;
    transition: opacity var(--duration-medium, 0.3s) ease;
    pointer-events: none;
    z-index: 1;
}
.product-card:hover .card-image::after {
    opacity: 1;
}

/* 卡片入场动画（加载时逐个淡入上浮） */
@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.gallery-grid .product-card {
    animation: cardFadeUp 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}
.gallery-grid .product-card:nth-child(1)  { animation-delay: 0.00s; }
.gallery-grid .product-card:nth-child(2)  { animation-delay: 0.05s; }
.gallery-grid .product-card:nth-child(3)  { animation-delay: 0.10s; }
.gallery-grid .product-card:nth-child(4)  { animation-delay: 0.15s; }
.gallery-grid .product-card:nth-child(5)  { animation-delay: 0.20s; }
.gallery-grid .product-card:nth-child(6)  { animation-delay: 0.25s; }
.gallery-grid .product-card:nth-child(7)  { animation-delay: 0.30s; }
.gallery-grid .product-card:nth-child(8)  { animation-delay: 0.35s; }
.gallery-grid .product-card:nth-child(9)  { animation-delay: 0.40s; }
.gallery-grid .product-card:nth-child(10) { animation-delay: 0.45s; }
.gallery-grid .product-card:nth-child(11) { animation-delay: 0.50s; }
.gallery-grid .product-card:nth-child(12) { animation-delay: 0.55s; }

/* ==========================================================================
   站内客服系统 · 前台悬浮入口（说明文档步骤 1.3）
   ========================================================================== */
/* 右下角悬浮客服按钮（金色圆形） */
.cs-float-btn {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A94E, #B78A2E);
    box-shadow: 0 8px 20px rgba(183, 138, 46, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cs-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(183, 138, 46, 0.5);
}
/* 未读红点角标 */
.cs-float-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: #E5484D;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}
/* 手机端：按钮略小，避免遮挡 */
@media (max-width: 768px) {
    .cs-float-btn { width: 50px; height: 50px; right: 16px; bottom: 20px; }
}

/* ---------- 订单详情页（紧凑排版） ---------- */
.order-detail-wrap { max-width: 860px; }
/* 状态横幅：已付款用成功横幅 */
.order-status-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 4px solid #2f9e44;
    box-shadow: var(--shadow-sm);
}
.order-status-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #2f9e44;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    flex-shrink: 0;
}
.order-status-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.order-status-txt strong { font-size: 16px; color: var(--text-primary); }
.order-status-txt span { font-size: 13px; color: var(--text-secondary); }
.order-status-amt { font-size: 22px; font-weight: 700; color: var(--gold); white-space: nowrap; }
/* 订单信息 + 收货信息双栏 */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.order-info-grid .checkout-panel { margin-bottom: 0; padding: 20px 22px; }
.order-info-col { min-width: 0; }
.order-dl { margin: 0; }
.order-dl-row {
    display: flex;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 13px;
    line-height: 1.5;
}
.order-dl-row:last-child { border-bottom: none; }
.order-dl-row dt { width: 84px; flex-shrink: 0; color: var(--text-secondary); }
.order-dl-row dd { margin: 0; flex: 1; word-break: break-all; color: var(--text-primary); }
/* 商品清单头部（标题 + 应付总额） */
.order-items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.order-items-head .checkout-title { margin-bottom: 10px; }
.order-pay-total { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.order-pay-total b { font-size: 20px; color: var(--gold); margin-left: 8px; }
.order-items-table th,
.order-items-table td { padding: 8px; }
.order-items-table .cart-thumb { width: 48px; height: 48px; }
.order-amount-compact { margin-top: 10px; }
/* 底部操作 */
.order-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 60px;
    flex-wrap: wrap;
}
.order-actions form { margin: 0; }
/* 移动端单列 */
@media (max-width: 640px) {
    .order-info-grid { grid-template-columns: 1fr; }
    .order-status-amt { font-size: 18px; }
}
