﻿/* ============================================================
   自由之翼 · 调查兵团
   深绿披风 / 骨白 / 黄铜 / 翼蓝
   ============================================================ */

@font-face {
  font-family: "FW Serif";
  src: url("/assets/fonts/noto-serif-sc-700-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FW Roman";
  src: url("/assets/fonts/cinzel-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { scrollbar-width: thin; scrollbar-color: rgba(195, 164, 104, 0.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(195, 164, 104, 0.28);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(195, 164, 104, 0.5); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

::selection { background: rgba(195, 164, 104, 0.85); color: #12180f; }

:root {
  --bg: #0a0e09;
  --bg-deep: #070b07;
  --panel-top: rgba(26, 34, 22, 0.94);
  --panel-bottom: rgba(14, 20, 13, 0.96);
  --line: rgba(212, 203, 176, 0.14);
  --line-2: rgba(212, 203, 176, 0.28);
  --text: #e9e3d1;
  --muted: #a3a992;
  --dim: #7d846f;
  --blue: #3c5aa6;
  --blue-hi: #8ea6da;
  --bone: #e9e3d1;
  --brass: #c3a468;
  --brass-dim: rgba(195, 164, 104, 0.55);
  --ok: #94bd8c;
  --warn: #d8b36a;
  --danger: #d78a78;
  --radius: 4px;
  --label: "Bahnschrift", "DIN Alternate", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --roman: "FW Roman", "Cinzel", "Optima", "Trajan Pro", Georgia, serif;
  --display: "FW Serif", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 15px/1.68 "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 背景：夜里的墙外 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -12%, rgba(56, 78, 47, 0.5), transparent 68%),
    radial-gradient(1000px 720px at 92% 112%, rgba(35, 52, 31, 0.55), transparent 70%),
    linear-gradient(180deg, #0c120b 0%, #080c08 62%, #060906 100%);
}
.bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-layer::after {
  content: "";
  position: fixed;
  right: -280px;
  bottom: -170px;
  width: 800px;
  height: 1059px;
  transform: rotate(-7deg);
  transform-origin: 100% 100%;
  background: url("/assets/crest-ghost.png") center / contain no-repeat;
  opacity: 0.05;
}

a { color: var(--blue-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 26px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.wrap > footer.site { margin-top: auto; }
.wrap > section { width: 100%; }

/* ---------- 顶部 ---------- */
header.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; color: inherit; }
.brand:hover { text-decoration: none; }
.brand img {
  width: 48px; height: 48px; flex: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand .name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
}
.brand .tag {
  font-family: var(--roman);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--brass);
  opacity: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}
.topbar .spacer { flex: 1; }
.topbar .links { display: flex; gap: 8px; align-items: center; }

/* ---------- 登录页 ---------- */
body.is-auth .topbar { display: none; }
body.is-auth .wrap { padding-top: 9vh; }

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 auto 26px;
  text-align: center;
}
.auth-brand img {
  width: 108px; height: 108px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.62));
}
.auth-name {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 33px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  line-height: 1.25;
}
.auth-sub {
  margin-top: 8px;
  font-family: var(--roman);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--brass);
}
.auth-motto {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.auth-motto::before,
.auth-motto::after { content: ""; display: inline-block; width: 26px; height: 1px; background: var(--line-2); vertical-align: middle; margin: 0 12px; }

.auth-card { max-width: 468px; margin: 0 auto; padding: 26px 28px 24px; }
.auth-foot {
  margin: 18px auto 0;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
@media (hover: hover) {
  .card:hover {
    border-color: var(--line-2);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46);
    transform: translateY(-1px);
  }
}
.card::after {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  opacity: 0.7;
  pointer-events: none;
}

.filebar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--label);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--dim);
  padding-bottom: 10px;
  margin: -4px 0 18px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--label);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--brass);
  opacity: 0.85;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.sec-title { min-width: 0; }
.sec-title h2 { margin: 0; }
.sec-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-head > .seg { margin-bottom: 1px; }

h1, h2, h3 { margin: 0 0 8px; line-height: 1.35; font-weight: 600; }
h1 { font-size: 26px; letter-spacing: 0.04em; }
h2 { font-size: 19px; letter-spacing: 0.1em; }
h3 { font-size: 14.5px; letter-spacing: 0.08em; color: var(--bone); }
p { margin: 0 0 12px; }
p.muted, .muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- 布局 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 16px;
  align-items: start;
}
.col-main, .col-side { min-width: 0; }
.col-side .card { position: sticky; top: 18px; }

dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; margin: 14px 0 2px; font-size: 13px; }
dl.kv dt { color: var(--dim); font-size: 11.5px; letter-spacing: 0.08em; white-space: nowrap; }
dl.kv dd { margin: 0; word-break: break-all; }

.legend { display: flex; align-items: center; gap: 16px; margin: 14px 0 2px; font-size: 11.5px; color: var(--dim); letter-spacing: 0.06em; }
.legend .dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; vertical-align: middle; }
.legend .dot.up { background: var(--bone); }
.legend .dot.down { background: var(--brass); }

/* ---------- 标签 / 分段 ---------- */
.tabs {
  display: flex;
  gap: 26px;
  margin: 0 0 20px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
}
.tabs button {
  position: relative;
  padding: 8px 2px 12px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  color: var(--dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: color 0.18s;
}
.tabs button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: transparent;
  transition: background 0.2s ease;
}
.tabs button:hover { color: var(--muted); }
.tabs button.active { color: var(--bone); }
.tabs button.active::after { background: var(--brass); }

.seg {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(6, 10, 6, 0.6);
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.seg button:hover { color: var(--muted); }
.seg button.active { background: rgba(195, 164, 104, 0.14); color: var(--bone); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: rgba(10, 16, 9, 0.4);
}
.badge.ok { color: var(--ok); border-color: rgba(148, 189, 140, 0.4); background: rgba(28, 44, 26, 0.5); }
.badge.wait { color: var(--brass); border-color: var(--brass-dim); background: rgba(48, 38, 18, 0.35); }

/* 待审核：印章 */
.pending-card { max-width: 620px; margin-left: auto; margin-right: auto; padding-top: 28px; }
.stamp {
  display: inline-block;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--brass);
  border: 1px solid var(--brass-dim);
  padding: 5px 14px;
  border-radius: 2px;
  transform: rotate(-2.4deg);
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 3px rgba(195, 164, 104, 0.06);
}

/* ---------- 表单 ---------- */
label { display: block; font-size: 11.5px; color: var(--dim); margin: 0 0 7px; letter-spacing: 0.1em; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 6, 0.72);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input::placeholder { color: rgba(125, 132, 111, 0.8); }
input:focus { border-color: rgba(142, 166, 218, 0.65); box-shadow: 0 0 0 3px rgba(60, 90, 166, 0.14); }
input[readonly] {
  color: var(--bone);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0;
  background: rgba(6, 10, 6, 0.55);
  text-overflow: ellipsis;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0b120a inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 99999s ease-out 0s;
}

.field { margin-bottom: 16px; }
.pwd { position: relative; }
.pwd input { padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 3px;
  background: transparent; color: var(--dim); cursor: pointer;
  display: grid; place-items: center;
}
.pwd-toggle:hover { color: var(--bone); background: rgba(195, 164, 104, 0.1); }
.pwd-toggle.on { color: var(--blue-hi); }

#field-confirm {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.3s ease, opacity 0.22s ease, margin-bottom 0.3s ease;
}
#field-confirm.open { max-height: 96px; opacity: 1; margin-bottom: 16px; }

