/* ========== 远辰智联·汇聚商城 前端样式 ========== */
:root {
    --primary: #1a1a2e;
    --accent: #c4453d;
    --accent-hover: #a83a33;
    --accent-light: #e8f0f8;
    --text-dark: #1a1a1a;
    --text-body: #333333;
    --text-muted: #888888;
    --text-light: #b0b0b0;
    --bg-page: #f5f5f5;
    --bg-white: #ffffff;
    --bg-gray: #f0f0f0;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
    --radius: 4px;
    --radius-lg: 8px;
    --header-h: 80px;
    --nav-h: 44px;
    --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--text-body);
    background: var(--bg-page);
    line-height: 1.6;
}

a { color: var(--text-body); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 15px; }

/* ========== 顶部栏 ========== */
.top-bar {
    background: #1a1a2e;
    color: #ccc;
    font-size: 12px;
    line-height: 32px;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; }
.top-bar .divider { color: #555; margin: 0 6px; }

/* ========== 头部 ========== */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 40px;
}
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text { font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: 2px; }
.logo-sub { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: 4px; }

.search-box { flex: 1; max-width: 560px; }
.search-form { display: flex; }
.search-input {
    flex: 1;
    height: 40px;
    border: 2px solid var(--accent);
    border-right: none;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    background: var(--bg-white);
}
.search-input:focus { box-shadow: inset 0 0 4px rgba(196,69,61,0.1); }
.search-btn {
    width: 100px;
    height: 40px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.search-btn:hover { background: var(--accent-hover); }

.header-actions { display: flex; align-items: center; gap: 24px; }
.header-cart, .header-user { position: relative; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -14px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    text-align: center;
    line-height: 18px;
    padding: 0 4px;
}

/* ========== 导航栏 ========== */
.main-nav {
    background: var(--bg-white);
    border-bottom: 2px solid var(--accent);
    height: var(--nav-h);
}
.nav-inner { display: flex; align-items: center; height: 100%; }
.nav-cats {
    position: relative;
    width: 220px;
    height: 100%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-cats-title { font-size: 15px; font-weight: 600; }
.cat-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: none;
    z-index: 100;
    box-shadow: var(--shadow);
}
.nav-cats:hover .cat-dropdown { display: block; }
.cat-item {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}
.cat-item:hover { background: var(--accent-light); color: var(--accent); padding-left: 24px; }

.nav-links { display: flex; align-items: center; margin-left: 30px; height: 100%; }
.nav-link {
    padding: 0 20px;
    font-size: 15px;
    font-weight: 500;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--accent);
}

