/* ============================================
   吾涛涛电子商务 · 现代中式家居风
   主色：朱红 #c40000  辅色：橙红 #ff6537
   背景：暖白 #faf8f5  文字：深灰 #2c2c2c
   ============================================ */

:root {
    --primary: #c40000;
    --primary-light: #ff6537;
    --primary-dark: #9a0000;
    --accent: #d4a574;
    --bg: #faf8f5;
    --card-bg: #ffffff;
    --text: #2c2c2c;
    --text-secondary: #6b6b6b;
    --text-muted: #999999;
    --border: #e8e2dc;
    --success: #52c41a;
    --warning: #faad14;
    --danger: #c40000;
    --info: #1890ff;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(196,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --header-height: 80px;
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}
ul, ol { list-style: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 顶部公告条 ---------- */
.topbar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
    text-align: center;
    letter-spacing: 1px;
}
.topbar span { opacity: 0.9; }

/* ---------- 头部 ---------- */
.site-header {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-main {
    display: flex;
    align-items: center;
    gap: 30px;
    height: var(--header-height);
}
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-logo img { height: 48px; width: auto; }
.header-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}
.header-search {
    flex: 1;
    max-width: 560px;
    display: flex;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
}
.header-search input {
    flex: 1;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    background: transparent;
}
.header-search button {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    padding: 0 28px;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}
.header-search button:hover { opacity: 0.9; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.header-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.header-action:hover { color: var(--primary); }
.header-action .icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.header-action .badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 600;
}

