/* =========================================================
   CNPVP · Minecraft 服务器官网模板
   纯手写 CSS：无框架、无构建、无外部 CDN（国内直连也没问题）
   配色：深夜蓝 + 草绿 + 少量金/钻石青
   ======================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --bg: #0b1119;
  --bg-soft: #0f1722;
  --panel: #16212e;
  --panel-2: #1c2b3b;
  --panel-3: #23364a;
  --line: #2b3f55;
  --line-soft: #223244;
  --text: #e9f1f9;
  --muted: #9db0c5;
  --muted-2: #76899e;

  --grass: #7ec850;
  --grass-dark: #4d8b33;
  --grass-deep: #2f5c1f;
  --gold: #f3c969;
  --diamond: #5fd6d2;
  --danger: #e46a6a;

  --max: 1160px;
  --shadow-block: 0 5px 0 rgba(0, 0, 0, .45);
  --shadow-soft: 0 18px 40px -20px rgba(0, 0, 0, .9);

  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas,
          "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* 背景：夜色渐层 + 方块网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(126, 200, 80, .16), transparent 62%),
    radial-gradient(760px 460px at 6% 8%, rgba(95, 214, 210, .10), transparent 60%),
    linear-gradient(180deg, #0c141e 0%, #0b1119 46%, #0a0f16 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(120, 160, 200, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 200, .07) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

/* 保证 hidden 属性一定生效（否则会被 .badge{display:inline-flex} 之类覆盖） */
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
a { color: var(--grass); text-decoration: none; }
a:hover { color: #a2e075; }
button { font: inherit; color: inherit; }

::selection { background: rgba(126, 200, 80, .32); color: #fff; }

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

/* ---------- 3. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section--tight { padding: clamp(36px, 5vw, 56px) 0; }
.section--band {
  background: linear-gradient(180deg, rgba(22, 33, 46, .72), rgba(11, 17, 25, .2));
  border-block: 3px solid var(--line-soft);
}

/* 锚点跳转时避开吸顶导航 */
.section[id], .hero[id], #top { scroll-margin-top: 86px; }

/* ---------- 4. 通用文字 ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: .01em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grass);
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--grass);
  box-shadow: 0 0 0 3px rgba(126, 200, 80, .18);
}

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; }

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  flex-wrap: wrap;
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 17, 25, .82);
  border-bottom: 3px solid var(--line-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border: 3px solid #0a1017;
  background:
    linear-gradient(180deg, var(--grass) 0 34%, #3f7a2b 34% 44%, #8a5a34 44% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 4px 0 rgba(0, 0, 0, .5);
  image-rendering: pixelated;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 45% 8% 8% 8%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .16) 0 4px, transparent 4px 9px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 4px, transparent 4px 9px);
}

.brand-name { font-size: 17px; line-height: 1.1; }
.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: var(--panel);
  border: 3px solid var(--line);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--text);
  box-shadow: 0 -7px 0 var(--text), 0 7px 0 var(--text);
  transition: transform .2s;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-bg: var(--panel-2);
  --btn-border: var(--line);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 3px solid var(--btn-border);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .55);
  transition: transform .1s, box-shadow .1s, background .16s, color .16s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); background: var(--panel-3); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 rgba(0, 0, 0, .55); }

.btn--primary {
  --btn-bg: var(--grass);
  --btn-border: #3d7227;
  --btn-fg: #0a1305;
  box-shadow: 0 4px 0 var(--grass-deep);
}
.btn--primary:hover { --btn-bg: #8ed861; color: #071004; }
.btn--primary:active { box-shadow: 0 0 0 var(--grass-deep); }

.btn--ghost { --btn-bg: transparent; }

.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }

.btn svg { flex: none; }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: min(90vw, 460px);
  padding: 10px 16px;
  font-size: 13.5px;
  text-align: center;
  color: var(--text);
  background: #0d1620;
  border: 3px solid var(--line);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 7. 标签 / 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--bg-soft);
  border: 2px solid var(--line);
}
.badge--live { color: #0a1305; background: var(--grass); border-color: #3d7227; }
.badge--warn { color: #1a1206; background: var(--gold); border-color: #a8812a; }
.badge--gold {
  color: var(--gold);
  background: rgba(243, 201, 105, .08);
  border-color: rgba(243, 201, 105, .4);
}
.badge--ghost { background: transparent; }

.dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}
.badge--live .dot {
  background: #0a1305;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.8); }
}

/* ---------- 8. Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, .5);
}
.hero h1 .accent {
  color: var(--grass);
  text-shadow: 4px 4px 0 var(--grass-deep);
}
.hero h1 .thin {
  display: block;
  font-size: .42em;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: none;
  margin-top: 14px;
  font-family: var(--mono);
}

.hero-desc {
  margin: 22px 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 16px;
}

/* IP 复制条 */
.ip-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 28px;
  max-width: 480px;
  border: 3px solid var(--line);
  background: #0a1017;
  box-shadow: var(--shadow-block);
}
.ip-box__label {
  display: grid;
  place-items: center;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted-2);
  background: var(--panel);
  border-right: 3px solid var(--line);
}
.ip-box__value {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: clamp(13px, 2.4vw, 17px);
  font-weight: 700;
  color: var(--diamond);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ip-box__copy {
  flex: none;
  padding: 0 16px;
  background: var(--grass);
  color: #0a1305;
  border: 0;
  border-left: 3px solid var(--grass-deep);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .16s;
}
.ip-box__copy:hover { background: #8ed861; }
.ip-box__copy.is-done { background: var(--diamond); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 2px dashed var(--line-soft);
  font-size: 13.5px;
  color: var(--muted);
}
.hero-meta b { color: var(--text); font-weight: 800; }

/* ---------- 9. Hero 右侧：服务器卡片 ---------- */
.server-card {
  position: relative;
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 3px solid var(--line);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .45), var(--shadow-soft);
}
.server-card__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: #0e1620;
  border-bottom: 3px solid var(--line-soft);
}
.server-card__bar i {
  width: 10px;
  height: 10px;
  background: var(--line);
  display: block;
}
.server-card__bar i:nth-child(1) { background: #e46a6a; }
.server-card__bar i:nth-child(2) { background: var(--gold); }
.server-card__bar i:nth-child(3) { background: var(--grass); }
.server-card__bar span {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .1em;
}

.server-card__body { padding: 20px; }

.scene {
  perspective: 900px;
  height: 168px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 50% 58%, rgba(126, 200, 80, .18), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 4px);
  border: 2px solid var(--line-soft);
  overflow: hidden;
}

