/* ==========================================================================
   古玩 · 古玩交易平台 — 共享设计系统
   Light mode only. System fonts only (no web fonts, no CDN).
   Naming: .block for containers, .block__el for elements, .is-* / .has-* for
   state. Palette lives entirely in the custom properties below.
   ========================================================================== */

:root {
  /* --- raw palette: ivory paper × obsidian lacquer × champagne gold ---
     奢品基调：象牙纸面为底，曜石黑为骨，香槟金为线，朱砂为印。 */
  --c-parchment: #f3eee1;
  --c-parchment-2: #e9e1cf;
  --c-surface: #fffdf7;
  --c-ink: #141209;
  --c-ink-2: #3a342a;
  --c-ink-3: #8a8172;
  --c-cinnabar: #9a2b20;
  --c-cinnabar-soft: #b7503f;
  --c-celadon: #35301f;      /* 店铺头像 → 曜石铜色 */
  --c-celadon-soft: #e7e0cf;
  --c-gold: #a8842f;
  --c-gold-2: #c9a24a;       /* 香槟金填充色 */
  --c-gold-hi: #e6c87f;      /* 暗底上的金 */
  --c-gold-soft: #f2e9d2;
  --c-line: #d8ccb4;
  --c-line-soft: #eae2d0;

  /* --- semantic aliases --- */
  --bg: var(--c-parchment);
  --bg-alt: var(--c-parchment-2);
  --surface: var(--c-surface);
  --surface-sunk: #f7f2e5;
  --text: var(--c-ink);
  --text-2: var(--c-ink-2);
  --muted: var(--c-ink-3);
  --accent: var(--c-cinnabar);
  --accent-soft: #f5e7e3;
  --border: var(--c-line);
  --border-soft: var(--c-line-soft);
  --success: #3d6f4c;
  --success-soft: #e5efe7;
  --warn: #96701f;
  --warn-soft: #f6eeda;
  --danger: var(--c-cinnabar);
  --danger-soft: #f6e6e3;

  /* --- luxe ornaments（奢品细节：发丝金线 / 曜石面 / 高光金） --- */
  --obsidian: #141209;
  --obsidian-2: #1d1a11;
  --ivory: #f4ecd9;
  --gold-line: rgba(201, 162, 74, 0.45);
  --gold-line-soft: rgba(201, 162, 74, 0.22);
  --gold-glass: rgba(201, 162, 74, 0.1);

  /* --- typography --- */
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;

  /* --- spacing scale --- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* --- shape + depth --- */
  --r-sm: 2px;
  --r: 4px;
  --r-lg: 6px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 18, 9, 0.07);
  --shadow-2: 0 10px 26px -14px rgba(20, 18, 9, 0.3);
  --shadow-3: 0 28px 64px -28px rgba(20, 18, 9, 0.45);
  --ring: 0 0 0 3px rgba(168, 132, 47, 0.32);
  --t-fast: 120ms ease;
  --t: 200ms ease;

  --header-h: 62px;
  --maxw: 1280px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-cinnabar-soft); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.3; margin: 0 0 var(--s-3); letter-spacing: 0.01em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s-3); }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: var(--s-5) 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* ==========================================================================
   Layout
   ========================================================================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }
.main { min-height: calc(100vh - var(--header-h)); padding: var(--s-6) 0 var(--s-8); }
.row { display: flex; gap: var(--s-3); align-items: center; }
.row-between { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; }
.row-wrap { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.spacer { flex: 1 1 auto; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.strong { font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }

.section { margin-bottom: var(--s-8); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--muted); font-size: var(--fs-sm); }

.grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.grid-2 { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.split { display: grid; grid-template-columns: 260px 1fr; gap: var(--s-6); align-items: start; }

.app-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(246, 241, 231, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.app-header .container { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.brand { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 700; color: var(--text); letter-spacing: 0.06em; display: flex; align-items: center; gap: var(--s-2); }
.brand .seal {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--c-cinnabar); color: #fff; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0;
}
.nav { display: flex; gap: var(--s-4); align-items: center; }
.nav a { color: var(--text-2); font-size: var(--fs-base); padding: var(--s-1) 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }

.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: var(--s-6) 0; margin-top: var(--s-8); color: var(--muted); font-size: var(--fs-sm); }

.sidebar { position: sticky; top: calc(var(--header-h) + var(--s-4)); background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: var(--s-4); }
.sidebar h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: var(--s-3); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #2c2620 0%, #453a2e 55%, #6b573f 100%);
  color: var(--c-parchment); padding: var(--s-8) var(--s-6); margin-bottom: var(--s-7);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 88% 12%, rgba(214, 178, 106, 0.22), transparent 62%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fdf8ee; font-size: var(--fs-3xl); margin-bottom: var(--s-3); }
.hero p { color: rgba(253, 248, 238, 0.82); max-width: 56ch; font-size: var(--fs-md); }
.hero .eyebrow { color: var(--c-gold); font-size: var(--fs-sm); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: var(--s-3); }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); }

