:root {
    --primary: #0a0a0a;
    --primary-light: #1a1a1a;
    --accent: #4b63af;
    --accent-light: #5a72c0;
    --text: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --bg: #ffffff;
    --bg-light: #f6f7f9;
    --bg-gray: #eef0f3;
    --border: #e5e7eb;
    --border-light: #f2f3f5;
    --dark: #0a0a0a;
    --dark-light: #1a1a1a;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.14);
    --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* 顶部条 */
.topbar { background: #050505; color: #9ca3af; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #1a1a1a; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-links a { color: #d1d5db; margin-left: 16px; }
.topbar-links a:hover { color: #fff; }

/* 头部 */
.site-header {
    background: #050505;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.site-header .logo-text { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.site-header .logo-text span { color: #fff; font-weight: 400; }
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; display: block; }
.header-nav { display: flex; gap: 32px; }
.header-nav a {
    font-size: 15px;
    color: #e5e7eb;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: .2s;
}
.header-nav a:hover, .header-nav a.active { color: #fff; border-bottom-color: var(--accent-light); }
.header-nav a.active { font-weight: 600; }

.header-search form { display: flex; border: 1px solid #333; border-radius: 24px; overflow: hidden; background: #141414; }
.header-search input { border: none; background: transparent; padding: 9px 16px; width: 220px; outline: none; font-size: 14px; color: #fff; }
.header-search input::placeholder { color: #6b7280; }
.header-search button { border: none; background: #333; color: #fff; padding: 0 18px; cursor: pointer; font-size: 16px; }
.header-search button:hover { background: #444; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions a { font-size: 14px; color: #e5e7eb; display: inline-flex; align-items: center; gap: 4px; }
.header-actions a:hover { color: #fff; }
.header-actions .badge {
    background: #fff; color: #050505; font-size: 11px; min-width: 18px; height: 18px;
    border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; font-weight: 600;
}

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 1px; }
.mobile-menu-overlay, .mobile-nav { display: none; }

/* H5 底部 Tab */
.mobile-tabbar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #050505; border-top: 1px solid #1a1a1a;
    z-index: 1000;
}
.mobile-tabbar-inner { display: flex; justify-content: space-around; padding: 8px 0 12px; }
.mobile-tabbar-inner a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 11px; color: #9ca3af; padding: 4px 12px;
}
.mobile-tabbar-inner a.active { color: #fff; }
.mobile-tabbar-inner .icon { font-size: 20px; line-height: 1; }
.mobile-tabbar-inner .badge {
    background: #fff; color: #050505; font-size: 10px; min-width: 16px; height: 16px;
    border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 600;
}
.back-to-top { display: none; position: fixed; bottom: 80px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: #111; color: #fff; border: 1px solid #333; align-items: center; justify-content: center; cursor: pointer; z-index: 999; box-shadow: var(--shadow-md); font-size: 18px; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
    border: 1px solid transparent; cursor: pointer; transition: .2s; text-align: center;
}
.btn-primary { background: #111; color: #fff; border: 1px solid #333; }
.btn-primary:hover { background: #222; }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-light); }
.btn-primary.btn-lg { background: #0a0a0a; border-color: #222; }
.btn-primary.btn-lg:hover { background: #1a1a1a; }
.btn-sm.btn-primary { background: #0a0a0a; border-color: #222; }
.btn-sm.btn-primary:hover { background: #1a1a1a; }
.btn-outline { border-color: #333; color: #e5e7eb; background: transparent; }
.btn-outline:hover { background: #1a1a1a; color: #fff; border-color: #444; }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* Hero */
.hero { background: #0a0a0a; padding: 80px 0; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; right: -10%; top: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero-label { color: #9ca3af; font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 16px; }
.hero-title { font-size: 42px; line-height: 1.25; color: #fff; margin: 0 0 20px; font-weight: 700; }
.hero-title span { color: var(--accent-light); }
.hero-desc { font-size: 16px; color: #9ca3af; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
    background: #141414; border-radius: var(--radius-lg); padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center;
    border: 1px solid #222;
}
.hero-image img { border-radius: var(--radius); }
.hero-main-img { max-height: 420px; width: auto; display: block; margin: 0 auto; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 30px; border-top: 1px solid #222; }
.hero-stat .num { font-size: 28px; font-weight: 700; color: #fff; }
.hero-stat .txt { font-size: 13px; color: #9ca3af; }

/* 分类快捷 */
.cat-shortcut { padding: 40px 0; background: var(--bg); border-bottom: 1px solid var(--border-light); }
.cat-shortcut-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-shortcut-item {
    display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--border);
    border-radius: var(--radius-lg); background: var(--bg); transition: .2s;
}
.cat-shortcut-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-shortcut-icon {
    width: 44px; height: 44px; border-radius: 10px; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    color: #111; font-weight: 600; flex-shrink: 0;
}
.cat-shortcut-name { font-weight: 600; color: #111; }
.cat-shortcut-count { font-size: 12px; color: #6b7280; }

/* 楼层标题 */
.section-header { margin-bottom: 32px; }
.section-header .label { color: #6b7280; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.section-header h2 { font-size: 28px; margin: 8px 0 0; color: #111; }
.section-header p { color: #6b7280; margin: 8px 0 0; font-size: 14px; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.section-header-flex h2 { font-size: 28px; margin: 0; color: #111; }
.more-link { color: #6b7280; font-size: 14px; font-weight: 500; }
.more-link:hover { color: #111; text-decoration: none; }

/* 商品卡片 */
.product-section { padding: 60px 0; }
.product-section.alt { background: var(--bg-light); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); transition: .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-img { position: relative; aspect-ratio: 1 / 1; background: var(--bg-light); display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-tag {
    position: absolute; top: 12px; left: 12px; background: #111; color: #fff;
    font-size: 12px; padding: 4px 10px; border-radius: 4px;
}
.product-info { padding: 16px; }
.product-name { font-size: 15px; font-weight: 500; color: #111; line-height: 1.4; height: 42px; overflow: hidden; margin-bottom: 10px; }
.product-price-row { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 18px; font-weight: 700; color: #111; }
.product-price .symbol { font-size: 13px; margin-right: 2px; }
.product-sales { font-size: 12px; color: var(--text-muted); }

/* 资讯列表 */
.news-section { padding: 60px 0; background: var(--bg-light); }
.news-list { display: grid; gap: 16px; }
.news-item {
    display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center;
    background: #fff; border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border);
}
.news-date { text-align: center; }
.news-date .day { font-size: 32px; font-weight: 700; color: #111; line-height: 1; }
.news-date .month { font-size: 12px; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }
.news-title { font-size: 17px; font-weight: 600; color: #111; margin-bottom: 6px; }
.news-desc { font-size: 14px; color: #6b7280; line-height: 1.5; }
.news-arrow { color: var(--text-muted); font-size: 20px; }
.news-item:hover { border-color: #111; }
.news-item:hover .news-title { color: #111; }

/* 优势条 */
.benefits-bar { background: #0a0a0a; color: #fff; padding: 48px 0; border-top: 1px solid #222; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit-item { text-align: center; }
.benefit-icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #333; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; margin: 0 auto 16px; }
.benefit-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.benefit-desc { font-size: 13px; color: rgba(255,255,255,.7); }

/* about 页 */
.about-hero { background: linear-gradient(135deg, #050505 0%, #1a1a1a 100%); color: #fff; padding: 80px 0; }
.about-hero .hero-subtitle { color: #9ca3af; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.about-hero .hero-title { color: #fff; }
.about-hero .hero-desc { color: rgba(255,255,255,.85); }
.benefit-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; transition: .2s; }
.benefit-card:hover { border-color: #111; }
.benefit-card .benefit-icon { margin: 0 auto 16px; border-color: #e5e7eb; color: #111; }
.benefit-card .benefit-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #111; }
.benefit-card p { font-size: 14px; color: #6b7280; line-height: 1.7; margin: 0; }
.cat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: .2s; }
.cat-card:hover { border-color: #111; }
.cat-card h4 { color: #111; }
.cat-card p { color: #6b7280; }
.en { color: #6b7280; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }

/* Footer */
.site-footer { background: #050505; color: #9ca3af; padding: 0; border-top: 1px solid #1a1a1a; margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; padding: 56px 0; }
.footer-brand .logo-text { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 1px; margin-bottom: 18px; }
.footer-brand .logo-text span { color: #fff; }
.footer-contact .icon { color: #6b7280; }
.footer-brand p { font-size: 14px; line-height: 1.8; color: #9ca3af; margin: 0; }
.footer-title { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; color: #9ca3af; font-size: 14px; margin-bottom: 12px; }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 14px; margin: 0 0 12px; display: flex; align-items: flex-start; gap: 10px; color: #9ca3af; }
.footer-contact .icon { color: var(--accent-light); font-size: 13px; margin-top: 3px; }
.footer-bottom {
    border-top: 1px solid #1a1a1a; padding: 18px 0; font-size: 13px; color: #d1d5db;
    background: #0a0a0a;
}
.footer-bottom .container {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: #d1d5db; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }

/* flash消息 */
.flash-container { padding: 12px 0; background: #ecfdf5; border-bottom: 1px solid #a7f3d0; }
.msg { padding: 12px 16px; border-radius: var(--radius); }
.msg-success { background: #f3f4f6; color: #111; border: 1px solid #e5e7eb; }
.msg-error { background: #fee2e2; color: #991b1b; }
.msg-warning { background: #f3f4f6; color: #111; border: 1px solid #e5e7eb; }

/* 通用内页 */
.page-header { background: #f3f4f6; padding: 60px 0; text-align: center; border-bottom: 1px solid #e5e7eb; }
.page-header h1 { font-size: 32px; margin: 0 0 10px; color: #111; }
.page-header p { color: #6b7280; margin: 0; }
.page-section { padding: 50px 0; }

/* 分类页 */
.category-page { padding: 30px 0 60px; }
.category-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.category-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; align-self: start; }
.category-sidebar h3 { font-size: 16px; margin: 0 0 16px; color: var(--dark); }
.category-sidebar a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius); color: var(--text-secondary); font-size: 14px; }
.category-sidebar a:hover, .category-sidebar a.active { background: #f3f4f6; color: #111; }
.category-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.category-toolbar .sort a { font-size: 14px; color: var(--text-secondary); margin-right: 16px; }
.category-toolbar .sort a.active { color: var(--primary); font-weight: 600; }
.category-banner { background: linear-gradient(90deg, #0a0a0a, #1a1a1a); color: #fff; border-radius: var(--radius-lg); padding: 30px; margin-bottom: 24px; border: 1px solid #222; }
.category-banner h1 { font-size: 24px; margin: 0 0 6px; color:#fff; }
.category-banner p { margin: 0; opacity: .85; font-size: 14px; color:#d1d5db; }

/* 详情页 */
.product-detail { padding: 40px 0 60px; }
.product-detail-grid { display: grid; grid-template-columns: 460px 1fr; gap: 40px; }
.product-gallery { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.product-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-meta h1 { font-size: 24px; margin: 0 0 12px; color: #111; }
.product-meta .price { font-size: 32px; color: #111; font-weight: 700; margin-bottom: 16px; }
.product-meta .price .symbol { font-size: 18px; }
.product-meta .summary { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }
.product-meta .actions { display: flex; gap: 12px; margin-top: 24px; }
.quantity { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.quantity button { width: 36px; height: 40px; border: none; background: var(--bg-light); cursor: pointer; }
.quantity input { width: 50px; text-align: center; border: none; outline: none; }
.product-tabs { margin-top: 40px; }
.tab-nav { display: flex; border-bottom: 1px solid var(--border); gap: 32px; }
.tab-nav a { padding: 12px 0; font-weight: 500; color: var(--text-secondary); border-bottom: 2px solid transparent; }
.tab-nav a.active { color: #111; border-bottom-color: #111; font-weight: 600; }
.tab-panel { display: none; padding: 24px 0; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { width: 160px; color: var(--text-secondary); font-weight: 500; background: var(--bg-light); }

/* 购物车 / 结算 */
.cart-page, .checkout-page { padding: 40px 0 60px; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.cart-table th, .cart-table td { padding: 16px; border-bottom: 1px solid var(--border-light); text-align: left; }
.cart-table th { background: var(--bg-light); font-weight: 600; color: var(--text-secondary); font-size: 14px; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-top: 24px; text-align: right; }
.cart-summary .total { font-size: 20px; margin-bottom: 16px; }
.cart-summary .total strong { color: #111; font-size: 28px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 30px; }
.checkout-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.checkout-card h3 { font-size: 16px; margin: 0 0 18px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); outline: none; font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus { border-color: #111; }
.order-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.order-item:last-child { border-bottom: none; }
.order-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.payment-options label { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; }
.payment-options label.active { border-color: #111; background: #f3f4f6; }

/* 通用页面头部 */
.page-header { text-align: center; padding: 40px 0 20px; }
.page-header h1 { font-size: 32px; font-weight: 700; color: var(--dark); margin: 0 0 8px; }
.page-header p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* 登录注册 */
.auth-page { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg-light); }
.auth-box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 420px; }
.auth-box h2 { text-align: center; margin: 0 0 24px; color: var(--dark); }
.auth-links { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-secondary); }
.auth-links a { color: #111; font-weight: 500; }

/* 会员中心 */
.section-title { font-size: 28px; font-weight: 700; margin: 40px 0 0; color: var(--dark); }
.member-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0 60px; }
.member-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; align-self: start; }
.member-sidebar .profile { text-align: center; padding: 16px 0 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 12px; }
.member-sidebar .avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 12px; }
.member-sidebar .username { font-weight: 600; font-size: 16px; color: var(--dark); margin-bottom: 4px; }
.member-sidebar .email { font-size: 13px; color: var(--text-secondary); }
.member-sidebar a { display: block; padding: 12px 14px; border-radius: var(--radius); color: var(--text-secondary); font-size: 14px; }
.member-sidebar a:hover, .member-sidebar a.active { background: #f3f4f6; color: #111; }
.member-main { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { border-radius: var(--radius-lg); padding: 20px; color: #fff; }
.stat-card.primary { background: linear-gradient(135deg, #111, #333); }
.stat-card.accent { background: linear-gradient(135deg, #1a1a1a, #333); }
.stat-card.success { background: linear-gradient(135deg, var(--success), #15803d); }
.stat-card .icon { font-size: 24px; margin-bottom: 10px; }
.stat-card .value { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.stat-card .label { font-size: 13px; opacity: .9; }
.member-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.member-card h3 { font-size: 18px; margin: 0 0 20px; color: var(--dark); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #f3f4f6; color: #6b7280; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
.express-timeline { border-left: 2px solid var(--border); padding-left: 16px; }
.express-item { position: relative; padding: 12px 0 12px 20px; }
.express-item::before { content: ''; position: absolute; left: -21px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: 2px solid #fff; }
.express-item:first-child::before { background: var(--primary); }
.express-time { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.express-content { font-size: 14px; color: var(--text-secondary); }

/* 响应式 */
@media (max-width: 1024px) {
    .header-search input { width: 160px; }
    .header-nav { gap: 20px; }
    .hero-row { gap: 30px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body { padding-bottom: 64px; }
    .container { padding: 0 16px; }
    .topbar { display: none; }
    .mobile-header { display: block !important; }
    .mobile-header .search-box { display: flex; align-items: center; gap: 8px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 24px; padding: 8px 14px; }
    .mobile-header .search-box input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: #111; }
    .mobile-header .search-box span { font-size: 16px; color: #6b7280; }
    .header-main { height: 56px; }
    .site-header .logo-text { font-size: 17px; }
    .header-actions a[href*="cart.php"] { font-size: 0; }
    .header-actions a[href*="cart.php"]::before { content: '购物车'; font-size: 13px; color: #e5e7eb; }
    .header-nav, .header-search.desktop, .header-actions .desktop { display: none; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; opacity: 0; pointer-events: none; transition: .2s; }
    .mobile-nav { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; width: 260px; height: 100%; background: #050505; z-index: 200; padding: 80px 20px 20px; transform: translateX(100%); transition: .2s; border-left: 1px solid #1a1a1a; }
    .mobile-nav a { padding: 14px 0; border-bottom: 1px solid #1a1a1a; color: #e5e7eb; }
    body.menu-open .mobile-menu-overlay { opacity: 1; pointer-events: auto; }
    body.menu-open .mobile-nav { transform: translateX(0); }
    .mobile-tabbar { display: block; }

    .hero { padding: 40px 0; }
    .hero-row { grid-template-columns: 1fr; gap: 30px; }
    .hero-title { font-size: 28px; }
    .hero-desc { font-size: 15px; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions .btn { width: 100%; }
    .hero-image { order: -1; padding: 16px; }
    .hero-image img, .hero-main-img { max-height: 260px; width: 100%; object-fit: contain; }
    .hero-stats { gap: 24px; margin-top: 30px; padding-top: 24px; }
    .hero-stat .num { font-size: 24px; }
    .cat-shortcut { padding: 24px 0; }
    .cat-shortcut-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-shortcut-item { padding: 14px; flex-direction: column; text-align: center; gap: 8px; }
    .cat-shortcut-icon { width: 40px; height: 40px; font-size: 18px; }
    .cat-shortcut-name { font-size: 13px; }
    .cat-shortcut-count { display: none; }
    .product-section { padding: 40px 0; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { border-radius: var(--radius); }
    .product-img { aspect-ratio: 1 / 1; }
    .product-info { padding: 10px; }
    .product-name { font-size: 13px; height: 36px; margin-bottom: 6px; line-height: 1.35; }
    .product-price { font-size: 14px; }
    .product-price .symbol { font-size: 11px; }
    .product-sales { font-size: 11px; }
    .product-tag { font-size: 10px; padding: 2px 6px; top: 6px; left: 6px; }
    .news-section { padding: 40px 0; }
    .news-item { grid-template-columns: 60px 1fr; gap: 14px; padding: 16px; }
    .news-date .day { font-size: 24px; }
    .news-title { font-size: 15px; }
    .news-desc { font-size: 13px; }
    .benefits-bar { padding: 36px 0; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .benefit-icon { width: 44px; height: 44px; font-size: 18px; }
    .benefit-title { font-size: 14px; }
    .benefit-desc { font-size: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .category-layout, .checkout-grid, .product-detail-grid, .member-layout { grid-template-columns: 1fr; }
    .category-page { padding: 20px 0; }
    .category-sidebar { order: 1; padding: 14px; margin-bottom: 16px; }
    .category-sidebar h3 { font-size: 14px; margin-bottom: 10px; }
    .category-sidebar a { padding: 8px 10px; font-size: 13px; }
    .category-banner { padding: 20px; margin-bottom: 16px; }
    .category-banner h1 { font-size: 20px; }
    .category-banner p { font-size: 13px; }
    .category-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
    .category-toolbar .sort a { font-size: 13px; margin-right: 10px; }
    .pagination { flex-wrap: wrap; gap: 6px; margin-top: 24px; }
    .pagination .btn-sm { padding: 5px 10px; font-size: 12px; }

    .cart-page, .checkout-page { padding: 20px 0 40px; }
    .cart-table th, .cart-table td { padding: 10px; font-size: 13px; }
    .cart-item-img { width: 56px; height: 56px; }
    .cart-summary { padding: 16px; text-align: left; }
    .cart-summary .btn { width: 100%; margin-bottom: 12px; }
    .cart-summary .total { display: block; margin-bottom: 12px; font-size: 16px; }
    .cart-summary .total strong { font-size: 22px; }
    .checkout-card { padding: 16px; margin-bottom: 12px; }
    .checkout-card h3 { font-size: 15px; margin-bottom: 12px; }
    .checkout-card .form-group { margin-bottom: 12px; }
    .checkout-card input, .checkout-card textarea { padding: 10px; font-size: 14px; }
    .checkout-card .cart-table th, .checkout-card .cart-table td { padding: 8px; }
    .payment-options label { padding: 10px; font-size: 14px; }
    .payment-options label span { font-size: 16px !important; }
    .checkout-card [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 12px; }

    .member-layout { grid-template-columns: 1fr; padding: 16px 0 40px; gap: 16px; }
    .member-sidebar { padding: 12px; }
    .member-main, .member-card { padding: 16px; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .order-item { padding: 10px 0; }
    .order-item img { width: 50px; height: 50px; }
    .checkout-grid > div:last-child { order: -1; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
}

@media (max-width: 480px) {
    .hero { padding: 32px 0; }
    .hero-title { font-size: 22px; line-height: 1.3; }
    .hero-desc { font-size: 14px; margin-bottom: 20px; }
    .hero-actions .btn-lg { padding: 11px 20px; font-size: 14px; }
    .hero-stats { gap: 16px; justify-content: space-between; }
    .hero-stat .num { font-size: 20px; }
    .hero-stat .txt { font-size: 11px; }
    .cat-shortcut-grid { grid-template-columns: 1fr; }
    .cat-shortcut-item { flex-direction: row; text-align: left; padding: 12px 16px; }
    .cat-shortcut-count { display: block; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card { border-radius: 6px; }
    .product-info { padding: 8px; }
    .product-name { font-size: 12px; height: 33px; margin-bottom: 4px; }
    .product-price { font-size: 13px; }
    .product-sales { font-size: 10px; }
    .section-header { margin-bottom: 20px; }
    .section-header h2, .section-header-flex h2 { font-size: 18px; }
    .section-header-flex { flex-direction: row; align-items: center; gap: 10px; }
    .section-header .label { font-size: 11px; }
    .more-link { font-size: 12px; }
    .news-item { grid-template-columns: 48px 1fr; gap: 12px; padding: 14px; }
    .news-date .day { font-size: 20px; }
    .news-title { font-size: 14px; }
    .news-desc { display: none; }
    .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
    .benefit-item { display: flex; align-items: center; gap: 14px; text-align: left; }
    .benefit-icon { margin: 0; width: 40px; height: 40px; flex-shrink: 0; }
    .footer-top { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 20px 0; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand .logo-text { font-size: 18px; margin-bottom: 8px; }
    .footer-brand p { font-size: 12px; line-height: 1.6; max-width: 100%; }
    .footer-title { font-size: 12px; margin-bottom: 8px; letter-spacing: .5px; }
    .footer-links a, .footer-contact p { font-size: 12px; margin-bottom: 6px; }
    .footer-contact .icon { font-size: 10px; }
    .footer-bottom { padding: 12px 0 80px; background: #0a0a0a; border-top: 1px solid #1a1a1a; }
    .footer-bottom .container { justify-content: center; text-align: center; gap: 6px; flex-direction: column; }
    .footer-bottom span { font-size: 12px; color: #9ca3af; display: block; width: 100%; }
    .footer-bottom a { display: inline-block; font-size: 12px; color: #d1d5db; }
    .mobile-tabbar-inner a { font-size: 11px; }
    .mobile-tabbar-inner .icon { font-size: 18px; margin-bottom: 2px; }
}