/* ---------- 导航条 ---------- */
.site-nav {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    position: relative;
}
.nav-inner {
    display: flex;
    align-items: center;
    height: 52px;
}
.nav-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 0 24px;
    height: 52px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    min-width: var(--sidebar-width);
}
.nav-category-btn svg { width: 18px; height: 18px; fill: #fff; }
.nav-links {
    display: flex;
    gap: 0;
    flex: 1;
}
.nav-links a {
    padding: 0 28px;
    height: 52px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--text);
    position: relative;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ---------- 主布局：左侧栏 + 右内容 ---------- */
.layout-main {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    align-items: flex-start;
}
.layout-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}
.sidebar-title {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title svg { width: 18px; height: 18px; fill: #fff; }
.sidebar-menu { padding: 8px 0; }
.sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-menu a:hover {
    background: #fef2f0;
    color: var(--primary);
    border-left-color: var(--primary);
}
.sidebar-menu a .arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}
.sidebar-menu a:hover .arrow { color: var(--primary); transform: translateX(2px); }
.layout-content {
    flex: 1;
    min-width: 0;
}

/* ---------- Banner ---------- */
.banner-section {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
}
.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}
.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: var(--primary);
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.banner-prev { left: 16px; }
.banner-next { right: 16px; }
.banner-prev:hover,
.banner-next:hover {
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}
.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
}
.banner-dots span.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* ---------- 服务承诺条 ---------- */
.service-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.service-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.service-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.service-icon svg { width: 22px; height: 22px; fill: #fff; }
.service-text .title { font-size: 15px; font-weight: 600; color: var(--text); }
.service-text .desc { font-size: 12px; color: var(--text-muted); }

/* ---------- 分类楼层 ---------- */
.floor-section { margin-bottom: 32px; }
.floor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.floor-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.floor-title .num {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}
.floor-title .name { font-size: 22px; font-weight: 700; color: var(--text); }
.floor-title .en { font-size: 13px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.floor-more {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.floor-more:hover { color: var(--primary); }

/* ---------- 商品卡片 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.product-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f2ee;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.product-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.product-price {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}
.product-price .symbol { font-size: 14px; }
.product-sales { font-size: 12px; color: var(--text-muted); }
.product-tag {
    display: inline-block;
    background: #fef2f0;
    color: var(--primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #2c2c2c;
    color: #999;
    margin-top: 60px;
}
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0 30px;
}
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-brand .footer-logo img { height: 40px; }
.footer-brand .footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #999; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-contact p { font-size: 13px; margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: var(--primary-light); }

/* ---------- 分类页 ---------- */
.category-filter {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group .label { font-size: 13px; color: var(--text-muted); }
.filter-group select,
.filter-group input {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 13px;
    background: var(--card-bg);
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--primary); }
.filter-sort {
    display: flex;
    gap: 12px;
    margin-left: auto;
}
.filter-sort a {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.filter-sort a:hover,
.filter-sort a.active { background: var(--primary); color: #fff; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---------- 商品详情页 ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 40px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}
.product-gallery .main-img {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 1;
}
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumbs {
    display: flex;
    gap: 10px;
}
.product-gallery .thumbs .thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.product-gallery .thumbs .thumb:hover,
.product-gallery .thumbs .thumb.active { border-color: var(--primary); }
.product-gallery .thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 12px;
}
.product-detail-info .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.product-price-box {
    background: linear-gradient(135deg, #fef2f0, #fff8f5);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.product-price-box .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.product-price-box .label { font-size: 14px; color: var(--text-muted); }
.product-price-box .price { font-size: 36px; font-weight: 700; color: var(--primary); }
.product-price-box .price .symbol { font-size: 20px; }
.product-price-box .original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}
.product-meta { margin-bottom: 20px; }
.product-meta .meta-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.product-meta .meta-row .label { width: 80px; color: var(--text-muted); }
.product-meta .meta-row .value { flex: 1; color: var(--text); }
.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.btn-buy-now,
.btn-add-cart {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-buy-now {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.btn-buy-now:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-add-cart {
    background: var(--card-bg);
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-add-cart:hover { background: #fef2f0; }
.btn-add-cart svg, .btn-buy-now svg { width: 20px; height: 20px; }

/* ---------- Tab 切换 ---------- */
.detail-tabs {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: #faf8f5;
}
.tabs-header .tab-item {
    padding: 16px 32px;
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.tabs-header .tab-item:hover { color: var(--primary); }
.tabs-header .tab-item.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
    background: var(--card-bg);
}
.tabs-body { padding: 30px; }
.tabs-body .tab-pane { display: none; }
.tabs-body .tab-pane.active { display: block; }

/* ---------- 结算页 ---------- */
.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 0;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 30px;
    position: relative;
}
.checkout-step::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: var(--border);
}
.checkout-step:last-child::after { display: none; }
.checkout-step .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}
.checkout-step.active .step-num {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.checkout-step .step-text { font-size: 14px; color: var(--text-muted); }
.checkout-step.active .step-text { color: var(--primary); font-weight: 600; }
.checkout-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}
.checkout-card .card-header {
    background: linear-gradient(135deg, #fef2f0, #fff8f5);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-card .card-header .icon {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}
.checkout-card .card-header h3 { font-size: 16px; color: var(--text); }
.checkout-card .card-body { padding: 24px; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    background: var(--card-bg);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196,0,0,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: #fef2f0; }
.btn-lg { padding: 16px 48px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: var(--transition);
    padding: 0 8px;
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
}
.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #fef2f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state .empty-icon svg { width: 40px; height: 40px; fill: var(--primary); }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ---------- 购物车 ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    padding: 16px;
    font-size: 13px;
    color: var(--text-muted);
    background: #faf8f5;
    font-weight: 500;
}
.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cart-item-price { color: var(--primary); font-weight: 600; }
.cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cart-qty button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f2ee;
    cursor: pointer;
    font-size: 16px;
}
.cart-qty input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
}
.cart-summary {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}
.cart-summary .summary-row.total {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
}
.cart-summary .summary-row.total .price { color: var(--primary); font-size: 28px; }

/* ---------- H5 底部 Tab ---------- */
.mobile-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-tabbar-inner {
    display: flex;
    height: 56px;
}
.mobile-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}
.mobile-tabbar a.active { color: var(--primary); }
.mobile-tabbar a .icon { width: 22px; height: 22px; fill: currentColor; }
.mobile-tabbar a .badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---------- H5 顶部搜索 ---------- */
.mobile-header {
    display: none;
    background: var(--card-bg);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.mobile-header .search-box {
    display: flex;
    align-items: center;
    background: #f5f2ee;
    border-radius: 20px;
    padding: 8px 16px;
    gap: 8px;
}
.mobile-header .search-box svg { width: 18px; height: 18px; fill: var(--text-muted); }
.mobile-header .search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
}

/* ---------- 响应式：平板 ---------- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .service-bar { grid-template-columns: repeat(2, 1fr); }
    .product-detail { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: repeat(2, 1fr); }
    .layout-sidebar { display: none; }
    .nav-category-btn { min-width: auto; }
}

/* ---------- 响应式：手机 ---------- */
@media (max-width: 768px) {
    :root { --header-height: auto; }
    .topbar { font-size: 12px; }
    .header-main { display: none; }
    .site-nav { display: none; }
    .mobile-header { display: block; }
    .mobile-tabbar { display: block; }
    body { padding-bottom: 70px; }
    .container { padding: 0 12px; }
    .layout-main { flex-direction: column; padding: 12px 0; }
    .layout-sidebar { display: none; }
    .banner-slider { height: 180px; }
    .banner-slide { height: 100%; }
    .banner-prev, .banner-next { width: 36px; height: 36px; font-size: 18px; }
    .banner-dots span { width: 8px; height: 8px; }
    .banner-dots span.active { width: 18px; }
    .service-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .service-item { padding: 14px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .floor-title .name { font-size: 18px; }
    .floor-title .num { width: 28px; height: 28px; font-size: 14px; }
    .product-detail { padding: 16px; gap: 20px; }
    .product-detail-info h1 { font-size: 18px; }
    .product-price-box .price { font-size: 28px; }
    .product-actions { flex-direction: column; }
    .btn-buy-now, .btn-add-cart { height: 48px; }
    .tabs-header .tab-item { padding: 12px 16px; font-size: 13px; }
    .tabs-body { padding: 16px; }
    .footer-main { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 20px; }
    .form-row { grid-template-columns: 1fr; }
    .checkout-steps { gap: 8px; }
    .checkout-step { padding: 0 10px; }
    .checkout-step .step-text { display: none; }
    .checkout-step.active .step-text { display: block; }
    .filter-sort { margin-left: 0; width: 100%; }
    .category-filter { flex-direction: column; align-items: flex-start; gap: 12px; }
    .cart-table { display: block; overflow-x: auto; }
}

/* ---------- 小屏手机 ---------- */
@media (max-width: 480px) {
    .service-bar { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 13px; min-height: 36px; }
    .product-price { font-size: 16px; }
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- 工具类 ---------- */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* ---------- 资讯文章区 ---------- */
.news-section { margin-bottom: 40px; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    display: block;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.news-card:hover h4 { color: var(--primary); }
.news-card .news-img {
    height: 180px;
    overflow: hidden;
}
.news-card .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-img img { transform: scale(1.05); }
.news-card .news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.news-card .news-tag {
    display: inline-block;
    align-self: flex-start;
    background: #fef2f0;
    color: var(--primary);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.news-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}
.news-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}
.news-card .news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

/* ---------- 首页关于/使命横幅 ---------- */
.about-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 70px 0;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}
.about-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.about-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.about-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}
.about-banner-content { flex: 1; max-width: 620px; }
.about-banner-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.about-banner-content p {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 24px;
}
.about-banner-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.about-banner-actions .btn-light {
    background: #fff;
    color: var(--primary);
    border: 2px solid #fff;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.about-banner-actions .btn-light:hover {
    background: transparent;
    color: #fff;
}
.about-banner-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    flex-shrink: 0;
}
.stat-item {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    padding: 24px 32px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
    min-width: 120px;
}
.stat-item .stat-num {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}
.stat-item .stat-label {
    font-size: 13px;
    opacity: 0.85;
}

/* ---------- 关于我们页面 ---------- */
.about-hero {
    background: linear-gradient(135deg, #fff8f5 0%, #fef2f0 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}
.about-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-hero-content { flex: 1; }
.about-hero-content .about-subtitle {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--primary-light);
    margin-bottom: 12px;
    font-weight: 600;
}
.about-hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}
.about-hero-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}
.about-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.about-hero-image {
    flex: 0 0 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-hero-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.about-mission {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}
.mission-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(196,0,0,0.15);
}
.mission-card svg {
    width: 48px;
    height: 48px;
    fill: var(--primary);
    margin-bottom: 16px;
}
.mission-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}
.mission-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-title {
    text-align: center;
    margin-bottom: 36px;
}
.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.section-title p {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-company {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}
.company-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}
.company-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 10px;
}
.company-info p strong {
    color: var(--text);
    font-weight: 600;
    margin-right: 4px;
}
.company-contact h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}
.company-contact ul { display: flex; flex-direction: column; gap: 16px; }
.company-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.company-contact ul li svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.about-advantages { margin-bottom: 60px; }
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.advantage-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.advantage-item .advantage-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 14px;
}
.advantage-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.advantage-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- 响应式补充 ---------- */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .about-banner-inner { flex-direction: column; text-align: center; }
    .about-banner-content { max-width: 100%; }
    .about-banner-actions { justify-content: center; }
    .about-banner-stats { width: 100%; max-width: 500px; }
    .about-hero-inner { flex-direction: column; }
    .about-hero-image { flex: auto; width: 100%; }
    .about-mission { grid-template-columns: repeat(2, 1fr); }
    .company-grid { grid-template-columns: 1fr; }
    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .about-banner { padding: 40px 0; }
    .about-banner-content h2 { font-size: 24px; }
    .about-banner-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-item { padding: 16px; }
    .stat-item .stat-num { font-size: 22px; }
    .about-hero { padding: 40px 0; }
    .about-hero-content h1 { font-size: 28px; }
    .about-hero-image img { height: 220px; }
    .about-mission { grid-template-columns: 1fr; }
    .about-company { padding: 24px; }
    .advantage-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card .news-img { height: 160px; }
}