.cat-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.cat-tile {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r);
  padding: var(--s-4) var(--s-2); text-align: center; cursor: pointer;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.cat-tile:hover { transform: translateY(-2px); border-color: var(--c-gold); box-shadow: var(--shadow-2); color: var(--text); }
.cat-tile .cn { font-family: var(--font-serif); font-size: var(--fs-md); }
.cat-tile .en { font-size: var(--fs-xs); color: var(--muted); }

/* ==========================================================================
   Cards
   ========================================================================== */
.product-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--c-gold); }
.product-card .thumb { position: relative; aspect-ratio: 1 / 1; background: var(--surface-sunk); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .flag { position: absolute; top: var(--s-2); left: var(--s-2); }
.product-card .body { padding: var(--s-3) var(--s-4) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.product-card .title { font-family: var(--font-serif); font-size: var(--fs-base); line-height: 1.45; min-height: 2.9em; }
.product-card .price { font-family: var(--font-serif); font-size: var(--fs-lg); color: var(--c-cinnabar); font-weight: 600; }
.product-card .price s { color: var(--muted); font-size: var(--fs-sm); font-weight: 400; margin-left: var(--s-2); }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--muted); border-top: 1px dashed var(--border-soft); padding-top: var(--s-2); margin-top: auto; }

.store-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: var(--s-4); display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; transition: border-color var(--t), box-shadow var(--t); }
.store-card:hover { border-color: var(--c-gold); box-shadow: var(--shadow-2); }
.store-card .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-size: var(--fs-lg); color: #fff; background: var(--c-celadon); flex: none; }
.store-card h4 { margin: 0 0 2px; }

.article-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: var(--s-4); cursor: pointer; transition: border-color var(--t), box-shadow var(--t); }
.article-card:hover { border-color: var(--c-gold); box-shadow: var(--shadow-2); }
.article-card .kicker { color: var(--c-cinnabar); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; }

.panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: var(--s-5); }
.panel-sunk { background: var(--surface-sunk); border: 1px dashed var(--border); border-radius: var(--r-lg); padding: var(--s-5); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 9px var(--s-4); border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: var(--fs-base);
  font-weight: 500; cursor: pointer; white-space: nowrap; text-align: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn:hover { border-color: var(--c-ink-3); background: var(--surface-sunk); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--c-cinnabar); border-color: var(--c-cinnabar); color: #fff; }
.btn-primary:hover { background: var(--c-cinnabar-soft); border-color: var(--c-cinnabar-soft); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(36, 31, 26, 0.06); border-color: transparent; }
.btn-outline { background: transparent; border-color: var(--c-gold); color: var(--c-gold); }
.btn-outline:hover { background: var(--c-gold-soft); border-color: var(--c-gold); color: var(--c-ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--c-cinnabar-soft); border-color: var(--c-cinnabar-soft); color: #fff; }
.btn-sm { padding: 5px var(--s-3); font-size: var(--fs-sm); }
.btn-lg { padding: 12px var(--s-5); font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn.is-loading::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cart-btn { position: relative; }
.cart-btn .count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; border-radius: var(--r-pill);
  background: var(--c-cinnabar); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: var(--s-4); }
.field > label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field .err { font-size: var(--fs-xs); color: var(--danger); }
input, select, textarea {
  width: 100%; padding: 9px var(--s-3); font-family: inherit; font-size: var(--fs-base);
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-gold); box-shadow: var(--ring); }
input[disabled], select[disabled], textarea[disabled] { background: var(--surface-sunk); color: var(--muted); cursor: not-allowed; }
textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: var(--s-6); }
input[type="checkbox"], input[type="radio"] { width: auto; margin-right: 6px; accent-color: var(--c-cinnabar); }
.form-grid { display: grid; gap: 0 var(--s-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.checkbox { display: flex; align-items: center; font-size: var(--fs-base); cursor: pointer; }

/* ==========================================================================
   Badges / status pills
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1.7;
  background: var(--surface-sunk); color: var(--text-2); border: 1px solid var(--border-soft); white-space: nowrap;
}
.badge-pending, .badge-pending_review, .badge-unpaid { background: var(--warn-soft); color: #7d5814; border-color: #e6d4a8; }
.badge-paid, .badge-active, .badge-approved, .badge-received { background: var(--success-soft); color: #2f6640; border-color: #bcd9c3; }
.badge-shipped, .badge-shipping { background: #e2ecf6; color: #2c5578; border-color: #bcd4ea; }
.badge-completed, .badge-done { background: var(--c-celadon-soft); color: #3f5a4c; border-color: #c3d5c9; }
.badge-cancelled, .badge-failed, .badge-rejected, .badge-danger { background: var(--danger-soft); color: #8c2b24; border-color: #e8c4bf; }
.badge-refunding, .badge-refunded { background: var(--c-gold-soft); color: #7a5f1c; border-color: #e3d3a9; }
.badge-draft, .badge-off_shelf, .badge-pending_payment { background: var(--surface-sunk); color: var(--muted); }
.badge-cert { background: var(--c-gold-soft); color: #7a5f1c; border-color: #e3d3a9; }
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: #e8c8c2; }

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 620px; }
.table th {
  text-align: left; font-weight: 600; color: var(--text-2); background: var(--surface-sunk);
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); white-space: nowrap; font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase;
}
.table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: rgba(250, 245, 234, 0.5); }
.table tbody tr:hover { background: var(--c-gold-soft); }
.table .actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ==========================================================================
   Tabs
   ========================================================================== */
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--border); margin-bottom: var(--s-5); overflow-x: auto; }
.tab {
  padding: var(--s-3) var(--s-4); border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: var(--fs-base); color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Modal + drawer
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--s-4);
  background: rgba(28, 24, 20, 0.5); backdrop-filter: blur(2px); animation: fade var(--t);
}
.modal {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  width: min(520px, 100%); max-height: 88vh; overflow: auto; animation: pop var(--t);
}
.modal-lg { width: min(820px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; background: var(--surface); }
.modal-head h3 { margin: 0; }
.modal-body { padding: var(--s-5); }
.modal-foot { display: flex; justify-content: flex-end; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border-soft); }
.icon-btn { border: 0; background: transparent; cursor: pointer; font-size: var(--fs-lg); line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: var(--r-sm); }
.icon-btn:hover { background: rgba(36, 31, 26, 0.07); color: var(--text); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(28, 24, 20, 0.42); animation: fade var(--t); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(430px, 100%);
  background: var(--surface); box-shadow: var(--shadow-3); display: flex; flex-direction: column;
  animation: slide-in var(--t);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border-soft); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-5); }