/* ---------- 按钮 ---------- */
button.btn, a.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(122, 145, 198, 0.45);
  background: linear-gradient(180deg, #36518f, #263a6b);
  color: #f2edde;
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: filter 0.18s, transform 0.12s, background 0.18s, border-color 0.18s;
}
button.btn:hover, a.btn:hover { filter: brightness(1.1); text-decoration: none; transform: translateY(-1px); }
button.btn:active, a.btn:active { transform: translateY(1px); }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }
button.btn.ghost, a.btn.ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--muted);
  box-shadow: none;
}
button.btn.ghost:hover { color: var(--bone); border-color: var(--brass-dim); }
button.btn.small, a.btn.small { padding: 6px 12px; font-size: 12px; letter-spacing: 0.08em; }
button.btn.cta, a.btn.cta {
  background: linear-gradient(180deg, #dcc28a, #b28d4b);
  border-color: #e6d2a4;
  color: #12170d;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 18px;
  box-shadow: 0 0 0 1px rgba(195, 164, 104, 0.18), 0 6px 20px rgba(195, 164, 104, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
button.btn.cta:hover, a.btn.cta:hover {
  background: linear-gradient(180deg, #e7d09e, #bd9752);
  border-color: #f0dfb8;
  color: #12170d;
  filter: brightness(1.06);
}
button.btn.cta svg { width: 15px; height: 15px; flex: none; opacity: 1; }
button.btn.danger {
  border-color: rgba(215, 138, 120, 0.45);
  background: linear-gradient(180deg, rgba(96, 36, 30, 0.9), rgba(64, 24, 20, 0.9));
  color: #f3d6cf;
}

/* ---------- 消息 ---------- */
.msg { padding: 10px 12px; border-radius: 3px; font-size: 12.5px; margin: 12px 0 0; display: none; letter-spacing: 0.02em; }
.msg.show { display: block; }
.msg.err { background: rgba(86, 30, 24, 0.45); border: 1px solid rgba(215, 138, 120, 0.35); color: #f0cfc7; }
.msg.ok { background: rgba(30, 52, 26, 0.5); border: 1px solid rgba(148, 189, 140, 0.35); color: #d5e8d0; }

/* ---------- 订阅 / 二维码 ---------- */
.subrow { display: flex; gap: 8px; margin: 14px 0 8px; }
.subrow input { flex: 1; }
.subrow .btn { flex: none; }

.qrbox { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.qrbox img { width: 148px; height: 148px; background: #f3eee0; padding: 9px; border-radius: 3px; }
.qrbox .hint { font-size: 12px; color: var(--dim); line-height: 1.8; max-width: 280px; }

/* ---------- 图表 ---------- */
.chart { margin-top: 4px; }
.chart-bars { height: 96px; display: flex; align-items: flex-end; gap: 3px; padding: 4px 2px 0; border-bottom: 1px solid var(--line); }
.chart-bars .bar { flex: 1 1 0; min-width: 2px; border-radius: 1px 1px 0 0; background: linear-gradient(180deg, #a9bde6, #48619f); opacity: 0.9; }
.chart-bars .bar.empty { background: rgba(169, 189, 230, 0.22); }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 6px; }
.chart-line { margin-top: 10px; }
.chart-shell { display: flex; align-items: stretch; }
.chart-y {
  width: 48px; flex: none; height: 180px;
  padding: 12px 8px 12px 0;
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: right;
  font-family: var(--label); font-size: 9.5px; letter-spacing: 0.04em;
  color: var(--dim);
}
.chart-plot { position: relative; flex: 1; min-width: 0; }
.chart-plot svg { width: 100%; height: 180px; display: block; overflow: visible; }
.chart-x {
  display: flex; justify-content: space-between;
  padding: 6px 8px 0 48px;
  font-family: var(--label); font-size: 10px; letter-spacing: 0.06em;
  color: var(--dim);
}
.chart-plot .grid-line { opacity: 0; animation: chart-fade 0.45s ease forwards; }
.chart-plot .area { opacity: 0; animation: chart-fade 0.6s 0.1s ease forwards; }
.chart-plot .series {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: chart-draw 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.chart-plot .series-down { animation-delay: 0.08s; }
.chart-plot .end-dot { opacity: 0; animation: chart-fade 0.3s 0.65s ease forwards; }
.chart-plot .hover-layer { opacity: 0; transition: opacity 0.12s ease; pointer-events: none; }
.chart-tip {
  position: absolute; top: 2px; left: 50%;
  transform: translateX(-50%);
  min-width: 112px; padding: 7px 9px;
  background: rgba(10, 16, 9, 0.97);
  border: 1px solid var(--line-2); border-radius: 3px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  pointer-events: none; z-index: 3;
  font-family: var(--label); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--muted);
}
.chart-tip b { display: block; margin-bottom: 3px; color: var(--bone); font-weight: 600; }
.chart-tip span { display: flex; align-items: center; gap: 5px; line-height: 1.7; }
.chart-tip .dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.chart-tip .dot.up { background: #ded6c0; }
.chart-tip .dot.down { background: #c3a468; }
.chart-empty {
  height: 180px; display: grid; place-items: center;
  color: var(--dim); font-size: 12.5px; letter-spacing: 0.1em;
  border: 1px dashed var(--line); border-radius: 3px;
  background: rgba(6, 10, 6, 0.35);
}

@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-fade { to { opacity: 1; } }

/* ---------- 步骤 / 教程 ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 2px;
  display: grid; place-items: center;
  font-family: var(--label);
  font-size: 11px; font-weight: 700;
  color: #12180f;
  background: linear-gradient(180deg, #e2d8bd, #b99a5f);
}
.steps li .hint { color: var(--dim); font-size: 12px; }

.guide { display: flex; gap: 12px; margin: 0; justify-content: center; align-items: flex-start; }
.guide figure { margin: 0; min-width: 0; max-width: 48%; }
.guide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 240px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: #0b120a;
  cursor: zoom-in;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
@media (hover: hover) {
  .guide img:hover { border-color: var(--brass-dim); transform: scale(1.015); }
}
.guide figcaption { font-size: 11px; color: var(--dim); margin-top: 7px; text-align: center; letter-spacing: 0.04em; }

.note {
  margin-top: 12px; padding: 10px 12px; border-radius: 3px;
  border: 1px dashed var(--line); background: rgba(6, 10, 6, 0.45);
  font-size: 12px; color: var(--muted); line-height: 1.75;
}

/* ---------- 表格 ---------- */
table.kv, table.pending { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv th, table.kv td, table.pending th, table.pending td {
  text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line);
}
table.kv th { width: 92px; font-size: 11.5px; color: var(--dim); font-weight: 500; letter-spacing: 0.1em; }
table.pending th {
  font-family: var(--label);
  font-size: 10px; color: var(--dim); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom-color: var(--line-2);
}
table.pending td { font-size: 13px; }
table.pending td.actions { text-align: right; white-space: nowrap; }

/* ---------- 下载列表 ---------- */
.rec-label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--label); font-size: 10px; letter-spacing: 0.16em;
  color: var(--brass); margin: 0 0 6px; text-transform: uppercase;
}
.rec-label::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 10px rgba(195, 164, 104, 0.8);
}
.dl-list { display: grid; gap: 6px; }
.dl-list.has-rec { margin-top: 8px; }
.dl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px;
  background: rgba(6, 10, 6, 0.4);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
@media (hover: hover) {
  .dl-item:hover {
    border-color: var(--brass-dim);
    background: rgba(195, 164, 104, 0.06);
    transform: translateX(2px);
  }
}
.dl-item.rec {
  border-color: rgba(195, 164, 104, 0.55);
  background: linear-gradient(180deg, rgba(195, 164, 104, 0.12), rgba(6, 10, 6, 0.5));
  box-shadow: 0 0 0 1px rgba(195, 164, 104, 0.1), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.dl-item .meta { flex: 1; min-width: 0; }
.dl-item .meta .t { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dl-item .meta .s { font-size: 11.5px; color: var(--dim); font-family: var(--label); letter-spacing: 0.04em; }
.dl-item a.btn { white-space: nowrap; text-decoration: none; }
.chip {
  font-family: var(--label); font-size: 9.5px; font-weight: 600; line-height: 1.6;
  padding: 0 6px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
}
.chip.warn {
  color: #f0d9a8; border-color: rgba(216, 179, 106, 0.6);
  background: rgba(216, 179, 106, 0.14);
}
.dl-ver { margin: 9px 0 0; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal.hidden { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(4, 8, 4, 0.78); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; width: min(1040px, calc(100vw - 32px)); max-height: min(90vh, 820px);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #171f14, #0d130c);
  border: 1px solid var(--line-2); border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.modal-head b { font-size: 13px; letter-spacing: 0.18em; font-weight: 600; color: var(--bone); }
.modal-close {
  border: 0; background: transparent; color: var(--dim); cursor: pointer;
  font-size: 22px; line-height: 1; width: 32px; height: 32px; border-radius: 3px;
}
.modal-close:hover { color: var(--bone); background: rgba(195, 164, 104, 0.12); }
.modal-body { padding: 16px 18px 18px; overflow: auto; }
.modal-tabs { display: flex; gap: 22px; padding: 5px 18px 0; border-bottom: 1px solid var(--line); }
.modal-tabs button {
  border: 0; background: transparent; color: var(--dim);
  font-size: 12.5px; font-family: inherit; font-weight: 600; letter-spacing: 0.1em;
  padding: 6px 0 11px; cursor: pointer;
  border-bottom: 1px solid transparent; margin-bottom: -1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.modal-tabs button.active { color: var(--bone); border-bottom-color: var(--brass); }
.modal-body h3 { margin-bottom: 12px; }

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
  animation: fade-up 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.guide-main, .guide-side { min-width: 0; }
.guide-side { border-left: 1px solid var(--line); padding-left: 22px; }
.guide-head, .dl-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.guide-head h3, .dl-head h3 { margin: 0; }

/* 扫码导入：放在左栏步骤图之上 */
.import-card {
  display: flex; align-items: center; gap: 14px;
  margin: 16px 0 14px; padding: 12px;
  border: 1px solid var(--line); border-radius: 3px;
  background: rgba(6, 10, 6, 0.45);
}
.import-card img {
  width: 106px; height: 106px; flex: none;
  background: #f3eee0; padding: 6px; border-radius: 3px; cursor: zoom-in;
}
.import-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; flex: 1; }
.import-meta b { font-size: 13px; letter-spacing: 0.08em; }
.import-url {
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; line-height: 1.6; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 8px; border-left: 1px solid var(--line-2);
}

/* 教程图片放大 */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(2, 5, 2, 0.94);
  cursor: zoom-out;
  animation: modal-fade 0.16s ease both;
}
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 3px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); animation: zoom-in 0.18s ease both; }

/* ---------- 动效 ---------- */
.modal:not(.hidden) { animation: modal-fade 0.18s ease both; }
.modal:not(.hidden) .modal-box { animation: modal-pop 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.modal.closing { animation: modal-fade-out 0.17s ease both; }
.modal.closing .modal-box { animation: modal-pop-out 0.17s ease both; }
.wrap > section:not(.hidden) { animation: fade-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-fade-out { to { opacity: 0; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes modal-pop-out { to { opacity: 0; transform: translateY(6px) scale(0.99); } }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- 页脚 ---------- */
footer.site {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
footer.site .motto { color: var(--brass); letter-spacing: 0.2em; }

.hidden { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .col-side .card { position: static; }
  .guide-grid { grid-template-columns: 1fr; gap: 16px; }
  .guide-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; }
  .guide img { height: 220px; }
}

@media (max-width: 640px) {
  .modal { padding: 0; }
  .modal-box { width: 100%; height: 100%; max-height: 100%; border: 0; border-radius: 0; }
  .modal-head { padding: 11px 14px; }
  .modal-tabs { padding: 4px 14px 0; }
  .modal-body { padding: 13px 14px 18px; }
  .bg-layer::after { width: 300px; height: 397px; left: auto; right: -150px; bottom: -100px; }
  .guide-grid { gap: 14px; }
  .guide img { height: 200px; }
  .guide figcaption { font-size: 10.5px; }
  .steps li { font-size: 13px; padding-left: 27px; }
  .qr-mini img { width: 92px; height: 92px; }
  .import-card { gap: 12px; padding: 10px; }
  .import-card img { width: 92px; height: 92px; }
  .dl-item { padding: 9px 10px; gap: 8px; }
  .dl-item .meta .t { font-size: 12.5px; }
  .dl-item a.btn { padding: 7px 10px; font-size: 12px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); padding-top: 16px; }
  body.is-auth .wrap { padding-top: 6vh; }
  .card { padding: 19px; }
  .auth-brand img { width: 72px; height: 72px; }
  .auth-name { font-size: 26px; }
  h1 { font-size: 22px; }
  header.topbar { margin-bottom: 18px; }
  .brand img { width: 40px; height: 40px; }
  .brand .tag { display: none; }
  .qrbox { flex-direction: column; }
  .qrbox img { width: 132px; height: 132px; }
  .subrow { flex-direction: column; }
  .subrow .btn { width: 100%; }
  .sec-head { align-items: flex-start; }
  .sec-tools { width: 100%; justify-content: space-between; }
  .guide figure { max-width: 46%; }
  footer.site { flex-direction: column; gap: 6px; }
  .auth-motto::before, .auth-motto::after { width: 16px; margin: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 640px) {
  .end-dot, .hover-dot { display: none; }
}