/* ---------- 小屏补充 ---------- */
@media (max-width: 480px) {
    .about-banner-actions .btn-light,
    .about-banner-actions .btn-primary { flex: 1; }
    .about-hero-actions { flex-direction: column; }
}

/* ---------- Toast 提示 ---------- */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--text);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

/* ---------- 按钮扩展 ---------- */
.btn-light {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border);
}
.btn-light:hover {
    background: #fef2f0;
    border-color: var(--primary);
}
.btn-secondary {
    background: #f5f5f5;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #ddd;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

/* ---------- 会员中心/通用表格 ---------- */
.member-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.member-card table th,
.member-card table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
.member-card table th {
    background: #faf8f5;
    font-weight: 600;
    color: var(--text);
}
.member-card table td { color: var(--text-secondary); }
.member-card table tr:last-child td { border-bottom: none; }
.member-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}
.member-card p strong { color: var(--text); margin-right: 4px; }

/* ---------- Badge ---------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-blue { background: #e6f4ff; color: #0066cc; }
.badge-green { background: #e6f9f0; color: #00994d; }
.badge-red { background: #fff0ed; color: #c40000; }
.badge-gray { background: #f0f0f0; color: #666; }

/* ---------- 会员中心卡片 ---------- */
.member-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}
.member-card h2,
.member-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* ---------- 会员中心布局 ---------- */
.member-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin-top: 20px;
}
.member-sidebar {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
}
.member-sidebar .profile {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.member-sidebar .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
}
.member-sidebar .username {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.member-sidebar .email {
    font-size: 12px;
    color: var(--text-muted);
}
.member-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.member-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}
.member-menu a:hover,
.member-menu a.active {
    background: #fef2f0;
    color: var(--primary);
    font-weight: 500;
}