.drawer-foot { border-top: 1px solid var(--border-soft); padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
@keyframes slide-in { from { transform: translateX(100%); } }

.cart-line { display: grid; grid-template-columns: 68px 1fr auto; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--border-soft); align-items: center; }
.cart-line img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--border-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.qty button { border: 0; background: var(--surface-sunk); width: 26px; height: 28px; cursor: pointer; font-size: var(--fs-md); color: var(--text-2); }
.qty button:hover { background: var(--c-gold-soft); }
.qty input { width: 42px; text-align: center; border: 0; border-radius: 0; padding: 4px 0; }
.totals { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-sm); }
.totals .line { display: flex; justify-content: space-between; }
.totals .grand { font-size: var(--fs-md); font-weight: 700; color: var(--accent); border-top: 1px dashed var(--border); padding-top: var(--s-2); }

/* ==========================================================================
   Toasts
   ========================================================================== */
.toast-host { position: fixed; top: calc(var(--header-h) + 12px); right: var(--s-5); z-index: 120; display: flex; flex-direction: column; gap: var(--s-2); max-width: min(360px, calc(100vw - 32px)); }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--muted);
  border-radius: var(--r); box-shadow: var(--shadow-2); padding: var(--s-3) var(--s-4);
  font-size: var(--fs-sm); animation: slide-in var(--t);
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warn { border-left-color: var(--warn); }
.toast .t-title { font-weight: 600; margin-bottom: 2px; }

/* ==========================================================================
   States
   ========================================================================== */