.cube {
  position: relative;
  width: 104px;
  height: 104px;
  transform-style: preserve-3d;
  animation: cube-spin 18s linear infinite;
}
.cube__face {
  position: absolute;
  inset: 0;
  border: 3px solid #080d13;
  image-rendering: pixelated;
  backface-visibility: hidden;
}
.cube__face--top {
  transform: rotateX(90deg) translateZ(52px);
  background-color: #7ec850;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .10) 0 6px, transparent 6px 13px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .09) 0 6px, transparent 6px 13px);
}
.cube__face--front,
.cube__face--right,
.cube__face--back,
.cube__face--left {
  background-color: #8a5a34;
  background-image:
    linear-gradient(180deg, #6fae4a 0 22%, #4d8b33 22% 27%, transparent 27%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .14) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 7px, transparent 7px 14px);
}
.cube__face--front { transform: translateZ(52px); filter: brightness(1); }
.cube__face--right { transform: rotateY(90deg) translateZ(52px); filter: brightness(.82); }
.cube__face--back { transform: rotateY(180deg) translateZ(52px); filter: brightness(.7); }
.cube__face--left { transform: rotateY(-90deg) translateZ(52px); filter: brightness(.88); }
.cube__face--bottom {
  transform: rotateX(-90deg) translateZ(52px);
  background: #3c2717;
  filter: brightness(.75);
}

@keyframes cube-spin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to { transform: rotateX(-22deg) rotateY(360deg); }
}

.server-stats { display: grid; gap: 10px; }

.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13.5px;
}
.server-row:last-child { border-bottom: 0; }
.server-row dt { color: var(--muted); margin: 0; }
.server-row dd { margin: 0; font-family: var(--mono); font-weight: 700; color: var(--text); }

