/* ==========================================================================
   我的世界国际版联盟 · 全站主题
   Light / Dark 双主题 · Minecraft 风格设计系统
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  color-scheme: light;

  --bg: #f3f1e8;
  --bg-soft: #e9e5d8;
  --surface: #fffefb;
  --surface-2: #f8f6ef;
  --surface-3: #eeeade;

  --text: #1a2117;
  --text-soft: #3f4a38;
  --muted: #6c7663;

  --line: #ddd8c8;
  --line-strong: #c5bfab;

  --accent: #3d7a2c;
  --accent-hover: #336a24;
  --accent-ink: #ffffff;
  --accent-soft: #e7f0dc;
  --accent-line: #b9d3a3;

  --cyan: #2b7f8c;
  --gold: #a97a18;
  --gold-soft: #faf0d6;
  --danger: #a8382c;
  --danger-soft: #fbe9e6;
  --magic: #5b3f9e;
  --magic-ink: #ffffff;
  --magic-soft: #ece5fb;

  --shadow-sm: 0 1px 2px rgba(26, 33, 23, .07);
  --shadow: 0 2px 4px rgba(26, 33, 23, .05), 0 16px 32px -24px rgba(26, 33, 23, .45);
  --shadow-lg: 0 4px 8px rgba(26, 33, 23, .06), 0 30px 60px -34px rgba(26, 33, 23, .5);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 6px;

  --header-bg: rgba(255, 254, 251, .82);
  --header-line: rgba(197, 191, 171, .6);
  --grid-line: rgba(26, 33, 23, .045);
  --glow: rgba(61, 122, 44, .16);

  --max: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0f1317;
  --bg-soft: #131920;
  --surface: #171e25;
  --surface-2: #1b232b;
  --surface-3: #212a33;

  --text: #e8ece3;
  --text-soft: #c3ccbb;
  --muted: #8d998a;

  --line: #27313a;
  --line-strong: #3a4650;

  --accent: #8acb63;
  --accent-hover: #9dd777;
  --accent-ink: #10200a;
  --accent-soft: #1c2b18;
  --accent-line: #34502b;

  --cyan: #5cc3d1;
  --gold: #e9b757;
  --gold-soft: #2a2418;
  --danger: #e37b6b;
  --danger-soft: #2c1c19;
  --magic: #b39bf0;
  --magic-ink: #1a1428;
  --magic-soft: #221c33;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px -26px #000;
  --shadow-lg: 0 6px 12px rgba(0, 0, 0, .4), 0 40px 70px -40px #000;

  --header-bg: rgba(15, 19, 23, .86);
  --header-line: rgba(58, 70, 80, .55);
  --grid-line: rgba(255, 255, 255, .032);
  --glow: rgba(138, 203, 99, .18);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* 锚点跳转时给吸顶导航留出位置 */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--text);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img, svg, video { max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: .35em 0; }

code, kbd, pre { font-family: var(--mono); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 站点头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan) 55%, var(--gold));
  opacity: .85;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex: 0 0 auto;
}
.brand:hover { color: var(--text); }

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background:
    linear-gradient(135deg, #a6d97c, #5f9c3d 58%, #3f7229);
  border-radius: 4px;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, .38),
    inset -2px -2px 0 rgba(0, 0, 0, .35),
    0 3px 0 rgba(0, 0, 0, .18);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}

.brand-text { display: grid; line-height: 1.2; }
.brand-text b { font-size: 15px; letter-spacing: .02em; }
.brand-text small {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  position: relative;
  padding: 7px 11px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 700; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 主题切换 */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: transform .2s, border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover {
  transform: rotate(-12deg) scale(1.05);
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* ---------- 4. 布局 ---------- */
main { display: block; }

.page {
  padding: 48px 0 72px;
}

.page-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.page-title {
  font-size: clamp(28px, 4.6vw, 42px);
  letter-spacing: -.01em;
}

.page-lead {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
  max-width: 62ch;
}

.section { margin-top: 44px; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  margin-bottom: 16px;
}
.section-title small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

.stack { display: grid; gap: 16px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
/* 作品区：三张卡铺满一行，不留空格子 */
.grid.works-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
  transition: transform .16s ease, box-shadow .16s ease, background .18s, border-color .18s, color .18s;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .07);
}
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .22);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }

.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { padding: 7px 13px; font-size: 13px; }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; filter: brightness(1.06); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 6. 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.link-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .22s ease;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
  color: var(--text);
}
.link-card:hover::before { transform: scaleY(1); }

.link-card .ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  margin-bottom: 6px;
}
.link-card .ico .dl-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.link-card .t {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .01em;
}
.link-card .d {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}
.link-card .go {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.link-card:hover .go { color: var(--accent); }

.link-card.is-muted .ico { background: var(--surface-3); color: var(--muted); }
.link-card.is-muted .t { color: var(--muted); }

/* ---------- 7. 徽标 / 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.5;
}
.chip b { font-weight: 750; color: var(--text); }
.chip-accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip-gold { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 35%, transparent); color: var(--gold); }
.chip-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  vertical-align: 1px;
}

/* ---------- 8. 首页 ---------- */
.hero {
  position: relative;
  padding: 66px 0 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--glow), transparent 66%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-blocks {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  display: grid;
  grid-template-columns: repeat(4, 52px);
  gap: 10px;
  opacity: .75;
  pointer-events: none;
  z-index: 0;
}
.hero-blocks span {
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero-blocks span:nth-child(3n) { background: var(--accent-soft); border-color: var(--accent-line); }
.hero-blocks span:nth-child(5n) { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 30%, transparent); }
.hero-blocks span:nth-child(7n) { background: var(--surface-2); }
@media (max-width: 1080px) { .hero-blocks { display: none; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -.015em;
}
.hero h1 .hl {
  color: var(--accent);
  white-space: nowrap;
}
.hero .lead {
  margin-top: 16px;
  max-width: 60ch;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-soft);
}
.hero .btn-row { margin-top: 26px; }

.hero-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* IP 卡片 */
.ip-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--muted);
}
.ip-strip .label {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.ip-strip #ip-value {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.ip-strip #ip-location { color: var(--muted); font-size: 13px; }

/* ---------- 9. 文章页 ---------- */
.article {
  max-width: 780px;
  margin-inline: auto;
}

.article-head { margin-bottom: 30px; }

.article-title {
  font-size: clamp(27px, 4.4vw, 40px);
  line-height: 1.3;
  letter-spacing: -.01em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

.prose { font-size: 16px; line-height: 1.9; color: var(--text-soft); }
.prose p { margin: 0 0 1.05em; }
.prose b, .prose strong { color: var(--text); font-weight: 700; }

.prose h2 {
  margin: 2.2em 0 .7em;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  font-size: 22px;
  color: var(--text);
}
.prose h3 { margin: 1.8em 0 .6em; font-size: 18px; color: var(--text); }
.prose a { border-bottom: 1px solid var(--accent-line); }
.prose a:hover { border-color: var(--accent); }
.prose ul, .prose ol { color: var(--text-soft); }

.lead-p {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 28px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 18px 16px;
}
.stat .num {
  font-family: var(--mono);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.stat .lbl {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line-strong);
}
.timeline li { position: relative; padding: 0 0 22px; margin: 0; }
.timeline li:last-child { padding-bottom: 4px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.timeline .date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent);
  font-weight: 700;
}
.timeline .txt { margin-top: 2px; }

.quote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 16.5px;
}
.quote .src {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .03em;
}