.empty { text-align: center; padding: var(--s-8) var(--s-4); color: var(--muted); }
.empty .glyph { font-family: var(--font-serif); font-size: var(--fs-2xl); color: var(--border); margin-bottom: var(--s-3); }
.loading { display: flex; align-items: center; justify-content: center; gap: var(--s-3); padding: var(--s-7); color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 0.7s linear infinite; flex: none; }
.skeleton { background: linear-gradient(90deg, var(--surface-sunk) 25%, var(--bg-alt) 37%, var(--surface-sunk) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-card { height: 300px; }

/* ==========================================================================
   AI panels — headline feature
   ========================================================================== */
.ai-panel { background: linear-gradient(168deg, #23201c 0%, #332c24 60%, #3d332a 100%); color: #f3ece0; border-radius: var(--r-lg); padding: var(--s-5); position: relative; overflow: hidden; }
.ai-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 92% 0%, rgba(198, 160, 92, 0.2), transparent 60%); pointer-events: none;
}
.ai-panel > * { position: relative; z-index: 1; }
.ai-panel h3, .ai-panel h4 { color: #fdf7ea; }
.ai-panel .muted { color: rgba(243, 236, 224, 0.62); }
.ai-panel .eyebrow { color: var(--c-gold); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; }
.ai-panel-header { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.ai-panel-header .dot { width: 7px; height: 7px; border-radius: 50%; background: #6fbf7f; box-shadow: 0 0 0 4px rgba(111, 191, 127, 0.18); flex: none; }
.ai-panel .btn { border-color: rgba(243, 236, 224, 0.26); background: rgba(243, 236, 224, 0.08); color: #f3ece0; }
.ai-panel .btn:hover { background: rgba(243, 236, 224, 0.16); border-color: rgba(243, 236, 224, 0.42); color: #fff; }
.ai-panel .btn-primary { background: var(--c-cinnabar); border-color: var(--c-cinnabar); color: #fff; }
.ai-panel input, .ai-panel textarea, .ai-panel select { background: rgba(243, 236, 224, 0.07); border-color: rgba(243, 236, 224, 0.22); color: #fdf7ea; }
.ai-panel input::placeholder, .ai-panel textarea::placeholder { color: rgba(243, 236, 224, 0.4); }
.ai-panel input:focus, .ai-panel textarea:focus { border-color: var(--c-gold); }

.ai-score-ring {
  --pct: 0; --size: 108px;
  width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--c-gold) calc(var(--pct) * 1%), rgba(243, 236, 224, 0.14) 0);
}
.ai-score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #2b2620; }
.ai-score-ring .val { position: relative; font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 700; color: #fdf7ea; line-height: 1; text-align: center; }
.ai-score-ring .val small { display: block; font-size: 10px; letter-spacing: 0.1em; color: rgba(243, 236, 224, 0.55); font-family: var(--font-sans); font-weight: 400; margin-top: 3px; }

.ai-bars { display: flex; flex-direction: column; gap: var(--s-3); }
.ai-bar { display: grid; grid-template-columns: 92px 1fr 42px; gap: var(--s-3); align-items: center; font-size: var(--fs-sm); }
.ai-bar-fill { height: 7px; border-radius: var(--r-pill); background: rgba(243, 236, 224, 0.14); overflow: hidden; }
.ai-bar-fill > i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--c-celadon), var(--c-gold)); }
.ai-reasons { margin: 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 5px; }
.ai-reasons li { font-size: var(--fs-sm); color: rgba(243, 236, 224, 0.86); }
.ai-reasons li::marker { color: var(--c-gold); }

.ai-result {
  display: grid; grid-template-columns: 92px 1fr auto; gap: var(--s-4); align-items: center;
  background: rgba(243, 236, 224, 0.06); border: 1px solid rgba(243, 236, 224, 0.12);
  border-radius: var(--r); padding: var(--s-3); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast);
}
.ai-result:hover { background: rgba(243, 236, 224, 0.12); border-color: var(--c-gold); }
.ai-result img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-sm); }
.ai-result .score { font-family: var(--font-serif); font-size: var(--fs-lg); color: var(--c-gold); font-weight: 700; text-align: right; }
.ai-result .score small { display: block; font-size: 10px; letter-spacing: 0.08em; color: rgba(243, 236, 224, 0.5); font-family: var(--font-sans); font-weight: 400; }
.ai-result .why { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ai-result .why span { font-size: 11px; padding: 1px 7px; border-radius: var(--r-pill); background: rgba(198, 160, 92, 0.18); color: #e8cf9d; }
.ai-result .price { font-family: var(--font-serif); color: #fdf7ea; font-weight: 600; }

.ai-light { background: var(--surface); border: 1px solid var(--border-soft); color: var(--text); }
.ai-light .muted { color: var(--muted); }
.ai-light .ai-reasons li { color: var(--text-2); }
.ai-light .ai-result { background: var(--surface-sunk); border-color: var(--border-soft); }
.ai-light .ai-result:hover { background: var(--c-gold-soft); }
.ai-light .ai-result .price { color: var(--accent); }
.ai-light .ai-bar-fill { background: var(--border-soft); }
.ai-light .ai-score-ring::before { background: var(--surface); }

.sparkline { width: 100%; height: 46px; display: block; }
.sparkline path.line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sparkline path.area { fill: url(#sparkGrad); stroke: none; }
.sparkline circle.dot { fill: var(--accent); }

/* ==========================================================================
   Console / admin
   ========================================================================== */
.stat-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: var(--s-4); }
.stat-card .k { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.stat-card .v { font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; }
.stat-card .d { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }
.stat-card.accent .v { color: var(--accent); }
.stat-card.good .v { color: var(--success); }

.toolbar { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-4); }
.toolbar .search { flex: 1 1 220px; max-width: 340px; }
.role-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.role-switch button { border: 0; background: transparent; padding: 7px var(--s-4); font-family: inherit; font-size: var(--fs-sm); cursor: pointer; color: var(--text-2); }
.role-switch button + button { border-left: 1px solid var(--border); }
.role-switch button.is-active { background: var(--c-ink); color: var(--c-parchment); }

.console-shell { display: grid; grid-template-columns: 216px 1fr; gap: var(--s-6); align-items: start; }
.console-nav { position: sticky; top: calc(var(--header-h) + var(--s-4)); background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-lg); padding: var(--s-3); display: flex; flex-direction: column; gap: 2px; }
.console-nav button {
  text-align: left; border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: var(--fs-sm); color: var(--text-2); padding: 9px var(--s-3); border-radius: var(--r);
  display: flex; align-items: center; gap: var(--s-2); transition: background var(--t-fast), color var(--t-fast);
}
.console-nav button:hover { background: var(--surface-sunk); color: var(--text); }
.console-nav button.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.console-nav .group { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: var(--s-3) var(--s-3) 5px; }

/* ==========================================================================
   Misc components
   ========================================================================== */
.pagination { display: flex; gap: var(--s-2); align-items: center; justify-content: center; margin-top: var(--s-6); flex-wrap: wrap; }
.pagination button { min-width: 34px; height: 34px; padding: 0 var(--s-2); border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); cursor: pointer; font-family: inherit; font-size: var(--fs-sm); }
.pagination button:hover:not(:disabled) { border-color: var(--c-gold); background: var(--c-gold-soft); }
.pagination button.is-active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-parchment); font-weight: 600; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.breadcrumb { display: flex; gap: var(--s-2); align-items: center; font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-4); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.gallery .main-img { aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-soft); background: var(--surface-sunk); }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: var(--s-2); margin-top: var(--s-3); flex-wrap: wrap; }
.gallery .thumbs button { width: 66px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--surface-sunk); }
.gallery .thumbs button.is-active { border-color: var(--c-cinnabar); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.price-block { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.price-block .now { font-family: var(--font-serif); font-size: var(--fs-2xl); color: var(--accent); font-weight: 700; }
.price-block .was { color: var(--muted); text-decoration: line-through; }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; }
.spec-table th { width: 96px; color: var(--muted); font-weight: 500; }

.cert-box { background: var(--c-gold-soft); border: 1px solid #e3d3a9; border-radius: var(--r); padding: var(--s-3) var(--s-4); display: flex; gap: var(--s-3); align-items: flex-start; }
.cert-box .mark { font-size: var(--fs-lg); line-height: 1; }

.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-4); position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline li { position: relative; padding-left: var(--s-5); font-size: var(--fs-sm); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c-gold); }
.timeline .t { color: var(--muted); font-size: var(--fs-xs); }

