/* ============================================================
   极光数码 AURORA DIGITAL — 电商首页样式
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-d: #1d4ed8;
  --primary-l: #eff6ff;
  --accent: #f43f5e;
  --accent-l: #fff1f2;
  --orange: #f97316;
  --green: #10b981;
  --purple: #7c3aed;
  --danger: #e11d48;
  --danger-l: #fff1f2;
  --success: #059669;
  --success-l: #ecfdf5;
  --warn: #d97706;
  --warn-l: #fffbeb;
  --text: #1f2937;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --bg: #f5f7fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(15, 23, 42, .06);
  --shadow-h: 0 12px 28px rgba(15, 23, 42, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 40px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

.container { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 16px; }

/* ================= 顶部公告条 ================= */
.notice-bar {
  background: linear-gradient(90deg, #1e3a8a, #2563eb 55%, #7c3aed);
  color: #fff; font-size: 13px;
}
.notice-inner { display: flex; align-items: center; gap: 12px; height: 36px; }
.notice-tag {
  background: rgba(255,255,255,.22); padding: 2px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.notice-links { margin-left: auto; display: flex; gap: 16px; opacity: .9; }
.notice-links a:hover { text-decoration: underline; }

/* ================= 头部 ================= */
.site-header { background: #fff; position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 92px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-size: 24px; font-weight: 800;
}
.logo-text b { display: block; font-size: 20px; letter-spacing: 1px; color: #111827; }
.logo-text i { display: block; font-size: 11px; font-style: normal; color: var(--text-3); letter-spacing: 2px; }

/* 搜索 */
.search-box { flex: 1; max-width: 620px; position: relative; }
.search-input-wrap {
  display: flex; align-items: center; height: 44px; border-radius: 22px;
  border: 2px solid var(--primary); overflow: hidden; background: #fff;
}
.search-input-wrap input {
  flex: 1; border: none; outline: none; padding: 0 18px; font-size: 14px; color: var(--text);
}
.search-input-wrap input::placeholder { color: var(--text-3); }
.search-btn {
  width: 78px; height: 100%; background: var(--primary); color: #fff;
  font-size: 16px; display: grid; place-items: center; transition: .2s;
}
.search-btn:hover { background: var(--primary-d); }

.hot-words { display: flex; gap: 12px; margin-top: 7px; font-size: 12px; color: var(--text-3); }
.hot-words a:hover { color: var(--primary); }

.search-suggest {
  position: absolute; top: 46px; left: 0; right: 0; background: #fff; z-index: 70;
  border-radius: 12px; box-shadow: var(--shadow-h); overflow: hidden; display: none;
}
.search-suggest.show { display: block; }
.sg-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer;
  border-bottom: 1px solid #f3f4f6; font-size: 13px;
}
.sg-item:last-child { border-bottom: none; }
.sg-item:hover { background: var(--primary-l); }
.sg-item img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #f8fafc; }
.sg-item .sg-name { flex: 1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-item .sg-price { color: var(--accent); font-weight: 700; }
.sg-empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 13px; }

/* 头部操作 */
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.h-act {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: 10px; font-size: 12px; color: var(--text-2);
  position: relative; transition: .2s;
}
.h-act:hover { background: var(--primary-l); color: var(--primary); }
.h-ico { font-size: 18px; }
.cart-badge {
  position: absolute; top: 0; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff; border-radius: 9px; font-size: 11px;
  font-style: normal; display: grid; place-items: center; line-height: 1;
}

/* 主导航 */
.main-nav { border-top: 1px solid var(--border); background: #fff; }
.nav-inner { display: flex; align-items: center; height: 44px; position: relative; }
.nav-all {
  width: 220px; height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 0 18px; background: linear-gradient(90deg, #1e40af, #2563eb); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; position: relative;
}
.nav-dropdown {
  position: absolute; top: 44px; left: 0; width: 220px; background: rgba(17,24,39,.94);
  padding: 8px 0; display: none; z-index: 80; border-radius: 0 0 10px 10px;
}
.nav-all:hover .nav-dropdown { display: block; }
.nd-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px; color: #e5e7eb; font-size: 13px;
}
.nd-item:hover { background: rgba(37,99,235,.85); color: #fff; }
.nd-item img { width: 20px; height: 20px; }
.nd-item span { margin-left: auto; font-size: 11px; opacity: .6; }

.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 0 16px; font-size: 14px; color: var(--text-2); line-height: 44px; position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.hot { color: var(--accent); font-weight: 600; }
.nav-links a.hot::after {
  content: "HOT"; position: absolute; top: 4px; right: -2px; font-size: 9px;
  background: var(--accent); color: #fff; padding: 0 3px; border-radius: 3px;
}
.nav-extra { margin-left: auto; font-size: 12px; color: var(--text-3); }
.nav-extra b { color: var(--primary); }

/* ================= Hero 区 ================= */
.hero { display: grid; grid-template-columns: 220px 1fr 240px; gap: 16px; margin-top: 16px; }

.hero-side {
  background: #fff; border-radius: var(--radius); padding: 8px 0; box-shadow: var(--shadow);
}
.side-cats li {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px;
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: .18s;
}
.side-cats li img { width: 24px; height: 24px; }
.side-cats li:hover { background: var(--primary-l); color: var(--primary); padding-left: 20px; }
.side-cats li .arrow { margin-left: auto; opacity: .35; }

/* 轮播 */
.hero-slider {
  position: relative; height: 400px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #dbeafe;
}
.slides { width: 100%; height: 100%; position: relative; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 64px;
  background: rgba(0,0,0,.28); color: #fff; font-size: 30px; line-height: 1;
  opacity: 0; transition: .25s; border-radius: 6px;
}
.hero-slider:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: rgba(0,0,0,.45); }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }

.dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button {
  width: 10px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.5); transition: .25s;
}
.dots button.active { width: 26px; background: #fff; }

/* 右侧 */
.hero-right { display: flex; flex-direction: column; gap: 12px; }
.user-card {
  background: #fff; border-radius: var(--radius); padding: 18px 16px; text-align: center;
  box-shadow: var(--shadow);
}
.avatar {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-size: 22px; font-weight: 700;
}
.user-card .hi { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.user-btns { display: flex; gap: 8px; }
.btn-primary-sm, .btn-ghost-sm {
  flex: 1; height: 32px; border-radius: 16px; font-size: 13px; transition: .2s;
}
.btn-primary-sm { background: var(--primary); color: #fff; }
.btn-primary-sm:hover { background: var(--primary-d); }
.btn-ghost-sm { border: 1px solid var(--primary); color: var(--primary); }
.btn-ghost-sm:hover { background: var(--primary-l); }
.user-perks { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.user-perks span {
  font-size: 11px; color: var(--accent); background: var(--accent-l); padding: 3px 8px; border-radius: 4px;
}

.quick-grid {
  flex: 1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden;
}
.q-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: #fff; font-size: 12px; color: var(--text-2); transition: .2s; padding: 10px 4px;
}
.q-item:hover { background: var(--primary-l); color: var(--primary); }
.q-item i { font-size: 22px; font-style: normal; }

/* ================= 服务保障 ================= */
.service-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); margin: 16px 0 4px; padding: 18px 0;
}
.sv-item { display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid var(--border); }
.sv-item:last-child { border-right: none; }
.sv-ico { font-size: 24px; }
.sv-item b { display: block; font-size: 14px; }
.sv-item span { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ================= 通用区块 ================= */
.block { margin-top: 34px; }
.block-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.block-head h2 { font-size: 24px; font-weight: 700; display: flex; align-items: baseline; gap: 12px; }
.block-head h2 span { font-size: 13px; font-weight: 400; color: var(--text-3); }
.block-head .more { margin-left: auto; font-size: 13px; color: var(--text-3); }
.block-head .more:hover { color: var(--primary); }

.chip {
  padding: 6px 14px; border-radius: 16px; border: 1px solid var(--border); background: #fff;
  font-size: 13px; color: var(--text-2); transition: .2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filters { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ================= 分类宫格 ================= */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-card {
  background: #fff; border-radius: var(--radius); padding: 20px 10px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer; transition: .25s; border: 1px solid transparent;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: #dbeafe; }
.cat-card img { width: 46px; height: 46px; margin: 0 auto 10px; }
.cat-card b { display: block; font-size: 14px; margin-bottom: 3px; }
.cat-card span { display: block; font-size: 11px; color: var(--text-3); }

/* ================= 秒杀 ================= */
.seckill-head { align-items: center; }
.seckill-timer {
  display: flex; align-items: center; gap: 6px; margin-left: 8px;
  background: #111827; color: #fff; padding: 7px 14px; border-radius: 8px;
}
.timer-label { font-size: 12px; opacity: .8; margin-right: 4px; }
.seckill-timer b {
  background: #fff; color: #111827; border-radius: 4px; padding: 2px 6px;
  font-size: 15px; min-width: 30px; text-align: center; font-variant-numeric: tabular-nums;
}
.seckill-timer i { font-style: normal; font-weight: 700; }

.round-tabs { margin-left: auto; display: flex; gap: 8px; }
.round-tab {
  padding: 6px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2); transition: .2s; text-align: center;
}
.round-tab small { display: block; font-size: 10px; color: var(--text-3); }
.round-tab:hover { border-color: var(--accent); }
.round-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.round-tab.active small { color: rgba(255,255,255,.85); }

.seckill-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sk-card {
  background: #fff; border-radius: var(--radius); padding: 14px; display: flex; gap: 12px;
  align-items: center; box-shadow: var(--shadow); transition: .25s; border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.sk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: #ffe4e6; }
.sk-card img { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; background: #f8fafc; border-radius: 10px; }
.sk-info { flex: 1; min-width: 0; }
.sk-name { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; color: var(--text); }
.sk-price { color: var(--accent); font-size: 20px; font-weight: 700; margin: 6px 0 2px; }
.sk-price small { font-size: 12px; }
.sk-origin { font-size: 12px; color: var(--text-3); text-decoration: line-through; margin-left: 6px; }
.sk-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.sk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f43f5e, #fb923c); border-radius: 4px; }
.sk-stock { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.sk-btn {
  margin-top: 8px; width: 100%; height: 32px; border-radius: 16px; background: var(--accent);
  color: #fff; font-size: 13px; font-weight: 600; transition: .2s;
}
.sk-btn:hover { background: #e11d48; }
.sk-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

/* ================= 商品卡片 ================= */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: .25s; cursor: pointer; position: relative; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.pc-img { position: relative; background: #f8fafc; aspect-ratio: 1/0.8; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.product-card:hover .pc-img img { transform: scale(1.06); }
.pc-badge {
  position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, #f43f5e, #f97316);
  color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 12px; font-weight: 600; z-index: 2;
}
.pc-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.pc-name {
  font-size: 13px; line-height: 1.5; height: 39px; overflow: hidden; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0; min-height: 20px; }
.pc-tag { font-size: 10px; color: var(--primary); background: var(--primary-l); padding: 2px 6px; border-radius: 3px; }
.pc-price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.pc-price .cur { color: var(--accent); font-size: 19px; font-weight: 700; }
.pc-price .cur small { font-size: 12px; }
.pc-price .ori { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.pc-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-size: 11px; color: var(--text-3);
}
.pc-meta .rating { color: var(--orange); font-weight: 600; }
.pc-cart {
  position: absolute; right: 10px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 17px; display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: .25s; box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.product-card:hover .pc-cart { opacity: 1; transform: translateY(0); }
.pc-cart:hover { background: var(--primary-d); }

.load-more-wrap { text-align: center; margin-top: 22px; }
.btn-outline {
  padding: 11px 44px; border: 1px solid var(--border); border-radius: 24px; background: #fff;
  color: var(--text-2); font-size: 14px; transition: .2s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
.btn-outline:disabled { opacity: .5; cursor: not-allowed; }

/* ================= 促销活动 ================= */
.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.promo-card {
  background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
  position: relative; overflow: hidden; transition: .25s; cursor: pointer;
}
.promo-card::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; opacity: .1;
}
.promo-card.t-blue::before { background: var(--primary); }
.promo-card.t-red::before { background: var(--accent); }
.promo-card.t-green::before { background: var(--green); }
.promo-card.t-purple::before { background: var(--purple); }
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.promo-card h3 { font-size: 17px; margin-bottom: 6px; }
.promo-card p { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.promo-amount { font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.t-blue .promo-amount { color: var(--primary); }
.t-red .promo-amount { color: var(--accent); }
.t-green .promo-amount { color: var(--green); }
.t-purple .promo-amount { color: var(--purple); }
.promo-amount small { font-size: 13px; font-weight: 600; margin-left: 3px; }
.promo-cond { font-size: 12px; color: var(--text-2); background: #f8fafc; display: inline-block; padding: 3px 9px; border-radius: 4px; margin-bottom: 14px; }
.promo-btn {
  padding: 7px 20px; border-radius: 18px; font-size: 13px; font-weight: 600; color: #fff;
}
.t-blue .promo-btn { background: var(--primary); }
.t-red .promo-btn { background: var(--accent); }
.t-green .promo-btn { background: var(--green); }
.t-purple .promo-btn { background: var(--purple); }

.promo-banner {
  margin-top: 16px; border-radius: var(--radius); overflow: hidden; display: grid;
  grid-template-columns: 320px 1fr; background: linear-gradient(120deg, #1e3a8a, #2563eb 60%, #7c3aed);
  color: #fff; box-shadow: var(--shadow);
}
.pb-left { padding: 34px 32px; }
.pb-tag { font-size: 12px; letter-spacing: 3px; opacity: .8; margin-bottom: 8px; }
.pb-left h3 { font-size: 27px; margin-bottom: 10px; }
.pb-desc { font-size: 13px; opacity: .9; margin-bottom: 20px; line-height: 1.7; }
.pb-left .btn-primary { background: #fff; color: var(--primary); }
.pb-left .btn-primary:hover { background: #f1f5f9; }
.pb-right {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 24px;
  background: rgba(255,255,255,.08); align-items: center;
}
.pb-item { background: #fff; border-radius: 12px; padding: 10px; text-align: center; color: var(--text); }
.pb-item img { width: 100%; aspect-ratio: 1/0.8; object-fit: contain; background: #f8fafc; border-radius: 8px; }
.pb-item b { display: block; font-size: 12px; margin-top: 7px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-item span { display: block; font-size: 14px; color: var(--accent); font-weight: 700; margin-top: 3px; }

/* ================= 分类楼层 ================= */
.floor-tabs { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.floor-tab {
  padding: 6px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2); transition: .2s;
}
.floor-tab:hover { border-color: var(--primary); color: var(--primary); }
.floor-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ================= 页脚 ================= */
.site-footer { margin-top: 46px; background: #fff; border-top: 1px solid var(--border); }
.footer-service {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 16px;
  border-bottom: 1px solid var(--border);
}
.fs-item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.fs-ico { font-size: 26px; }
.fs-item b { display: block; font-size: 14px; }
.fs-item span { font-size: 12px; color: var(--text-3); }

.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 32px 16px; }
.f-col h4 { font-size: 14px; margin-bottom: 14px; }
.f-col a { display: block; font-size: 12px; color: var(--text-3); line-height: 2; }
.f-col a:hover { color: var(--primary); }
.f-contact .tel { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.f-contact p { font-size: 12px; color: var(--text-3); }
.f-qr { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.f-qr span { font-size: 30px; }
.f-qr b { display: block; font-size: 13px; }
.f-qr i { font-style: normal; font-size: 11px; color: var(--text-3); }

.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 16px; text-align: center;
  font-size: 12px; color: var(--text-3);
}
.f-links { margin-top: 8px; }
.f-links a { color: var(--text-3); padding: 0 8px; }
.f-links a:hover { color: var(--primary); }

/* ================= 购物车抽屉 ================= */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 90;
  opacity: 0; visibility: hidden; transition: .28s;
}
.drawer-mask.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; width: 380px; max-width: 90vw; height: 100%; background: #fff;
  z-index: 100; transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; box-shadow: -8px 0 28px rgba(15,23,42,.15);
}
.cart-drawer.show { transform: translateX(0); }
.cd-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.cd-head h3 { font-size: 17px; }
.cd-head button { font-size: 26px; color: var(--text-3); line-height: 1; }
.cd-head button:hover { color: var(--text); }
.cd-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cd-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.cd-item img { width: 62px; height: 62px; object-fit: contain; background: #f8fafc; border-radius: 8px; }
.cd-info { flex: 1; min-width: 0; }
.cd-name { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; }
.cd-price { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 4px; }
.cd-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cd-qty button {
  width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-2); font-size: 14px; line-height: 1;
}
.cd-qty button:hover { border-color: var(--primary); color: var(--primary); }
.cd-qty span { font-size: 13px; min-width: 20px; text-align: center; }
.cd-empty { text-align: center; padding: 70px 0; color: var(--text-3); font-size: 14px; }
.cd-empty i { font-size: 46px; display: block; margin-bottom: 12px; opacity: .5; font-style: normal; }
.cd-foot {
  padding: 16px 20px; border-top: 1px solid var(--border); display: flex;
  align-items: center; justify-content: space-between;
}
.cd-total { font-size: 14px; }
.cd-total b { color: var(--accent); font-size: 20px; }
.cd-foot .btn-primary { padding: 10px 28px; }

/* ================= 通用按钮 / 提示 ================= */
.btn-primary {
  padding: 11px 30px; border-radius: 24px; background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 600; transition: .2s;
}
.btn-primary:hover { background: var(--primary-d); box-shadow: 0 6px 18px rgba(37,99,235,.3); }

.toast {
  position: fixed; left: 50%; top: 90px; transform: translate(-50%, -16px);
  background: rgba(17,24,39,.92); color: #fff; padding: 11px 24px; border-radius: 24px;
  font-size: 14px; z-index: 200; opacity: 0; visibility: hidden; transition: .28s; pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.back-top {
  position: fixed; right: 24px; bottom: 40px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-h); color: var(--text-2); font-size: 20px;
  opacity: 0; visibility: hidden; transition: .28s; z-index: 50;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary); color: #fff; }

/* ================= 骨架屏 ================= */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ================= 响应式 ================= */
@media (max-width: 1240px) {
  .container { width: 100%; }
  .hero { grid-template-columns: 200px 1fr; }
  .hero-right { display: none; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .seckill-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .search-box { max-width: none; }
  .nav-links, .nav-extra { display: none; }
  .notice-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .hero-slider { height: 260px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-banner { grid-template-columns: 1fr; }
  .pb-right { grid-template-columns: repeat(2, 1fr); }
  .service-bar, .footer-service { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sv-item { border-right: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .seckill-list { grid-template-columns: 1fr; }
  .block-head h2 { font-size: 20px; }
}
@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  .search-box { order: 3; width: 100%; }
  .header-actions { margin-left: auto; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-card { padding: 14px 6px; }
  .cat-card img { width: 36px; height: 36px; }
}