.callout {
  margin: 26px 0;
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--text-soft);
  font-size: 15px;
}
.callout strong { color: var(--danger); }
.callout--info {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.callout--info strong { color: var(--accent); }

.qa { border-top: 1px solid var(--line); margin-top: 6px; }
.qa .item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.qa .q { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.qa .a { color: var(--muted); font-size: 15px; }

.source-list { list-style: none; margin: 0; padding: 0; }
.source-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  margin: 0;
}
.source-list a { color: var(--text-soft); border-bottom: 1px solid var(--line); }
.source-list a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 10. 工具 / 表单 ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

.field { margin-bottom: 14px; }
.field > label,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-soft);
  letter-spacing: .02em;
}
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.input,
.select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color .16s, box-shadow .16s;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus,
.select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form .input { flex: 1 1 220px; width: auto; }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: auto;
  background: var(--surface);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}
table.data th,
table.data td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data tr:last-child td { border-bottom: 0; }
table.data th {
  width: 34%;
  font-weight: 650;
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}
table.data td { color: var(--text-soft); }
.status-ok { color: var(--accent); font-weight: 700; }
.status-bad { color: var(--danger); font-weight: 700; }

.result { margin-top: 20px; }
.result img { border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* ---------- 11. 提示页 / 空状态 ---------- */
.notice-page {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 56px 0;
}
.notice {
  width: min(620px, calc(100% - 40px));
  text-align: center;
  padding: 44px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.notice::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--gold));
}
.notice .glyph {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 30px;
}
.notice-code {
  font-family: var(--mono);
  font-size: clamp(64px, 13vw, 118px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .12em;
  text-indent: .12em;
  color: var(--accent);
  opacity: .16;
  margin: 0 0 4px;
  user-select: none;
  pointer-events: none;
}
.notice h1 { font-size: clamp(24px, 4vw, 32px); }
.notice p { margin-top: 12px; color: var(--muted); }
.notice .btn-row { justify-content: center; margin-top: 26px; }
.notice--warn::before { background: linear-gradient(90deg, var(--danger), var(--gold)); }
.notice--warn .glyph { background: var(--danger-soft); color: var(--danger); }
.notice--magic::before { background: linear-gradient(90deg, var(--magic), var(--cyan)); }
.notice--magic .glyph { background: var(--magic-soft); color: var(--magic); }
.notice--magic h1 { font-family: "Songti SC", "Noto Serif SC", Georgia, serif; letter-spacing: .02em; }
.notice--magic .btn-primary,
.theme-magic .btn-primary {
  background: var(--magic);
  border-color: var(--magic);
  color: var(--magic-ink);
}
.notice--magic .btn-primary:hover,
.theme-magic .btn-primary:hover {
  background: var(--magic);
  border-color: var(--magic);
  color: var(--magic-ink);
  filter: brightness(1.08);
}

/* 魔法主题作用域：让子元素统一使用紫色强调 */
.theme-magic {
  --accent: var(--magic);
  --accent-hover: var(--magic);
  --accent-ink: var(--magic-ink);
  --accent-soft: var(--magic-soft);
  --accent-line: color-mix(in srgb, var(--magic) 40%, transparent);
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 36px 0 40px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.footer-brand b { display: block; color: var(--text); font-size: 14px; }
.footer-brand span { font-size: 12.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.footer-links a { color: var(--text-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 960px) {
  .tool-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { flex-wrap: wrap; gap: 10px 14px; min-height: 58px; }
  .brand-text small { display: none; }
  .site-nav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
  .header-actions { margin-left: auto; }
  .hero { padding: 44px 0 40px; }
  .page { padding: 32px 0 56px; }
  .notice { padding: 32px 22px; }
}

@media (max-width: 560px) {
  .brand-text b { font-size: 13.5px; }
  .brand-mark { width: 26px; height: 26px; }
  .header-actions .btn { display: none; }
  .hero h1 { font-size: clamp(28px, 8.6vw, 38px); }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { padding: 14px 16px; }
  .article-meta { font-size: 12px; gap: 6px 12px; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 14. 打印 ---------- */
@media print {
  .site-header, .site-footer, .theme-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .notice { box-shadow: none; border-color: #ccc; }
}
