/* SorrySkills 设计系统：展厅（R2-1 Gallery）
   商品即展品：描边编号、墙面标签网格、钴蓝价格、CSS 交付物实物卡。
   令牌与组件的代码实现唯一来源。无框架、无构建。风格边界见根目录 DESIGN.md。 */

/* 本地托管 Clash Display（Fontshare 免费字体），避免外部 CDN 依赖 */
@font-face {
  font-family: "Clash Display";
  src: url("fonts/clash-display-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/clash-display-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/clash-display-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #f7f7f4;
  --card: #ffffff;
  --ink: #101210;
  --soft: #6a6f6a;
  --line: #e2e2dc;
  --line-dark: #c9c9c1;
  --acc: #2e4bff;
  --acc-deep: #1f3ad6;

  --latin: "Clash Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --heavy: "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;

  --page: 1200px;
  --shadow-artifact: 0 30px 60px -18px rgba(16, 18, 16, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  font: inherit;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2.5px solid var(--acc);
  outline-offset: 3px;
}

/* ---------- 无障碍入口 ---------- */

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-size: 14px;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 骨架 ---------- */

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 700px) {
  .wrap {
    padding: 0 20px;
  }
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--ink);
}

.caps {
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--soft);
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--heavy);
  line-height: 1.28;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.22;
}

.h-section {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  max-width: 24em;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 44px;
}

.section-head .en {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--soft);
  text-transform: uppercase;
}

.lead {
  max-width: 32em;
  font-size: 17.5px;
  color: #3c403c;
}

/* ---------- 顶栏 ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 24px 0 20px;
}

.topbar .brand {
  font-family: var(--latin);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.topbar-right {
  display: flex;
  gap: 26px;
  align-items: baseline;
}

.topbar-right a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}

@media (hover: hover) {
  .topbar-right a:hover {
    color: var(--acc);
  }
}

.topbar-right .lang {
  color: var(--soft);
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.topbar-rule {
  border-top: 1px solid var(--ink);
}

@media (max-width: 560px) {
  .topbar-right a {
    display: none;
  }

  .topbar-right a.keep {
    display: inline;
  }
}

/* ---------- 展厅 Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  padding: 72px 0 64px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 52px 0 48px;
  }
}

.index-no {
  font-family: var(--latin);
  font-size: clamp(96px, 12vw, 168px);
  font-weight: 300;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--line-dark);
  user-select: none;
}

@supports (-webkit-text-stroke: 1px black) {
  .index-no {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line-dark);
  }
}

.hero h1 {
  margin-top: 20px;
}

.hero .en {
  margin-top: 14px;
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--soft);
  text-transform: uppercase;
}

.hero .pitch {
  margin-top: 26px;
  max-width: 30em;
  font-size: 17.5px;
  color: #3c403c;
}

.hero-buy {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.price-inline {
  font-family: var(--latin);
  font-size: 40px;
  font-weight: 500;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ---------- 交付物实物卡 ---------- */

.artifact-zone {
  position: relative;
  padding-top: 28px;
}

.artifact {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-artifact);
  padding: 32px 28px 52px;
  transform: rotate(1.5deg);
  width: min(360px, 100%);
  margin-left: auto;
  position: relative;
}

.artifact .doc-kicker {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--soft);
  text-transform: uppercase;
}

.artifact .doc-title {
  font-family: var(--heavy);
  font-size: 18.5px;
  font-weight: 600;
  margin: 10px 0 18px;
}

.doc-line {
  height: 7px;
  background: #eceeeb;
  margin: 9px 0;
}

.doc-line.w45 { width: 45%; }
.doc-line.w60 { width: 60%; }
.doc-line.w70 { width: 70%; }
.doc-line.w80 { width: 80%; }

.doc-table {
  border: 1px solid var(--line);
  margin: 16px 0;
}

.doc-table div {
  height: 22px;
  border-bottom: 1px solid var(--line);
}

.doc-table div:last-child {
  border-bottom: 0;
}

.doc-stamp {
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--acc);
  font-weight: 600;
  text-transform: uppercase;
}

.artifact-tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-family: var(--latin);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .artifact {
    margin-left: 0;
    transform: rotate(1deg);
  }
}

/* ---------- 墙面标签网格 ---------- */

.wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

.wall > div {
  padding: 20px 24px 24px 0;
}

.wall > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.wall .k {
  font-family: var(--latin);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--soft);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wall .v {
  font-family: var(--heavy);
  font-weight: 600;
  font-size: 15.5px;
}

