/* ==========================================================
   森屿 Minecraft — 全新官网样式
   深色森系主题 · 自包含，无外部依赖
   ========================================================== */

:root {
  --bg: #0a0f0c;
  --bg-soft: #0d1510;
  --card: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  --line: rgba(148, 190, 165, .16);
  --line-strong: rgba(148, 190, 165, .3);
  --text: #e7f0ea;
  --muted: #94a89b;
  --faint: #6d8175;
  --accent: #6ee7a0;
  --accent-deep: #34d399;
  --accent-dim: rgba(110, 231, 160, .12);
  --gold: #f2c66d;
  --gold-dim: rgba(242, 198, 109, .12);
  --sky: #82c8ff;
  --sky-dim: rgba(130, 200, 255, .12);
  --rose: #ff9d9d;
  --rose-dim: rgba(255, 157, 157, .12);
  --violet: #b8a6f2;
  --violet-dim: rgba(184, 166, 242, .12);
  --radius: 18px;
  --maxw: 1100px;
  --nav-h: 64px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景氛围层 ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(52, 211, 153, .14), transparent 65%),
    radial-gradient(700px 500px at 85% 10%, rgba(94, 234, 212, .08), transparent 65%),
    radial-gradient(800px 600px at 50% 110%, rgba(52, 211, 153, .07), transparent 70%),
    var(--bg);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
}
.fireflies { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fireflies span {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 255, 210, .9), rgba(110, 231, 160, 0) 70%);
  opacity: 0; animation: drift linear infinite;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: var(--peak, .55); }
  50% { transform: translate3d(var(--dx, 40px), -46vh, 0); }
  92% { opacity: var(--peak, .55); }
  100% { transform: translate3d(calc(var(--dx, 40px) * -0.6), -92vh, 0); opacity: 0; }
}

/* ---------- 通用 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .6; }

h2.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700; letter-spacing: .02em; line-height: 1.3;
}
.section-sub { color: var(--muted); margin-top: 10px; max-width: 640px; }
.sec-head { margin-bottom: 38px; }

section.block { padding: 84px 0; }
section.block + section.block { padding-top: 0; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(110, 231, 160, .06);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 13px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--muted);
  white-space: nowrap;
}
.chip em { font-style: normal; color: var(--text); font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.chip.tone-green { color: var(--accent); border-color: rgba(110, 231, 160, .3); background: var(--accent-dim); }
.chip.tone-gold { color: var(--gold); border-color: rgba(242, 198, 109, .3); background: var(--gold-dim); }
.chip.tone-sky { color: var(--sky); border-color: rgba(130, 200, 255, .3); background: var(--sky-dim); }
.chip.tone-rose { color: var(--rose); border-color: rgba(255, 157, 157, .3); background: var(--rose-dim); }
.chip.tone-violet { color: var(--violet); border-color: rgba(184, 166, 242, .3); background: var(--violet-dim); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: var(--font);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05); color: var(--text);
  transition: all .25s ease; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); background: rgba(110, 231, 160, .08); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent; color: #08120c;
  box-shadow: 0 8px 26px rgba(52, 211, 153, .3);
}
.btn.primary:hover { color: #08120c; box-shadow: 0 12px 32px rgba(52, 211, 153, .42); filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 18px; font-size: 14px; }

code, .cmd {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  font-size: .92em;
}
.cmd {
  display: inline-block; padding: 2px 9px; border-radius: 8px;
  background: rgba(110, 231, 160, .1); border: 1px solid rgba(110, 231, 160, .22);
  color: var(--accent); white-space: nowrap;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 14, 11, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.brand .name { font-size: 18px; font-weight: 700; letter-spacing: .04em; line-height: 1.1; }
.brand .sub { font-size: 10.5px; color: var(--faint); letter-spacing: .18em; font-family: ui-monospace, monospace; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; padding: 7px 13px; border-radius: 10px;
  transition: all .2s ease; position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--accent); }

.nav-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-family: ui-monospace, monospace;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--accent); box-shadow: 0 0 0 0 rgba(110, 231, 160, .5); animation: pulse 2s infinite; }
.dot.off { background: var(--rose); }
.dot.unknown { background: var(--faint); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, .45); }
  70% { box-shadow: 0 0 0 7px rgba(110, 231, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); }
}

.nav-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; color: var(--text); }
.nav-burger svg { display: block; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 76px) 0 60px; text-align: center; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.3rem); font-weight: 800;
  letter-spacing: .03em; line-height: 1.15;
  background: linear-gradient(120deg, #f2fbf5 30%, #9ff0c0 60%, #5ecf94 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(110, 231, 160, .18);
}
.hero .tagline { margin-top: 16px; font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--muted); }
.hero .tagline b { color: var(--text); font-weight: 600; }

.ip-chip {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  padding: 13px 14px 13px 22px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .045);
  font-family: ui-monospace, monospace; font-size: clamp(15px, 2.6vw, 19px);
  cursor: pointer; transition: all .25s ease; color: var(--text);
}
.ip-chip:hover { border-color: var(--accent); background: rgba(110, 231, 160, .08); transform: translateY(-2px); }
.ip-chip .copy-ico { font-size: 13px; color: var(--accent); border: 1px solid rgba(110, 231, 160, .3); border-radius: 999px; padding: 4px 11px; font-family: var(--font); }
.ip-chip.copied { border-color: var(--accent); background: rgba(110, 231, 160, .14); }

.hero .badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero .port-hint { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* 状态卡 */
.status-card { max-width: 640px; margin: 44px auto 0; padding: 18px 22px; display: flex; align-items: center; gap: 18px; text-align: left; }
.status-card img.icon { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); image-rendering: pixelated; }
.status-card .sc-name { font-weight: 700; font-size: 16px; }
.status-card .sc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.st-ok { color: var(--accent); }
.st-bad { color: var(--rose); }
.status-card .sc-right { margin-left: auto; text-align: right; flex: none; }
.status-card .players { font-family: ui-monospace, monospace; font-size: 22px; font-weight: 700; color: var(--text); }
.status-card .players small { font-size: 13px; color: var(--faint); font-weight: 400; }
.status-card .players-label { font-size: 11.5px; color: var(--faint); letter-spacing: .1em; }