.rating-stars { color: var(--c-gold); letter-spacing: 1px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c-celadon); color: #fff; font-size: var(--fs-xs); font-weight: 600; flex: none; }

.divider-label { display: flex; align-items: center; gap: var(--s-3); color: var(--muted); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; margin: var(--s-5) 0 var(--s-4); }
.divider-label::before, .divider-label::after { content: ""; height: 1px; background: var(--border-soft); flex: 1; }

.chip-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chip { padding: 5px var(--s-3); border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-sm); cursor: pointer; transition: all var(--t-fast); }
.chip:hover { border-color: var(--c-gold); background: var(--c-gold-soft); }
.chip.is-active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-parchment); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .console-shell { grid-template-columns: 1fr; }
  .console-nav { position: static; flex-direction: row; overflow-x: auto; }
  .console-nav .group { display: none; }
  .console-nav button { white-space: nowrap; }
  .hero { padding: var(--s-7) var(--s-5); }
  .hero h1 { font-size: var(--fs-2xl); }
}
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .container { padding: 0 var(--s-4); }
  .nav { display: none; }
  .nav.is-open { display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: var(--surface); padding: var(--s-4); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-4); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: var(--s-6) var(--s-4); }
  .hero h1 { font-size: var(--fs-xl); }
  .panel, .panel-sunk, .ai-panel { padding: var(--s-4); }
  .ai-result { grid-template-columns: 64px 1fr; }
  .ai-result img { width: 64px; height: 64px; }
  .ai-result .score { grid-column: 2; text-align: left; }
  .ai-bar { grid-template-columns: 68px 1fr 36px; font-size: var(--fs-xs); }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
  .toast-host { left: var(--s-4); right: var(--s-4); max-width: none; }
  .table { min-width: 520px; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .app-header, .footer, .btn, .toast-host, .drawer, .drawer-backdrop, .modal-backdrop { display: none !important; }
  body { background: #fff; }
  .panel, .table-wrap { border-color: #ccc; box-shadow: none; }
  /* 打印时强制所有入场/滚动渐显为可见终态 */
  .section, .grid > * { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   LUXE — 极尽奢品层（象牙纸面 × 曜石黑 × 香槟金）
   只覆盖颜色 / 线条 / 光影 / 字距，不改任何布局属性（display/grid/flex/尺寸），
   因此对上方 640px / 1024px 断点安全。同特异性 → 文件靠后者生效。
   ========================================================================== */

/* --- 纸面：极淡暖晕染，如手工宣纸的自然色泽 --- */
body {
  background-image:
    radial-gradient(1100px 560px at 10% -10%, rgba(201, 162, 74, 0.07), transparent 62%),
    radial-gradient(900px 520px at 94% 2%, rgba(154, 43, 32, 0.05), transparent 60%),
    radial-gradient(1000px 760px at 50% 112%, rgba(20, 18, 9, 0.06), transparent 70%);
}
h1, h2, h3, h4 { letter-spacing: 0.035em; }

/* --- 顶栏：曜石黑 + 双金线 --- */
.app-header {
  background: rgba(17, 15, 8, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.55);
  box-shadow: 0 3px 0 -1px rgba(201, 162, 74, 0.22);
}
.app-header .brand { color: #f6efdd; letter-spacing: 0.16em; }
.app-header .brand .seal {
  background: linear-gradient(155deg, #e0bd6d 0%, #c9a24a 45%, #96731f 100%);
  color: #17140b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 2px 8px -3px rgba(0, 0, 0, 0.7);
}
.app-header .nav a { color: rgba(244, 236, 217, 0.72); letter-spacing: 0.08em; }
.app-header .nav a:hover { color: #f8f2e3; }
.app-header .nav a.is-active { color: var(--c-gold-hi); border-bottom-color: var(--c-gold-hi); }
.app-header .btn { background: transparent; color: #efe4cb; border-color: rgba(201, 162, 74, 0.55); }
.app-header .btn:hover { background: rgba(201, 162, 74, 0.16); border-color: var(--c-gold-hi); color: #fff8e6; }
.app-header .btn-ghost { background: transparent; border-color: transparent; color: rgba(244, 236, 217, 0.78); }
.app-header .btn-ghost:hover { background: rgba(201, 162, 74, 0.16); border-color: transparent; color: #fdf7e6; }
.app-header .btn-outline { color: var(--c-gold-hi); border-color: rgba(201, 162, 74, 0.7); background: transparent; }
.app-header .btn-outline:hover { background: var(--c-gold-hi); color: #17140b; border-color: var(--c-gold-hi); }
.app-header .btn-primary,
.app-header .btn-primary:hover {
  background: linear-gradient(160deg, #ddbd70 0%, #c9a24a 52%, #ab8733 100%);
  border-color: #a3802c; color: #17140b;
}
.app-header .role-switch { background: rgba(255, 255, 255, 0.06); border-color: rgba(201, 162, 74, 0.4); }
.app-header .role-switch button { color: rgba(244, 236, 217, 0.75); }
.app-header .role-switch button + button { border-left-color: rgba(201, 162, 74, 0.35); }
.app-header .role-switch button.is-active { background: linear-gradient(160deg, #d8b45f, #b8944a); color: #17140b; }
.app-header .badge-accent { background: rgba(201, 162, 74, 0.16); color: var(--c-gold-hi); border-color: rgba(201, 162, 74, 0.5); }

/* --- 页脚：曜石黑 + 金顶线 --- */
.footer {
  background: linear-gradient(180deg, #17140b 0%, #100e08 100%);
  color: rgba(244, 236, 217, 0.6);
  border-top: 1px solid rgba(201, 162, 74, 0.5);
  box-shadow: inset 0 1px 0 rgba(201, 162, 74, 0.2);
}
.footer .brand { color: #f6efdd; }
.footer .brand .seal {
  background: linear-gradient(155deg, #e0bd6d, #a8842f); color: #17140b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.footer .xs, .footer p { color: rgba(244, 236, 217, 0.55); }

/* --- Hero：曜石漆面 + 金光 + 内嵌金框（珍品装裱感） --- */
.hero {
  background:
    radial-gradient(130% 120% at 80% 6%, rgba(201, 162, 74, 0.3), transparent 55%),
    linear-gradient(140deg, #141209 0%, #221d13 50%, #38301f 100%);
  border: 1px solid rgba(201, 162, 74, 0.5);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.55), var(--shadow-3);
}
.hero::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgba(201, 162, 74, 0.35);
  background: radial-gradient(120% 90% at 88% 12%, rgba(214, 178, 106, 0.16), transparent 60%);
}
.hero h1 { color: #faf3e2; letter-spacing: 0.06em; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55); }
.hero p { color: rgba(246, 239, 222, 0.78); }
.hero .eyebrow { color: var(--c-gold-hi); letter-spacing: 0.3em; }

/* --- 章节标题：金色短线（奢品目录的章节规） --- */
.section-head h2 { position: relative; padding-bottom: 12px; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 2px;
  background: linear-gradient(90deg, var(--c-gold-2), rgba(201, 162, 74, 0));
}

/* --- 分类瓷贴 --- */
.cat-tile { background: linear-gradient(180deg, #fffdf7 0%, #f8f3e7 100%); border-color: rgba(201, 162, 74, 0.35); }
.cat-tile:hover { border-color: var(--c-gold); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(201, 162, 74, 0.3); }
.cat-tile .cn { letter-spacing: 0.06em; }

/* --- 藏品卡：象牙卡纸 + 金细框 + 画框式内描金 --- */
.product-card {
  background: linear-gradient(180deg, #fffef9 0%, #fbf7ec 100%);
  border-color: rgba(201, 162, 74, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--shadow-1);
}
.product-card:hover {
  border-color: var(--c-gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 20px 44px -26px rgba(20, 18, 9, 0.6);
}
.product-card .thumb { background: linear-gradient(160deg, #f0e8d6, #e5dbc4); }
.product-card .thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.5), inset 0 0 46px rgba(20, 18, 9, 0.16);
}
.product-card .thumb .flag { z-index: 2; }
.product-card .title { letter-spacing: 0.02em; }
.product-card .meta { border-top: 1px solid rgba(201, 162, 74, 0.32); }

/* --- 卡片族统一金细框 --- */
.store-card, .article-card, .panel, .sidebar, .stat-card, .console-nav {
  border-color: rgba(201, 162, 74, 0.34);
}
.panel, .store-card, .article-card, .stat-card {
  background: linear-gradient(180deg, #fffef9 0%, #fbf7ed 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), var(--shadow-1);
}
.panel-sunk { background: #f4eddc; border: 1px solid rgba(201, 162, 74, 0.3); }
.store-card:hover, .article-card:hover { border-color: var(--c-gold); }
.store-card .avatar {
  background: linear-gradient(155deg, #4a4128 0%, #35301f 55%, #232013 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.55);
}

/* --- 按钮：金为尊 --- */
.btn { background: linear-gradient(180deg, #fffef9, #f8f3e7); border-color: rgba(201, 162, 74, 0.42); letter-spacing: 0.05em; }
.btn:hover { background: linear-gradient(180deg, #f8f2e3, #f1e9d6); border-color: var(--c-gold); color: var(--text); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(20, 18, 9, 0.07); border-color: transparent; color: var(--text); }
.btn-primary {
  background: linear-gradient(160deg, #ddbd70 0%, #c9a24a 52%, #ab8733 100%);
  border-color: #a3802c; color: #17140b; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 26px -16px rgba(168, 132, 47, 0.95);
}
.btn-primary:hover {
  background: linear-gradient(160deg, #e9cd87 0%, #d4ac55 52%, #b99340 100%);
  border-color: #8f7025; color: #17140b;
}
.btn-outline { background: transparent; border-color: rgba(168, 132, 47, 0.75); color: #85651f; }
.btn-outline:hover { background: var(--obsidian); border-color: var(--obsidian); color: var(--c-gold-hi); }
.btn-danger { background: linear-gradient(160deg, #a8342a, #8b241b); border-color: #7a1f17; color: #fff; }
.btn-danger:hover { background: linear-gradient(160deg, #b7503f, #9a2b20); border-color: #7a1f17; color: #fff; }

/* --- 徽章：描金 --- */
.badge { letter-spacing: 0.06em; font-weight: 600; border: 1px solid transparent; }
.badge-accent, .badge-cert {
  background: linear-gradient(160deg, #f7efdb, #eee1c3);
  color: #7d6018; border-color: rgba(168, 132, 47, 0.55);
}

/* --- 表格 / 标签 / 分页 --- */
.table th {
  background: linear-gradient(180deg, #f5eedd, #efe6d0);
  color: var(--text); letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(201, 162, 74, 0.55);
}
.table tbody tr:nth-child(even) { background: rgba(245, 238, 221, 0.5); }
.table tbody tr:hover { background: rgba(201, 162, 74, 0.09); }
.tab { color: var(--muted); letter-spacing: 0.04em; }
.tab.is-active { color: #7d6018; border-bottom-color: var(--c-gold); }
.pagination button { background: linear-gradient(180deg, #fffef9, #f8f3e7); border-color: rgba(201, 162, 74, 0.4); }
.pagination button:hover:not(:disabled) { border-color: var(--c-gold); background: var(--c-gold-soft); }
.pagination button.is-active { background: var(--obsidian); border-color: var(--obsidian); color: var(--c-gold-hi); }

/* --- 弹层 --- */
.modal {
  background: linear-gradient(180deg, #fffef9, #faf6ea);
  border: 1px solid rgba(201, 162, 74, 0.55);
  box-shadow: 0 50px 100px -50px rgba(20, 18, 9, 0.75);
}
.modal-head { border-bottom: 1px solid rgba(201, 162, 74, 0.4); }
.drawer { border-left: 1px solid rgba(201, 162, 74, 0.55); box-shadow: -30px 0 60px -40px rgba(20, 18, 9, 0.7); }

/* --- 后台控制台 --- */
.console-nav button.is-active { background: rgba(201, 162, 74, 0.16); color: #7d6018; }
.console-nav .group { letter-spacing: 0.16em; color: #9a8f7a; }
.stat-card .k { letter-spacing: 0.12em; }
.role-switch { background: var(--surface); border-color: rgba(201, 162, 74, 0.4); }

/* --- AI 面板：暗底描金（仅非 .ai-light 变体） --- */
.ai-panel:not(.ai-light) {
  border: 1px solid rgba(201, 162, 74, 0.45);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.1), 0 30px 60px -40px rgba(0, 0, 0, 0.85);
}
.ai-panel:not(.ai-light) .eyebrow { color: var(--c-gold-hi); letter-spacing: 0.28em; }
.ai-panel:not(.ai-light) .btn {
  background: rgba(201, 162, 74, 0.12); border-color: rgba(201, 162, 74, 0.45); color: #f4ecd9;
}
.ai-panel:not(.ai-light) .btn:hover {
  background: rgba(201, 162, 74, 0.22); border-color: var(--c-gold-hi); color: #fff8e6;
}
.ai-panel:not(.ai-light) .btn-primary,
.ai-panel:not(.ai-light) .btn-primary:hover {
  background: linear-gradient(160deg, #ddbd70, #ab8733); border-color: #a3802c; color: #17140b;
}
.ai-result .why span { background: rgba(201, 162, 74, 0.2); color: #ecd6a4; }
.ai-light .ai-result .why span { background: var(--c-gold-soft); color: #7d6018; }

/* --- 细节收束：字距与分隔 --- */
.breadcrumb .sep { color: rgba(168, 132, 47, 0.7); }
.divider-label { color: #8a7a4f; }
.chip { border-color: rgba(201, 162, 74, 0.4); }
.chip.is-active { background: var(--obsidian); border-color: var(--obsidian); color: var(--c-gold-hi); }
.cert-box { border-color: rgba(201, 162, 74, 0.55); }
.price-block .now { color: var(--c-cinnabar); }
.spec-table th { color: #7d6018; letter-spacing: 0.05em; }

/* ==========================================================================
   MODERN — 浮动 · 立体 · 动效
   动画一律包在 prefers-reduced-motion: no-preference 内（可访问性降级）；
   滚动渐显另加 @supports (animation-timeline: view()) 双保险；
   仍只改 transform / opacity / transition，不碰布局属性。
   ========================================================================== */

/* --- 现代细节：选中色 + 滚动条（与动效无关，常驻） --- */
::selection { background: rgba(201, 162, 74, 0.38); color: var(--text); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #d8bd7a, #b8944a); border-radius: 999px; border: 3px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #e3cb8c, #c9a24a); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* --- 动效基元 --- */
  @keyframes gx-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes gx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  @keyframes gx-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(111, 191, 127, 0.2); } 50% { box-shadow: 0 0 0 9px rgba(111, 191, 127, 0.04); } }
  @keyframes gx-frame { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.95; } }
  @keyframes gx-sheen { 0% { left: -70%; } 100% { left: 140%; } }

  /* --- 立体：藏品卡 3D 悬停 + 图片内推 --- */
  .product-card { transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.55s ease, border-color 0.4s ease; }
  .product-card:hover {
    transform: perspective(1000px) rotateX(3.5deg) rotateY(-4.5deg) translateY(-10px) scale(1.015);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 34px 60px -30px rgba(20, 18, 9, 0.65);
  }
  .product-card .thumb img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .product-card:hover .thumb img { transform: scale(1.07); }
  /* 浮动：悬停时鉴定标微微浮动 */
  .product-card:hover .thumb .flag { animation: gx-float 2.8s ease-in-out infinite; }

  /* --- 浮动：卡片群抬升 --- */
  .stat-card, .store-card, .article-card, .cat-tile, .panel, .sidebar {
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease, border-color 0.4s ease;
  }
  .stat-card:hover, .store-card:hover, .article-card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 28px 52px -30px rgba(20, 18, 9, 0.55);
  }
  .cat-tile:hover { transform: translateY(-5px) scale(1.03); }
  .panel:hover, .sidebar:hover { transform: translateY(-3px); }

  /* --- 立体：按钮悬浮 + 按压回弹 + 金流光 --- */
  .btn { transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease,
    background 0.28s ease, border-color 0.28s ease, color 0.28s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -14px rgba(20, 18, 9, 0.55); }
  .btn:active { transform: translateY(1px) scale(0.985); box-shadow: none; }
  /* 焦点环改用 outline，避免被按钮 overflow 裁切 */
  .btn:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; box-shadow: none; }
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: skewX(-18deg); pointer-events: none;
  }
  .btn-primary:hover::after { animation: gx-sheen 0.85s ease forwards; }

  /* --- 浮动 + 立体：Hero 悬浮金章「珍」+ 内框呼吸 --- */
  .hero::before {
    content: "珍"; position: absolute; right: 7%; top: 50%; margin-top: -70px;
    width: 140px; height: 140px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--font-serif); font-size: 58px;
    color: rgba(214, 180, 105, 0.55);
    border: 1px solid rgba(201, 162, 74, 0.5);
    background: radial-gradient(circle at 32% 26%, rgba(201, 162, 74, 0.24), rgba(20, 18, 9, 0.12) 70%);
    box-shadow: inset 0 0 34px rgba(201, 162, 74, 0.18), 0 26px 55px -22px rgba(0, 0, 0, 0.65);
    animation: gx-float 6.5s ease-in-out infinite; pointer-events: none;
  }
  .hero::after { animation: gx-frame 5.5s ease-in-out infinite; }
  @media (max-width: 900px) { .hero::before { display: none; } }

  /* --- 动效：AI 在线点脉冲 --- */
  .ai-panel-header .dot { animation: gx-pulse 2.4s ease-in-out infinite; }

  /* --- 动效：入场升序（挂载即播，路由切换也有呼吸感） ---
     fill 用 backwards 而非 both：动画结束后不再占位，否则
     动画的 transform:none 终态会以更高优先级压死 hover 的 3D 变换。 */
  .section { animation: gx-rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .grid > * { animation: gx-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .grid > *:nth-child(1) { animation-delay: 0.04s; }
  .grid > *:nth-child(2) { animation-delay: 0.09s; }
  .grid > *:nth-child(3) { animation-delay: 0.14s; }
  .grid > *:nth-child(4) { animation-delay: 0.19s; }
  .grid > *:nth-child(5) { animation-delay: 0.24s; }
  .grid > *:nth-child(6) { animation-delay: 0.29s; }
  .grid > *:nth-child(7) { animation-delay: 0.34s; }
  .grid > *:nth-child(8) { animation-delay: 0.39s; }

  /* --- 动效：滚动渐显（仅浏览器支持 view 时间轴时启用） --- */
  @supports (animation-timeline: view()) {
    .section {
      animation: gx-rise linear backwards;
      animation-timeline: view();
      animation-range: entry 4% cover 20%;
    }
  }
}