@media (max-width: 700px) {
  .wall {
    grid-template-columns: 1fr 1fr;
  }

  .wall > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .wall > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-out);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--acc);
    border-color: var(--acc);
  }
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

@media (hover: hover) {
  .btn-ghost:hover {
    border-color: var(--acc);
    color: var(--acc);
  }
}

.btn-ghost:active {
  transform: scale(0.97);
}

/* ---------- 专家卡（货架） ---------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.expert-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px;
  text-decoration: none;
  transition-property: border-color, box-shadow, transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}

@media (hover: hover) {
  .expert-card:hover {
    border-color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -16px rgba(16, 18, 16, 0.18);
  }
}

.expert-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.expert-card .idx {
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--soft);
}

.expert-card h3 {
  font-size: 23px;
  font-weight: 600;
}

.expert-card .en {
  font-family: var(--latin);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--soft);
  text-transform: uppercase;
}

.expert-card-result {
  color: var(--soft);
  font-size: 15.5px;
}

.expert-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--soft);
}

.expert-card-cta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 6px;
}

.expert-card-cta .p {
  font-family: var(--latin);
  font-size: 26px;
  font-weight: 500;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
}

.expert-card-cta .go {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

.expert-card-cta .go .arrow {
  display: inline-block;
  transition: transform 180ms var(--ease-out);
}

@media (hover: hover) {
  .expert-card:hover .go .arrow {
    transform: translateX(4px);
  }
}

/* ---------- 成本对照账 ---------- */

.ledger {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  background: transparent;
}

.ledger th,
.ledger td {
  padding: 18px 20px 18px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.ledger th + th,
.ledger td + td {
  padding-left: 20px;
}

.ledger thead th {
  font-family: var(--latin);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--soft);
  text-transform: uppercase;
}

.ledger tbody th {
  font-family: var(--heavy);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.ledger .price {
  font-family: var(--latin);
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger .strike {
  color: var(--soft);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--acc);
}

.ledger .ours th,
.ledger .ours .price {
  color: var(--acc);
}

.ledger small {
  display: block;
  font-size: 13px;
  color: var(--soft);
  font-family: var(--sans);
  font-weight: 400;
  margin-top: 2px;
}

.ledger-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--soft);
}

@media (max-width: 640px) {
  .ledger thead {
    display: none;
  }

  .ledger,
  .ledger tbody,
  .ledger tr,
  .ledger th,
  .ledger td {
    display: block;
    width: 100%;
  }

  .ledger tbody th {
    padding: 18px 0 2px;
    border-bottom: 0;
  }

  .ledger td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .ledger td + td {
    padding-left: 0;
  }

  .ledger tr td:last-child {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }

  .ledger td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--latin);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--soft);
    text-transform: uppercase;
    margin-bottom: 2px;
  }
}

/* ---------- 交付物清单 ---------- */

.deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.deliverable {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.deliverable .num {
  display: block;
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--acc);
  margin-bottom: 12px;
}

.deliverable h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.deliverable p {
  color: var(--soft);
  font-size: 15.5px;
}