.scroll-hint { margin-top: 54px; color: var(--faint); font-size: 12px; letter-spacing: .25em; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: hint 1.8s ease infinite; }
@keyframes hint { 0%, 100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: stretch; }
.about-main { padding: 34px; }
.about-main p { color: var(--muted); margin-top: 14px; }
.about-main p b { color: var(--text); font-weight: 600; }
.about-stats { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.stat .num { font-size: 21px; font-weight: 800; font-family: ui-monospace, monospace; min-width: 92px; }
.stat .num.green { color: var(--accent); } .stat .num.gold { color: var(--gold); }
.stat .num.sky { color: var(--sky); } .stat .num.violet { color: var(--violet); }
.stat .lab { font-size: 13.5px; color: var(--muted); }

/* ---------- 特色卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat { padding: 26px; position: relative; overflow: hidden; }
.feat .ico {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; background: var(--accent-dim); border: 1px solid rgba(110, 231, 160, .25);
}
.feat.tone-gold .ico { background: var(--gold-dim); border-color: rgba(242, 198, 109, .25); }
.feat.tone-sky .ico { background: var(--sky-dim); border-color: rgba(130, 200, 255, .25); }
.feat.tone-violet .ico { background: var(--violet-dim); border-color: rgba(184, 166, 242, .25); }
.feat.tone-rose .ico { background: var(--rose-dim); border-color: rgba(255, 157, 157, .25); }
.feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--muted); }

/* ---------- 玩法标签页 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.tab-btn {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted);
  font-family: var(--font); transition: all .22s ease;
}
.tab-btn:hover { color: var(--text); border-color: var(--line-strong); }
.tab-btn.active { background: var(--accent-dim); border-color: rgba(110, 231, 160, .4); color: var(--accent); font-weight: 600; }
.tab-panel { display: none; padding: 30px 34px; }
.tab-panel.active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.tab-panel .desc { color: var(--muted); font-size: 14.5px; }
.tab-panel .cmds { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

/* ---------- 世界 ---------- */
.world-card { padding: 24px; }
.world-card .w-ico { font-size: 30px; }
.world-card h3 { font-size: 16.5px; font-weight: 700; margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.world-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 500; }
.tag.spawn { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(242, 198, 109, .25); }
.tag.survival { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(110, 231, 160, .25); }
.tag.pvp { background: var(--rose-dim); color: var(--rose); border: 1px solid rgba(255, 157, 157, .25); }
.tag.dim { background: var(--violet-dim); color: var(--violet); border: 1px solid rgba(184, 166, 242, .25); }

/* ---------- 连接教程 ---------- */
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step-card { padding: 28px; }
.step-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-card .head .badge {
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--sky-dim); border: 1px solid rgba(130, 200, 255, .3);
}
.step-card.bedrock .head .badge { background: var(--accent-dim); border-color: rgba(110, 231, 160, .3); }
.step-card h3 { font-size: 17px; font-weight: 700; }
.step-card ol { list-style: none; counter-reset: step; }
.step-card ol li {
  counter-increment: step; position: relative; padding: 9px 0 9px 42px;
  color: var(--muted); font-size: 14.5px; border-bottom: 1px dashed var(--line);
}
.step-card ol li:last-child { border-bottom: none; }
.step-card ol li::before {
  content: counter(step); position: absolute; left: 0; top: 9px;
  width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--accent);
}
.step-card ol li em { font-style: normal; color: var(--text); font-family: ui-monospace, monospace; font-size: 13.5px; }

