/* ============ 光叙 GLOW · 款式库站 通用样式 ============ */
:root {
  --ivory: #FDFCFA;
  --paper: #FFFFFF;
  --paper-2: #F7F4EF;
  --ink: #1F1D1B;
  --ink-2: #4A453F;
  --ink-3: #8A827A;
  --line: #E8E2D9;
  --line-2: #D8D0C4;
  --gold: #B08A55;
  --gold-dark: #8E6C3C;
  --gold-soft: #F0E6D6;
  --rose: #C48B93;
  --dark: #1A1815;
  --dark-2: #24211D;
  --shadow-s: 0 2px 10px rgba(31, 29, 27, .05);
  --shadow-m: 0 10px 34px rgba(31, 29, 27, .08);
  --shadow-l: 0 24px 70px rgba(31, 29, 27, .16);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  --radius-l: 10px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 15px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 2px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.serif { font-family: var(--serif); }

/* ---------- 顶栏 ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(253, 252, 250, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold), #D9B98A);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-size: 17px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(176, 138, 85, .35);
}
.logo-text { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 2px; }
.logo-text small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 1.5px; color: var(--ink-3); font-weight: 400; line-height: 1; margin-top: 2px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius); font-size: 14.5px; color: var(--ink-2);
  transition: .18s; white-space: nowrap;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.active { color: var(--gold-dark); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14.5px; font-weight: 500; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-gold { background: linear-gradient(135deg, #C09A63, var(--gold)); color: #fff; }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(176, 138, 85, .3); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* 选款车按钮 */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper); font-size: 14px; color: var(--ink); transition: .18s;
}
.cart-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.cart-count {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[data-zero="1"] { background: var(--line-2); color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 84px; background: var(--ivory); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -180px;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,230,214,.85), rgba(240,230,214,0) 66%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 2.5px; color: var(--gold-dark);
  text-transform: uppercase; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(38px, 5vw, 62px); line-height: 1.24;
  margin: 0 0 22px; font-weight: 700; white-space: pre-line; letter-spacing: 1px;
}
.hero-lead { font-size: 16.5px; color: var(--ink-2); margin: 0 0 34px; max-width: 30em; line-height: 1.85; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-stats .stat-v { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.1; }
.hero-stats .stat-l { font-size: 12.5px; color: var(--ink-3); letter-spacing: .5px; margin-top: 4px; }

/* Hero 右侧拼图 */
.hero-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-collage .hc {
  border-radius: var(--radius-l); overflow: hidden; background: var(--paper-2);
  box-shadow: var(--shadow-m); position: relative;
}
.hero-collage .hc img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-collage .hc:hover img { transform: scale(1.05); }
.hero-collage .hc:nth-child(1) { grid-column: span 2; aspect-ratio: 4/3; }
.hero-collage .hc:nth-child(2) { aspect-ratio: 3/4; }
.hero-collage .hc:nth-child(3) { aspect-ratio: 3/4; margin-top: -34px; }
.hero-collage .hc:nth-child(4) { aspect-ratio: 3/4; margin-top: -34px; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); margin: 14px 0 14px;
  font-weight: 700; letter-spacing: 1px; line-height: 1.35;
}
.section-head p { color: var(--ink-2); margin: 0; font-size: 15.5px; line-height: 1.85; }