.bar {
  position: relative;
  height: 10px;
  margin-top: 4px;
  background: #0a1017;
  border: 2px solid var(--line);
}
.bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 64%;
  background: repeating-linear-gradient(90deg, var(--grass) 0 8px, #6bb443 8px 10px);
  transition: width .6s ease;
}

.server-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}

/* ---------- 10. 滚动关键词条 ---------- */
.ticker {
  overflow: hidden;
  background: #0a1017;
  border-block: 3px solid var(--line-soft);
  user-select: none;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  padding: 13px 0;
  animation: marquee 32s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__item::after {
  content: "◆";
  color: var(--grass);
  font-size: 9px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 11. 卡片网格 ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: linear-gradient(170deg, var(--panel), #131d29);
  border: 3px solid var(--line);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card::before {
  content: "";
  position: absolute;
  inset: -3px -3px auto -3px;
  height: 6px;
  background: var(--line);
  transition: background .18s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #3b5670;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .4);
}
.card:hover::before { background: var(--grass); }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--grass);
  background: rgba(126, 200, 80, .09);
  border: 2px solid rgba(126, 200, 80, .3);
}
.card h3 { font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 2px solid var(--line);
  background: #0e1620;
}
.tag--grass { color: var(--grass); border-color: rgba(126, 200, 80, .35); }
.tag--gold { color: var(--gold); border-color: rgba(243, 201, 105, .32); }
.tag--diamond { color: var(--diamond); border-color: rgba(95, 214, 210, .32); }

/* 玩法模式卡：左侧色条 */
.mode-card { padding-left: 24px; }
.mode-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--grass);
}
.mode-card--gold::after { background: var(--gold); }
.mode-card--diamond::after { background: var(--diamond); }
.mode-card .mode-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted-2);
}

/* ---------- 12. 加入步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: var(--bg-soft);
  border: 3px solid var(--line-soft);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--grass);
  background: #0a1017;
  border: 3px solid var(--line);
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }
.step code {
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: .92em;
  color: var(--diamond);
  background: #0a1017;
  border: 2px solid var(--line);
}

/* 信息表 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 3px solid var(--line);
  background: var(--bg-soft);
}
.info-table caption {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: #0e1620;
  border-bottom: 3px solid var(--line-soft);
}
.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--line-soft);
  vertical-align: top;
}
.info-table th {
  width: 38%;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, .015);
}
.info-table td { font-family: var(--mono); font-weight: 700; }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }

/* ---------- 13. 规则 ---------- */
.rule-list { display: grid; gap: 12px; counter-reset: rule; }

.rule {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 2px solid var(--line-soft);
  counter-increment: rule;
  transition: border-color .18s, background .18s;
}
.rule:hover { border-color: var(--line); background: var(--panel); }
.rule::before {
  content: counter(rule);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(243, 201, 105, .1);
  border: 2px solid rgba(243, 201, 105, .3);
}
.rule h3 { font-size: 15px; margin-bottom: 4px; }
.rule p { margin: 0; font-size: 14px; color: var(--muted); }

.notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 3px solid var(--line);
  border-left-width: 8px;
  background: var(--panel);
  font-size: 14px;
  color: var(--muted);
}
.notice--warn { border-left-color: var(--gold); }
.notice--danger { border-left-color: var(--danger); }
.notice--tip { border-left-color: var(--grass); }
.notice strong { color: var(--text); }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }

/* ---------- 14. 公告列表 ---------- */
.news { display: grid; gap: 0; border-top: 3px solid var(--line); }

.news__item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 6px;
  border-bottom: 3px solid var(--line);
  color: var(--text);
  transition: background .18s, padding-left .18s;
}
.news__item:hover { background: rgba(255, 255, 255, .025); padding-left: 14px; color: var(--text); }