/* ========== 公告栏 ========== */
.announcement-bar {
    background: #fff8f0;
    border-bottom: 1px solid var(--border-light);
    padding: 6px 0;
    overflow: hidden;
}
.notice-scroll { display: flex; gap: 40px; white-space: nowrap; animation: scrollNotice 30s linear infinite; }
.notice-item { font-size: 13px; color: var(--accent); }
@keyframes scrollNotice { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ========== 通用按钮 ========== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0;
    text-align: center;
    line-height: 1.4;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark:hover { background: #2a2a3e; color: #fff; }
.btn-gray { background: #f5f5f5; color: #666; border-color: var(--border); }
.btn-gray:hover { background: #eee; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

/* ========== 首页布局 ========== */
.home-hero {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}
.hero-slider {
    flex: 1;
    height: 420px;
    background: #ddd;
    position: relative;
    overflow: hidden;
}
.slider-track { display: flex; height: 100%; transition: transform 0.5s; }
.slider-item { min-width: 100%; height: 100%; position: relative; }
.slider-item img { width: 100%; height: 100%; object-fit: cover; }
.slider-item .slider-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
}
.slider-item .slider-text h2 { font-size: 32px; margin-bottom: 10px; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.slider-item .slider-text p { font-size: 16px; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover { background: rgba(0,0,0,0.5); }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }
.slider-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider-dots span { width: 10px; height: 10px; background: rgba(255,255,255,0.5); cursor: pointer; border-radius: 50%; }
.slider-dots span.active { background: #fff; width: 24px; border-radius: 5px; }

.hero-side {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero-user-card {
    background: var(--bg-white);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
}
.hero-user-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-gray); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #999; }
.hero-user-card p { font-size: 13px; color: #666; margin-bottom: 10px; }
.hero-user-card .btn { width: 100%; margin-bottom: 6px; padding: 6px 0; font-size: 13px; }
.hero-ad { height: 130px; background: linear-gradient(135deg, #1a1a2e, #16213e); display: flex; align-items: center; justify-content: center; color: #fff; }
.hero-ad .ad-text h3 { font-size: 18px; margin-bottom: 6px; }
.hero-ad .ad-text p { font-size: 13px; opacity: 0.8; }

/* 快捷入口 */
.quick-entry {
    display: flex;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    margin-bottom: 15px;
}
.quick-item {
    flex: 1;
    padding: 20px 10px;
    text-align: center;
    border-right: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s;
}
.quick-item:last-child { border-right: none; }
.quick-item:hover { background: var(--accent-light); }
.quick-item .qi-icon { font-size: 28px; margin-bottom: 6px; display: block; color: var(--accent); font-weight: 700; }
.quick-item .qi-text { font-size: 13px; color: var(--text-body); }

/* 秒杀专区 */
.section-box { background: var(--bg-white); margin-bottom: 15px; border: 1px solid var(--border-light); }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}
.section-title { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.section-title .seckill-tag { background: var(--accent); color: #fff; font-size: 12px; padding: 2px 8px; }
.seckill-countdown { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.seckill-countdown .cd-num { background: var(--primary); color: #fff; padding: 2px 8px; font-size: 14px; font-weight: 600; }
.section-more { font-size: 13px; color: var(--text-muted); }

.seckill-list { display: flex; overflow-x: auto; padding: 15px 20px; gap: 15px; }
.seckill-item { width: 180px; flex-shrink: 0; }
.seckill-item .goods-cover { width: 180px; height: 180px; background: var(--bg-gray); margin-bottom: 8px; overflow: hidden; }
.seckill-item .goods-cover img { width: 100%; height: 100%; object-fit: cover; }
.seckill-item .goods-title { font-size: 13px; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seckill-item .seckill-price { color: var(--accent); font-size: 18px; font-weight: 700; }
.seckill-item .original-price { color: var(--text-light); text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.seckill-item .progress-bar { height: 14px; background: var(--bg-gray); margin-top: 6px; position: relative; overflow: hidden; }
.seckill-item .progress-fill { height: 100%; background: var(--accent); }
.seckill-item .progress-text { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 11px; line-height: 14px; color: #fff; }
.seckill-item .btn-buy { display: block; width: 100%; padding: 6px 0; background: var(--accent); color: #fff; text-align: center; font-size: 13px; margin-top: 6px; border: none; cursor: pointer; }

/* 商品网格 */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}
.goods-card {
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
    transition: all 0.3s;
    background: var(--bg-white);
    cursor: pointer;
    position: relative;
}
.goods-card:hover { box-shadow: var(--shadow-hover); z-index: 5; transform: translateY(-2px); }
.goods-card:nth-child(5n) { border-right: none; }
.goods-card .goods-cover { width: 100%; aspect-ratio: 1; background: var(--bg-gray); margin-bottom: 10px; overflow: hidden; }
.goods-card .goods-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.goods-card:hover .goods-cover img { transform: scale(1.05); }
.goods-card .goods-title { font-size: 14px; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 42px; }
.goods-card .goods-price { color: var(--accent); font-size: 18px; font-weight: 700; }
.goods-card .goods-original { color: var(--text-light); text-decoration: line-through; font-size: 13px; margin-left: 6px; font-weight: normal; }
.goods-card .goods-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.goods-card .goods-tags { position: absolute; top: 20px; left: 20px; display: flex; gap: 4px; }
.goods-card .tag { font-size: 11px; padding: 2px 6px; color: #fff; }
.tag-new { background: #2d8c5f; }
.tag-hot { background: var(--accent); }
.tag-sale { background: #d97706; }

/* 楼层 */
.floor { margin-bottom: 15px; background: var(--bg-white); border: 1px solid var(--border-light); }
.floor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 2px solid var(--primary);
}
.floor-title { font-size: 22px; font-weight: 700; color: var(--primary); }
.floor-title .floor-sub { font-size: 14px; color: var(--text-muted); font-weight: normal; margin-left: 10px; }
.floor-keywords { display: flex; gap: 15px; }
.floor-keywords a { font-size: 13px; color: var(--text-muted); }
.floor-keywords a:hover { color: var(--accent); }
.floor-body { display: flex; }
.floor-banner { width: 230px; min-height: 400px; background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; }
.floor-banner h3 { font-size: 24px; margin-bottom: 8px; }
.floor-banner p { font-size: 14px; opacity: 0.7; }
.floor-goods { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); }

/* 品牌专区 */
.brand-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; padding: 15px; }
.brand-item { border: 1px solid var(--border-light); margin: -1px 0 0 -1px; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: var(--text-body); cursor: pointer; transition: all 0.2s; }
.brand-item:hover { background: var(--accent-light); color: var(--accent); }

/* 猜你喜欢 */
.guess-title { text-align: center; padding: 30px 0 15px; font-size: 22px; font-weight: 700; color: var(--text-dark); }
.guess-title::before, .guess-title::after { content: '---'; color: var(--text-light); margin: 0 15px; }

/* ========== 商品列表页 ========== */
.breadcrumb { padding: 10px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.filter-bar {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    margin-bottom: 15px;
}
.filter-row { display: flex; padding: 10px 20px; border-bottom: 1px solid var(--border-light); align-items: center; }
.filter-row:last-child { border-bottom: none; }
.filter-label { width: 80px; color: var(--text-muted); font-size: 13px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-options a { padding: 4px 12px; font-size: 13px; border: 1px solid transparent; }
.filter-options a:hover { border-color: var(--accent); }
.filter-options a.active { background: var(--accent); color: #fff; }

.sort-bar {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.sort-links { display: flex; gap: 0; }
.sort-links a { padding: 6px 16px; font-size: 14px; border-right: 1px solid var(--border-light); }
.sort-links a:last-child { border-right: none; }
.sort-links a.active { color: var(--accent); font-weight: 600; }
.sort-links a:hover { background: var(--accent-light); }
.sort-info { font-size: 13px; color: var(--text-muted); }

.goods-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* ========== 商品详情页 ========== */
.goods-detail { background: var(--bg-white); padding: 20px; margin-bottom: 15px; border: 1px solid var(--border-light); }
.detail-top { display: flex; gap: 30px; }
.detail-gallery { width: 400px; }
.gallery-main { width: 400px; height: 400px; border: 1px solid var(--border); overflow: hidden; background: var(--bg-gray); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumb { width: 60px; height: 60px; border: 2px solid var(--border); cursor: pointer; overflow: hidden; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { flex: 1; }
.detail-info h1 { font-size: 22px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.detail-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.detail-price-box { background: linear-gradient(135deg, #fff5f5, #fff); border: 1px solid #ffe0e0; padding: 15px 20px; margin-bottom: 20px; }
.detail-price-row { display: flex; align-items: baseline; gap: 15px; }
.detail-price-label { font-size: 13px; color: var(--text-muted); }
.detail-price-now { font-size: 28px; color: var(--accent); font-weight: 700; }
.detail-price-old { font-size: 14px; color: var(--text-light); text-decoration: line-through; }
.detail-sales { font-size: 13px; color: var(--text-muted); margin-left: auto; }

.detail-meta { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.detail-meta-label { width: 80px; color: var(--text-muted); }
.detail-meta-value { color: var(--text-body); }

.sku-section { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.sku-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.sku-options { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-option { padding: 6px 16px; border: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.sku-option:hover { border-color: var(--accent); }
.sku-option.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

.quantity-section { padding: 12px 0; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--border); }
.quantity-btn { width: 36px; height: 36px; border: none; background: var(--bg-white); cursor: pointer; font-size: 16px; }
.quantity-btn:hover { background: var(--bg-gray); }
.quantity-input { width: 50px; height: 36px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 14px; outline: none; }

.detail-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-add-cart { padding: 14px 40px; background: #ff9800; color: #fff; border: 1px solid #ff9800; font-size: 16px; cursor: pointer; font-weight: 600; }
.btn-add-cart:hover { background: #e68a00; }
.btn-buy-now { padding: 14px 40px; background: var(--accent); color: #fff; border: 1px solid var(--accent); font-size: 16px; cursor: pointer; font-weight: 600; }
.btn-buy-now:hover { background: var(--accent-hover); }
.btn-favorite { padding: 14px 20px; background: #fff; border: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.btn-favorite:hover { border-color: var(--accent); color: var(--accent); }
.btn-favorite.active { color: var(--accent); border-color: var(--accent); }

.detail-tabs { background: var(--bg-white); border: 1px solid var(--border-light); margin-bottom: 15px; }
.tab-header { display: flex; border-bottom: 1px solid var(--border-light); }
.tab-header .tab { padding: 15px 30px; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; }
.tab-header .tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-content { padding: 20px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.params-table { width: 100%; border-collapse: collapse; }
.params-table th, .params-table td { padding: 10px 15px; border: 1px solid var(--border-light); font-size: 14px; }
.params-table th { background: var(--bg-gray); width: 120px; color: var(--text-muted); font-weight: normal; }

.review-item { border-bottom: 1px solid var(--border-light); padding: 15px 0; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; color: #999; }
.review-user { font-size: 14px; font-weight: 500; }
.review-stars { color: #ff9800; font-size: 13px; }
.review-date { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.review-content { font-size: 14px; line-height: 1.8; }
.review-reply { background: var(--bg-gray); padding: 10px 15px; margin-top: 8px; font-size: 13px; }
.review-reply .reply-label { color: var(--accent); font-weight: 600; margin-right: 6px; }

/* ========== 登录注册 ========== */
.auth-page { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.auth-box { background: var(--bg-white); width: 400px; padding: 40px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 30px; color: var(--text-dark); }
.auth-tabs { display: flex; margin-bottom: 25px; border-bottom: 2px solid var(--border-light); }
.auth-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 16px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; color: var(--text-body); margin-bottom: 6px; }
.form-input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg-white);
}
.form-input:focus { border-color: var(--accent); }
.form-textarea { width: 100%; padding: 10px 16px; border: 1px solid var(--border); font-size: 14px; outline: none; min-height: 100px; resize: vertical; }
.form-select { width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--border); font-size: 14px; outline: none; background: var(--bg-white); }
.form-row { display: flex; gap: 10px; }
.form-row .form-input { flex: 1; }
.auth-extra { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; }
.auth-extra a { color: var(--accent); }
.auth-btn { width: 100%; height: 46px; background: var(--accent); color: #fff; border: none; font-size: 16px; font-weight: 600; cursor: pointer; }
.auth-btn:hover { background: var(--accent-hover); }
.auth-footer { text-align: center; font-size: 13px; margin-top: 20px; color: var(--text-muted); }
.auth-footer a { color: var(--accent); }

/* ========== 购物车 ========== */
.cart-page { background: var(--bg-white); border: 1px solid var(--border-light); margin-bottom: 15px; }
.cart-header { display: flex; padding: 12px 20px; background: var(--bg-gray); border-bottom: 1px solid var(--border-light); font-size: 13px; color: var(--text-muted); }
.cart-header .col-check { width: 100px; }
.cart-header .col-info { flex: 1; }
.cart-header .col-price { width: 120px; text-align: center; }
.cart-header .col-qty { width: 140px; text-align: center; }
.cart-header .col-total { width: 120px; text-align: center; }
.cart-header .col-action { width: 100px; text-align: center; }

.cart-item { display: flex; padding: 20px; border-bottom: 1px solid var(--border-light); align-items: center; }
.cart-item .col-check { width: 100px; }
.cart-item .col-info { flex: 1; display: flex; gap: 12px; align-items: center; }
.cart-item .col-info img { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--border-light); }
.cart-item .info-text { flex: 1; }
.cart-item .info-text .title { font-size: 14px; margin-bottom: 4px; }
.cart-item .info-text .sku { font-size: 12px; color: var(--text-muted); }
.cart-item .col-price { width: 120px; text-align: center; color: var(--accent); font-weight: 600; }
.cart-item .col-qty { width: 140px; text-align: center; }
.cart-item .col-total { width: 120px; text-align: center; color: var(--accent); font-weight: 700; font-size: 16px; }
.cart-item .col-action { width: 100px; text-align: center; }
.cart-item .col-action a { font-size: 13px; color: var(--text-muted); }
.cart-item .col-action a:hover { color: var(--accent); }

.cart-footer { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; position: sticky; bottom: 0; background: var(--bg-white); border-top: 1px solid var(--border-light); }
.cart-footer-left { display: flex; align-items: center; gap: 20px; }
.cart-footer-right { display: flex; align-items: center; gap: 20px; }
.cart-total-price { font-size: 14px; }
.cart-total-price .price { color: var(--accent); font-size: 24px; font-weight: 700; }
.cart-checkout-btn { background: var(--accent); color: #fff; padding: 12px 40px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; }
.cart-checkout-btn:hover { background: var(--accent-hover); }
.cart-checkout-btn:disabled { background: #ccc; cursor: not-allowed; }

.empty-state { padding: 80px 20px; text-align: center; }
.empty-state .empty-icon { font-size: 64px; color: var(--border); margin-bottom: 20px; }
.empty-state .empty-text { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; }
.empty-state .btn { display: inline-block; }

/* ========== 个人中心 ========== */
.member-layout { display: flex; gap: 15px; margin-bottom: 15px; }
.member-sidebar { width: 200px; background: var(--bg-white); border: 1px solid var(--border-light); }
.member-info { padding: 20px; text-align: center; border-bottom: 1px solid var(--border-light); }
.member-info .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-gray); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #999; }
.member-info .name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.member-info .level { font-size: 12px; color: var(--accent); }
.member-menu { padding: 10px 0; }
.member-menu-item { display: block; padding: 12px 24px; font-size: 14px; border-left: 3px solid transparent; }
.member-menu-item:hover { background: var(--accent-light); }
.member-menu-item.active { background: var(--accent-light); color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.member-menu-group-title { padding: 10px 24px 4px; font-size: 12px; color: var(--text-light); text-transform: uppercase; }

.member-content { flex: 1; background: var(--bg-white); border: 1px solid var(--border-light); padding: 20px; }
.member-content-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--border-light); margin-bottom: 20px; }
.member-content-title { font-size: 18px; font-weight: 600; }

/* 订单列表 */
.order-tabs { display: flex; border-bottom: 1px solid var(--border-light); margin-bottom: 20px; }
.order-tab { padding: 12px 24px; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.order-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.order-card { border: 1px solid var(--border-light); margin-bottom: 15px; }
.order-card-header { display: flex; justify-content: space-between; padding: 10px 15px; background: var(--bg-gray); font-size: 13px; }
.order-card-body { padding: 15px; display: flex; gap: 15px; align-items: center; }
.order-card-body img { width: 60px; height: 60px; object-fit: cover; border: 1px solid var(--border-light); }
.order-card-body .order-goods-info { flex: 1; }
.order-card-body .order-goods-title { font-size: 14px; margin-bottom: 4px; }
.order-card-body .order-goods-sku { font-size: 12px; color: var(--text-muted); }
.order-card-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 10px 15px; border-top: 1px solid var(--border-light); }
.order-status { font-size: 13px; }
.order-status-0 { color: #ff9800; }
.order-status-1 { color: #2196f3; }
.order-status-2 { color: #4caf50; }
.order-status-3 { color: #999; }
.order-status-4 { color: #999; }
.order-status-5 { color: #f44336; }
.order-status-6 { color: #999; }

/* 地址管理 */
.address-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.address-card { border: 1px solid var(--border-light); padding: 15px; position: relative; }
.address-card.default { border-color: var(--accent); }
.address-card .default-tag { position: absolute; top: 0; right: 0; background: var(--accent); color: #fff; font-size: 12px; padding: 2px 8px; }
.address-card .addr-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.address-card .addr-phone { color: var(--text-muted); font-size: 13px; }
.address-card .addr-detail { font-size: 13px; margin: 8px 0; }
.address-card .addr-actions { display: flex; gap: 15px; font-size: 13px; }

/* 优惠券 */
.coupon-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.coupon-card { display: flex; border: 1px solid var(--border-light); overflow: hidden; }
.coupon-card .coupon-left { width: 120px; background: linear-gradient(135deg, var(--accent), #d96660); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px; }
.coupon-card .coupon-amount { font-size: 28px; font-weight: 700; }
.coupon-card .coupon-unit { font-size: 14px; }
.coupon-card .coupon-right { flex: 1; padding: 15px; }
.coupon-card .coupon-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.coupon-card .coupon-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.coupon-card .coupon-time { font-size: 12px; color: var(--text-light); }
.coupon-card .coupon-actions { margin-top: 8px; }
.coupon-card.expired .coupon-left { background: #ccc; }

/* ========== 分页 ========== */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 30px 0; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--border); padding: 0 10px; font-size: 14px; cursor: pointer; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-dots { line-height: 36px; color: var(--text-muted); }

/* ========== 返回顶部 ========== */
.back-top {
    position: fixed;
    right: 30px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    z-index: 999;
}
.back-top.visible { display: flex; }
.back-top:hover { background: var(--accent); }

/* ========== 页脚 ========== */
.footer {
    background: #1a1a2e;
    color: #b0b0b0;
    padding: 40px 0 0;
    margin-top: 30px;
}
.footer-top {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a3e;
}
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 15px; font-weight: 600; }
.footer-col a { display: block; color: #888; font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-contact .contact-phone { font-size: 24px; color: #fff; font-weight: 700; margin-bottom: 4px; }
.footer-contact .contact-time { font-size: 13px; color: #888; margin-bottom: 12px; }
.btn-contact { display: inline-block; padding: 8px 20px; border: 1px solid #555; color: #ddd; font-size: 13px; }
.btn-contact:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

.footer-services {
    display: flex;
    justify-content: space-around;
    padding: 25px 0;
    border-bottom: 1px solid #2a2a3e;
}
.service-item { text-align: center; }
.service-item .service-title { display: block; font-size: 16px; color: #fff; font-weight: 600; margin-bottom: 4px; }
.service-item .service-desc { font-size: 12px; color: #888; }

.footer-info {
    text-align: center;
    padding: 25px 0;
    font-size: 13px;
}
.footer-info p { margin-bottom: 6px; color: #888; }
.footer-info .icp-link { color: #888; }
.footer-info .icp-link:hover { color: #fff; text-decoration: underline; }

/* ========== 活动弹窗 ========== */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.popup-overlay.show { display: flex; }
.popup-box {
    background: var(--bg-white);
    width: 420px;
    max-width: 90%;
    position: relative;
}
.popup-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}
.popup-content { padding: 30px; text-align: center; }
.popup-content h3 { font-size: 22px; margin-bottom: 15px; color: var(--accent); }
.popup-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ========== 提示消息 ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    font-size: 14px;
    z-index: 10000;
    display: none;
}
.toast.show { display: block; }

/* ========== 工单 ========== */
.ticket-status-0 { color: #ff9800; }
.ticket-status-1 { color: #2196f3; }
.ticket-status-2 { color: #4caf50; }
.ticket-status-3 { color: #999; }

/* ========== 表格 ========== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 15px; border: 1px solid var(--border-light); font-size: 14px; text-align: left; }
.data-table th { background: var(--bg-gray); font-weight: 600; color: var(--text-body); }
.data-table tr:hover { background: #fafafa; }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .goods-grid, .goods-list-grid { grid-template-columns: repeat(3, 1fr); }
    .floor-goods { grid-template-columns: repeat(2, 1fr); }
    .brand-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .goods-grid, .goods-list-grid { grid-template-columns: repeat(2, 1fr); }
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
    .search-box { order: 3; width: 100%; flex: none; }
    .nav-links { display: none; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .footer-services { flex-direction: column; gap: 15px; }
    .member-layout { flex-direction: column; }
    .member-sidebar { width: 100%; }
    .detail-top { flex-direction: column; }
    .detail-gallery { width: 100%; }
    .gallery-main { width: 100%; height: auto; aspect-ratio: 1; }
    .home-hero { flex-direction: column; }
    .hero-side { width: 100%; flex-direction: row; }
    .floor-body { flex-direction: column; }
    .floor-banner { width: 100%; min-height: 120px; }
    .floor-goods { grid-template-columns: repeat(2, 1fr); }
    .address-list, .coupon-list { grid-template-columns: 1fr; }
}
