/* ============================================================
   妍集 · 美妆优选 —— 前台设计系统
   设计基调：编辑型美妆杂志（Editorial Beauty）
   底色暖象牙 + 绛红玫主色 + 香槟金点缀 + 衬线标题
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink:        #2b1f24;
  --ink-2:      #5c4a51;
  --ink-3:      #8b7a80;
  --ink-4:      #b3a5aa;

  --paper:      #fbf7f4;
  --paper-2:    #f5efe9;
  --surface:    #ffffff;
  --surface-2:  #fdfaf8;

  --rose:       #a63a5a;
  --rose-2:     #bf5573;
  --rose-soft:  #f4e6e4;
  --rose-line:  #ecd3d5;

  --gold:       #c9a46a;
  --gold-soft:  #f2e8d8;

  --jade:       #3f7a63;
  --jade-soft:  #e4efe9;

  --amber:      #b8762b;
  --amber-soft: #f8ecdc;

  --line:       #ece2dc;
  --line-2:     #ddd0c8;

  --ok:         #3f7a63;
  --warn:       #b8762b;
  --danger:     #b3402f;

  --radius:     4px;
  --radius-lg:  10px;
  --radius-pill: 999px;

  --shadow-sm:  0 1px 2px rgba(43, 31, 36, .04);
  --shadow:     0 6px 24px -12px rgba(43, 31, 36, .18);
  --shadow-lg:  0 24px 60px -28px rgba(43, 31, 36, .28);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono:  "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --wrap: 1240px;
  --nav-h: 58px;
}

/* ---------- 2. 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .01em;
}
img, video { display: block; max-width: 100%; }
/* 图标保持内联，避免在纯文本行内把内容拆成多行（如详情页互动条的「评论/浏览」） */
svg.ic { display: inline-block; vertical-align: -.16em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rose); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
::selection { background: var(--rose-soft); color: var(--rose); }

/* ---------- 3. 排版 ---------- */
.serif, .h1, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
.h1 { font-size: 34px; line-height: 1.3; }
.h2 { font-size: 26px; line-height: 1.35; }
.h3 { font-size: 19px; line-height: 1.45; }
.h4 { font-size: 16px; line-height: 1.5; }
.eyebrow {
  font-family: var(--sans); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.lede { font-size: 15px; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.price { font-family: var(--serif); font-weight: 600; color: var(--rose); }
.price .unit { font-size: .72em; margin-right: 1px; }
.strike { color: var(--ink-4); text-decoration: line-through; font-size: 12px; font-family: var(--sans); font-weight: 400; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.sec-head .lead { max-width: 640px; }
.sec-head h2 { font-family: var(--serif); font-size: 25px; }
.sec-head .rule { height: 1px; background: var(--line-2); flex: 1; margin: 0 0 9px; }
.more-link { font-size: 12px; letter-spacing: .1em; color: var(--ink-3); white-space: nowrap; }
.more-link::after { content: " →"; color: var(--gold); }
.more-link:hover { color: var(--rose); }

/* ---------- 4. 布局 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 940px; }
.sec { padding: 54px 0; }
.sec-tight { padding: 32px 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g-products { grid-template-columns: repeat(4, 1fr); gap: 22px 20px; }
.row { display: flex; gap: 14px; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.row-wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px }
.mt-3 { margin-top: 24px } .mt-4 { margin-top: 36px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px }
.mb-3 { margin-bottom: 24px } .mb-4 { margin-bottom: 36px }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border: 1px solid transparent;
  border-radius: var(--radius); background: var(--ink); color: #fff;
  font-size: 14px; letter-spacing: .04em; transition: .18s ease;
  white-space: nowrap;
}
.btn:hover { background: #40313a; color: #fff; }
.btn-primary { background: var(--rose); }
.btn-primary:hover { background: #93314f; }
.btn-gold { background: var(--gold); color: #2b1f24; }
.btn-gold:hover { background: #bb9455; color: #2b1f24; }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn-line:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-soft); }
.btn-rose-line { background: transparent; border-color: var(--rose-line); color: var(--rose); }
.btn-rose-line:hover { background: var(--rose-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #99362a; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn-lg { height: 50px; padding: 0 34px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-link { color: var(--rose); background: none; border: 0; padding: 0; height: auto; }
.btn-link:hover { color: #93314f; text-decoration: underline; }

/* ---------- 6. 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.field .hint { font-size: 11px; color: var(--ink-4); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); color: var(--ink); transition: .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { height: auto; min-height: 110px; padding: 11px 13px; line-height: 1.7; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input-sm { height: 34px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--rose); }
.check-strong { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-note { background: var(--paper-2); border-left: 2px solid var(--gold); padding: 12px 16px; font-size: 12px; color: var(--ink-2); }

/* ---------- 7. 标签 / 徽章 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px;
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  font-size: 11px; color: var(--ink-2); background: transparent; white-space: nowrap;
}
.tag.is-on { border-color: var(--rose); color: var(--rose); background: var(--rose-soft); }
.tag-gold { border-color: var(--gold); color: #8c6d31; background: var(--gold-soft); }
.tag-rose { border-color: var(--rose-line); color: var(--rose); background: var(--rose-soft); }
.tag-jade { border-color: #bcd8ca; color: var(--jade); background: var(--jade-soft); }
.tag-line { border-color: var(--line); color: var(--ink-3); }
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  font-size: 11px; border-radius: 2px; letter-spacing: .04em;
}
.tone-ok { background: var(--jade-soft); color: var(--jade); }
.tone-warn { background: var(--amber-soft); color: var(--amber); }
.tone-brand { background: var(--rose-soft); color: var(--rose); }
.tone-info { background: #e8eef6; color: #3a5f8f; }
.tone-muted { background: var(--paper-2); color: var(--ink-3); }
.tone-danger { background: #f7e3df; color: var(--danger); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- 8. 卡片 / 面板 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-family: var(--serif); font-size: 16px; }
.panel-body { padding: 20px; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.edge-top { border-top: 2px solid var(--ink); }

/* ---------- 9. 顶部公告与页头 ---------- */
.topbar {
  background: var(--ink); color: #e9dfe2; font-size: 12px; line-height: 1;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 16px; }
.topbar a { color: #cfc0c6; }
.topbar a:hover { color: #fff; }
.topbar .notice { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.topbar .links { display: flex; gap: 18px; align-items: center; }

.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .head-main { display: flex; align-items: center; gap: 34px; padding: 20px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--rose-2), var(--rose) 62%);
  display: grid; place-items: center; color: #fff;
  font-family: var(--serif); font-size: 18px; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.logo .txt { display: flex; flex-direction: column; line-height: 1.2; }
.logo .cn { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .06em; }
.logo .en { font-size: 9px; letter-spacing: .34em; color: var(--gold); text-transform: uppercase; }

.head-search { flex: 1; max-width: 540px; }
.search-box { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-2); }
.search-box input { flex: 1; height: 42px; border: 0; background: transparent; padding: 0 18px; outline: none; font-size: 13px; }
.search-box button { width: 52px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.search-box button:hover { color: var(--rose); }
.search-box:focus-within { border-color: var(--rose); background: #fff; }
.search-hot { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--ink-4); }
.search-hot a:hover { color: var(--rose); }

.head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.head-actions .act {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; font-size: 11px; color: var(--ink-2); border-radius: var(--radius);
}
.head-actions .act:hover { background: var(--paper-2); color: var(--rose); }
.act .ic { color: var(--ink-2); }
.act:hover .ic { color: var(--rose); }
.act .badge-count {
  position: absolute; transform: translate(14px, -6px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
  background: var(--rose); color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}
.act-wrap { position: relative; }

/* ---------- 10. 主导航 ---------- */
.site-nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.site-nav .wrap { display: flex; align-items: center; gap: 4px; height: var(--nav-h); }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a {
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 17px;
  font-size: 14px; color: var(--ink-2); border-bottom: 2px solid transparent;
}
.nav-item > a:hover { color: var(--rose); }
.nav-item.is-active > a { color: var(--rose); border-bottom-color: var(--rose); font-weight: 600; }
.nav-extra { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--ink-3); }
.nav-extra .k { color: var(--gold); letter-spacing: .12em; }

/* 分类下拉面板 */
.nav-mega {
  position: absolute; top: 100%; left: 0; width: 760px; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--rose);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg);
  display: none; grid-template-columns: repeat(3, 1fr); gap: 10px 30px;
}
.nav-item:hover .nav-mega { display: grid; }
.nav-mega a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--radius); }
.nav-mega a:hover { background: var(--paper-2); }
.nav-mega .nm { font-size: 13px; color: var(--ink); }
.nav-mega .nd { font-size: 11px; color: var(--ink-4); }
.nav-mega .nm-i { display: flex; align-items: center; gap: 8px; }

/* ---------- 11. 商品卡 ---------- */
.pcard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .2s ease;
  display: flex; flex-direction: column;
}
.pcard:hover { border-color: var(--rose-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard .thumb { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.pcard:hover .thumb img { transform: scale(1.04); }
.pcard .flag {
  position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px;
}
.pcard .flag span {
  background: rgba(255,255,255,.94); color: var(--rose); font-size: 10px;
  letter-spacing: .1em; padding: 3px 8px; border-radius: 2px;
}
.pcard .flag .gold { color: #8c6d31; }
.pcard .fav {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: var(--ink-3);
  display: grid; place-items: center; opacity: 0; transition: .2s;
}
.pcard:hover .fav { opacity: 1; }
.pcard .fav:hover, .pcard .fav.is-on { color: var(--rose); }
.pcard .body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard .brand { font-size: 10px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.pcard .name { font-size: 13px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.pcard:hover .name { color: var(--rose); }
.pcard .sub { font-size: 11px; color: var(--ink-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.pcard .price { font-size: 17px; }
.pcard .meta { font-size: 11px; color: var(--ink-4); }
.pcard .shop { font-size: 11px; color: var(--ink-4); display: flex; align-items: center; gap: 5px; }
.pcard .mini-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* 横向商品卡（榜单 / 相关推荐） */
.prow { display: flex; gap: 13px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.prow:last-child { border-bottom: 0; }
.prow .rank { font-family: var(--serif); font-size: 19px; color: var(--gold); width: 30px; flex: none; }
.prow .rank.top { color: var(--rose); }
.prow .pic { width: 60px; height: 60px; border-radius: var(--radius); object-fit: cover; background: var(--paper-2); flex: none; }
.prow .info { flex: 1; min-width: 0; }
.prow .info .t { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .info .s { font-size: 11px; color: var(--ink-4); }

/* ---------- 12. 首页模块 ---------- */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 34px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; }
.hero-lead {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(140deg, #f6e7ea 0%, #efdcd6 48%, #e7d6c8 100%);
  min-height: 386px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 42px 46px; border: 1px solid var(--rose-line);
}
.hero-lead .arts { position: absolute; inset: 0; opacity: .42; background: url("/static/img/hero.jpg") center/cover no-repeat; }
.hero-lead .arts::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(251,247,244,.92) 0%, rgba(251,247,244,.55) 46%, rgba(251,247,244,0) 78%); }
.hero-lead .copy { position: relative; max-width: 430px; }
.hero-lead .copy .eyebrow { color: var(--rose); }
.hero-lead h1 { font-family: var(--serif); font-size: 40px; line-height: 1.24; margin: 12px 0 14px; }
.hero-lead p { color: var(--ink-2); margin-bottom: 22px; font-size: 14px; }
.hero-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 20px; }
.hero-tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  padding: 24px 26px; display: flex; flex-direction: column; justify-content: center;
}
.hero-tile .k { font-size: 10px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.hero-tile h3 { font-family: var(--serif); font-size: 20px; margin: 8px 0 6px; }
.hero-tile p { font-size: 12px; color: var(--ink-3); }
.hero-tile .go { font-size: 11px; color: var(--rose); margin-top: 12px; letter-spacing: .1em; }
.hero-tile::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 190px; height: 190px;
  border-radius: 50%; background: var(--rose-soft); opacity: .7;
}
.hero-tile:nth-child(2)::after { background: var(--gold-soft); }

/* 承诺条 */
.promise { background: var(--surface); border-bottom: 1px solid var(--line); }
.promise .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise .it { padding: 20px 8px; text-align: center; border-right: 1px solid var(--line); }
.promise .it:last-child { border-right: 0; }
.promise .it .t { font-family: var(--serif); font-size: 14px; }
.promise .it .d { font-size: 11px; color: var(--ink-4); }

/* 分类导航条 */
.cat-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cat-strip a { background: var(--surface); padding: 20px 10px; text-align: center; transition: .18s; }
.cat-strip a:hover { background: var(--rose-soft); }
.cat-strip .ic-wrap { width: 34px; height: 34px; margin: 0 auto 9px; color: var(--ink-2); }
.cat-strip a:hover .ic-wrap { color: var(--rose); }
.cat-strip .nm { font-size: 13px; }
.cat-strip .ct { font-size: 10px; color: var(--ink-4); }

/* 场景 / 功效快筛 */
.scene-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.scene-tabs a { padding: 11px 20px; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.scene-tabs a:hover { color: var(--rose); }
.scene-tabs a.is-on { color: var(--ink); border-bottom-color: var(--rose); font-weight: 600; }

/* 品牌墙 */
.brand-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.brand-strip a { background: var(--surface); padding: 22px 14px; text-align: center; transition: .18s; }
.brand-strip a:hover { background: var(--surface-2); }
.brand-strip .bn { font-family: var(--serif); font-size: 15px; }
.brand-strip .be { font-size: 9px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.brand-strip .bc { font-size: 10px; color: var(--ink-4); }

/* 数据条 */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.stat-strip .st { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat-strip .st:last-child { border-right: 0; }
.stat-strip .v { font-family: var(--serif); font-size: 30px; color: var(--rose); }
.stat-strip .l { font-size: 12px; color: var(--ink-3); }

/* 编辑精选两块 */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ed-block { border-top: 1px solid var(--ink); padding-top: 18px; }
.ed-block .rank-list { margin-top: 6px; }

/* ---------- 13. 列表页 ---------- */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 30px 0; }
.crumb { font-size: 12px; color: var(--ink-4); margin-bottom: 10px; }
.crumb a:hover { color: var(--rose); }
.page-head h1 { font-family: var(--serif); font-size: 28px; }
.page-head .desc { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.page-head .count { font-family: var(--mono); color: var(--rose); }

.list-layout { display: grid; grid-template-columns: 236px 1fr; gap: 34px; align-items: start; }
.filter-side { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
.filter-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.filter-block + .filter-block { margin-top: 14px; }
.filter-block h4 { font-size: 13px; font-family: var(--serif); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.filter-block h4 .clr { font-size: 11px; color: var(--ink-4); font-family: var(--sans); }
.filter-block h4 .clr:hover { color: var(--rose); }
.filter-list { display: flex; flex-direction: column; gap: 1px; }
.filter-list a { display: flex; justify-content: space-between; padding: 7px 9px; font-size: 13px; color: var(--ink-2); border-radius: var(--radius); }
.filter-list a:hover { background: var(--paper-2); color: var(--rose); }
.filter-list a.is-on { background: var(--rose-soft); color: var(--rose); font-weight: 600; }
.filter-list a .n { font-size: 11px; color: var(--ink-4); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range .input-sm { width: 100%; }

.toolbar {
  display: flex; align-items: center; gap: 20px; padding: 12px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 20px;
}
.toolbar .sorts { display: flex; gap: 2px; }
.toolbar .sorts a { padding: 6px 13px; font-size: 13px; color: var(--ink-3); border-radius: var(--radius); }
.toolbar .sorts a:hover { color: var(--rose); }
.toolbar .sorts a.is-on { background: var(--ink); color: #fff; }
.toolbar .found { font-size: 12px; color: var(--ink-4); margin-left: auto; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: var(--surface); border: 1px solid var(--rose-line); color: var(--rose); border-radius: var(--radius-pill); font-size: 12px; }
.chip .x { color: var(--ink-4); }
.chip .x:hover { color: var(--rose); }

/* 工具栏内的搜索表单（商品列表） */
.toolbar-search { flex: 1; max-width: 460px; min-width: 200px; }
.toolbar-search .search-box { width: 100%; }
.toolbar-search .search-box input { height: 38px; }

/* 独立排序条（商品列表：与搜索结果数分离，便于 AJAX 局部刷新） */
.sorts-bar {
  display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.sorts-bar a { padding: 6px 13px; font-size: 13px; color: var(--ink-3); border-radius: var(--radius); }
.sorts-bar a:hover { color: var(--rose); background: var(--paper-2); }
.sorts-bar a.is-on { background: var(--ink); color: #fff; }

/* AJAX 局部刷新：加载中给容器一个柔和的过渡反馈 */
#resultsBox.is-loading, #communityBox.is-loading, #shopBox.is-loading {
  opacity: .45; pointer-events: none; transition: opacity .15s ease;
}

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 38px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; color: var(--ink-2); background: var(--surface);
  font-family: var(--mono);
}
.pager a:hover { border-color: var(--rose); color: var(--rose); }
.pager .is-on { background: var(--rose); border-color: var(--rose); color: #fff; }
.pager .is-off { opacity: .45; }

.empty { padding: 70px 20px; text-align: center; color: var(--ink-4); }
.empty .ic { display: block; margin: 0 auto 16px; color: var(--line-2); }
.empty .t { font-family: var(--serif); font-size: 16px; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- 14. 商品详情 ---------- */
.pd-layout { display: grid; grid-template-columns: 460px 1fr; gap: 40px; align-items: start; }
.gallery .main-img { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); aspect-ratio: 4/5; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs button { width: 66px; height: 66px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: none; padding: 0; }
.gallery .thumbs button.is-on { border-color: var(--rose); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-family: var(--serif); font-size: 27px; line-height: 1.35; }
.pd-sub { color: var(--ink-3); font-size: 13px; margin-top: 8px; }
.pd-price-box { background: linear-gradient(100deg, var(--rose-soft), #fdf7f5 70%); border: 1px solid var(--rose-line); border-radius: var(--radius-lg); padding: 18px 22px; margin: 18px 0; }
.pd-price-box .now { font-family: var(--serif); font-size: 34px; color: var(--rose); line-height: 1; }
.pd-price-box .now .unit { font-size: 17px; }
.pd-price-box .was { margin-left: 12px; }
.pd-price-box .save { font-size: 12px; color: var(--amber); margin-top: 8px; }
.pd-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 18px 0; }
.pd-facts .f { padding: 11px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 13px; display: flex; gap: 10px; }
.pd-facts .f:nth-child(2n) { border-right: 0; }
.pd-facts .f .k { color: var(--ink-4); flex: none; width: 62px; }
.pd-facts .f .v { color: var(--ink); }
.spec-group { margin-bottom: 18px; }
.spec-group .lb { font-size: 12px; color: var(--ink-4); margin-bottom: 9px; }
.spec-opts { display: flex; gap: 9px; flex-wrap: wrap; }
.spec-opt {
  min-width: 92px; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); text-align: left; font-size: 13px; transition: .15s;
}
.spec-opt:hover { border-color: var(--rose); }
.spec-opt.is-on { border-color: var(--rose); background: var(--rose-soft); color: var(--rose); }
.spec-opt .p { display: block; font-size: 11px; color: var(--ink-4); }
.spec-opt.is-on .p { color: var(--rose); }
.spec-opt[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 36px; height: 40px; border: 0; background: var(--surface); color: var(--ink-2); font-size: 16px; }
.qty button:hover { background: var(--paper-2); color: var(--rose); }
.qty input { width: 56px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-family: var(--mono); }
.buybar { display: flex; gap: 12px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.svc-line { display: flex; gap: 22px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.svc-line .it { display: flex; align-items: center; gap: 6px; }
.shop-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-top: 18px; }
.shop-card .logo-sq { width: 48px; height: 48px; border-radius: var(--radius); background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); font-size: 19px; color: var(--rose); flex: none; overflow: hidden; }
.shop-card .logo-sq img { width: 100%; height: 100%; object-fit: cover; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs a, .tabs button { padding: 13px 22px; border: 0; background: none; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; }
.tabs a.is-on, .tabs button.is-on { color: var(--ink); border-bottom-color: var(--rose); font-weight: 600; font-family: var(--serif); }
.tab-panel { display: none; }
.tab-panel.is-on { display: block; }

.rich-text { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.rich-text h3 { font-family: var(--serif); font-size: 17px; color: var(--ink); margin: 28px 0 12px; padding-left: 12px; border-left: 2px solid var(--rose); }
.rich-text p { margin: 12px 0; }
.rich-text ul, .rich-text ol { margin: 12px 0; padding-left: 20px; list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin: 6px 0; }
.rich-text img { border-radius: var(--radius); margin: 14px 0; }
.rich-text strong { color: var(--ink); }
.rich-text a { color: var(--rose); text-decoration: underline; }
.rich-text table { margin: 16px 0; font-size: 13px; }
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: 9px 12px; }

.notice-box { display: flex; gap: 10px; padding: 14px 18px; background: var(--gold-soft); border-radius: var(--radius-lg); font-size: 12px; color: #7a6234; line-height: 1.8; }

/* ---------- 15. 购物车 / 结算 ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; }
.cart-shop { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.cart-shop .sh { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.cart-line { display: grid; grid-template-columns: 26px 88px 1fr 110px 116px 76px; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .pic { width: 88px; height: 110px; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.cart-line .nm { font-size: 14px; }
.cart-line .sp { font-size: 12px; color: var(--ink-4); margin-top: 4px; }
.summary { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); position: sticky; top: calc(var(--nav-h) + 16px); }
.summary .sm-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 16px; }
.summary .sm-body { padding: 18px 20px; }
.summary .sm-line { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; color: var(--ink-2); }
.summary .sm-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; border-top: 1px solid var(--line); margin-top: 10px; }
.summary .sm-total .v { font-family: var(--serif); font-size: 26px; color: var(--rose); }
.addr-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; background: var(--surface); display: flex; gap: 14px; align-items: flex-start; cursor: pointer; transition: .15s; }
.addr-card:hover { border-color: var(--rose-line); }
.addr-card.is-on { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.addr-card .who { font-size: 13px; }
.addr-card .where { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pay-method { border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 16px; text-align: center; cursor: pointer; background: var(--surface); }
.pay-method:hover { border-color: var(--rose-line); }
.pay-method.is-on { border-color: var(--rose); background: var(--rose-soft); }
.pay-method .nm { font-size: 13px; margin-top: 8px; }
.pay-amount-big { font-family: var(--serif); font-size: 40px; color: var(--rose); text-align: center; }

/* ---------- 16. 会员中心 ---------- */
.uc-layout { display: grid; grid-template-columns: 218px 1fr; gap: 28px; align-items: start; }
.uc-side { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; position: sticky; top: calc(var(--nav-h) + 16px); }
.uc-user { padding: 22px 20px; background: linear-gradient(140deg, #f7e8ea, #f3ebe3); border-bottom: 1px solid var(--line); text-align: center; }
.uc-user .av { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px; background: var(--surface); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--rose); overflow: hidden; border: 2px solid #fff; }
.uc-user .av img { width: 100%; height: 100%; object-fit: cover; }
.uc-user .nm { font-family: var(--serif); font-size: 16px; }
.uc-user .sk { font-size: 11px; color: var(--ink-3); }
.uc-user .pts { margin-top: 10px; font-size: 12px; color: var(--rose); }
.uc-nav { padding: 10px 0; }
.uc-nav .grp { padding: 12px 20px 6px; font-size: 10px; letter-spacing: .18em; color: var(--ink-4); text-transform: uppercase; }
.uc-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 13px; color: var(--ink-2); border-left: 2px solid transparent; }
.uc-nav a:hover { background: var(--paper-2); color: var(--rose); }
.uc-nav a.is-on { color: var(--rose); border-left-color: var(--rose); background: var(--rose-soft); font-weight: 600; }
.uc-main { min-width: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 18px; transition: .15s; }
.stat-card:hover { border-color: var(--rose-line); }
.stat-card .v { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.stat-card .l { font-size: 12px; color: var(--ink-4); }
.stat-card .lnk { font-size: 11px; color: var(--rose); margin-top: 8px; }

.order-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.order-card .oh { display: flex; align-items: center; gap: 16px; padding: 13px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.order-card .oh .no { font-family: var(--mono); color: var(--ink-2); }
.order-card .oi { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px dashed var(--line); }
.order-card .oi:last-of-type { border-bottom: 0; }
.order-card .oi .pic { width: 66px; height: 82px; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.order-card .of { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.timeline { border-left: 1px dashed var(--line-2); margin-left: 8px; padding-left: 20px; }
.timeline .tl { position: relative; padding-bottom: 18px; }
.timeline .tl::before { content: ""; position: absolute; left: -25px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); border: 2px solid var(--surface); }
.timeline .tl.on::before { background: var(--rose); }
.timeline .tl .t { font-size: 13px; }
.timeline .tl .d { font-size: 11px; color: var(--ink-4); }
.fav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.addr-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pt-rule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pt-rule .r { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; background: var(--surface); }
.pt-rule .r .v { font-family: var(--serif); font-size: 22px; color: var(--rose); }
.pt-rule .r .l { font-size: 11px; color: var(--ink-4); }

/* ---------- 17. 社区 ---------- */
.feed-layout { display: grid; grid-template-columns: 1fr 292px; gap: 30px; align-items: start; }
.feed { display: flex; flex-direction: column; gap: 20px; }
.feed-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: .18s; }
.feed-card:hover { border-color: var(--rose-line); box-shadow: var(--shadow); }
.feed-card .fc-head { display: flex; align-items: center; gap: 11px; padding: 16px 20px 0; }
.feed-card .fc-av { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); color: var(--rose); overflow: hidden; flex: none; }
.feed-card .fc-av img { width: 100%; height: 100%; object-fit: cover; }
.feed-card .fc-who { flex: 1; min-width: 0; }
.feed-card .fc-name { font-size: 13px; display: flex; align-items: center; gap: 7px; }
.feed-card .fc-meta { font-size: 11px; color: var(--ink-4); }
.feed-card .fc-body { padding: 13px 20px 16px; }
.feed-card .fc-title { font-family: var(--serif); font-size: 18px; line-height: 1.45; margin-bottom: 8px; }
.feed-card:hover .fc-title { color: var(--rose); }
.feed-card .fc-sum { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card .fc-imgs { display: grid; gap: 4px; margin-top: 13px; }
.feed-card .fc-imgs.n1 { grid-template-columns: 1fr; }
.feed-card .fc-imgs.n2, .feed-card .fc-imgs.n4 { grid-template-columns: repeat(2, 1fr); }
.feed-card .fc-imgs.n3 { grid-template-columns: repeat(3, 1fr); }
.feed-card .fc-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.feed-card .fc-img-main { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); margin-top: 13px; }
.feed-card .fc-foot { display: flex; align-items: center; gap: 22px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.feed-card .fc-foot button, .feed-card .fc-foot a { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; padding: 0; font-size: 12px; }
.feed-card .fc-foot button:hover, .feed-card .fc-foot a:hover { color: var(--rose); }
.feed-card .fc-foot .is-on { color: var(--rose); }
.feed-card .lock-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; background: var(--gold-soft); color: #8c6d31; border-radius: var(--radius-pill); font-size: 11px; }
.side-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 18px; overflow: hidden; }
.side-panel .sh { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 15px; }
.side-panel .sb { padding: 16px 18px; }
.hot-tag { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-tag a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; background: var(--paper-2); border-radius: var(--radius-pill); font-size: 12px; color: var(--ink-2); }
.hot-tag a:hover { background: var(--rose-soft); color: var(--rose); }
.hot-tag a .n { font-size: 10px; color: var(--ink-4); }
.rules-list { font-size: 12px; color: var(--ink-3); line-height: 1.9; }
.rules-list li { padding-left: 14px; position: relative; }
.rules-list li::before { content: "·"; position: absolute; left: 2px; color: var(--gold); }

.post-article { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 34px 40px; }
.post-article .pa-head { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.post-article .pa-head h1 { font-family: var(--serif); font-size: 27px; line-height: 1.4; }
.post-article .pa-meta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--ink-4); }
.locked-box { border: 1px dashed var(--gold); border-radius: var(--radius-lg); background: var(--gold-soft); padding: 30px; text-align: center; }
.locked-box .t { font-family: var(--serif); font-size: 16px; color: #7a6234; margin-bottom: 8px; }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.comment-item .av { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); color: var(--rose); flex: none; overflow: hidden; }
.comment-item .av img { width: 100%; height: 100%; object-fit: cover; }
.tip-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.uploader { display: flex; gap: 10px; flex-wrap: wrap; }
.uploader .up-item { position: relative; width: 84px; height: 84px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.uploader .up-item img { width: 100%; height: 100%; object-fit: cover; }
.uploader .up-item .del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1; }
.uploader .up-add { width: 84px; height: 84px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--ink-4); }

/* ---------- 18. 店铺 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shop-item { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.shop-item:hover { border-color: var(--rose-line); box-shadow: var(--shadow); }
.shop-item .lg { width: 76px; height: 76px; border-radius: var(--radius); background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: var(--rose); flex: none; overflow: hidden; }
.shop-item .lg img { width: 100%; height: 100%; object-fit: cover; }
.shop-item .nm { font-family: var(--serif); font-size: 17px; }
.shop-item .ds { font-size: 12px; color: var(--ink-3); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-hero { background: linear-gradient(120deg, #f7e9ea, #f1e7dd); border-bottom: 1px solid var(--line); padding: 42px 0; }
.shop-hero .in { display: flex; gap: 26px; align-items: center; }
.shop-hero .lg { width: 96px; height: 96px; border-radius: var(--radius-lg); background: var(--surface); display: grid; place-items: center; font-family: var(--serif); font-size: 34px; color: var(--rose); overflow: hidden; flex: none; border: 3px solid #fff; }
.shop-hero .lg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 19. 登录 / 注册 ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual {
  background: linear-gradient(150deg, #2b1f24 0%, #46303a 55%, #6b4652 100%);
  color: #f4e9ec; padding: 64px 62px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-visual::after {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  right: -180px; bottom: -190px; background: radial-gradient(circle at 40% 40%, rgba(201,164,106,.5), transparent 68%);
}
.auth-visual .q { font-family: var(--serif); font-size: 30px; line-height: 1.55; max-width: 400px; }
.auth-visual .pts { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; font-size: 13px; color: #d9c8ce; }
.auth-visual .pts .it { display: flex; gap: 10px; align-items: flex-start; }
.auth-visual .pts .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 52px 40px; background: var(--surface); }
.auth-box { width: 100%; max-width: 380px; }
.auth-box .ttl { font-family: var(--serif); font-size: 25px; }
.auth-box .sub { font-size: 13px; color: var(--ink-3); margin: 8px 0 26px; }
.auth-switch { display: flex; gap: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.auth-switch a { padding-bottom: 12px; font-size: 14px; color: var(--ink-4); border-bottom: 2px solid transparent; }
.auth-switch a.is-on { color: var(--ink); border-bottom-color: var(--rose); font-weight: 600; }
.auth-foot { margin-top: 24px; font-size: 12px; color: var(--ink-4); text-align: center; }

/* ---------- 20. 协议 / 关于 ---------- */
.doc-layout { display: grid; grid-template-columns: 232px 1fr; gap: 34px; align-items: start; }
.doc-nav { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 12px; position: sticky; top: calc(var(--nav-h) + 16px); }
.doc-nav a { display: block; padding: 9px 13px; font-size: 13px; color: var(--ink-2); border-radius: var(--radius); }
.doc-nav a:hover { background: var(--paper-2); color: var(--rose); }
.doc-nav a.is-on { background: var(--rose-soft); color: var(--rose); font-weight: 600; }
.doc-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 46px; }
.doc-body .dt { font-family: var(--serif); font-size: 27px; }
.doc-body .dv { font-size: 12px; color: var(--ink-4); margin: 10px 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc-body .intro { background: var(--paper-2); border-left: 2px solid var(--gold); padding: 16px 20px; font-size: 13px; color: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 28px; }
.doc-body h3 { font-family: var(--serif); font-size: 17px; margin: 30px 0 12px; }
.doc-body p { margin: 11px 0; color: var(--ink-2); }
.doc-body ul { margin: 11px 0; padding-left: 22px; list-style: disc; }
.doc-body li { margin: 7px 0; color: var(--ink-2); }
.about-hero { background: linear-gradient(130deg, #2b1f24, #533741); color: #f5eaee; padding: 66px 0; text-align: center; }
.about-hero h1 { font-family: var(--serif); font-size: 36px; }
.about-hero p { color: #cfbcc4; margin-top: 14px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: var(--surface); }
.value .no { font-family: var(--serif); font-size: 30px; color: var(--gold); }
.value h3 { font-family: var(--serif); font-size: 17px; margin: 12px 0 8px; }
.value p { font-size: 13px; color: var(--ink-3); }

/* ---------- 21. 页脚 ---------- */
.site-foot { background: var(--ink); color: #b8a7ae; margin-top: 60px; padding: 52px 0 26px; }
.site-foot .fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.09); }
.site-foot .logo .cn { color: #fff; }
.site-foot .slogan { font-size: 12px; margin-top: 14px; line-height: 1.9; max-width: 300px; }
.site-foot h4 { color: #fff; font-size: 13px; font-family: var(--serif); margin-bottom: 14px; letter-spacing: .06em; }
.site-foot .fl { display: flex; flex-direction: column; gap: 9px; font-size: 12px; }
.site-foot .fl a:hover { color: var(--gold); }
.site-foot .copy { padding-top: 22px; font-size: 11px; line-height: 2; color: #8d7c84; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-foot .copy .r { text-align: right; }
.site-foot .svc { font-family: var(--mono); color: var(--gold); font-size: 15px; }

/* ---------- 22. 浮动与提示 ---------- */
.flash {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 26px; border-radius: var(--radius-pill);
  font-size: 13px; box-shadow: var(--shadow-lg); animation: dropIn .3s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -12px); } }
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 999;
  background: var(--ink); color: #fff; padding: 11px 24px; border-radius: var(--radius);
  font-size: 13px; opacity: 0; pointer-events: none; transition: .25s;
}
.toast.is-on { opacity: 1; bottom: 52px; }
.back-top {
  position: fixed; right: 26px; bottom: 178px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
  display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; z-index: 80;
}
.back-top.is-on { opacity: 1; pointer-events: auto; }
.back-top:hover { color: var(--rose); border-color: var(--rose); }

/* ---------- 站内客服（IM）浮动窗 ---------- */
.im-root { position: fixed; right: 26px; bottom: 26px; z-index: 900; font-family: var(--sans); }

/* 入口按钮 */
.im-fab {
  display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 22px;
  background: linear-gradient(135deg, var(--rose), #b25d78); color: #fff; border: 0;
  border-radius: var(--radius-pill); font-size: 13.5px; letter-spacing: .04em;
  box-shadow: 0 12px 30px rgba(154, 61, 92, .32); position: relative; transition: .22s;
}
.im-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(154, 61, 92, .38); }
.im-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: #fff; border-radius: 999px; font-size: 11px; line-height: 18px;
  font-family: var(--mono); box-shadow: 0 0 0 2px #fff;
}
.im-root.is-open .im-fab { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* 对话面板 */
.im-panel {
  position: absolute; right: 0; bottom: 0; width: 372px; max-width: calc(100vw - 32px);
  height: 546px; max-height: calc(100vh - 60px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 26px 64px rgba(58, 36, 44, .24); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transform-origin: 100% 100%;
  transition: opacity .2s ease, transform .22s ease, visibility .2s;
}
.im-root.is-open .im-panel { opacity: 1; visibility: visible; transform: none; }

.im-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px 13px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--rose-soft), var(--gold-soft));
}
.im-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.im-brand .mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--rose); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 15px; flex: none;
}
.im-brand .nm { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.im-brand .st { font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.im-brand .st .dot { width: 6px; height: 6px; border-radius: 50%; background: #45a06d; box-shadow: 0 0 0 3px rgba(69,160,109,.16); }
.im-head-act { display: flex; align-items: center; gap: 4px; flex: none; }
.im-ic {
  width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(255,255,255,.6);
  color: var(--ink-2); display: grid; place-items: center; transition: .15s;
}
.im-ic:hover { background: #fff; color: var(--rose); }

/* 消息区 */
.im-body {
  flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px;
  background:
    radial-gradient(circle at 100% 0, var(--rose-soft), transparent 46%),
    var(--paper-2);
}
.im-body::-webkit-scrollbar { width: 6px; }
.im-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.im-row { display: flex; gap: 9px; align-items: flex-end; }
.im-row.from-me { flex-direction: row-reverse; }
.im-av {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3);
}
.im-row.from-me .im-av { background: var(--rose); border-color: var(--rose); color: #fff; }
.im-row.from-bot .im-av { background: var(--gold-soft); border-color: #e7d8bd; color: #8a6f3d; }
.im-col { max-width: 76%; }
.im-bubble {
  padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.72;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  word-break: break-word; white-space: pre-wrap;
}
.im-row.from-me .im-bubble { background: var(--rose); border-color: var(--rose); color: #fff; border-bottom-right-radius: 4px; }
.im-row.from-service .im-bubble, .im-row.from-bot .im-bubble { border-bottom-left-radius: 4px; }
.im-meta { font-size: 10.5px; color: var(--ink-4); margin-top: 5px; font-family: var(--mono); }
.im-row.from-me .im-meta { text-align: right; }

.im-sys { text-align: center; font-size: 11px; color: var(--ink-4); }
.im-sys span { background: rgba(255,255,255,.7); padding: 4px 12px; border-radius: 999px; }

.im-typing { display: flex; gap: 4px; padding: 12px 14px; }
.im-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); animation: imBlink 1.2s infinite; }
.im-typing i:nth-child(2) { animation-delay: .18s; }
.im-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes imBlink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* 底部输入区 */
.im-foot { border-top: 1px solid var(--line); padding: 10px 12px 11px; background: var(--surface); }
.im-quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 9px; }
.im-quick::-webkit-scrollbar { height: 0; }
.im-quick button {
  flex: none; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px;
  border: 1px solid var(--rose-line); background: var(--rose-soft); color: var(--rose); transition: .15s;
}
.im-quick button:hover { background: var(--rose); color: #fff; }
.im-form { display: flex; align-items: flex-end; gap: 8px; }
.im-text {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px;
  font-size: 13px; line-height: 1.6; max-height: 96px; outline: none; font-family: inherit;
  background: var(--paper-2); transition: .15s;
}
.im-text:focus { border-color: var(--rose); background: #fff; }
.im-send {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: var(--rose);
  color: #fff; display: grid; place-items: center; transition: .15s;
}
.im-send:hover { background: #93314f; }
.im-send:disabled { opacity: .55; }
.im-tip { font-size: 10.5px; color: var(--ink-4); margin-top: 8px; display: flex; align-items: center; gap: 5px; }

/* 导航栏与页脚中的客服入口 */
.nav-svc {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px;
  border: 1px solid var(--rose-line); border-radius: 999px; background: var(--rose-soft);
  color: var(--rose); font-size: 12px; transition: .16s;
}
.nav-svc:hover { background: var(--rose); color: #fff; }
.nav-svc .dot { width: 6px; height: 6px; border-radius: 50%; background: #45a06d; }
.nav-svc:hover .dot { background: #cdf0dc; }
.nav-svc .tm { color: var(--ink-4); font-size: 11px; }
.nav-svc:hover .tm { color: rgba(255,255,255,.75); }
.foot-svc {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; height: 28px; padding: 0 13px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.06);
  color: var(--gold); font-size: 12px; transition: .16s;
}
.foot-svc:hover { background: var(--gold); color: #3a2c1c; }

/* 文本内联的客服入口（关于页 / 登录注册页 / 店铺页） */
.link-svc {
  border: 0; background: none; padding: 0; color: var(--rose);
  font-size: inherit; font-family: inherit; border-bottom: 1px dashed var(--rose-line);
}
.link-svc:hover { color: #93314f; }
.link-svc-inline {
  border: 0; background: none; padding: 0; color: var(--gold);
  font-size: inherit; font-family: inherit; cursor: pointer;
  border-bottom: 1px dashed currentColor;
}
.link-svc-inline:hover { color: #fff; }
.shop-ask { border: 1px solid var(--rose-line); background: var(--rose-soft); color: var(--rose); cursor: pointer; }
.shop-ask:hover { background: var(--rose); color: #fff; }

/* ---------- 独立客服中心页 ---------- */
.svc-layout { display: grid; grid-template-columns: 1fr 272px; gap: 26px; align-items: start; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.svc-card .sc-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--rose-soft), var(--gold-soft));
}
/* 固定会话区高度：覆盖 .im-body 的 flex:1（flex-basis 0 会忽略 height），保证独立页有足够的对话视野 */
.svc-card .sc-body { height: 520px; flex: 0 0 520px; }
.svc-side .faq-list { display: flex; flex-direction: column; gap: 2px; }
.svc-side .faq-list button {
  text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: var(--radius);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6; transition: .15s;
}
.svc-side .faq-list button:hover { background: var(--rose-soft); color: var(--rose); }
.svc-links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.svc-links a { color: var(--ink-2); }
.svc-links a:hover { color: var(--rose); }

@media (max-width: 1080px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-card .sc-body { height: 440px; }
}

@media (max-width: 720px) {
  .im-root { right: 14px; bottom: 14px; }
  .im-fab { height: 46px; padding: 0 18px; }
  .im-fab-txt { display: none; }
  .im-panel { width: calc(100vw - 28px); height: calc(100vh - 90px); }
  .back-top { right: 14px; bottom: 168px; }
}

/* ---------- 23. 通用表格 ---------- */
.table { font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .no { font-family: var(--mono); font-size: 12px; }
.kv-list { display: grid; grid-template-columns: 92px 1fr; gap: 10px 16px; font-size: 13px; }
.kv-list .k { color: var(--ink-4); }
.kv-list .v { color: var(--ink); }

/* ---------- 24. 图标 ---------- */
.ic { flex: none; }
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 24px; height: 24px; }
.ic-xl { width: 34px; height: 34px; }

/* ---------- 25. 响应式 ---------- */
@media (max-width: 1080px) {
  .g-products { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .list-layout { grid-template-columns: 1fr; }
  .filter-side { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .feed-layout { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .shop-grid { grid-template-columns: 1fr; }
  .stat-cards, .fav-grid, .pt-rule { grid-template-columns: repeat(2, 1fr); }
  .cat-strip { grid-template-columns: repeat(4, 1fr); }
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .g-products, .g3, .g4, .g2 { grid-template-columns: repeat(2, 1fr); }
  .site-head .head-main { flex-wrap: wrap; gap: 16px; }
  .head-search { order: 3; max-width: none; width: 100%; }
  .nav-mega { width: 100%; grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 20px 68px 1fr; row-gap: 10px; }
  .addr-list, .value-grid, .pay-methods, .form-grid, .stat-cards, .fav-grid, .pt-rule { grid-template-columns: 1fr; }
  .promise .wrap, .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-lead { padding: 28px 24px; min-height: 300px; }
  .hero-lead h1 { font-size: 27px; }
  .post-article, .doc-body { padding: 24px 20px; }
  .site-foot .fgrid { grid-template-columns: 1fr 1fr; }
}
