/* ==========================================================================
   音栈软件中心 · 统一样式
   墨绿（品牌）+ 暖纸（底）+ 朱红（点缀）。无外链字体，断网也一致。
   ========================================================================== */

:root {
  --ink: #16281f;
  --ink-2: #1f3629;
  --ink-3: #2b4838;
  --green: #2f6f52;
  --green-2: #3d8766;
  --green-soft: #eaf1ec;
  --red: #b23a2e;
  --red-soft: #f7e9e6;
  --gold: #b8913f;
  --paper: #f7f4ee;
  --paper-2: #efeade;
  --white: #fffdf9;
  --line: #e2dbcd;
  --line-2: #d3c9b7;
  --text: #1d2b24;
  --muted: #6d7a71;
  --muted-2: #8b968e;
  --ok: #2f7d5b;
  --warn: #b4791f;
  --bad: #ad3a2f;
  --shadow-sm: 0 1px 2px rgba(22, 40, 31, .06), 0 2px 8px rgba(22, 40, 31, .04);
  --shadow-md: 0 8px 24px rgba(22, 40, 31, .10), 0 2px 6px rgba(22, 40, 31, .06);
  --shadow-lg: 0 24px 60px rgba(22, 40, 31, .16);
  --radius: 14px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 15px/1.75 var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .3px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 22px 0; }

