:root {
  --ink: #071314;
  --ink-2: #0a1a1c;
  --panel: #0d2226;
  --panel-2: #113035;
  --panel-3: #164047;
  --gold: #d4a017;
  --gold-2: #e8c04a;
  --gold-dim: #8a6d14;
  --gold-line: rgba(212, 160, 23, 0.45);
  --text: #e8e4d4;
  --muted: #9aa396;
  --faint: #6d756c;
  --ok: #7ea36a;
  --warn: #c9844a;
  --stamp: #c45c3a;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", SimHei, sans-serif;
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.05), transparent 180px),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(212, 160, 23, 0.035) 28px
    ),
    var(--ink);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--gold-2);
  text-decoration: none;
}

a:hover {
  color: #ffe08a;
  text-decoration: underline;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mono,
.reg-item,
.badge,
.stamp-no,
.cell-id,
.foot-meta,
.kicker,
.nav-tag {
  font-family: Consolas, "Courier New", monospace;
}

/* —— 顶栏登记条 —— */
.register {
  background: #050f10;
  border-bottom: 1px solid var(--gold);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.register-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 8px 0;
}

.reg-item {
  color: var(--gold-2);
}

.reg-item span {
  color: var(--muted);
  margin-right: 6px;
}

/* —— 导航 —— */
.mast {
  background: var(--ink-2);
  border-bottom: 2px solid var(--gold);
}

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.brand-kicker {
  margin: 0;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.brand-name {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--gold-dim);
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
  font-size: 14px;
}

.site-nav a:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  text-decoration: none;
  background: var(--panel-2);
}

.site-nav a.is-current {
  border-color: var(--gold);
  background: #1b3a2a;
  color: var(--gold-2);
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* —— 通用区块 —— */
.hero,
.ledger,
.footer {
  padding: 36px 0;
}

.hero {
  padding-top: 40px;
  padding-bottom: 20px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.35;
  color: #f3efe0;
}

h1 {
  margin: 0 0 16px;
  font-size: 30px;
}

h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.lead,
.ledger p,
.faq-item p,
.note,
.review p {
  margin: 0 0 14px;
  color: var(--text);
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.hero-grid,
.split,
.cards,
.voices,
.req-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  align-items: start;
}

.split {
  grid-template-columns: 1fr 1fr;
}

.cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.voices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.req-grid {
  grid-template-columns: 1fr 1fr;
}

/* —— 台账卡片 —— */
.card,
.duty-card,
.review,
.faq-item,
.table-wrap {
  background:
    linear-gradient(180deg, rgba(212, 160, 23, 0.06), transparent 40px),
    var(--panel);
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.card h3,
.duty-card h3,
.review h3 {
  color: var(--gold-2);
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.duty-card {
  position: relative;
}

.duty-card .stamp-no {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--gold);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

/* —— 按钮 —— */
.btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: #1d3a20;
  color: var(--gold-2);
  padding: 10px 16px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.btn:hover {
  background: #2a5330;
  border-color: var(--gold-2);
  color: #fff6d0;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.85;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--panel-2);
  color: var(--gold-2);
}

.btn-wide {
  width: 100%;
  justify-content: center;
}

/* —— 表格台账 —— */
.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.sheet th,
.sheet td {
  border-bottom: 1px solid var(--gold-line);
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}

.sheet th {
  color: var(--gold);
  font-weight: 600;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.cell-id {
  color: var(--gold-2);
  white-space: nowrap;
}

/* —— 核对清单 —— */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--gold-line);
  color: var(--text);
}

.check-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 4px;
}

/* —— 评价摘录 —— */
.review .who {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

/* —— FAQ —— */
.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-item h3 {
  color: var(--gold-2);
}

/* —— CTA 条 —— */
.cta-bar {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--gold);
  background: #132a22;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cta-bar p {
  margin: 0;
}

/* —— 页脚 —— */
.footer {
  border-top: 2px solid var(--gold);
  background: #050f10;
  padding-top: 28px;
  padding-bottom: 36px;
}

.footer h2 {
  font-size: 16px;
  color: var(--gold);
}

.foot-safe {
  border: 1px solid var(--gold-line);
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--panel);
}

.foot-meta {
  color: var(--faint);
  font-size: 13px;
}

/* loading 给 download.js 使用 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* —— 响应式 —— */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .cards,
  .cards.four,
  .voices,
  .req-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
  }

  .mast-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .register-inner {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .ledger,
  .footer {
    padding: 24px 0;
  }
}
