/* ============================================================
   杭州聒莎科技有限公司 · 聒莎文创
   共用样式表 —— 设计系统单一真相源
   风格取向：国内文创生活电商（九木杂物社 / 无印良品网店感）
   米白底 · 焦糖棕主色 · 价格红 · 白底商品卡 · 手作暖调
   ============================================================ */

:root {
  --brand: #a76e4e;          /* 焦糖棕 */
  --brand-dark: #8a5638;
  --brand-light: #f6ede5;
  --gold: #c9a05a;           /* 礼盒金 */
  --gold-bg: #faf3e6;
  --red: #e1251b;            /* 价格红 */
  --green: #3d7a52;          /* 辅助墨绿（包邮/有货） */
  --dark: #2b2420;           /* 页脚深棕黑 */
  --ink-1: #262220;
  --ink-2: #5c5450;
  --ink-3: #8c8480;
  --ink-4: #b5aeaa;
  --line: #e9e2db;
  --line-2: #f1ece6;
  --bg: #faf7f2;
  --nav-h: 62px;
  font-size: 14px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: var(--ink-1); background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, select, textarea { font-family: inherit; outline: none; }
table { border-collapse: collapse; }

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

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 22px; font-size: 14px; border-radius: 4px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c31f16; }
.btn-red-outline { background: #fff; color: var(--red); border-color: var(--red); }
.btn-red-outline:hover { background: #fdf0ef; }
.btn-gold { background: linear-gradient(135deg, #d9b478, #c9a05a); color: #4d3a1a; font-weight: 600; }
.btn-gold:hover { background: linear-gradient(135deg, #cfa768, #bc934c); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 12px 30px; font-size: 15px; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============ 顶部窄条 ============ */
.topbar {
  background: var(--bg); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.tb-left { display: flex; align-items: center; gap: 6px; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.tb-right a { color: var(--ink-3); }
.tb-right a:hover { color: var(--brand); }
.tb-right .sep { width: 1px; height: 10px; background: var(--line); }
.tb-right .reg { color: var(--brand); }

/* ============ 主导航 ============ */
.site-header {
  background: #fff; border-bottom: 2px solid var(--brand);
  position: sticky; top: 0; z-index: 100;
}
.nav { display: flex; align-items: center; height: var(--nav-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; background: var(--brand); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 21px; font-weight: 700; color: var(--ink-1); letter-spacing: 1px; }
.brand-name em { font-style: normal; color: var(--brand); }
.brand-slogan {
  font-size: 11px; color: var(--ink-4); border-left: 1px solid var(--line);
  padding-left: 10px; line-height: 1.5;
}

.nav-search {
  flex: 1; max-width: 400px; display: flex; align-items: center;
  border: 2px solid var(--brand); border-radius: 4px; overflow: hidden; height: 38px;
}
.nav-search input { flex: 1; border: none; padding: 0 12px; font-size: 13px; height: 100%; }
.nav-search button {
  background: var(--brand); color: #fff; padding: 0 18px; height: 100%;
  display: flex; align-items: center; gap: 4px; font-size: 13px;
}
.nav-search button:hover { background: var(--brand-dark); }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a { padding: 6px 12px; font-size: 15px; color: var(--ink-1); border-radius: 4px; }
.nav-menu a:hover { color: var(--brand); }
.nav-menu a.active { color: var(--brand); font-weight: 600; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.link-login { font-size: 14px; color: var(--ink-2); }
.link-login:hover { color: var(--brand); }
.cart-link {
  position: relative; display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-1); padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 4px;
}
.cart-link:hover { border-color: var(--brand); color: var(--brand); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px;
  background: var(--red); color: #fff; font-size: 11px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink-1);
  position: absolute; left: 10px; transition: transform .2s;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }

/* ============ 促销通告条 ============ */
.promo-bar {
  background: linear-gradient(90deg, #b5734e, #a76e4e);
  color: #fff; font-size: 13px;
}
.promo-bar .container { display: flex; align-items: center; justify-content: center; gap: 10px; height: 36px; }
.promo-bar .pb-tag {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  padding: 1px 8px; border-radius: 999px; font-size: 11px; flex-shrink: 0;
}
.promo-bar b { color: #ffe9b8; }
.promo-bar a { color: #ffe9b8; text-decoration: underline; margin-left: 6px; }

/* ============ 公告栏 ============ */
.notice-bar {
  background: #fffdf7; border-bottom: 1px solid #f0e6d2;
  font-size: 12px; color: #8a6d3b; overflow: hidden;
}
.notice-bar .container { display: flex; align-items: center; height: 34px; gap: 8px; }
.nb-ico { color: var(--gold); display: flex; flex-shrink: 0; }
.nb-track { flex: 1; overflow: hidden; white-space: nowrap; display: flex; gap: 48px; }
.nb-track .item { display: inline-flex; align-items: center; gap: 6px; }
.nb-track .tag { padding: 0 5px; border-radius: 2px; font-size: 11px; line-height: 16px; flex-shrink: 0; }
.nb-track .tag.up { background: var(--brand-light); color: var(--brand); }
.nb-track .tag.mt { background: var(--gold-bg); color: #a07f3c; border: 1px solid #ead9b5; }
.nb-more { color: var(--gold); flex-shrink: 0; }

/* ============ Hero 轮播横幅 ============ */
.hero {
  position: relative; overflow: hidden; background: var(--dark);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .52; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,22,16,.78) 22%, rgba(30,22,16,.28) 70%); }
.hero-inner { position: relative; padding: 60px 0 64px; max-width: 560px; }
.hero .h-season {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,233,184,.14); border: 1px solid rgba(255,233,184,.4);
  color: #ffe9b8; font-size: 12px; padding: 3px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: 32px; color: #fff; font-weight: 700; letter-spacing: 1px; line-height: 1.35; }
.hero h1 em { font-style: normal; color: #ffd28a; }
.hero .hero-sub { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.8; }
.hero-cta { margin-top: 24px; display: flex; gap: 12px; }
.hero-meta { margin-top: 26px; display: flex; gap: 30px; }
.hero-meta .m b { display: block; font-size: 19px; color: #fff; font-weight: 700; }
.hero-meta .m span { font-size: 12px; color: rgba(255,255,255,.55); }

/* ============ 服务保障条 ============ */
.svc-bar { background: #fff; border-bottom: 1px solid var(--line); }
.svc-bar .container { display: flex; }
.svc-item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 10px; font-size: 13px; color: var(--ink-2);
  border-right: 1px solid var(--line-2);
}
.svc-item:last-child { border-right: none; }
.svc-item .si { color: var(--brand); display: flex; flex-shrink: 0; }
.svc-item b { color: var(--ink-1); font-weight: 600; }

/* ============ 区块通用 ============ */
.section { padding: 42px 0 10px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.bh-left { display: flex; align-items: baseline; gap: 12px; }
.bh-left h2 { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.bh-left h2::before { content: "— "; color: var(--brand); font-weight: 400; }
.bh-sub { font-size: 13px; color: var(--ink-3); }
.block-head .more { font-size: 13px; color: var(--ink-3); }
.block-head .more:hover { color: var(--brand); }

/* ============ 分类入口 ============ */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  position: relative; border-radius: 6px; overflow: hidden; height: 130px; display: block;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .cc-mask {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,16,.05), rgba(30,22,16,.55));
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 12px; gap: 1px;
}
.cat-card h3 { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.cat-card span { color: rgba(255,255,255,.85); font-size: 11px; }

/* ============ 商品卡 ============ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: box-shadow .18s, transform .18s; display: block; position: relative;
}
.prod-card:hover { box-shadow: 0 6px 20px rgba(60,40,20,.1); transform: translateY(-2px); }
.prod-thumb { position: relative; overflow: hidden; background: var(--bg); }
.prod-thumb img { width: 100%; height: 218px; object-fit: cover; }
.prod-badge {
  position: absolute; top: 10px; left: 10px; padding: 1px 8px; border-radius: 2px;
  font-size: 11px; font-weight: 600; line-height: 19px; color: #fff;
}
.prod-badge.hot { background: var(--red); }
.prod-badge.new { background: var(--green); }
.prod-badge.gift { background: linear-gradient(135deg, #d9b478, #c9a05a); color: #4d3a1a; }
.prod-info { padding: 12px 14px 14px; }
.prod-name {
  font-size: 14px; color: var(--ink-1); line-height: 1.5; height: 42px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-name:hover { color: var(--brand); }
.prod-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.prod-price { color: var(--red); font-weight: 700; }
.prod-price .cur { font-size: 12px; }
.prod-price b { font-size: 19px; }
.prod-price .orig { font-size: 12px; color: var(--ink-4); text-decoration: line-through; font-weight: 400; margin-left: 5px; }
.prod-sales { font-size: 12px; color: var(--ink-4); }
.prod-tags { display: flex; gap: 5px; margin-top: 8px; }
.prod-tag {
  font-size: 11px; padding: 0 6px; line-height: 18px; border-radius: 2px;
  border: 1px solid #f3d6c4; color: var(--brand); background: #fdf7f2;
}
.prod-tag.free { border-color: #cfe3d6; color: var(--green); background: #f2f9f4; }

/* ============ 礼盒横幅 ============ */
.gift-banner {
  position: relative; border-radius: 8px; overflow: hidden; margin-top: 6px;
  display: flex; align-items: center; min-height: 170px; background: var(--dark);
}
.gift-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.gift-banner .gb-inner { position: relative; padding: 30px 40px; }
.gift-banner h3 { color: #ffd28a; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.gift-banner p { color: rgba(255,255,255,.82); font-size: 13px; margin: 6px 0 14px; }

/* ============ 面包屑 ============ */
.crumb { background: var(--bg); border-bottom: 1px solid var(--line-2); }
.crumb .container { display: flex; align-items: center; gap: 8px; height: 42px; font-size: 12px; color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb .cur { color: var(--ink-1); }

/* ============ 商品列表页 ============ */
.shop-page { padding: 20px 0 48px; background: var(--bg); }
.shop-layout { display: flex; gap: 18px; }
.filter-side { width: 190px; flex-shrink: 0; }
.fs-box { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 14px; background: #fff; }
.fs-head { background: var(--bg); padding: 10px 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.fs-body { padding: 8px 0; }
.fs-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.fs-item:hover { color: var(--brand); background: var(--brand-light); }
.fs-item.active { color: var(--brand); font-weight: 600; background: var(--brand-light); }
.fs-item .cnt { font-size: 11px; color: var(--ink-4); }
.shop-main { flex: 1; min-width: 0; }
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-size: 13px; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px;
}
.st-sorts { display: flex; gap: 2px; }
.st-sort { padding: 4px 12px; border-radius: 3px; cursor: pointer; }
.st-sort:hover { color: var(--brand); }
.st-sort.active { color: var(--brand); background: var(--brand-light); font-weight: 600; }
.shop-main .prod-grid { grid-template-columns: repeat(4, 1fr); }

/* ============ 商品详情页 ============ */
.pd-page { padding: 26px 0 48px; }
.pd-top { display: flex; gap: 32px; }
.pd-gallery { width: 460px; flex-shrink: 0; }
.pd-mainimg {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg);
}
.pd-mainimg img { width: 100%; height: 460px; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd-thumb {
  width: 74px; height: 74px; border: 2px solid var(--line); border-radius: 4px;
  overflow: hidden; cursor: pointer; background: var(--bg);
}
.pd-thumb.active { border-color: var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery .pg-svc { margin-top: 14px; font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.pd-gallery .pg-svc span { display: flex; align-items: center; gap: 4px; }
.pd-gallery .pg-svc .ck { color: var(--green); font-weight: 700; }

.pd-buy { flex: 1; min-width: 0; }
.pd-title { font-size: 21px; font-weight: 700; line-height: 1.45; }
.pd-subtitle { font-size: 13px; color: var(--red); margin-top: 6px; }
.pd-pricebox {
  background: linear-gradient(90deg, #fdf4ec, #fbf7f1); border-radius: 6px;
  padding: 14px 18px; margin: 14px 0; display: flex; align-items: baseline; gap: 18px;
}
.pd-pricebox .label { font-size: 12px; color: var(--ink-3); }
.pd-price { color: var(--red); font-weight: 700; }
.pd-price .cur { font-size: 16px; }
.pd-price b { font-size: 30px; }
.pd-orig { font-size: 13px; color: var(--ink-4); text-decoration: line-through; }
.pd-sold { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.pd-meta-rows { font-size: 13px; color: var(--ink-2); }
.pd-meta-row { display: flex; padding: 7px 0; }
.pd-meta-row .k { width: 74px; color: var(--ink-3); flex-shrink: 0; }
.pd-meta-row .v { flex: 1; }
.pd-meta-row .v .hl { color: var(--green); }
.coupon-chip {
  display: inline-flex; align-items: center; gap: 5px; border: 1px dashed var(--red); color: var(--red);
  font-size: 12px; padding: 1px 8px; border-radius: 3px; margin-right: 8px; background: #fef7f6;
}
.sku-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.sku-opt {
  border: 1px solid var(--line); border-radius: 4px; padding: 6px 16px; font-size: 13px;
  cursor: pointer; background: #fff;
}
.sku-opt:hover { border-color: var(--brand); color: var(--brand); }
.sku-opt.selected { border-color: var(--brand); color: var(--brand); background: var(--brand-light); font-weight: 600; }
.qty-box { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.qty-box button { width: 34px; height: 34px; font-size: 16px; color: var(--ink-2); background: var(--bg); }
.qty-box button:hover { color: var(--brand); }
.qty-box input { width: 48px; text-align: center; border: none; font-size: 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pd-actions { display: flex; gap: 12px; margin-top: 20px; }
.pd-actions .btn { min-width: 150px; }
.pd-promise {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap;
}
.pd-promise span { display: flex; align-items: center; gap: 4px; }
.pd-promise .ck { color: var(--green); font-weight: 700; }

/* ============ 详情页 tab 区 ============ */
.pd-body { display: flex; gap: 20px; margin-top: 34px; align-items: flex-start; }
.pd-detail { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pd-tabs { display: flex; background: var(--bg); border-bottom: 1px solid var(--line); }
.pd-tab {
  padding: 12px 24px; font-size: 14px; color: var(--ink-2); cursor: pointer;
  border-bottom: 2px solid transparent;
}
.pd-tab.active { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); background: #fff; }
.pd-pane { display: none; padding: 22px 26px; }
.pd-pane.active { display: block; }
.pd-pane h3 { font-size: 15px; margin: 18px 0 10px; padding-left: 9px; border-left: 3px solid var(--brand); }
.pd-pane h3:first-child { margin-top: 0; }
.pd-pane p { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; margin-bottom: 8px; }
.spec-table { width: 100%; font-size: 13px; margin: 8px 0 6px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; }
.spec-table th { background: var(--bg); color: var(--ink-3); font-weight: 500; width: 130px; }
.pd-pane .pd-photo { border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; margin: 12px 0; }

/* 评价 */
.rv-summary { display: flex; align-items: center; gap: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.rv-score b { font-size: 34px; color: var(--red); font-weight: 700; }
.rv-score span { font-size: 12px; color: var(--ink-3); display: block; }
.rv-dist { font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; }
.rv-dist b { color: var(--ink-1); }
.rv-item { padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.rv-item:last-child { border-bottom: none; }
.rv-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.rv-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.rv-user { color: var(--ink-1); font-weight: 500; font-size: 13px; }
.rv-stars { color: #f0a020; letter-spacing: 1px; }
.rv-date { margin-left: auto; }
.rv-sku { font-size: 11px; color: var(--ink-4); margin-top: 6px; }
.rv-text { font-size: 13.5px; color: var(--ink-1); margin-top: 6px; line-height: 1.8; }
.rv-append { margin-top: 8px; background: var(--bg); border-radius: 4px; padding: 9px 12px; font-size: 12.5px; color: var(--ink-2); }
.rv-append b { color: var(--gold); }
.rv-reply { margin-top: 8px; font-size: 12.5px; color: var(--brand); background: var(--brand-light); border-radius: 4px; padding: 9px 12px; }

.pd-aside { width: 250px; flex-shrink: 0; }
.aside-box { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 14px; background: #fff; }
.ab-head { background: var(--bg); padding: 10px 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.ab-body { padding: 10px 12px; }
.mini-prod { display: flex; gap: 10px; padding: 8px 2px; }
.mini-prod img { width: 62px; height: 62px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-2); flex-shrink: 0; }
.mini-prod .mp-name { font-size: 12.5px; line-height: 1.45; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-prod .mp-price { color: var(--red); font-size: 13px; font-weight: 700; margin-top: 3px; }
.mini-prod:hover .mp-name { color: var(--brand); }

/* ============ 购物车页 ============ */
.cart-page { padding: 24px 0 48px; background: var(--bg); min-height: calc(100vh - 320px); }
.cart-table { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 13px; }
.cart-table th { background: var(--bg); padding: 11px 14px; text-align: left; color: var(--ink-3); font-weight: 500; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.ct-prod { display: flex; align-items: center; gap: 12px; }
.ct-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line-2); }
.ct-prod .name { font-size: 13.5px; line-height: 1.4; }
.ct-prod .name:hover { color: var(--brand); }
.ct-prod .sku { font-size: 11px; color: var(--ink-4); margin-top: 3px; }
.ct-price { color: var(--ink-1); }
.ct-sub { color: var(--red); font-weight: 700; }
.ct-del { color: var(--ink-4); cursor: pointer; font-size: 12px; }
.ct-del:hover { color: var(--red); }
.cart-foot {
  margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
}
.cf-left { font-size: 12px; color: var(--ink-3); }
.cf-left .hl { color: var(--green); }
.cf-right { display: flex; align-items: center; gap: 16px; }
.cf-total { font-size: 13px; color: var(--ink-2); }
.cf-total b { color: var(--red); font-size: 22px; }
.cart-empty { text-align: center; padding: 70px 0; color: var(--ink-3); font-size: 13px; }

/* ============ 收银台 ============ */
.checkout-page { background: var(--bg); padding: 24px 0 48px; min-height: calc(100vh - 320px); }
.checkout-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.checkout-head h1 { font-size: 21px; }
.steps { display: flex; align-items: center; gap: 8px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-4); }
.step .num {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ink-4);
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.step.done { color: var(--green); }
.step.done .num { border-color: var(--green); background: var(--green); color: #fff; }
.step.active { color: var(--brand); font-weight: 600; }
.step.active .num { border-color: var(--brand); background: var(--brand); color: #fff; }
.step-line { width: 40px; height: 1px; background: var(--line); }
.step-line.done { background: var(--green); }

.checkout-layout { display: flex; gap: 18px; align-items: flex-start; }
.checkout-left { flex: 1; min-width: 0; }
.checkout-right { width: 340px; flex-shrink: 0; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 16px; overflow: hidden; }
.co-card-head {
  padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.co-card-head .ci { color: var(--brand); display: flex; }
.co-card-body { padding: 16px 18px; }

.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.addr-field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.addr-field label .req { color: var(--red); }
.addr-field input, .addr-field select, .addr-field textarea {
  width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; font-size: 13px;
}
.addr-field textarea { height: 64px; padding: 9px 12px; resize: none; }
.addr-field input:focus, .addr-field textarea:focus { border-color: var(--brand); }
.addr-field.full { grid-column: 1 / -1; }
.addr-error { display: none; font-size: 12px; color: var(--red); margin-top: 4px; }

.order-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.order-item:last-of-type { border-bottom: none; }
.order-thumb {
  width: 62px; height: 62px; border-radius: 4px; overflow: hidden; background: var(--bg);
  flex-shrink: 0; border: 1px solid var(--line);
}
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-info { flex: 1; min-width: 0; }
.order-info .name { font-size: 13px; line-height: 1.4; }
.order-info .spec { font-size: 11px; color: var(--ink-4); margin-top: 3px; }
.order-info .pq { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.order-info .pq b { color: var(--red); }
.order-table .order-line, .pay-confirm .order-line { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.order-line .k { color: var(--ink-3); }
.order-line .v.mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.order-line .v.free { color: var(--green); }
.order-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 12px;
}
.order-total .k { font-size: 13px; color: var(--ink-2); }
.order-total .amount { color: var(--red); font-weight: 700; font-size: 24px; }
.order-total .amount .cur { font-size: 14px; }

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-opt {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: 4px; padding: 12px 14px; cursor: pointer;
}
.pay-opt:hover { border-color: var(--brand); }
.pay-opt.selected { border-color: var(--brand); background: var(--brand-light); }
.pay-logo { width: 40px; height: 40px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-alipay { background: #1677ff; }
.logo-wechat { background: #07c160; }
.logo-unionpay { background: #fff; border: 1px solid var(--line); }
.pay-txt { flex: 1; }
.pay-name { font-size: 14px; font-weight: 600; }
.pay-desc { font-size: 12px; color: var(--ink-3); }
.pay-radio { width: 16px; height: 16px; border: 1.5px solid #ccc; border-radius: 50%; position: relative; }
.pay-opt.selected .pay-radio { border-color: var(--brand); }
.pay-opt.selected .pay-radio::after { content: ""; position: absolute; inset: 3px; background: var(--brand); border-radius: 50%; }
.pay-summary { margin-top: 14px; }
.pay-note { font-size: 11px; color: var(--ink-4); line-height: 1.7; margin-top: 10px; }
.pay-note a { color: var(--brand); }

.secure-bar {
  display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 18px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap;
}
.secure-item { display: flex; align-items: center; gap: 6px; }
.secure-item .si { color: var(--green); display: flex; }
.refund-link { color: var(--brand); }

/* ============ 支付成功 ============ */
.checkout-success { max-width: 560px; margin: 0 auto; padding: 30px 0 40px; }
.success-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 48px 40px; text-align: center; }
.success-icon { margin-bottom: 20px; display: flex; justify-content: center; }
.success-title { font-size: 22px; font-weight: 600; }
.success-desc { font-size: 14px; color: var(--ink-3); margin: 8px 0 28px; line-height: 1.7; }
.success-detail { text-align: left; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 28px; }
.success-detail .order-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.success-detail .order-line .k { color: var(--ink-3); }
.success-actions { display: flex; gap: 12px; justify-content: center; }
.success-actions .btn { min-width: 140px; }

/* ============ 登录 / 注册 ============ */
.auth-wrap {
  min-height: calc(100vh - 340px); display: flex; align-items: flex-start; justify-content: center;
  background: var(--bg); padding: 48px 20px 64px;
}
.auth-card { width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); }
.auth-tabs a {
  flex: 1; text-align: center; padding: 15px 0; font-size: 15px; color: var(--ink-2);
  background: var(--bg); border-bottom: 2px solid transparent;
}
.auth-tabs a.active { background: #fff; color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.auth-body { padding: 26px 30px 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.auth-input {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px;
  height: 42px; overflow: hidden;
}
.auth-input:focus-within { border-color: var(--brand); }
.ai-ico { padding: 0 10px; color: var(--ink-4); display: flex; }
.auth-input input { flex: 1; border: none; height: 100%; font-size: 14px; }
.code-btn { flex-shrink: 0; padding: 0 14px; height: 100%; font-size: 13px; color: var(--brand); border-left: 1px solid var(--line); }
.code-btn.disabled { color: var(--ink-4); cursor: not-allowed; }
.field-error { display: none; font-size: 12px; color: var(--red); margin-top: 5px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; }
.auth-row .chk { display: flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.auth-row a { color: var(--ink-3); }
.auth-row a:hover { color: var(--brand); }
.auth-agree { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.auth-agree a { color: var(--brand); }
.auth-alt { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.auth-alt a { color: var(--brand); }

/* ============ Toast ============ */
.hm-toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: rgba(43,36,32,.94); color: #fff; font-size: 13px; padding: 10px 22px;
  border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 999; max-width: 90vw; text-align: center;
}
.hm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 控制台（我的订单） ============ */
.dash-wrap { display: flex; min-height: calc(100vh - 90px); }
.dash-side { width: 200px; background: var(--dark); flex-shrink: 0; padding: 18px 0; }
.ds-user { padding: 0 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.ds-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 700;
}
.ds-phone { color: #fff; font-size: 13px; margin-top: 8px; }
.ds-plan { font-size: 11px; color: var(--gold); margin-top: 2px; }
.ds-link {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 13px;
  color: rgba(255,255,255,.65);
}
.ds-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.ds-link.active { color: #fff; background: var(--brand); }
.ds-link svg { flex-shrink: 0; }
.dash-content { flex: 1; min-width: 0; background: var(--bg); padding: 22px 24px 40px; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dp-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.sc-label { font-size: 12px; color: var(--ink-3); }
.sc-val { font-size: 24px; font-weight: 700; margin-top: 4px; }
.sc-val small { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 16px; overflow: hidden; }
.dc-head { padding: 13px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.dc-body { padding: 16px 18px; }
.data-table { width: 100%; font-size: 13px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.data-table th { color: var(--ink-3); font-weight: 500; font-size: 12px; background: var(--bg); }
.data-table tr:last-child td { border-bottom: none; }
.tag-ok { color: var(--green); background: #eef7f1; padding: 2px 8px; border-radius: 2px; font-size: 12px; }
.tag-ship { color: #1668dc; background: #eef4fd; padding: 2px 8px; border-radius: 2px; font-size: 12px; }
.tag-pending { color: #d48806; background: #fffbe6; padding: 2px 8px; border-radius: 2px; font-size: 12px; }
.form-row { margin-bottom: 14px; max-width: 420px; }
.form-row label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.form-row input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; font-size: 13px; }
.form-row input:focus { border-color: var(--brand); }

/* ============ 页头（内页通用） ============ */
.page-hd { background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hd .container { padding: 26px 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.page-hd h1 { font-size: 24px; font-weight: 700; }
.ph-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.ph-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.ph-note .ni { display: flex; color: var(--brand); }

/* ============ 文档/协议页 ============ */
.doc-page { padding: 28px 0 48px; }
.doc-body { max-width: 860px; }
.doc-body h2 { font-size: 17px; margin: 26px 0 10px; padding-left: 10px; border-left: 3px solid var(--brand); }
.doc-body p, .doc-body li { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.doc-body ul { padding-left: 18px; }
.doc-body ul li { list-style: disc; }
.doc-body .doc-meta { font-size: 12px; color: var(--ink-4); margin-bottom: 8px; }
.doc-table { width: 100%; font-size: 13px; margin: 10px 0; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.doc-table th { background: var(--bg); font-weight: 600; }

/* ============ 帮助中心/FAQ ============ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.faq-item { border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; background: #fff; }
.faq-item h4 { font-size: 14px; margin-bottom: 6px; display: flex; gap: 8px; }
.faq-item h4 .q { color: var(--brand); font-weight: 700; }
.faq-item p { font-size: 13px; color: var(--ink-2); }

/* ============ 品牌故事 ============ */
.story-hero { position: relative; overflow: hidden; background: var(--dark); }
.story-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.story-hero .sh-inner { position: relative; padding: 70px 0; text-align: center; }
.story-hero h1 { color: #fff; font-size: 28px; letter-spacing: 3px; }
.story-hero p { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 10px; }
.timeline { max-width: 720px; margin: 30px auto 0; position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
}
.tl-item .tl-date { font-size: 13px; color: var(--brand); font-weight: 700; }
.tl-item h4 { font-size: 15px; margin: 3px 0; }
.tl-item p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }

/* ============ 证照公示 ============ */
.cert-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 20px; }
.cert-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.cert-card .cc-img {
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  min-height: 300px; padding: 18px; color: var(--ink-4); font-size: 13px; flex-direction: column; gap: 10px;
}
.cert-card .cc-img img { max-height: 420px; }
.cert-card .cc-cap { padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 13px; }
.cert-card .cc-cap b { display: block; }
.cert-card .cc-cap span { font-size: 12px; color: var(--ink-3); }

/* ============ 公告列表 ============ */
.news-list { max-width: 820px; }
.news-item { display: flex; align-items: baseline; gap: 14px; padding: 13px 4px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.news-item .tag { flex-shrink: 0; font-size: 11px; padding: 1px 7px; border-radius: 2px; background: var(--brand-light); color: var(--brand); }
.news-item .tag.act { background: #fdf0ef; color: var(--red); }
.news-item a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item a:hover { color: var(--brand); }
.news-item .date { flex-shrink: 0; font-size: 12px; color: var(--ink-4); }

/* ============ 页脚 ============ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); margin-top: 48px; }
.footer-grid { display: flex; gap: 48px; padding: 40px 0 30px; }
.footer-brand { max-width: 300px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 12px; line-height: 1.8; margin-top: 12px; }
.footer-contact { font-size: 12px; margin-top: 14px; line-height: 1.8; }
.footer-contact .mail { color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 12px; padding: 4px 0; color: rgba(255,255,255,.55); }
.footer-col a:hover { color: #fff; }
.footer-pay { display: flex; gap: 8px; margin-top: 12px; }
.footer-pay .fp {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 3px; font-size: 11px; padding: 3px 9px; color: rgba(255,255,255,.75);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 12px;
  display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .links { display: flex; gap: 16px; }

/* ============ 友情链接 ============ */
.friend-links { border-top: 1px solid var(--line); padding: 16px 0; background: #fff; }
.friend-links .container { display: flex; gap: 14px; font-size: 12px; color: var(--ink-4); flex-wrap: wrap; }
.fl-label { flex-shrink: 0; }
.fl-links { display: flex; gap: 14px; flex-wrap: wrap; }
.fl-links a { color: var(--ink-3); }
.fl-links a:hover { color: var(--brand); }

/* ============ 悬浮客服条 ============ */
.floatbar {
  position: fixed; right: 14px; bottom: 90px; z-index: 90;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; box-shadow: 0 4px 14px rgba(60,40,20,.1);
}
.floatbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 62px; padding: 10px 0; font-size: 11px; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.floatbar a:last-child { border-bottom: none; }
.floatbar a:hover { color: var(--brand); background: var(--brand-light); }
.floatbar .fi { display: flex; color: var(--brand); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .prod-grid, .shop-main .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .nav-search { max-width: 240px; }
  .brand-slogan { display: none; }
  .pd-gallery { width: 380px; }
  .pd-aside { display: none; }
}

@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav-menu {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 8px 0; gap: 0; box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  .nav.open .nav-menu { display: flex; }
  .nav-menu a { padding: 12px 24px; border-radius: 0; }
  .nav-toggle { display: block; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn, .nav-actions .link-login { display: none; }
  .nav-search { display: none; }
  .desktop-only { display: none; }

  .hero-inner { padding: 40px 0 44px; max-width: 100%; }
  .hero h1 { font-size: 23px; }
  .hero-meta { gap: 20px; flex-wrap: wrap; }

  .svc-bar .container { flex-wrap: wrap; }
  .svc-item { flex: 1 1 50%; border-bottom: 1px solid var(--line-2); }

  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card { height: 96px; }
  .cat-card h3 { font-size: 13px; }
  .prod-grid, .shop-main .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prod-thumb img { height: 160px; }
  .prod-name { font-size: 13px; height: 40px; }

  .gift-banner .gb-inner { padding: 22px 20px; }

  .shop-layout { flex-direction: column; }
  .filter-side { width: 100%; display: flex; gap: 10px; overflow-x: auto; }
  .fs-box { flex-shrink: 0; min-width: 180px; }

  .pd-top { flex-direction: column; }
  .pd-gallery { width: 100%; }
  .pd-mainimg img { height: 320px; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { min-width: auto; }
  .pd-body { flex-direction: column; }
  .pd-tabs { overflow-x: auto; }
  .pd-tab { padding: 11px 16px; white-space: nowrap; flex-shrink: 0; }
  .pd-aside { display: block; width: 100%; }

  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  .cart-foot { flex-direction: column; gap: 12px; align-items: stretch; }
  .cf-right { justify-content: space-between; }

  .checkout-layout { flex-direction: column; }
  .checkout-right { width: 100%; }
  .checkout-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .addr-grid { grid-template-columns: 1fr; }

  .cert-cards { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }

  .dash-wrap { flex-direction: column; }
  .dash-side { width: 100%; padding: 0; display: flex; overflow-x: auto; }
  .ds-user { display: none; }
  .ds-link { flex-shrink: 0; padding: 12px 16px; }
  .dash-content { padding: 16px 12px 32px; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sc-val { font-size: 18px; }

  .footer-grid { flex-direction: column; gap: 22px; padding: 28px 0 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .floatbar { display: none; }

  .auth-card { width: 100%; }
  .success-actions { flex-direction: column; }
  .success-actions .btn { min-width: auto; }
}

@media (max-width: 420px) {
  .stat-cards { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ R2 完善：秒杀区 ============ */
.flash-section { background: linear-gradient(135deg, #fdf1ec, #fbf5ee); padding: 34px 0 40px; }
.flash-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.flash-head h2 { font-size: 22px; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 8px; }
.flash-timer { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.flash-timer .t {
  background: var(--dark); color: #fff; font-weight: 700; border-radius: 3px;
  padding: 2px 7px; font-size: 14px; font-family: "SF Mono", Menlo, monospace;
}
.flash-timer .c { color: var(--dark); font-weight: 700; }
.flash-head .more { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.flash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flash-card {
  background: #fff; border: 1px solid #f3ded2; border-radius: 6px; overflow: hidden; display: block;
  position: relative;
}
.flash-card img { width: 100%; height: 170px; object-fit: cover; }
.flash-tag {
  position: absolute; top: 0; left: 12px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 8px 4px; border-radius: 0 0 4px 4px;
}
.flash-info { padding: 10px 12px 12px; }
.flash-name { font-size: 13px; height: 40px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.flash-price { margin-top: 5px; display: flex; align-items: baseline; gap: 7px; }
.flash-price .now { color: var(--red); font-weight: 700; font-size: 18px; }
.flash-price .now small { font-size: 12px; }
.flash-price .was { font-size: 12px; color: var(--ink-4); text-decoration: line-through; }
.flash-bar { margin-top: 7px; height: 14px; background: #fdeae3; border-radius: 999px; position: relative; overflow: hidden; }
.flash-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #f5a08c, var(--red)); border-radius: 999px; }
.flash-bar span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #a33; font-style: normal;
}

/* ============ R2 完善：好评墙 ============ */
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wall-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.wall-head { display: flex; align-items: center; gap: 9px; }
.wall-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.wall-user b { display: block; font-size: 13px; }
.wall-user span { font-size: 11px; color: var(--ink-4); }
.wall-stars { margin-left: auto; color: #f0a020; font-size: 12px; letter-spacing: 1px; }
.wall-text { font-size: 13px; color: var(--ink-2); line-height: 1.8; margin-top: 9px; }
.wall-prod { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.wall-prod img { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; }
.wall-prod span { font-size: 12px; color: var(--ink-3); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wall-prod b { color: var(--red); font-size: 12px; }

/* ============ R2 完善：shop 活动banner + 分页 ============ */
.shop-banner {
  position: relative; border-radius: 6px; overflow: hidden; margin-bottom: 16px;
  background: var(--dark); min-height: 110px; display: flex; align-items: center;
}
.shop-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.shop-banner .sb-inner { position: relative; padding: 20px 28px; display: flex; align-items: center; gap: 22px; width: 100%; }
.shop-banner h3 { color: #ffd28a; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.shop-banner p { color: rgba(255,255,255,.85); font-size: 13px; }
.shop-banner .btn { margin-left: auto; flex-shrink: 0; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 24px; font-size: 13px; }
.pager a, .pager span {
  min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink-2); padding: 0 8px;
}
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager a:hover { color: var(--brand); border-color: var(--brand); }
.pager .info { border: none; background: none; color: var(--ink-4); }

/* ============ R2 完善：支付倒计时条 ============ */
.pay-deadline {
  display: flex; align-items: center; gap: 8px; background: #fff7f0; border: 1px solid #f5ddc8;
  border-radius: 6px; padding: 10px 16px; margin-bottom: 16px; font-size: 13px; color: #8a5a2b;
}
.pay-deadline .pd-ico { color: #d4823b; display: flex; }
.pay-deadline b { font-family: "SF Mono", Menlo, monospace; color: var(--red); font-size: 15px; }

/* ============ R2 完善：配送/发票/优惠券选择 ============ */
.opt-rows { display: flex; flex-direction: column; gap: 10px; }
.opt-row {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 14px; cursor: pointer; font-size: 13px;
}
.opt-row:hover { border-color: var(--brand); }
.opt-row.selected { border-color: var(--brand); background: var(--brand-light); }
.opt-row .or-radio { width: 15px; height: 15px; border: 1.5px solid #ccc; border-radius: 50%; position: relative; flex-shrink: 0; }
.opt-row.selected .or-radio { border-color: var(--brand); }
.opt-row.selected .or-radio::after { content: ""; position: absolute; inset: 2.5px; background: var(--brand); border-radius: 50%; }
.opt-row .or-main { flex: 1; }
.opt-row .or-main b { font-weight: 600; }
.opt-row .or-main span { color: var(--ink-3); font-size: 12px; margin-left: 8px; }
.opt-row .or-right { color: var(--ink-2); font-size: 13px; }
.opt-row .or-right.free { color: var(--green); font-weight: 600; }
.invoice-form { margin-top: 10px; display: none; }
.invoice-form.show { display: block; }
.invoice-form input {
  width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px;
  font-size: 13px; margin-bottom: 8px;
}
.invoice-form input:focus { border-color: var(--brand); }
.coupon-row {
  display: flex; align-items: center; gap: 10px; border: 1px dashed var(--red); background: #fffafa;
  border-radius: 4px; padding: 10px 14px; font-size: 13px; cursor: pointer;
}
.coupon-row .cr-tag { background: var(--red); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 2px; flex-shrink: 0; }
.coupon-row .cr-name { flex: 1; color: var(--ink-2); }
.coupon-row .cr-val { color: var(--red); font-weight: 700; }
.coupon-row .cr-check {
  width: 16px; height: 16px; border: 1.5px solid #ccc; border-radius: 3px; position: relative; flex-shrink: 0;
}
.coupon-row.selected .cr-check { background: var(--red); border-color: var(--red); }
.coupon-row.selected .cr-check::after {
  content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ============ R2 完善：扫码支付面板 ============ */
.qr-modal {
  position: fixed; inset: 0; background: rgba(20,16,12,.55); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.qr-modal.show { display: flex; }
.qr-card { background: #fff; border-radius: 10px; width: 400px; max-width: 94vw; overflow: hidden; }
.qr-head { padding: 16px 22px; color: #fff; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.qr-head.alipay { background: #1677ff; }
.qr-head.wechat { background: #07c160; }
.qr-head.unionpay { background: #00447c; }
.qr-head .close { margin-left: auto; cursor: pointer; opacity: .8; font-size: 20px; line-height: 1; }
.qr-head .close:hover { opacity: 1; }
.qr-body { padding: 22px; text-align: center; }
.qr-amount { font-size: 14px; color: var(--ink-2); }
.qr-amount b { font-size: 30px; color: var(--red); font-weight: 700; }
.qr-amount .cur { font-size: 16px; color: var(--red); }
.qr-orderno { font-size: 11px; color: var(--ink-4); margin-top: 2px; font-family: "SF Mono", Menlo, monospace; }
.qr-box {
  width: 210px; height: 210px; margin: 16px auto 10px; border: 1px solid var(--line);
  border-radius: 6px; padding: 10px; position: relative;
}
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-tip { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.qr-tip .ico { display: flex; color: var(--ink-3); }
.qr-expire { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.qr-expire b { color: var(--red); font-family: "SF Mono", Menlo, monospace; }
.qr-foot { border-top: 1px solid var(--line-2); padding: 14px 22px; display: flex; gap: 10px; }
.qr-foot .btn { flex: 1; }
.qr-secure { font-size: 11px; color: var(--ink-4); text-align: center; padding: 0 0 14px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ============ R2 完善：物流时间轴 ============ */
.ship-steps { display: flex; margin: 22px 0 6px; }
.ship-step { flex: 1; text-align: center; position: relative; }
.ship-step::before {
  content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--line);
}
.ship-step:first-child::before { display: none; }
.ship-step.done::before { background: var(--green); }
.ship-step .dot {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto; position: relative; z-index: 1;
  color: var(--ink-4); font-size: 12px;
}
.ship-step.done .dot { border-color: var(--green); background: var(--green); color: #fff; }
.ship-step.active .dot { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.ship-step b { display: block; font-size: 12px; margin-top: 6px; color: var(--ink-2); font-weight: 500; }
.ship-step.done b, .ship-step.active b { color: var(--ink-1); font-weight: 600; }
.ship-step span { font-size: 11px; color: var(--ink-4); }

@media (max-width: 860px) {
  .flash-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .flash-card img { height: 130px; }
  .wall-grid { grid-template-columns: 1fr; }
  .shop-banner .sb-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
  .shop-banner .btn { margin-left: 0; }
  .qr-foot { flex-direction: column; }
}

/* ============================================================
   R4 差异化改版：双层导航 / 浅色页脚 / 圆润风 / 衬线标题
   ============================================================ */

/* ---- 服务顶条（深棕底） ---- */
.svc-top { background: var(--dark); color: rgba(255,255,255,.85); font-size: 12px; }
.svc-top .container { display: flex; align-items: center; height: 34px; }
.st-items { display: flex; gap: 26px; }
.st-item { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.82); }
.st-item svg { color: var(--gold); }
.st-right { margin-left: auto; display: flex; gap: 16px; }
.st-right a { color: rgba(255,255,255,.75); }
.st-right a:hover { color: #fff; }

/* ---- 主导航（无菜单行，更空更大气） ---- */
.site-header { border-bottom: none; }
.nav { height: 74px; gap: 26px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.brand-name { font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 24px; letter-spacing: 2px; }
.nav-search { max-width: 460px; border-radius: 999px; height: 40px; border-width: 2px; overflow: hidden; }
.nav-search input { padding: 0 18px; }
.nav-search button { border-radius: 0 999px 999px 0; padding: 0 22px; }
.cart-link { border-radius: 999px; padding: 7px 16px; }

/* ---- 分类导航条（品牌色横条） ---- */
.cat-nav { background: var(--brand); }
.cat-nav .container { display: flex; align-items: center; gap: 4px; height: 44px; overflow-x: auto; }
.cn-all {
  display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 14px; font-weight: 600;
  padding: 0 18px 0 0; margin-right: 8px; border-right: 1px solid rgba(255,255,255,.25);
  flex-shrink: 0; white-space: nowrap;
}
.cat-nav a {
  color: rgba(255,255,255,.92); font-size: 14px; padding: 5px 16px; border-radius: 999px;
  flex-shrink: 0; white-space: nowrap;
}
.cat-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.cat-nav a.active { background: #fff; color: var(--brand); font-weight: 600; }
.cn-hot {
  margin-left: auto; color: #ffe9b8; font-size: 12px; flex-shrink: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.cn-hot::before { content: "🔥"; font-size: 12px; }

/* ---- 圆润风 ---- */
.btn { border-radius: 999px; }
.co-card, .dash-card, .prod-card, .fs-box, .aside-box, .cert-card, .faq-item, .success-card,
.auth-card, .cart-table, .cart-foot, .shop-toolbar, .pd-mainimg, .gift-banner, .shop-banner,
.flash-card, .wall-card { border-radius: 12px; }
.cat-card { border-radius: 12px; }
.order-thumb, .pd-thumb, .mini-prod img, .dl-item { border-radius: 8px; }
.pay-opt, .opt-row, .lic-opt, .coupon-row { border-radius: 10px; }
.addr-field input, .addr-field select, .addr-field textarea, .auth-input, .form-row input,
.invoice-form input { border-radius: 10px; }
.qty-box { border-radius: 8px; }
.spec-table th, .spec-table td, .doc-table th, .doc-table td { border-radius: 0; }
.pd-pricebox { border-radius: 12px; }
.pay-deadline { border-radius: 999px; }

/* ---- 衬线标题 ---- */
.bh-left h2, .page-hd h1, .hero h1, .pd-title, .success-title, .story-hero h1,
.checkout-head h1, .dp-title, .flash-head h2 {
  font-family: "Songti SC", "STSong", "SimSun", serif; letter-spacing: 1px;
}
.bh-left h2::before { content: ""; display: inline-block; width: 5px; height: 18px;
  background: var(--brand); border-radius: 3px; margin-right: 10px; vertical-align: -2px; }

/* ---- 浅色页脚 ---- */
.site-footer { background: var(--bg); color: var(--ink-2); border-top: 1px solid var(--line); overflow: hidden; }
.footer-brand .brand-name { color: var(--ink-1) !important; }
.footer-brand p { color: var(--ink-3); }
.footer-contact { color: var(--ink-3); }
.footer-contact .mail { color: var(--brand); font-weight: 600; }
.footer-col h4 { color: var(--ink-1); }
.footer-col a { color: var(--ink-3); }
.footer-col a:hover { color: var(--brand); }
.footer-pay .fp { background: #fff; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; }
.footer-bottom {
  border-top: none; background: var(--dark); color: rgba(255,255,255,.55);
  margin: 24px -9999px 0; padding: 16px 9999px;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ---- 圆形客服钮 ---- */
.cs-fab { position: fixed; right: 20px; bottom: 46px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%; box-shadow: 0 6px 18px rgba(60,40,20,.22);
}
.fab-cs { width: 58px; height: 58px; background: var(--brand); color: #fff; gap: 1px; }
.fab-cs span { font-size: 10px; color: #fff; line-height: 1; }
.fab-cs:hover { background: var(--brand-dark); }
.fab-top { width: 42px; height: 42px; background: #fff; border: 1px solid var(--line); color: var(--ink-3); }
.fab-top:hover { color: var(--brand); border-color: var(--brand); }

/* ---- 汉堡按钮弃用 ---- */
.nav-toggle { display: none !important; }

@media (max-width: 860px) {
  .crumb .container { overflow: hidden; }
  .crumb .cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
  .pd-body .pd-detail { min-width: 0; max-width: 100%; }
  .svc-top .st-items { gap: 14px; overflow: hidden; }
  .st-item:nth-child(3), .st-item:nth-child(4) { display: none; }
  .nav { height: 60px; }
  .brand-name { font-size: 20px; }
  .brand-slogan { display: none; }
  .cat-nav .container { height: 42px; }
  .cn-hot { display: none; }
  .cs-fab { right: 12px; bottom: 24px; }
  .fab-cs { width: 50px; height: 50px; }
  .fab-top { width: 38px; height: 38px; }
  .footer-bottom { margin-top: 18px; }
}

/* ============ R5 收银台单列重排（淘宝式） ============ */
.steps-arrow { display: flex; margin-bottom: 18px; border-radius: 12px; overflow: hidden; }
.sa-step {
  flex: 1; background: #f0ebe4; color: var(--ink-3); font-size: 14px; padding: 12px 10px 12px 28px;
  position: relative; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.sa-step:first-child { padding-left: 20px; }
.sa-step::after {
  content: ""; position: absolute; right: -13px; top: 0; bottom: 0; width: 26px; z-index: 2;
  background: inherit; clip-path: polygon(0 0, 55% 50%, 0 100%);
}
.sa-step .n {
  width: 20px; height: 20px; border-radius: 50%; background: #ddd4c8; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.sa-step.done { background: #efe6d8; color: var(--vip-dark, #b8873a); }
.sa-step.done .n { background: var(--gold); }
.sa-step.active { background: var(--brand); color: #fff; font-weight: 600; }
.sa-step.active .n { background: rgba(255,255,255,.28); }

.co-full { width: 100%; }
.addr-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 16px; }
.addr-grid3 .span2 { grid-column: span 2; }
.addr-grid3 .span3 { grid-column: 1 / -1; }

.co-items-table { width: 100%; font-size: 13px; }
.co-items-table th {
  background: var(--bg); padding: 10px 14px; text-align: left; color: var(--ink-3);
  font-weight: 500; border-bottom: 1px solid var(--line);
}
.co-items-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.co-items-table tr:last-child td { border-bottom: none; }
.cit-prod { display: flex; align-items: center; gap: 12px; }
.cit-prod img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.cit-prod .name { font-size: 13.5px; line-height: 1.4; }
.cit-prod .sku { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.cit-sub { color: var(--red); font-weight: 700; }

.duo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pay-tile {
  border: 2px solid var(--line); border-radius: 12px; padding: 16px 10px 13px;
  display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer;
  position: relative; background: #fff; transition: border-color .15s;
}
.pay-tile:hover { border-color: #d9b89e; }
.pay-tile.selected { border-color: var(--brand); background: var(--brand-light); }
.pay-tile.selected::after {
  content: "✓"; position: absolute; right: -1px; bottom: -1px; width: 22px; height: 22px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px 0 10px 0;
}
.pay-tile .pt-name { font-size: 14px; font-weight: 600; }
.pay-tile .pt-desc { font-size: 11px; color: var(--ink-4); text-align: center; line-height: 1.4; }

.settle-bar {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; display: flex; align-items: flex-end; gap: 24px; margin-top: 16px;
}
.settle-left { font-size: 13px; color: var(--ink-3); align-self: center; }
.settle-left b { color: var(--red); }
.settle-nums { margin-left: auto; text-align: right; font-size: 13px; color: var(--ink-2); }
.settle-nums .row { padding: 2px 0; }
.settle-nums .row .v { display: inline-block; min-width: 90px; text-align: right; }
.settle-nums .row .v.minus { color: var(--red); }
.settle-total { font-size: 13px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.settle-total b { font-size: 26px; color: var(--red); font-family: inherit; }
.settle-bar .btn { min-width: 190px; height: 52px; font-size: 16px; }

@media (max-width: 860px) {
  .steps-arrow { border-radius: 10px; }
  .sa-step { font-size: 11px; padding: 9px 4px 9px 18px; gap: 4px; }
  .sa-step .n { width: 16px; height: 16px; font-size: 10px; }
  .addr-grid3 { grid-template-columns: 1fr; }
  .addr-grid3 .span2, .addr-grid3 .span3 { grid-column: auto; }
  .duo-cards { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .co-items-table th:nth-child(2), .co-items-table td:nth-child(2) { display: none; }
  .settle-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .settle-nums { margin-left: 0; }
  .settle-bar .btn { width: 100%; }
}