/* ---------------------------------------------------------------- 文字层级 */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); font-weight: 600;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.h1 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.16; }
.h2 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; }
.h3 { font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.lead { font-size: 16.5px; color: var(--muted); line-height: 1.85; }
.eyebrow { font-size: 12.5px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  --bg: var(--white); --fg: var(--text); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 500 14px/1 var(--sans);
  cursor: pointer; transition: .18s ease; white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--green); --fg: #fff; --bd: var(--green); }
.btn-primary:hover { --bg: var(--green-2); --bd: var(--green-2); }
.btn-danger { --bg: var(--red); --fg: #fff; --bd: var(--red); }
.btn-ghost { --bg: transparent; --fg: var(--text); --bd: var(--line-2); }
.btn-ghost:hover { --bg: var(--white); }
.btn-quiet { --bg: transparent; --fg: var(--muted); --bd: transparent; padding: 6px 10px; }
.btn-quiet:hover { --bg: var(--paper-2); --fg: var(--text); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------------------------------------------------------------- 卡片 / 标签 */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 26px; }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-body { padding: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--paper-2); color: var(--text);
  font-size: 13px; border: 1px solid transparent; transition: .16s;
}
a.chip:hover { border-color: var(--line-2); background: var(--white); }
.chip.on { background: var(--ink); color: #f2f6f3; border-color: var(--ink); }
.chip .n { font-size: 11px; opacity: .6; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--paper-2); color: var(--muted);
  border: 1px solid transparent;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.pill.ok { background: #e8f3ec; color: var(--ok); }
.pill.warn { background: #fbf0dd; color: var(--warn); }
.pill.bad { background: var(--red-soft); color: var(--bad); }
.pill.muted { background: #eeece6; color: var(--muted-2); }
.pill.plain::before { display: none; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  background: rgba(255, 253, 249, .92); color: var(--ink);
  font-size: 11.5px; letter-spacing: .04em;
}

/* ---------------------------------------------------------------- 顶栏 / 页脚 */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 244, 238, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 30px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, var(--ink-3), var(--ink));
  color: #f6f0e4; display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 15.5px; font-weight: 600; letter-spacing: .01em; }
.brand-text i { font-style: normal; font-size: 11.5px; color: var(--muted-2); }
.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a {
  padding: 8px 13px; border-radius: 9px; color: var(--muted);
  font-size: 14px; transition: .16s;
}
.nav a:hover { background: var(--paper-2); color: var(--text); }
.nav a.on { color: var(--ink); font-weight: 600; }
.nav a.on::after {
  content: ""; display: block; height: 2px; margin: 5px auto -8px;
  width: 18px; background: var(--red); border-radius: 2px;
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar-actions .qq { font-size: 12.5px; color: var(--muted); }
.announce {
  background: var(--ink); color: #e9efe9; font-size: 13px;
  text-align: center; padding: 9px 16px; letter-spacing: .02em;
}
.flash {
  margin: 14px auto 0; width: min(1180px, calc(100% - 48px));
  padding: 12px 18px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--line-2); background: var(--white);
}
.flash.ok { border-color: #bcd9c7; background: #f0f8f3; color: #21603f; }
.flash.err { border-color: #e5bdb7; background: #fdf1ef; color: #8d2f24; }

.footer { margin-top: 40px; background: var(--ink); color: #b9c8be; padding: 54px 0 30px; }
.footer a { color: #dfe8e1; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #edf3ee; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; font-size: 13.5px; }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #8b9c90;
}
.footer .brand-text b { color: #f3f7f4; }
.footer .brand-text i { color: #8b9c90; }

/* ---------------------------------------------------------------- 首页 Hero */
.hero { padding: 60px 0 30px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle at center, rgba(47, 111, 82, .14), transparent 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.hero-copy .h1 { margin: 16px 0 18px; }
.hero-copy .h1 em {
  font-style: normal; color: var(--green);
  position: relative; z-index: 0; white-space: nowrap;
}
.hero-copy .h1 em::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 8px; height: 9px;
  background: rgba(178, 58, 46, .18); z-index: -1; border-radius: 2px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta div { font-size: 12.5px; color: var(--muted); }
.hero-meta b { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); }

.shot-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.2deg);
}
.shot-frame img { width: 100%; display: block; }
.shot-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.shot-badge {
  position: absolute; right: -16px; bottom: -18px; z-index: 2;
  background: var(--ink); color: #eef4ef; border-radius: 12px;
  padding: 12px 18px; box-shadow: var(--shadow-md); font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.shot-badge b { display: block; font-family: var(--serif); font-size: 18px; color: #fff; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden;
}
.stat-strip div { padding: 20px 24px; border-right: 1px solid var(--line); }
.stat-strip div:last-child { border-right: 0; }
.stat-strip b { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); }
.stat-strip span { font-size: 12.5px; color: var(--muted); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head .h2 { margin-top: 10px; }

/* ---------------------------------------------------------------- 产品卡 */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: .2s ease; position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .cover img { transform: scale(1.03); }
/* 没有截图的产品也要有"脸"：深色渐变 + 首字水印，而不是一块灰 */
.cover-empty {
  position: relative; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  height: 100%; padding: 22px; overflow: hidden;
  font-family: var(--sans); font-weight: 700; font-size: 19px;
  letter-spacing: -.01em; color: #eaf5ef;
  background: linear-gradient(140deg, #0b1f18 0%, #10333f 58%, #17494f 100%);
}
.cover-empty::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(78% 80% at 78% 18%, #000, transparent 76%);
  mask-image: radial-gradient(78% 80% at 78% 18%, #000, transparent 76%);
}
.cover-empty i {
  position: absolute; right: 12px; top: -4px;
  font-family: var(--serif); font-style: normal;
  font-size: 104px; line-height: 1; font-weight: 700;
  color: rgba(255, 255, 255, .10);
}
.cover-empty span { position: relative; z-index: 1; }
.cover .tag { position: absolute; left: 14px; top: 14px; }
.cover .cat {
  position: absolute; left: auto; right: 14px; top: 14px;
  background: rgba(22, 40, 31, .78); color: #eaf1ec;
}
.product-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-family: var(--serif); font-size: 21px; }
.product-body .sub { font-size: 12.5px; color: var(--muted-2); letter-spacing: .02em; }
.product-body .sum { font-size: 13.8px; color: var(--muted); line-height: 1.7; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line); }
.price-from { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.price-from small { font-family: var(--sans); font-size: 12px; color: var(--muted-2); margin-left: 4px; }

/* ---------------------------------------------------------------- 产品详情 */
.crumb { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted-2); padding: 22px 0 0; }
.crumb a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .95fr); gap: 40px; padding: 20px 0 10px; align-items: start; }
.gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; display: block; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  width: 92px; height: 58px; background: var(--white); cursor: pointer; transition: .16s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.gallery-thumbs button:hover, .gallery-thumbs button.on { border-color: var(--green); }
.gallery-thumbs button.on img, .gallery-thumbs button:hover img { opacity: 1; }

.buybox { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.buybox .card-pad { padding: 24px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; }
.plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--white); transition: .16s;
}
.plan:hover { border-color: var(--green); background: #fbfdfb; }
.plan .name { font-size: 13px; color: var(--muted); }
.plan .price { font-family: var(--serif); font-size: 20px; }
.plan .per { font-size: 11.5px; color: var(--muted-2); }
.plan.best { border-color: var(--gold); background: #fdf9ef; }
.plan.best .name::after { content: "推荐"; margin-left: 8px; font-size: 10.5px; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 0 5px; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; font-size: 14px; color: var(--text); }
.feature-list li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 11px; margin-top: 3px;
}
.req-box {
  background: #faf8f2; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; white-space: pre-wrap; font-size: 13px; color: var(--muted);
  line-height: 1.9;
}
.timeline { display: flex; flex-direction: column; gap: 18px; }
.timeline-item { display: grid; grid-template-columns: 98px 1fr; gap: 16px; }
.timeline-item .when { font-size: 12px; color: var(--muted-2); padding-top: 2px; }
.timeline-item .what { border-left: 1px solid var(--line); padding-left: 18px; position: relative; }
.timeline-item .what::before {
  content: ""; position: absolute; left: -4.5px; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--paper);
}
.timeline-item .ver { font-family: var(--mono); font-size: 12px; color: var(--green); }
.desc-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.95; color: #33423a; }

/* ---------------------------------------------------------------- 表单 */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.label .need { color: var(--red); }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--white);
  font: 14px/1.5 var(--sans); color: var(--text); transition: .16s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 111, 82, .12);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.help { font-size: 12px; color: var(--muted-2); line-height: 1.6; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.inline-check input { width: 15px; height: 15px; accent-color: var(--green); }

/* ---------------------------------------------------------------- 订单 / 查询 */
.lookup-card { max-width: 520px; margin: 0 auto; }
.order-card { max-width: 780px; margin: 0 auto; }
.order-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 26px 28px; border-bottom: 1px solid var(--line);
}
.order-head .no { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; }
.code-box {
  background: #fbf9f3; border: 1px dashed var(--line-2); border-radius: 10px;
  padding: 14px 16px; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.9; word-break: break-all; color: var(--ink);
  position: relative;
}
.code-box .copy { position: absolute; right: 10px; top: 8px; }

/* ---------------------------------------------------------------- 空状态 */
.empty { text-align: center; padding: 56px 20px; color: var(--muted-2); }
.empty .big { font-family: var(--serif); font-size: 40px; color: var(--line-2); margin-bottom: 10px; }

/* ---------------------------------------------------------------- 登录 */
.login-page { min-height: 100vh; display: grid; place-items: center; background:
  radial-gradient(900px 500px at 20% 0%, #20402f 0%, var(--ink) 55%, #122019 100%); padding: 30px; }
.login-card { width: min(420px, 100%); background: var(--white); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-lg); }
.login-card .brand { justify-content: center; margin-bottom: 6px; }
.login-title { font-family: var(--serif); font-size: 24px; text-align: center; margin: 14px 0 4px; }
.login-sub { text-align: center; color: var(--muted-2); font-size: 12.5px; margin-bottom: 22px; }

/* ==========================================================================
   后台
   ========================================================================== */
.admin { background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--ink); color: #cfdad2; padding: 22px 14px;
  display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #f1f6f2; }
.side-brand .brand-mark { width: 34px; height: 34px; font-size: 17px; background: #2c5341; }
.side-brand b { font-size: 14px; }
.side-brand i { display: block; font-style: normal; font-size: 10.5px; color: #8ea396; }
.side-label { font-size: 10.5px; letter-spacing: .16em; color: #74907f; padding: 14px 12px 6px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 9px; color: #c3d1c7; font-size: 13.5px; transition: .15s;
}
.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.on { background: #2c5341; color: #fff; font-weight: 500; box-shadow: inset 2px 0 0 var(--red); }
.side-nav a .ico { width: 17px; text-align: center; opacity: .85; font-size: 13px; }
.side-nav a .badge {
  margin-left: auto; background: var(--red); color: #fff; font-size: 10.5px;
  padding: 1px 6px; border-radius: 99px;
}
.side-foot { margin-top: auto; padding: 12px; font-size: 11.5px; color: #7f9788; border-top: 1px solid rgba(255, 255, 255, .08); }

.main { min-width: 0; }
.topline {
  height: 64px; background: rgba(255, 253, 249, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 14px; padding: 0 30px; position: sticky; top: 0; z-index: 20;
}
.topline h1 { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.topline .crumbline { font-size: 12px; color: var(--muted-2); }
.topline .spacer { margin-left: auto; }
.topline .who { font-size: 12.5px; color: var(--muted); }
.content { padding: 26px 30px 60px; max-width: 1320px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .k { font-size: 12px; color: var(--muted-2); letter-spacing: .03em; }
.kpi .v { font-family: var(--serif); font-size: 30px; line-height: 1.3; margin-top: 4px; }
.kpi .s { font-size: 11.5px; color: var(--muted-2); }
.kpi.accent { background: var(--ink); border-color: var(--ink); }
.kpi.accent .k, .kpi.accent .s { color: #9db3a5; }
.kpi.accent .v { color: #fff; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.panel-head h3 { font-size: 14px; font-weight: 600; }
.panel-head .spacer { margin-left: auto; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 180px; padding: 8px 12px; font-size: 13px; }
.toolbar .spacer { margin-left: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
.table th {
  text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .05em;
  color: var(--muted-2); text-transform: uppercase;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fbf9f4;
  white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid #f0ece2; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbf7; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .tight { width: 1%; white-space: nowrap; }
.table a.strong { font-weight: 500; color: var(--ink); }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 132px; }
.bar-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; }
.bar-chart .bar { background: linear-gradient(180deg, var(--green-2), var(--green)); border-radius: 4px 4px 0 0; min-height: 2px; transition: .3s; }
.bar-chart .bar.alt { background: #d9e3db; }
.bar-chart .bar.zero { background: transparent; }
.bar-chart .cap { font-size: 10px; color: var(--muted-2); text-align: center; }
.chart-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--muted-2); }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eee9de; font-size: 13px; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .when { margin-left: auto; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }

.dl { display: grid; grid-template-columns: 122px 1fr; gap: 10px 16px; font-size: 13.5px; }
.dl dt { color: var(--muted-2); }
.dl dd { margin: 0; }

.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg a { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.seg a.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 500; }

.form-actions { display: flex; gap: 10px; align-items: center; padding-top: 6px; }
.danger-zone { border: 1px solid #e8c4be; background: #fdf5f3; border-radius: 12px; padding: 18px 20px; }

/* 响应式 */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .shot-frame { transform: none; }
  .pdp { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .product-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-inner { height: 62px; gap: 14px; }
  .nav { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; }
  .side-brand, .side-label, .side-foot { display: none; }
  .side-nav { display: flex; gap: 4px; }
  .side-nav a { white-space: nowrap; }
  .content { padding: 18px 14px 40px; }
  .topline { padding: 0 14px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .table th:nth-child(n+4), .table td:nth-child(n+4) { display: none; }
}

/* ---------------------------------------------------------------- 小屏修正
   760px 以下原来的做法是直接 display:none 掉导航，只剩页脚能点；
   这里改成两行：站名 + 后台按钮一行，导航横向滚动一行。 */
@media (max-width: 760px) {
  .topbar-inner {
    height: auto;
    padding: 10px 0 8px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .brand-text i { display: none; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .qq { display: none; }
  .topbar-actions .btn { padding: 6px 12px; font-size: 12.5px; }
  .nav {
    display: flex;
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
  .nav a.on::after { margin-bottom: -6px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer { padding: 40px 0 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .h1 { font-size: 32px; }
}