/* ---------- 分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.cat-card {
  position: relative; padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--paper); overflow: hidden; transition: .25s; cursor: pointer;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(176,138,85,.09), rgba(176,138,85,0));
  opacity: 0; transition: .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.cat-card:hover::after { opacity: 1; }
.cat-icon { font-size: 26px; margin-bottom: 14px; }
.cat-name { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 7px; position: relative; }
.cat-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; position: relative; }
.cat-count {
  position: absolute; top: 20px; right: 22px; font-size: 12px; color: var(--gold-dark);
  background: var(--gold-soft); padding: 3px 9px; border-radius: 20px; font-weight: 600;
}

/* ---------- 套图卡片 ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 26px; }
.set-card { cursor: pointer; transition: .25s; }
.set-card:hover { transform: translateY(-5px); }
.set-cover {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow-s); aspect-ratio: 3/4;
}
.set-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.set-card:hover .set-cover img { transform: scale(1.06); }
.set-cover .shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,15,.62) 0%, rgba(20,18,15,.14) 38%, transparent 62%);
  opacity: .92;
}
.set-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: linear-gradient(135deg, #C09A63, var(--gold)); color: #fff;
  font-size: 11.5px; padding: 4px 10px; border-radius: 20px; font-weight: 600; letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.set-count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(255,255,255,.9); color: var(--ink-2);
  font-size: 11.5px; padding: 4px 9px; border-radius: 20px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.set-cover .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; }
.set-cover .cap .t { font-family: var(--serif); font-size: 18.5px; font-weight: 700; letter-spacing: .5px; }
.set-cover .cap .m { font-size: 12px; opacity: .82; margin-top: 3px; }
.set-meta { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px 0; gap: 10px; }
.set-tags { display: flex; gap: 6px; flex-wrap: wrap; overflow: hidden; }
.tag {
  font-size: 11.5px; color: var(--ink-3); background: var(--paper-2);
  border: 1px solid var(--line); padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.set-price { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--gold-dark); white-space: nowrap; }
.set-price small { font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--ink-3); }

.pick-btn {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: var(--ink-2);
  display: grid; place-items: center; font-size: 17px; line-height: 1;
  transition: .18s; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.pick-btn:hover { background: #fff; transform: scale(1.12); color: var(--gold-dark); }
.pick-btn.on { background: var(--gold); color: #fff; }

/* ---------- 流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.flow-item { position: relative; padding: 30px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); }
.flow-item .n { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--gold-soft); line-height: 1; margin-bottom: 14px; }
.flow-item h4 { margin: 0 0 8px; font-size: 16.5px; font-family: var(--serif); font-weight: 700; }
.flow-item p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.75; }

/* ---------- 套餐 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 20px; align-items: start; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 32px 26px; position: relative; transition: .25s;
}
.plan:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.plan.hot { border-color: var(--gold); box-shadow: 0 12px 40px rgba(176,138,85,.16); background: linear-gradient(180deg, #FFFDF9, #fff 40%); }
.plan-ribbon {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #C09A63, var(--gold)); color: #fff;
  font-size: 11.5px; padding: 4px 14px; border-radius: 20px; letter-spacing: 1px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(176,138,85,.35);
}
.plan-name { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.plan-tag { font-size: 12.5px; color: var(--ink-3); min-height: 2.4em; }
.plan-price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .cur { font-size: 17px; color: var(--gold-dark); font-family: var(--serif); }
.plan-price .num { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; }
.plan-price .unit { font-size: 13px; color: var(--ink-3); }
.plan-delivery { font-size: 12.5px; color: var(--ink-2); margin-bottom: 18px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; }
.plan-features li { font-size: 13.5px; color: var(--ink-2); padding: 7px 0 7px 22px; position: relative; border-top: 1px dashed var(--line); }
.plan-features li:first-child { border-top: none; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 44px 20px 0;
  font-size: 15.5px; font-weight: 500; color: var(--ink); position: relative; line-height: 1.6;
}
.faq-q::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--gold); font-weight: 300; transition: .25s;
}
.faq-item.open .faq-q::after { content: "−"; transform: translateY(-50%) rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a-inner { padding: 0 44px 22px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(125deg, var(--dark) 0%, var(--dark-2) 55%, #2E2A22 100%);
  color: #fff; padding: 76px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; bottom: -240px; left: -120px; width: 620px; height: 620px;
  border-radius: 50%; background: radial-gradient(circle, rgba(176,138,85,.24), transparent 66%);
}
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); margin: 12px 0 10px; font-weight: 700; }
.cta-band p { color: rgba(255,255,255,.68); margin: 0; font-size: 15px; }
.cta-band .eyebrow { color: #D9B98A; }
.cta-band .eyebrow::before { background: #D9B98A; }

/* ---------- 页脚 ---------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 52px 0 32px; font-size: 13.5px; color: var(--ink-3); }
.footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
.footer h5 { font-size: 14px; color: var(--ink); margin: 0 0 14px; font-family: var(--serif); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 5px 0; }
.footer a:hover { color: var(--gold-dark); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px;
}
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  background: var(--gold-soft); color: var(--gold-dark);
  font-size: 11.5px; padding: 4px 10px; border-radius: var(--radius); font-weight: 600;
}

/* ================= 款式库页 ================= */
.gallery-hero {
  background: linear-gradient(180deg, var(--paper-2), var(--ivory));
  padding: 54px 0 34px; border-bottom: 1px solid var(--line);
}
.gallery-hero h1 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 42px); margin: 12px 0 10px; font-weight: 700; letter-spacing: 1px; }
.gallery-hero p { color: var(--ink-2); margin: 0; max-width: 46em; }

.toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(253,252,250,.9); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
.toolbar .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.chip {
  padding: 7px 15px; border-radius: 22px; border: 1px solid var(--line-2);
  background: var(--paper); font-size: 13.5px; color: var(--ink-2); transition: .18s; white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--gold-dark); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.search {
  position: relative; flex-shrink: 0;
}
.search input {
  width: 210px; padding: 8px 14px 8px 34px; border: 1px solid var(--line-2);
  border-radius: 22px; background: var(--paper); outline: none; transition: .18s;
}
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,138,85,.12); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.sort-select {
  padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 22px;
  background: var(--paper); outline: none; font-size: 13.5px; color: var(--ink-2);
}
.result-bar { padding: 22px 0 4px; font-size: 13.5px; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.empty { text-align: center; padding: 90px 0; color: var(--ink-3); }
.empty .ico { font-size: 44px; margin-bottom: 14px; opacity: .5; }

/* 骨架屏 */
.skeleton { border-radius: var(--radius-l); background: linear-gradient(100deg, var(--paper-2) 30%, #EFEAE2 50%, var(--paper-2) 70%); background-size: 220% 100%; animation: sk 1.3s infinite; }
@keyframes sk { 0% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
.sk-card .sk-cover { aspect-ratio: 3/4; margin-bottom: 12px; }
.sk-card .sk-line { height: 14px; margin-bottom: 8px; }
.sk-card .sk-line.w60 { width: 60%; }

/* ---------- 套图详情 / 灯箱 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(18, 16, 14, .93); backdrop-filter: blur(6px);
}
.modal.open { display: block; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.viewer { position: absolute; inset: 0; display: flex; flex-direction: column; }
.viewer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 24px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); flex-shrink: 0;
}
.viewer-head .vh-t { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.viewer-head .vh-m { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 2px; }
.viewer-close, .viewer-nav {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; transition: .18s; flex-shrink: 0;
}
.viewer-close:hover, .viewer-nav:hover { background: rgba(255,255,255,.24); }
.viewer-close:disabled, .viewer-nav:disabled { opacity: .3; cursor: not-allowed; }
.viewer-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; min-height: 0; gap: 12px; }
.viewer-body img {
  max-width: min(1080px, calc(100% - 110px)); max-height: 100%; object-fit: contain;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #222;
}
.viewer-nav.side { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 24px; background: rgba(0,0,0,.4); }
.viewer-nav.prev { left: 18px; }
.viewer-nav.next { right: 18px; }
.viewer-strip { display: flex; gap: 8px; padding: 12px 24px 20px; overflow-x: auto; flex-shrink: 0; justify-content: center; }
.viewer-strip img {
  width: 62px; height: 78px; object-fit: cover; border-radius: 4px; opacity: .48;
  cursor: pointer; transition: .18s; border: 2px solid transparent; flex-shrink: 0;
}
.viewer-strip img:hover { opacity: .85; }
.viewer-strip img.on { opacity: 1; border-color: var(--gold); }
.viewer-side {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 296px; max-height: calc(100% - 40px); overflow-y: auto;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 22px; color: #fff; backdrop-filter: blur(8px);
}
.viewer-side h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; font-weight: 700; }
.viewer-side .vs-price { font-family: var(--serif); font-size: 26px; color: #E7C88F; font-weight: 700; margin: 14px 0 4px; }
.viewer-side .vs-price small { font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,.55); font-weight: 400; margin-left: 4px; }
.viewer-side p { font-size: 13px; color: rgba(255,255,255,.68); line-height: 1.8; }
.viewer-side .vs-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; }
.viewer-side .tag { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.8); }

/* ---------- 选款单抽屉 ---------- */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(20,18,15,.42); z-index: 150;
  opacity: 0; visibility: hidden; transition: .28s; backdrop-filter: blur(2px);
}
.drawer-mask.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--paper); z-index: 160; transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1); display: flex; flex-direction: column;
  box-shadow: var(--shadow-l);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-family: var(--serif); font-size: 19px; margin: 0; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--paper-2); }