/* ---------- 会员统计卡片 ---------- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card .icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.stat-card .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.stat-card .label {
    font-size: 13px;
    color: var(--text-secondary);
}
.stat-card.primary .value { color: var(--primary); }
.stat-card.accent .value { color: var(--primary-light); }
.stat-card.success .value { color: var(--success); }
.stat-card.info .value { color: var(--info); }

@media (max-width: 1024px) {
    .member-layout { grid-template-columns: 1fr; }
    .member-sidebar { position: static; }
    .member-card table thead { display: none; }
    .member-card table tbody,
    .member-card table tr,
    .member-card table td { display: block; width: 100%; }
    .member-card table tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
    .member-card table td { border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
    .member-card table td:last-child { border-bottom: none; }
    .member-card table td::before { content: attr(data-label); font-weight: 600; color: var(--text); }
}
@media (max-width: 768px) {
    .dashboard-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-card { padding: 16px 8px; }
    .stat-card .icon { font-size: 24px; }
    .stat-card .value { font-size: 20px; }
    .member-card { padding: 20px; }
    .member-menu { flex-direction: row; flex-wrap: wrap; }
    .member-menu a { flex: 1; min-width: 100px; justify-content: center; }
}

/* ---------- 购物车页 ---------- */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.step-progress .step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}
.step-progress .step .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}
.step-progress .step.active {
    color: var(--primary);
    font-weight: 600;
}
.step-progress .step.active .num {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.step-progress .line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: var(--border);
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}
.cart-table thead { background: #faf8f5; }
.cart-table th,
.cart-table td {
    padding: 18px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.cart-table th { font-weight: 600; color: var(--text); }
.cart-table td { color: var(--text-secondary); vertical-align: middle; }
.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}
.cart-item .name {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    font-weight: 500;
}
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-stepper button {
    width: 32px;
    height: 32px;
    border: none;
    background: #faf8f5;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.qty-stepper button:hover { background: var(--primary); color: #fff; }
.qty-stepper input {
    width: 44px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    color: var(--text);
    -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
}
.cart-total {
    font-size: 16px;
    color: var(--text);
}
.cart-total strong {
    font-size: 24px;
    color: var(--primary);
    margin-left: 6px;
}
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.cart-empty svg {
    width: 64px;
    height: 64px;
    fill: var(--text-muted);
    margin-bottom: 16px;
}
.cart-empty h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.cart-empty p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
@media (max-width: 768px) {
    .cart-table thead { display: none; }
    .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); overflow: hidden; }
    .cart-table td { border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
    .cart-table td:last-child { border-bottom: none; }
    .cart-table td::before { content: attr(data-label); font-weight: 600; color: var(--text); }
    .cart-summary { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- 登录注册页 ---------- */
.auth-form,
.auth-box {
    max-width: 420px;
    margin: 40px auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}
.auth-form h2,
.auth-box h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text);
}
.auth-form .form-group,
.auth-box .form-group { margin-bottom: 20px; }
.auth-form .btn-block,
.auth-box .btn-block { margin-top: 10px; }
.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}
.auth-links a { color: var(--primary); margin: 0 6px; }
.auth-links a:hover { text-decoration: underline; }

/* ---------- 联系我们页 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}
.contact-grid > div {
    padding: 18px;
    background: #faf8f5;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.contact-grid .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.contact-grid .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}
@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- 通用标题栏 ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 30px;
}
.page-banner h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}
.page-banner p {
    font-size: 14px;
    opacity: 0.85;
}

/* ---------- 边框卡片 ---------- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-body { padding: 24px; }

/* ---------- 列表组 ---------- */
.list-group { display: flex; flex-direction: column; }
.list-group-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.list-group-item:last-child { border-bottom: none; }

/* ---------- 辅助动效 ---------- */
.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* ---------- 滚动显示动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 文字工具 ---------- */
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-white { color: #fff; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }

/* ---------- 间距工具 ---------- */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.pt-20 { padding-top: 20px; }
.pt-40 { padding-top: 40px; }
.pb-20 { padding-bottom: 20px; }
.pb-40 { padding-bottom: 40px; }

/* ---------- 布局工具 ---------- */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.w-full { width: 100%; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