.news__date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted-2);
}
.news__title { display: block; font-size: 16px; font-weight: 800; margin: 0; line-height: 1.5; }
.news__desc { display: block; margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.news__arrow { color: var(--muted-2); font-family: var(--mono); font-size: 18px; }
.news__item:hover .news__arrow { color: var(--grass); }

/* ---------- 15. Wiki 引导块 ---------- */
.wiki-teaser {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(26px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(126, 200, 80, .07), transparent 55%),
    var(--panel);
  border: 3px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.wiki-links { display: grid; gap: 10px; }
.wiki-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #0e1620;
  border: 2px solid var(--line-soft);
  color: var(--text);
  transition: transform .16s, border-color .16s;
}
.wiki-link:hover {
  transform: translateX(4px);
  border-color: rgba(126, 200, 80, .5);
  color: var(--text);
}
.wiki-link__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grass);
  letter-spacing: .12em;
}
.wiki-link__text { font-weight: 700; font-size: 15px; }
.wiki-link__go { margin-left: auto; color: var(--muted-2); font-family: var(--mono); }

/* ---------- 16. CTA ---------- */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 3px solid var(--grass-dark);
  background:
    repeating-linear-gradient(135deg, rgba(126, 200, 80, .05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #1b2c1c, #14202a);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .45);
}
.cta h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.cta p { margin: 12px 0 0; color: #b9cbb0; font-size: 15px; }
.cta__actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 17. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(36px, 5vw, 56px) 0 28px;
  background: #080d13;
  border-top: 3px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr .75fr .75fr .95fr;
  gap: 32px;
  padding-bottom: 28px;
}
.footer-brand p { margin: 14px 0 0; font-size: 14px; color: var(--muted-2); max-width: 40ch; }
.footer-col h4 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--grass); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 2px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted-2);
}
.footer-bottom p { margin: 0; }
.footer-bottom .mono { font-size: 11.5px; }

/* ---------- 18. 入场动画 ---------- */
/* 默认内容完全可见；只有 JS 确认 IntersectionObserver 可用时，
   才由 html.reveal-on 打开隐藏，避免脚本异常导致整页空白 */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .cube, .ticker__track, .badge--live .dot { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   19. Wiki 页面
   ======================================================= */
.page-head {
  padding: clamp(32px, 5vw, 56px) 0 clamp(22px, 3vw, 32px);
  border-bottom: 3px solid var(--line-soft);
}
.page-head h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}
.page-head p { margin: 12px 0 0; color: var(--muted); }

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.crumb a { color: var(--muted-2); }
.crumb a:hover { color: var(--grass); }

.wiki-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}

.search {
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
}
.search input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: #0a1017;
  border: 3px solid var(--line);
  transition: border-color .18s;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; border-color: var(--grass-dark); }
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.search kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  border: 2px solid var(--line);
  background: var(--panel);
  pointer-events: none;
}
.search input:focus + svg + kbd,
.search input:not(:placeholder-shown) ~ kbd { opacity: 0; }

.wiki-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-bottom: 40px;
}

.wiki-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--bg-soft);
  border: 3px solid var(--line-soft);
}
.wiki-side__title {
  margin: 4px 4px 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: 2px solid transparent;
  border-left: 4px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.cat:hover { background: var(--panel); color: var(--text); }
.cat.is-active {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
  border-left-color: var(--grass);
}
.cat__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}
.cat.is-active .cat__count { color: var(--grass); }

.wiki-side__foot {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 2px dashed var(--line-soft);
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
}

.wiki-main { min-width: 0; }

.result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted-2);
}
.result-line b { color: var(--grass); }

.wiki-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.wiki-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  text-align: left;
  background: linear-gradient(170deg, var(--panel), #131d29);
  border: 3px solid var(--line-soft);
  color: var(--text);
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.wiki-card:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 200, 80, .55);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .4);
  color: var(--text);
}
.wiki-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.wiki-card__cat { color: var(--grass); }
.wiki-card h3 { font-size: 16.5px; line-height: 1.4; }
.wiki-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.wiki-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}

.empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  border: 3px dashed var(--line);
  color: var(--muted);
}
.empty strong { display: block; color: var(--text); margin-bottom: 6px; }

/* ---------- 20. 文章详情 ---------- */
.article { display: none; }
.article.is-open { display: block; }

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 2px solid var(--line);
  cursor: pointer;
}
.article__back:hover { color: var(--text); border-color: var(--grass-dark); }

