/* ===== PC 端共享样式（所有页面共用） ===== */
:root {
  --primary: #e1251b;
  --primary-dark: #c81623;
  --primary-light: #ffe7e5;
  --accent: #ff7800;
  --bg: #f5f5f5;
  --card: #fff;
  --text: #1a1a1a;
  --text-2: #666;
  --text-3: #999;
  --border: #e8e8e8;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --seckill: #e80000;
  --live: #ff3b58;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 6px 24px rgba(0,0,0,.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; outline: none; }

/* ===== 顶部全屏轮播广告 ===== */
.top-carousel { width: 100%; height: 100px; overflow: hidden; position: relative; background: #2c2c2c; }
.top-carousel .slides { display: flex; width: 400%; height: 100%; transition: transform .6s ease; }
.top-carousel .slide { width: 25%; height: 100%; display: flex; align-items: center; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; flex-shrink: 0; padding: 0 40px; gap: 16px; }
.top-carousel .slide.s1 { background: linear-gradient(90deg, #ff5f6d, #ffc371); }
.top-carousel .slide.s2 { background: linear-gradient(90deg, #5b86e5, #36d1dc); }
.top-carousel .slide.s3 { background: linear-gradient(90deg, #11998e, #38ef7d); }
.top-carousel .slide.s4 { background: linear-gradient(90deg, #834d9b, #d04ed6); }
.top-carousel .slide .big { font-size: 32px; flex-shrink: 0; }
.top-carousel .slide .btn { background: #fff; color: #333; padding: 6px 16px; border-radius: 14px; font-size: 13px; margin-left: auto; }
.top-carousel .dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.top-carousel .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s; }
.top-carousel .dot.active { background: #fff; width: 24px; border-radius: 4px; }
.top-carousel .close { position: absolute; top: 8px; right: 12px; color: rgba(255,255,255,.8); cursor: pointer; font-size: 14px; padding: 4px 8px; }
.top-carousel .close:hover { color: #fff; }

/* ===== 顶部公告栏 ===== */
.top-bar { background: #3a3a3a; color: #ccc; font-size: 12px; padding: 6px 0; }
.top-bar .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; }
.top-bar a { margin-left: 14px; }
.top-bar a:hover { color: #fff; }

/* ===== 直播入口条 ===== */
.live-strip { background: linear-gradient(90deg, #ff3b58, #ff7e5f); color: #fff; cursor: pointer; }
.live-strip .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; height: 36px; gap: 12px; }
.live-strip .blink { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; flex-shrink: 0; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.live-strip .title { font-weight: 700; font-size: 14px; flex-shrink: 0; }
.live-strip .live-list { display: flex; gap: 16px; flex: 1; overflow: hidden; }
.live-strip .live-item { font-size: 12px; opacity: .95; cursor: pointer; padding: 0 4px; white-space: nowrap; }
.live-strip .live-item:hover { opacity: 1; text-decoration: underline; }
.live-strip .room { background: rgba(0,0,0,.25); padding: 4px 12px; border-radius: 12px; font-size: 12px; flex-shrink: 0; }

/* ===== 头部 ===== */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; gap: 40px; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo .badge { background: var(--primary); color: #fff; padding: 2px 6px; font-size: 11px; border-radius: 4px; font-weight: 500; }
.search-box { flex: 1; display: flex; border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; max-width: 600px; }
.search-box input { flex: 1; padding: 10px 12px; border: none; font-size: 14px; }
.search-box button { background: var(--primary); color: #fff; padding: 0 24px; font-weight: 600; }
.search-tags { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.search-tags span:hover { color: var(--primary); cursor: pointer; }
.header-cart { position: relative; padding: 8px 18px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.header-cart .badge-count { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; }
#userArea { cursor: pointer; padding: 8px 14px; color: var(--text-2); }

/* ===== 导航 ===== */
.nav { background: #fff; border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 28px; }
.nav-inner a { padding: 14px 0; font-size: 14px; color: var(--text-2); cursor: pointer; transition: color .2s; }
.nav-inner a:hover, .nav-inner a.active { color: var(--primary); font-weight: 600; }
.nav-inner .seckill-link { color: var(--seckill); font-weight: 700; }
.nav-inner .live-link { color: var(--live); font-weight: 700; }

/* ===== 容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }

/* ===== 按钮 ===== */
.btn-primary { background: var(--primary); color: #fff; padding: 12px 36px; border-radius: 24px; font-size: 16px; font-weight: 600; display: inline-block; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--primary); padding: 12px 36px; border-radius: 24px; font-size: 16px; font-weight: 600; border: 1px solid var(--primary); }
.btn-secondary { background: var(--accent); color: #fff; padding: 12px 36px; border-radius: 24px; font-size: 16px; font-weight: 600; }

/* ===== 商品卡片 ===== */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.product-card { background: #fff; border-radius: var(--radius); padding: 14px; cursor: pointer; transition: all .2s; border: 1px solid transparent; }
.product-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateY(-4px); }
.product-card .img { background: #f7f7f7; border-radius: 6px; height: 180px; display: flex; align-items: center; justify-content: center; font-size: 64px; margin-bottom: 10px; position: relative; }
.product-card .title { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; margin-bottom: 8px; }
.product-card .price { color: var(--primary); font-weight: 700; font-size: 18px; }
.product-card .origin { color: var(--text-3); text-decoration: line-through; font-size: 12px; margin-left: 6px; }
.product-card .tags { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.product-card .tag { background: var(--primary-light); color: var(--primary); font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.product-card .seckill-badge { position: absolute; top: 8px; left: 8px; background: var(--seckill); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }

/* ===== 通用组件 ===== */
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.section-title h2 { font-size: 22px; font-weight: 700; }
.section-title h2 small { font-size: 13px; color: var(--text-3); font-weight: 400; margin-left: 8px; }
.section-title .more { color: var(--text-2); font-size: 13px; cursor: pointer; }
.section-title .more:hover { color: var(--primary); }

.seckill-bar { background: linear-gradient(90deg, #e80000, #ff5a3d); color: #fff; padding: 18px 24px; border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.seckill-bar .timer { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.seckill-bar .timer .num { background: #2c2c2c; color: #fff; padding: 4px 8px; border-radius: 4px; font-weight: 700; min-width: 32px; text-align: center; }

.empty-state { text-align: center; padding: 80px 0; color: var(--text-3); }
.empty-state .emoji { font-size: 80px; margin-bottom: 16px; }

/* ===== Toast ===== */
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.85); color: #fff; padding: 12px 24px; border-radius: 6px; z-index: 9999; }

/* ===== Footer ===== */
.footer { background: #2b2b2b; color: #999; padding: 40px 0; margin-top: 40px; text-align: center; font-size: 13px; }
.footer .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.footer .links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer .links a { color: #ccc; }
.footer .links a:hover { color: #fff; }