@media (max-width: 760px) {
  .deliverables {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.placeholder {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed var(--line-dark);
  background: var(--card);
  color: var(--soft);
  font-size: 14.5px;
  text-align: center;
  padding: 24px;
}

.placeholder strong {
  font-family: var(--heavy);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

/* ---------- 步骤 ---------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.steps li {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.steps .num {
  display: block;
  font-family: var(--latin);
  font-size: 30px;
  font-weight: 300;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 12px;
}

.steps h3 {
  font-size: 18.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.steps p {
  color: var(--soft);
  font-size: 15.5px;
}

@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- 已验证边界 ---------- */

.boundaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.boundary h3 {
  font-size: 18.5px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.boundary h3 .mark {
  font-family: var(--latin);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.boundary-can h3 .mark { color: var(--acc); }
.boundary-not h3 .mark { color: var(--soft); }

.boundary ul {
  list-style: none;
  padding: 0;
  display: grid;
}

.boundary li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

.boundary li::before {
  position: absolute;
  left: 0;
  top: 12px;
  font-weight: 600;
}

.boundary-can li::before {
  content: "✓";
  color: var(--acc);
}

.boundary-not li::before {
  content: "✗";
  color: var(--soft);
}

@media (max-width: 700px) {
  .boundaries {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- 定价 ---------- */

.pricing {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 44px;
}

.pricing-price {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-price .p {
  font-family: var(--latin);
  font-size: 84px;
  font-weight: 500;
  line-height: 1;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
}

.pricing-price .c {
  font-size: 13.5px;
  color: var(--soft);
}

.pricing-includes {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  display: grid;
  gap: 10px;
}

.pricing-includes li {
  padding-left: 26px;
  position: relative;
  font-size: 15.5px;
}

.pricing-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--acc);
  font-weight: 600;
}

.pricing-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--soft);
}

@media (max-width: 700px) {
  .pricing {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px;
  }

  .pricing-price .p {
    font-size: 64px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 46em;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  font-weight: 600;
  font-size: 16.5px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--latin);
  font-size: 22px;
  font-weight: 400;
  color: var(--acc);
  flex: none;
  transition: transform 200ms var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 2px 22px;
  color: var(--soft);
  font-size: 15.5px;
  max-width: 38em;
}

.faq a {
  color: var(--acc);
  text-underline-offset: 3px;
}

/* ---------- 交付页 ---------- */

.done-hero {
  padding: 72px 0 48px;
}

.install-panel {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 40px;
  display: grid;
  gap: 0;
}

.install-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.install-step:first-child {
  padding-top: 0;
}

.install-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.install-num {
  font-family: var(--latin);
  font-size: 40px;
  font-weight: 300;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.install-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.install-step p {
  color: var(--soft);
  font-size: 15.5px;
}

.install-step .btn {
  margin-top: 14px;
}

.help-row {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.help-card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 24px;
}

.help-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.help-card p {
  font-size: 14.5px;
  color: var(--soft);
}

.help-card a {
  color: var(--acc);
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .help-row {
    grid-template-columns: 1fr;
  }

  .install-panel {
    padding: 26px 20px;
  }
}

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--ink);
  padding: 20px 0 44px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
}

.footer,
.footer a {
  font-size: 12.5px;
  color: var(--soft);
}

.footer .en {
  font-family: var(--latin);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer a {
  text-decoration-color: var(--line-dark);
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .footer a:hover {
    color: var(--acc);
  }
}

/* ---------- 404 ---------- */

.notfound {
  padding: 110px 0;
}

.notfound .big {
  font-family: var(--latin);
  font-size: clamp(90px, 14vw, 180px);
  font-weight: 300;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--line-dark);
  user-select: none;
}

@supports (-webkit-text-stroke: 1px black) {
  .notfound .big {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line-dark);
  }
}

.notfound .cta-row {
  margin-top: 36px;
}

/* ---------- 滚动显现 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
  transition-delay: var(--d, 0s);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.in {
    transition: none;
  }

  .btn,
  .expert-card,
  .faq summary::after {
    transition: none;
  }
}

/* ---------- 卡密兑换 ---------- */

/* display:grid 的组件会盖过 hidden 属性，必须显式压住 */
[hidden] {
  display: none !important;
}

.redeem-form {
  display: grid;
  gap: 12px;
}

.key-input {
  width: 100%;
  max-width: 440px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.key-input:focus {
  outline: 2.5px solid var(--acc);
  outline-offset: 2px;
}

.key-input::placeholder {
  color: var(--line-dark);
}

.field-hint {
  font-size: 13px;
  color: var(--soft);
}

.field-error {
  max-width: 440px;
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
  background: var(--bg);
  font-size: 14px;
  color: var(--soft);
}

.field-error::before {
  content: "✗ ";
  color: var(--ink);
  font-weight: 600;
}

.redeem-notice {
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13.5px;
  color: var(--soft);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* ---------- 管理后台 ---------- */

.admin-panel {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 32px;
  margin-top: 32px;
}

.admin-h {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 20px;
}

.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-end;
}

.admin-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--soft);
}

.input,
.select {
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
}

.input:focus,
.select:focus {
  outline: 2.5px solid var(--acc);
  outline-offset: 2px;
}

.admin-form .input {
  min-width: 160px;
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table thead th {
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--soft);
  text-transform: uppercase;
}

.admin-table .mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.table-empty {
  color: var(--soft);
  text-align: center;
  padding: 28px 12px;
}

.st-used {
  color: var(--acc);
}

.st-void {
  color: var(--soft);
  text-decoration: line-through;
}

.st-stock {
  color: var(--ink);
  font-weight: 600;
}

.result-box {
  width: 100%;
  min-height: 120px;
  margin-top: 16px;
  padding: 12px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .admin-panel {
    padding: 22px 16px;
  }

  .admin-form .input {
    min-width: 100%;
  }

  .admin-form label {
    width: 100%;
  }
}