.article__head {
  padding: 24px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 3px solid var(--line);
  border-left: 8px solid var(--grass);
}
.article__head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  margin-bottom: 10px;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.article__body { padding-top: 8px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 30px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 16px;
  background: var(--bg-soft);
  border: 3px solid var(--line-soft);
}
.toc h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid var(--line);
  line-height: 1.5;
}
.toc a:hover { color: var(--text); border-left-color: var(--grass); }
.toc a.lv3 { padding-left: 20px; font-size: 12.5px; color: var(--muted-2); }

/* 正文排版 */
.prose { max-width: 74ch; font-size: 15.5px; color: #cfdae6; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  margin: 40px 0 14px;
  padding-left: 14px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  border-left: 6px solid var(--grass);
  scroll-margin-top: 96px;
}
.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.06rem;
  color: var(--text);
  scroll-margin-top: 96px;
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--grass); }
.prose strong { color: #fff; }
.prose a { border-bottom: 2px solid rgba(126, 200, 80, .35); }
.prose code {
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: .88em;
  color: var(--diamond);
  background: #0a1017;
  border: 2px solid var(--line);
  white-space: nowrap;
}
.prose pre {
  margin: 0 0 18px;
  padding: 16px;
  overflow-x: auto;
  background: #080e14;
  border: 3px solid var(--line-soft);
  border-left: 6px solid var(--diamond);
}
.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: #bfe8e6;
  white-space: pre;
  font-size: 13px;
  line-height: 1.7;
}
.prose table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 14px;
  border: 3px solid var(--line);
}
.prose thead th {
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
  background: var(--panel-2);
  border-bottom: 3px solid var(--line);
  white-space: nowrap;
}
.prose tbody td {
  padding: 10px 12px;
  border-bottom: 2px solid var(--line-soft);
  vertical-align: top;
}
.prose tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .callout {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-left: 6px solid var(--grass);
  font-size: 14.5px;
}
.prose .callout--warn { border-left-color: var(--gold); }
.prose .callout--danger { border-left-color: var(--danger); }
.prose .callout strong { display: block; margin-bottom: 4px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose hr {
  margin: 32px 0;
  border: 0;
  border-top: 3px solid var(--line-soft);
}

.article__foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 3px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted-2);
}

[data-related] h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); }
  .server-card { max-width: 520px; }
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-side {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: thin;
  }
  .wiki-side__title, .wiki-side__foot { display: none; }
  .cat {
    width: auto;
    flex: none;
    padding: 8px 14px;
    border-left: 2px solid var(--line);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }
  .cat.is-active { border-left-color: var(--line); border-bottom-color: var(--grass); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-teaser { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #0d141d;
    border-bottom: 3px solid var(--line);
    box-shadow: 0 16px 24px -12px rgba(0, 0, 0, .9);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 14px; border-width: 2px; border-color: transparent; }
  .nav-toggle { display: grid; margin-left: auto; }
  .nav-actions { margin-left: 0; }
  .nav-actions .btn { display: none; }
  .news__item { grid-template-columns: 1fr; gap: 6px; padding: 16px 4px; }
  .news__arrow { display: none; }
}

@media (max-width: 620px) {
  html { font-size: 15px; }
  .grid--2, .grid--3, .grid--4, .wiki-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 8px 18px; font-size: 12.5px; }
  .ip-box__label { display: none; }
  .ip-box__value { padding-left: 12px; }
  .step { grid-template-columns: 1fr; }
  .step::before { width: 44px; height: 44px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .toc ol { grid-template-columns: 1fr; }
  .badge { font-size: 10px; }
  .prose { font-size: 15px; }
  .prose table { font-size: 13px; }
  .prose thead th, .prose tbody td { padding: 8px 10px; }
  .section-head--row { align-items: flex-start; }
}