.pick-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.pick-item:last-child { border-bottom: none; }
.pick-item img { width: 58px; height: 74px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.pick-item .pi-main { flex: 1; min-width: 0; }
.pick-item .pi-t { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.pick-item .pi-m { font-size: 12px; color: var(--ink-3); }
.pick-item .pi-x {
  background: none; border: none; color: var(--ink-3); font-size: 18px; padding: 2px 6px; border-radius: 4px; line-height: 1;
}
.pick-item .pi-x:hover { background: var(--paper-2); color: #C0392B; }
.drawer-empty { text-align: center; padding: 70px 0; color: var(--ink-3); font-size: 14px; }
.drawer-sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 13.5px; color: var(--ink-3); }
.drawer-sum b { font-family: var(--serif); font-size: 24px; color: var(--gold-dark); }

/* Toast */
.toast-wrap { position: fixed; top: calc(var(--header-h) + 16px); left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 24px;
  font-size: 13.5px; box-shadow: var(--shadow-m); animation: toastIn .26s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ---------- 管理台 ---------- */
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 26px 24px 80px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-family: var(--serif); font-size: 25px; margin: 0; font-weight: 700; }
.admin-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-l); margin-bottom: 20px; box-shadow: var(--shadow-s);
}
.admin-bar .spacer { flex: 1; }
.hint {
  background: #FFF9EC; border: 1px solid #F0DFB8; color: #7A5D20;
  padding: 13px 16px; border-radius: var(--radius); font-size: 13.5px; line-height: 1.8; margin-bottom: 20px;
}
.hint b { color: #5C4310; }
table.admin-tbl { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); }
.admin-tbl th, .admin-tbl td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.admin-tbl th { background: var(--paper-2); font-weight: 600; color: var(--ink-2); font-size: 12.5px; letter-spacing: .5px; white-space: nowrap; }
.admin-tbl tr:last-child td { border-bottom: none; }
.admin-tbl tr:hover td { background: #FDFBF7; }
.admin-tbl img { width: 46px; height: 58px; object-fit: cover; border-radius: 4px; }
.tbl-actions { display: flex; gap: 6px; }
.mini-btn {
  padding: 4px 10px; border: 1px solid var(--line-2); background: var(--paper);
  border-radius: 4px; font-size: 12.5px; color: var(--ink-2); transition: .15s;
}
.mini-btn:hover { border-color: var(--ink); color: var(--ink); }
.mini-btn.danger:hover { border-color: #C0392B; color: #C0392B; background: #FDF1F0; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.switch input { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper); outline: none; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,138,85,.12); }
.field textarea { min-height: 78px; resize: vertical; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor-mask {
  position: fixed; inset: 0; background: rgba(20,18,15,.45); z-index: 180;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto;
}
.editor-mask.open { display: flex; }
.editor {
  background: var(--paper); border-radius: var(--radius-l); width: min(620px, 100%);
  box-shadow: var(--shadow-l); overflow: hidden; animation: fadeIn .2s;
}
.editor-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.editor-head h3 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.editor-body { padding: 22px 24px; }
.editor-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--paper-2); display: flex; justify-content: flex-end; gap: 10px; }
.img-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.img-list .il { position: relative; }
.img-list img { width: 60px; height: 76px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.img-list .il-x {
  position: absolute; top: -6px; right: -6px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid #fff; font-size: 11px;
  display: grid; place-items: center; line-height: 1; cursor: pointer;
}

/* 登录门 */
.gate { position: fixed; inset: 0; background: var(--ivory); z-index: 500; display: grid; place-items: center; }
.gate-box { width: min(360px, calc(100% - 40px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 34px 30px; box-shadow: var(--shadow-m); }
.gate-box h2 { font-family: var(--serif); margin: 0 0 6px; font-size: 21px; font-weight: 700; }
.gate-box p { color: var(--ink-3); font-size: 13px; margin: 0 0 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; gap: 46px; }
  .hero-collage { grid-template-columns: repeat(3, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .viewer-side { display: none; }
  .viewer-body img { max-width: calc(100% - 110px); }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .header .container { gap: 12px; }
  .nav { display: none; }
  .logo-text small { display: none; }
  .hero { padding: 56px 0 52px; }
  .hero-stats { gap: 26px; }
  .hero-stats .stat-v { font-size: 24px; }
  .section { padding: 60px 0; }
  .set-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .cat-card { padding: 20px 16px; }
  .search input { width: 100%; }
  .search { flex: 1; }
  .toolbar .container { gap: 10px; }
  .footer .container { grid-template-columns: 1fr; gap: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .viewer-strip img { width: 48px; height: 60px; }
  .viewer-head { padding: 12px 14px; }
  .viewer-head .vh-t { font-size: 16px; }
  .admin-tbl { font-size: 12.5px; }
  .admin-tbl th:nth-child(4), .admin-tbl td:nth-child(4) { display: none; }
}