.addr-line {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 24px; margin-bottom: 20px; border-radius: var(--radius);
  border: 1px dashed var(--line-strong); background: rgba(110, 231, 160, .05);
  font-family: ui-monospace, monospace; font-size: 15px;
}
.addr-line .ip { color: var(--accent); font-weight: 700; font-size: 17px; }

/* FAQ 手风琴 */
.faq details, .rules details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; transition: border-color .25s ease; }
.faq details + details, .rules details + details { margin-top: 12px; }
.faq details[open], .rules details[open] { border-color: rgba(110, 231, 160, .35); }
.faq summary, .rules summary {
  list-style: none; cursor: pointer; padding: 16px 22px;
  font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 12px; user-select: none;
}
.faq summary::-webkit-details-marker, .rules summary::-webkit-details-marker { display: none; }
.faq summary .ar, .rules summary .ar {
  margin-left: auto; color: var(--faint); transition: transform .25s ease; font-size: 12px; flex: none;
}
details[open] > summary .ar { transform: rotate(180deg); }
.faq .body, .rules .body { padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; }
.faq .body b { color: var(--text); }

/* ---------- 规则 ---------- */
.rules .body ul { list-style: none; }
.rules .body li { padding: 5px 0 5px 20px; position: relative; }
.rules .body li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); font-weight: 900; }
.rules .body li.no::before { content: "✕"; color: var(--rose); font-size: 11px; top: 8px; }
.rules .body li.ok::before { content: "✓"; color: var(--accent); font-size: 12px; top: 8px; }
.rules .body li b { color: var(--text); }
.punish { margin-top: 26px; }
.punish h4 { font-size: 15px; margin-bottom: 14px; color: var(--text); }
.p-row {
  display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-left: 3px solid; border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .03); font-size: 14px;
}
.p-row + .p-row { margin-top: 9px; }
.p-row .what { color: var(--muted); } .p-row .what b { color: var(--text); }
.p-row .pen { font-weight: 700; font-size: 13.5px; }
.p1 { border-color: #7cc7ff; } .p1 .pen { color: #7cc7ff; }
.p2 { border-color: var(--gold); } .p2 .pen { color: var(--gold); }
.p3 { border-color: #f2936d; } .p3 .pen { color: #f2936d; }
.p4 { border-color: var(--rose); } .p4 .pen { color: var(--rose); }

/* ---------- 税收表 ---------- */
.tax-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tax-table th { text-align: left; padding: 12px 16px; color: var(--faint); font-weight: 500; font-size: 12.5px; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.tax-table td { padding: 11px 16px; border-bottom: 1px solid rgba(148, 190, 165, .08); font-family: ui-monospace, monospace; }
.tax-table td:last-child { color: var(--gold); font-weight: 700; }
.tax-table tr:hover td { background: rgba(255, 255, 255, .025); }
.tax-note { font-size: 12.5px; color: var(--faint); margin-top: 14px; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 58px 30px; border-radius: 24px;
  background:
    radial-gradient(500px 240px at 20% 0%, rgba(52, 211, 153, .18), transparent 70%),
    radial-gradient(500px 240px at 80% 100%, rgba(94, 234, 212, .1), transparent 70%),
    var(--card);
  border: 1px solid var(--line-strong);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
.cta-band p { color: var(--muted); margin-top: 10px; }
.cta-band .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 46px 0 30px; background: rgba(255, 255, 255, .015); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.foot-grid h4 { font-size: 14px; letter-spacing: .1em; color: var(--text); margin-bottom: 14px; }
.foot-grid p, .foot-grid a { display: block; font-size: 13.5px; color: var(--muted); padding: 3.5px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
.foot-brand span { font-weight: 700; }
.poem { font-family: var(--font-serif); color: var(--faint); font-size: 14px; letter-spacing: .12em; }
.foot-bottom { border-top: 1px solid rgba(148, 190, 165, .08); padding-top: 22px; text-align: center; font-size: 12.5px; color: var(--faint); }
.foot-bottom a { color: var(--faint); }
.foot-bottom a:hover { color: var(--accent); }
.foot-bottom .icp { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.foot-bottom .icp a { display: inline-flex; align-items: center; gap: 5px; }
.foot-bottom .icp img { width: 14px; height: 15px; }

/* ---------- 回到顶部 ---------- */
#toTop {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(13, 21, 16, .9);
  backdrop-filter: blur(10px); color: var(--accent); font-size: 17px; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: all .3s ease;
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fireflies { display: none; }
}

/* ---------- 文档页 ---------- */
.page-head { padding: calc(var(--nav-h) + 54px) 0 34px; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); font-weight: 800; letter-spacing: .03em; }
.page-head p { color: var(--muted); margin-top: 10px; }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; padding-bottom: 70px; }
.toc { position: sticky; top: calc(var(--nav-h) + 20px); padding: 18px; }
.toc .toc-title { font-size: 12px; letter-spacing: .2em; color: var(--faint); margin: 4px 6px 12px; }
.toc a { display: block; padding: 7px 12px; border-radius: 9px; color: var(--muted); font-size: 13.5px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.toc a.active { color: var(--accent); background: var(--accent-dim); }
.doc-sec { margin-bottom: 34px; scroll-margin-top: calc(var(--nav-h) + 18px); }
.doc-card { padding: 30px 34px; }
.doc-card h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.doc-card .intro { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.doc-card h3 { font-size: 15.5px; font-weight: 700; margin: 22px 0 10px; color: var(--text); }
.cmd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmd-table th { text-align: left; padding: 9px 12px; color: var(--faint); font-weight: 500; font-size: 12.5px; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.cmd-table td { padding: 9px 12px; border-bottom: 1px solid rgba(148, 190, 165, .08); color: var(--muted); vertical-align: top; }
.cmd-table tr:last-child td { border-bottom: none; }
.cmd-table td:first-child { white-space: nowrap; }
.doc-card ul.tips { list-style: none; margin-top: 14px; }
.doc-card ul.tips li { padding: 4px 0 4px 20px; position: relative; color: var(--muted); font-size: 13.5px; }
.doc-card ul.tips li::before { content: "◆"; position: absolute; left: 0; top: 6px; font-size: 9px; color: var(--accent); }
.doc-card b { color: var(--text); }

/* ---------- 捐助页 ---------- */
.donate-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.qr-card { padding: 26px; text-align: center; }
.qr-card img { width: 100%; max-width: 250px; border-radius: 14px; border: 1px solid var(--line); }
.qr-card h3 { margin-bottom: 14px; font-size: 17px; }
.qr-card p { font-size: 13px; color: var(--muted); }
.hall-card { padding: 28px 30px; }
.hall-card h3 { font-size: 18px; margin-bottom: 6px; }
.hall-card .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.don-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.don-row:last-child { border-bottom: none; }
.don-row .d-name { font-weight: 600; color: var(--text); }
.don-row .d-msg { color: var(--muted); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.don-row .d-amt { font-family: ui-monospace, monospace; color: var(--gold); font-weight: 700; }
.don-empty { text-align: center; padding: 34px 0; color: var(--faint); font-size: 14px; }
.notice-list { margin-top: 18px; }
.notice-list li { padding: 5px 0 5px 22px; position: relative; color: var(--muted); font-size: 13.5px; list-style: none; }
.notice-list li::before { content: "◆"; position: absolute; left: 0; top: 7px; font-size: 9px; color: var(--gold); }

/* ---------- 404 ---------- */
.e404 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; position: relative; }
.e404 .code { font-family: ui-monospace, monospace; font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(120deg, #f2fbf5, #5ecf94); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e404 h1 { font-size: 20px; margin: 18px 0 8px; }
.e404 p { color: var(--muted); font-size: 14.5px; max-width: 420px; }
.e404 .actions { margin-top: 30px; display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .nav-links, .nav-status { display: none; }
  .nav-burger { display: block; }
  .mobile-menu {
    display: block; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    background: rgba(9, 14, 11, .97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 10px 22px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s ease;
  }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 11px 6px; color: var(--muted); font-size: 15px; border-bottom: 1px solid rgba(148, 190, 165, .07); }
  .mobile-menu a:last-child { border-bottom: none; }
  .about-grid, .connect-grid, .donate-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  section.block { padding: 60px 0; }
  .grid-3, .grid-2, .about-stats { grid-template-columns: 1fr; }
  .tab-panel { padding: 22px; }
  .doc-card { padding: 24px 20px; }
  .status-card .sc-right { display: none; }
  .hero .actions .btn { width: 100%; max-width: 300px; }
  .punish .p-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---------- 状态监测页（status.html） ---------- */
.sp-card { padding: 26px 30px; }
.sp-head { display: flex; align-items: center; gap: 16px; }
.sp-head img { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); image-rendering: pixelated; flex: none; }
.sp-title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.sp-motd { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.sp-item { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.sp-item .lab { display: block; font-size: 11px; letter-spacing: .12em; color: var(--faint); margin-bottom: 5px; }
.sp-item .val { font-size: 15.5px; font-weight: 700; color: var(--text); font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.sp-item .val small { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.sp-meta { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; color: var(--faint); }
.sc-link { font-size: 12px; color: var(--faint); text-decoration: none; }
.sc-link:hover { color: var(--accent-deep); }
@media (max-width: 760px) {
  .sp-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-card { padding: 20px 18px; }
  .sp-motd { max-width: 100%; }
}