/* ---------- 22. 打印 ---------- */
@media print {
  body::before, body::after, .site-header, .site-footer, .cta, .ticker { display: none !important; }
  body { background: #fff; color: #111; }
  .prose, .prose h2, .prose h3 { color: #111; }
}

/* ===== Visual refresh: forest palette, quiet borders, square geometry ===== */
:root {
  --bg: #101410; --bg-soft: #151b16; --panel: #1a211b;
  --panel-2: #202a21; --panel-3: #29362a;
  --line: #354335; --line-soft: #283129;
  --text: #f1f3e9; --muted: #b3bcb0; --muted-2: #94a28f;
  --grass: #b5ed77; --grass-dark: #6d9848; --grass-deep: #39542b;
  --diamond: #b5d9be; --max: 1280px;
}
body::before { background: radial-gradient(ellipse at 85% 0, #26352066, transparent 45%), #101410; }
body::after { opacity: .13; background-size: 64px 64px; }
.wrap { padding-inline: 40px; }
.site-header { background: #101610eb; border-bottom-width: 1px; }
.nav { height: 80px; }
.brand-name { font-size: 19px; }
.brand-name small { margin-top: 7px; font-size: 9px; letter-spacing: .24em; }
.brand-mark { width: 37px; height: 37px; }
.nav-links { gap: 16px; }
.nav-links a { border: 0; padding: 8px 5px; font-size: 13px; background: none; }
.nav-links a:hover, .nav-links a.is-active { background: none; color: var(--grass); }
.nav-links a.is-active { box-shadow: 0 2px var(--grass); }
.btn { border-width: 1px; padding: 12px 21px; font-size: 13px; box-shadow: 0 3px 0 #0006; transition: background .18s, transform .18s, box-shadow .18s; }
.btn:hover { background: var(--panel-3); transform: translateY(-2px); }
.btn:active { transform: translateY(3px); }
.btn--primary { border-color: #c9fa95; background: var(--grass); box-shadow: 0 3px 0 #536d35; }
.btn--primary:hover { background: #c9fa95; }
.btn--lg { padding: 16px 25px; font-size: 14px; }
.badge { border-width: 1px; padding: 4px 9px; }
.badge--live { color: var(--grass); background: #263b20; border-color: #688b485c; }
.badge--live .dot { background: var(--grass); }
.section { padding-block: 80px; }
.section--band { border-block-width: 1px; background: #151c1580; }
.section--tight { padding-block: 40px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.35; letter-spacing: -.04em; text-shadow: none; }
.section-head p { font-size: 14px; line-height: 1.9; }
.section-head--row { max-width: none; }
.kicker { font-size: 10px; letter-spacing: .18em; margin-bottom: 12px; }
.kicker::before { width: 5px; height: 5px; box-shadow: none; }
.ticker { border-block-width: 1px; background: #151d14; }
.ticker__track { padding-block: 13px; }
.ticker__item { font-size: 11px; color: #a3b39b; }
.info-table, .info-table th, .info-table td, .info-table caption, .notice, .steps .step, .cta, .card, .wiki-side, .wiki-card, .search, .article, .toc { border-width: 1px; }
.info-table { overflow-wrap: anywhere; }
.cta { padding: 40px; background: radial-gradient(ellipse at 100% 50%, #40572a88, transparent 70%), #1e2b1c; border-color: #577541; box-shadow: none; }
.cta h2 { text-shadow: none; }
.site-footer { border-top-width: 1px; background: #0c100d; }
.footer-grid { gap: 36px; grid-template-columns: 1.5fr .65fr .65fr 1fr; }
.footer-brand p { max-width: 38ch; font-size: 13px; }
.footer-col { min-width: 0; overflow-wrap: anywhere; }
.footer-col a { font-size: 13px; }
.footer-bottom { border-top-width: 1px; gap: 12px; }
.reveal-on .reveal { transition-duration: .25s; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: auto; } }
@media (max-width: 860px) { .nav { height: 68px; } .nav-links { margin: 0; gap: 0; } .nav-links a { padding: 13px 18px; } .nav-links a.is-active { box-shadow: none; background: #23311e; } .wrap { padding-inline: 24px; } }
@media (max-width: 620px) { .wrap { padding-inline: 20px; } .section { padding-block: 54px; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .footer-brand { grid-column: 1 / -1; } .footer-col:last-child { grid-column: 1 / -1; } .cta { padding: 25px; } .btn--lg { padding: 14px 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }
