@charset "UTF-8";
/* ==========================================================================
   LAVA SMP · 官网样式表
   视觉语言：Minecraft 夜间场景 + 原版 GUI 控件 + 方块材质
   版本：v3.4.0
   ========================================================================== */

/* ---------- 字体 ---------- */
@font-face {
  font-family: "FusionPixel";
  src: url("../fonts/fusion-pixel.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --night-0: #04060c;
  --night-1: #06070b;
  --night-2: #0a0c14;
  --night-3: #12141c;

  --panel: #1c1a17;
  --panel-2: #262320;
  --panel-3: #383430;
  --slot: #0d0c0b;

  --edge-d: #040404;
  --edge: #393530;
  --edge-l: #5b5449;

  --txt: #efe9de;
  --txt-2: #b8b0a3;
  --txt-3: #877f72;

  --lava: #ff6a1a;
  --lava-2: #ffa63e;
  --lava-3: #ffd489;
  --link: #f0b878;

  /* Hypixel 式的金色强调：加入面板与主按钮共用 */
  --gold: #f0a11a;
  --gold-2: #ffc247;
  --gold-fg: #241300;
  /* 原版按钮的灰 */
  --gui: #8b8b8b;
  --gui-hi: #c8c8c8;
  --gui-lo: #464646;

  --font: "FusionPixel", "Courier New", monospace;
  --wrap: 1180px;
  --step: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  background: #07070a;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.9;
  color: var(--txt-2);
  background: #0a0a0c;
  -webkit-font-smoothing: none;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 { margin: 0; color: var(--txt); font-weight: 400; line-height: 1.55; }
::selection { background: var(--lava); color: #170800; }

.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--slot); border-left: 2px solid var(--edge-d); }
::-webkit-scrollbar-thumb {
  background: var(--panel-3);
  border-top: 2px solid var(--edge-l);
  border-left: 2px solid var(--edge-l);
  border-bottom: 2px solid var(--edge-d);
  border-right: 2px solid var(--edge-d);
}
::-webkit-scrollbar-thumb:hover { background: #31456b; }

/* ---------- 容器 ---------- */
.wrap { width: min(100% - 44px, var(--wrap)); margin: 0 auto; }
.narrow { width: min(100% - 44px, 860px); margin: 0 auto; }

/* ---------- MC 控件 ---------- */
.mc-panel {
  position: relative;
  background: var(--panel);
  box-shadow:
    inset 2px 2px 0 var(--edge-l),
    inset -2px -2px 0 var(--edge-d),
    0 0 0 2px var(--edge-d);
}

.mc-slot {
  background: var(--slot);
  box-shadow:
    inset 2px 2px 0 var(--edge-d),
    inset -2px -2px 0 var(--edge-l),
    0 0 0 2px var(--edge-d);
}

/* 原版按钮：上沿受光、下沿背光，本体是一条自上而下的浅灰渐变，文字带投影 */
.mc-btn {
  --b-a: #7f7f7f;
  --b-b: #5a5a5a;
  --b-hi: #b6b6b6;
  --b-lo: #2b2b2b;
  --b-fg: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1;
  color: var(--b-fg);
  background-color: var(--b-b);
  background-image:
    url("../img/tex/gui-noise.png"),
    linear-gradient(180deg, var(--b-a), var(--b-b));
  background-size: 32px 32px, 100% 100%;
  border: 0;
  cursor: pointer;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 2px 2px 0 var(--b-hi),
    inset -2px -2px 0 var(--b-lo),
    0 0 0 2px #000;
  transition: background-color 0.12s linear, box-shadow 0.12s linear, transform 0.06s linear;
}
.mc-btn:hover { --b-a: #949494; --b-b: #6e6e6e; --b-hi: #d2d2d2; }
.mc-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 2px 2px 0 var(--b-lo),
    inset -2px -2px 0 var(--b-hi),
    0 0 0 2px #000;
}
.mc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* 主按钮回到岩浆金：原版高亮按钮的斜面，只是把灰换成了暖金，别又做成发光胶囊 */
.mc-btn.primary {
  --b-a: #f0a52c;
  --b-b: #c1760b;
  --b-hi: #ffe3ae;
  --b-lo: #663200;
  --b-fg: #fffaf0;
}
.mc-btn.primary:hover { --b-a: #ffbd47; --b-b: #d9890f; --b-hi: #fff0cd; }

.mc-btn.ghost {
  --b-a: #7d7568;
  --b-b: #56504a;
  --b-hi: #a89c8b;
  --b-lo: #1b1915;
  --b-fg: #f7f2e8;
}
.mc-btn.ghost:hover { --b-a: #8d8577; --b-b: #665f57; --b-hi: #bdb2a0; }

.mc-btn.sm { padding: 10px 16px; font-size: 14px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 12, 0.94);
  border-bottom: 2px solid var(--edge-d);
  box-shadow: 0 2px 0 rgba(120, 110, 95, 0.16);
  backdrop-filter: blur(2px);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img {
  height: 30px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.7));
  transition: transform 0.18s var(--step);
}
/* 导航栏最左的服务器图标：直接用 favicon-32.png 按 32px 显示，1:1 不缩放 */
.brand .brand-ico {
  height: 32px;
  width: 32px;
  flex: none;
  image-rendering: auto;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6));
}
.brand .brand-mark { height: 28px; }
.brand:hover img { transform: translateY(-1px); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  position: relative;
  padding: 9px 15px;
  font-size: 14px;
  color: var(--txt-2);
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--txt); background: var(--panel); }
.nav a.on {
  color: #fff;
  background: var(--panel-2);
  box-shadow:
    inset 2px 2px 0 var(--edge-l),
    inset -2px -2px 0 var(--edge-d);
}
.nav a.on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--lava);
}

.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ip-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--txt);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  background-color: #131210;
  background-image: url("../img/tex/gui-noise.png");
  background-size: 32px 32px;
  box-shadow:
    inset 2px 2px 0 var(--edge-d),
    inset -2px -2px 0 var(--edge-l),
    0 0 0 2px var(--edge-d);
  cursor: pointer;
  white-space: nowrap;
  border: 0;
}
.ip-chip:hover { color: var(--lava-3); }
.ip-chip .dot {
  width: 7px; height: 7px;
  background: #54d75a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  animation: pulse 2.4s steps(2) infinite;
}

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  padding: 0;
  background-color: var(--panel-2);
  background-image: url("../img/tex/gui-noise.png");
  background-size: 32px 32px;
  border: 0;
  cursor: pointer;
  box-shadow: inset 2px 2px 0 var(--edge-l), inset -2px -2px 0 var(--edge-d), 0 0 0 2px #000;
}
.nav-toggle i {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--txt);
  box-shadow: 0 6px 0 var(--txt), 0 -6px 0 var(--txt);
}

/* ---------- 首屏 ---------- */
/* 贴近地平线压暗，不用蓝色辉光——否则整块夜空会泛蓝 */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 140px;
  height: 300px;
  z-index: 1;
  background: radial-gradient(72% 100% at 50% 100%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 74%);
  pointer-events: none;
}
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #000000 0%, #010204 30%, #020409 62%, #04060c 100%);
  min-height: 776px;
  padding-bottom: 132px;
}

.stars, .stars-2 { position: absolute; inset: 0; pointer-events: none; }
.stars span,
.stars-2 span { position: absolute; width: 2px; height: 2px; background: #f0e9dc; }
.stars-2 span { background: #fff; }
.star-a { animation: twinkle 4s steps(8) infinite; }
.star-b { animation: twinkle 6.5s steps(10) infinite; }

/* 原版满月：16×16 贴图按 3 倍整数放大，48px 一个 texel 正好 3px，不糊边 */
.moon {
  position: absolute;
  top: 86px;
  right: 11%;
  width: 48px;
  height: 48px;
  background-image: url("../img/tex/moon-full.png");
  background-size: 48px 48px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  opacity: 0.76;
}

.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute;
  width: 56px;
  height: 14px;
  background: rgba(198, 213, 240, 0.12);
  box-shadow:
    14px -14px 0 rgba(198, 213, 240, 0.12),
    42px 0 0 rgba(198, 213, 240, 0.12),
    56px -14px 0 rgba(198, 213, 240, 0.12),
    70px 0 0 rgba(198, 213, 240, 0.12);
}
.cloud.c1 { top: 118px; left: -10%; animation: drift 82s linear infinite; }
.cloud.c2 { top: 190px; left: -30%; transform: scale(0.7); animation: drift 108s linear infinite; animation-delay: -24s; }
.cloud.c3 { top: 72px; left: -50%; transform: scale(1.2); animation: drift 138s linear infinite; animation-delay: -66s; }

/* 地面横截面：草方块 + 泥土各一格，往下由页面继续 */
.ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 96px;
  z-index: 3;
  background-color: #2a1d13;
  background-image: url("../img/tex/st-dirt.png");
  background-size: 48px 48px;
  image-rendering: pixelated;
  /* 夜景里的地面要压一档，不然草皮的绿会跳出来 */
  filter: brightness(0.64) saturate(0.88);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.55);
}
.ground::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 48px;
  background-image: url("../img/tex/tex-grass-side.png");
  background-size: 48px 48px;
  image-rendering: pixelated;
}
.ground-lip {
  position: absolute;
  left: 0; right: 0;
  bottom: 96px;
  height: 4px;
  z-index: 4;
  background: linear-gradient(90deg, #1a2715, #3f6128 16%, #638840 46%, #35531f 76%, #16210f);
}

/* 生物 */
.mob { position: absolute; pointer-events: none; }
.mob-hero-creeper {
  right: 11%;
  bottom: 86px;
  height: 176px;
  width: auto;
  z-index: 5;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45));
  animation: idle 5.2s ease-in-out infinite;
}
.mob-hero-zombie {
  right: 22%;
  bottom: 96px;
  height: 144px;
  width: auto;
  z-index: 4;
  opacity: 0.94;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45)) brightness(0.95);
  animation: idle 6.4s ease-in-out infinite;
  animation-delay: -1.6s;
}

/* 萤石地灯 */
.glowstone {
  position: absolute;
  width: 36px;
  height: 36px;
  z-index: 5;
  background-image: url("../img/tex/tex-glowstone.png");
  background-size: 36px 36px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 2px rgba(4, 7, 14, 0.9), 0 0 30px 8px rgba(255, 190, 80, 0.32);
  animation: lamp 3.6s steps(3) infinite;
}
.glowstone.g1 { left: 60%; bottom: 96px; }
.glowstone.g2 { right: 2.5%; bottom: 96px; animation-delay: -1.2s; }

.embers { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute;
  bottom: 96px;
  width: 3px; height: 3px;
  background: var(--lava-2);
  box-shadow: 0 0 8px 2px rgba(255, 140, 40, 0.5);
  animation: rise linear infinite;
}

/* 首屏正文 */
.hero-in { position: relative; z-index: 7; padding: 28px 0 0; }
/* 原版 tooltip：近黑底 + 紫边，替代原来的半透明橙色胶囊 */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--lava-3);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
  background: #100010;
  box-shadow: inset 0 0 0 2px #3b0f5e, 0 0 0 2px #000;
}
.hero-eyebrow b { color: var(--lava-2); font-weight: 400; }

.hero-title {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 0 16px;
  line-height: 0;
}
.hero-title .hero-mark {
  width: 128px;
  height: 128px;
  flex: none;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 30px rgba(255, 96, 64, 0.34));
  animation: heartbeat 2.8s steps(1, end) infinite;
}
.hero-title .wordmark {
  width: min(620px, 100%);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 50px rgba(255, 130, 40, 0.12));
}
@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  66% { transform: scale(1.08); }
  73% { transform: scale(0.98); }
  80% { transform: scale(1.05); }
  88% { transform: scale(1); }
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.95;
  color: var(--txt-2);
}
.hero-lead strong { color: var(--txt); font-weight: 400; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 18px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 13px;
  color: var(--txt-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta b { color: var(--txt-2); font-weight: 400; }
.hero-meta i { width: 6px; height: 6px; background: var(--lava); box-shadow: 0 0 0 1px #040404; }

/* 服务器地址牌 */
.signboard {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  overflow: hidden;
  background-image: url("../img/tex/tex-oak.png");
  background-size: 32px 32px;
  image-rendering: pixelated;
  box-shadow:
    inset 2px 2px 0 rgba(255, 226, 180, 0.35),
    inset -2px -2px 0 rgba(60, 38, 16, 0.55),
    0 0 0 3px #2a1a0c,
    0 0 0 5px #040404,
    0 12px 0 rgba(4, 7, 14, 0.35),
    0 0 44px rgba(255, 130, 40, 0.12);
}
/* 木纹上压一层薄浆，让横纹不再穿过笔画 */
.signboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 240, 208, 0.42), rgba(255, 233, 192, 0.30));
  pointer-events: none;
}
.signboard .ip,
.signboard .copy { position: relative; z-index: 1; }

.signboard .ip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 22px 12px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #1a0f02;
  text-shadow: 0 2px 0 rgba(255, 248, 226, 0.55);
}
.signboard .ip small {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #46300f;
  text-shadow: none;
}
.signboard .copy {
  display: grid;
  place-items: center;
  padding: 0 22px;
  background: rgba(60, 38, 16, 0.12);
  border: 0;
  border-left: 3px solid rgba(60, 38, 16, 0.32);
  color: #1a0f02;
  font-family: var(--font);
  font-size: 18px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-shadow: 0 2px 0 rgba(255, 248, 226, 0.5);
  transition: background 0.15s;
}
.signboard .copy:hover { background: rgba(255, 245, 210, 0.55); }
.signboard .copy:active { background: rgba(60, 38, 16, 0.24); }

/* ---------- 数据条 ---------- */
.bar-strip {
  position: relative;
  z-index: 8;
  margin-top: 0;
  background: var(--panel);
  box-shadow:
    inset 2px 2px 0 var(--edge-l),
    inset -2px -2px 0 var(--edge-d),
    0 0 0 2px var(--edge-d),
    0 10px 0 rgba(4, 7, 14, 0.4);
}
.bar-strip ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bar-strip li { padding: 18px 22px; border-right: 2px solid var(--edge-d); }
.bar-strip li:last-child { border-right: 0; }
.bar-strip dt {
  margin-bottom: 5px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--txt-2);
  text-transform: uppercase;
}
.bar-strip dd { margin: 0; font-size: 20px; color: var(--txt); }
.bar-strip dd em {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-style: normal;
  color: #a0998b;
}

/* ---------- 区块 ---------- */
.sec { position: relative; padding: 92px 0; }

.sec-head { max-width: 720px; margin-bottom: 42px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--lava-2);
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--lava);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(0, 0, 0, 0.28);
}
.sec-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.5;
}
.sec-head p { margin: 16px 0 0; font-size: 17px; color: var(--txt-2); }

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

.card {
  position: relative;
  padding: 26px 24px;
  background: var(--panel);
  box-shadow:
    inset 2px 2px 0 var(--edge-l),
    inset -2px -2px 0 var(--edge-d),
    0 0 0 2px var(--edge-d);
  transition: transform 0.18s var(--step), background 0.18s;
}
.card:hover {
  background-color: var(--panel-2);
  box-shadow:
    inset 2px 2px 0 #6d665b,
    inset -2px -2px 0 #050505,
    0 0 0 2px #000;
}

/* 物品栏格子：图标嵌在深色槽里，不加底色不加光 */
.card-ico {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  padding: 6px;
  image-rendering: pixelated;
  background: #0f0e0d;
  box-shadow:
    inset 2px 2px 0 #000,
    inset -2px -2px 0 #4a4438,
    0 0 0 2px #000;
}
.card h3 { margin-bottom: 10px; font-size: 20px; }
.card p { margin: 0; font-size: 16px; line-height: 1.95; color: var(--txt-2); }
.card .tagline {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--lava-3);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  background: #14120f;
  box-shadow:
    inset 2px 2px 0 #000,
    inset -2px -2px 0 #3d382f,
    0 0 0 2px #000;
}

/* ---------- 三维度 ---------- */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.world {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    inset 2px 2px 0 var(--edge-l),
    inset -2px -2px 0 var(--edge-d),
    0 0 0 2px var(--edge-d);
  transition: box-shadow 0.16s linear, background-color 0.16s linear;
}
.world:hover {
  box-shadow:
    inset 2px 2px 0 #6d665b,
    inset -2px -2px 0 #050505,
    0 0 0 2px #000;
}

.world-stage {
  position: relative;
  height: 232px;
  overflow: hidden;
  box-shadow: inset 0 -2px 0 var(--edge-d);
}
.ws-over { background: linear-gradient(180deg, #050a16 0%, #0c1730 58%, #16233f 100%); }
.ws-nether { background: linear-gradient(180deg, #170404 0%, #380b0a 55%, #4e1510 100%); }
.ws-end { background: linear-gradient(180deg, #05050c 0%, #0c0a1c 58%, #171130 100%); }

/* 卡内星空 */
.world-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 48px;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(220, 232, 255, 0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 14%, rgba(220, 232, 255, 0.75), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 38%, rgba(220, 232, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 42%, rgba(220, 232, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 62%, rgba(220, 232, 255, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 30%, rgba(220, 232, 255, 0.55), transparent 60%);
  opacity: 0.9;
  animation: twinkle 7s steps(6) infinite;
}
.ws-nether::before { display: none; }
.ws-end::before { opacity: 0.55; }

/* 卡内地面 */
.world-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background-size: 48px 48px;
  image-rendering: pixelated;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -14px 20px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* 卡内生物 */
.world-stage .mob {
  bottom: 48px;
  height: 168px;
  width: auto;
  z-index: 3;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.45));
  animation: idle 6s ease-in-out infinite;
}
.world-stage .mob.m-a { right: 12%; }
.world-stage .mob.m-b { right: 46%; height: 124px; opacity: 0.95; animation-delay: -2.2s; }

/* 卡内氛围粒子 */
.world-stage .spark {
  position: absolute;
  width: 4px; height: 4px;
  z-index: 2;
  background: var(--lava-2);
  box-shadow: 0 0 10px 3px rgba(255, 140, 40, 0.5);
  animation: rise 6s linear infinite;
}

.world-body { padding: 22px 22px 26px; }
.world-body .en {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--txt-3);
  text-transform: uppercase;
}
.world-body h3 { font-size: 21px; margin-bottom: 10px; }
.world-body p { font-size: 15px; color: var(--txt-2); margin: 0 0 14px; }
.world-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.world-tags span {
  padding: 3px 9px;
  font-size: 12px;
  color: var(--txt-2);
  background: #0f0e0d;
  box-shadow:
    inset 2px 2px 0 #000,
    inset -2px -2px 0 #3d382f,
    0 0 0 2px #000;
}

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step {
  position: relative;
  padding: 24px 20px;
  background: var(--panel);
  box-shadow:
    inset 2px 2px 0 var(--edge-l),
    inset -2px -2px 0 var(--edge-d),
    0 0 0 2px var(--edge-d);
}
.step::before {
  counter-increment: s;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 16px;
  font-size: 17px;
  color: var(--lava-3);
  background: var(--slot);
  box-shadow:
    inset 2px 2px 0 var(--edge-d),
    inset -2px -2px 0 var(--edge-l),
    0 0 0 2px var(--edge-d);
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; color: var(--txt-2); }

/* ---------- 原版画面：黑边 + 泥土底 + 压暗，像把游戏截图嵌进页面 ---------- */
.mc-screen {
  position: relative;
  padding: 3px;
  background: #000;
  box-shadow:
    0 0 0 2px #000,
    0 0 0 4px #4b453b,
    0 10px 0 rgba(4, 7, 14, 0.32);
}
.mc-screen-in {
  position: relative;
  padding: 34px 38px;
  background-color: #0a0a0a;
  background-image: url("../img/tex/st-dirt.png");
  background-size: 64px 64px;
  image-rendering: pixelated;
}
/* 原版界面那层压暗：中间勉强看得见泥土，四周沉下去 */
.mc-screen-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(78% 72% at 50% 40%, rgba(6, 5, 7, 0.34), rgba(2, 2, 3, 0.72) 86%);
  pointer-events: none;
}
.mc-screen-in > * { position: relative; z-index: 1; }

/* ---------- 添加服务器 ---------- */
.hy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 38px;
  align-items: start;
}
.hy-lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.95;
  color: #d2cbbf;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.75);
}
.hy-steps {
  margin: 0 0 26px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.9;
  color: #b6afa3;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
}
.hy-steps li { margin-bottom: 7px; }
.hy-steps b { color: var(--gold-2); font-weight: 400; }

.hy-flabel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #a49c8d;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}
.hy-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #8d867a; white-space: nowrap; }
.hy-live b { color: #e0d9cc; font-weight: 400; font-variant-numeric: tabular-nums; }
/* 上限 2147483647 这么长，压小一档、颜色退后，别抢在线人数的读点 */
.cap { color: #6e675c; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.hy-live i {
  width: 6px;
  height: 6px;
  background: #4fd25c;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: pulse 2.2s steps(2) infinite;
}

/* 原版输入框：纯黑底 + 1 格灰边 + 光标 */
.mc-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 18px;
  color: #e8e2d7;
  text-align: left;
  background: #000;
  border: 2px solid #a0a0a0;
  cursor: pointer;
  transition: border-color 0.12s linear;
}
.mc-field:hover { border-color: #fff; }
.mc-field:focus-visible { outline: none; border-color: #fff; }
.mc-field-t { letter-spacing: 0.02em; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9); }
.mc-caret {
  width: 3px;
  height: 19px;
  background: #e8e2d7;
  animation: caret 1.06s steps(2) infinite;
}
@keyframes caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.mc-field-hint { margin-left: auto; font-size: 11px; letter-spacing: 0.08em; color: #635e56; }
.mc-field:hover .mc-field-hint { color: #a49b8c; }

.mc-btn.wide { display: flex; width: 100%; }

/* 右侧带框配图：钢灰外框 + 深板岩底 + 岩浆地平线 */
.mc-frame {
  position: relative;
  padding: 3px;
  background: #000;
  box-shadow: 0 0 0 2px #000;
}
.mc-art {
  position: relative;
  height: 286px;
  overflow: hidden;
  background-color: #07080b;
  background-image:
    linear-gradient(rgba(4, 5, 8, 0.62), rgba(4, 5, 8, 0.7)),
    url("../img/tex/st-deepslate.png");
  background-size: auto, 48px 48px;
  image-rendering: pixelated;
}
.mc-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 42%, rgba(4, 5, 8, 0.32), rgba(2, 3, 5, 0.88) 88%);
}
.art-mob {
  position: absolute;
  bottom: 18px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.5)) brightness(0.78) saturate(0.92);
}
.art-mob-a { left: -6px; height: 158px; }
.art-mob-b { right: -10px; height: 140px; }
.art-mark {
  position: absolute;
  left: 50%;
  top: 41%;
  width: 76%;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 0 34px rgba(255, 130, 40, 0.18));
}
.art-lava {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20px;
  background-image: url("../img/tex/tex-lava.png");
  background-size: 40px 40px;
  image-rendering: pixelated;
  filter: brightness(0.88) saturate(1.05);
  box-shadow: 0 -12px 28px rgba(255, 106, 26, 0.32);
}
.hy-note {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8d867a;
  text-align: center;
}

/* ---------- 服务器列表条目 ---------- */
.mc-join { max-width: 780px; margin: 0 auto; }
.mc-join .mc-screen-in { padding: 22px 22px 24px; }
.mc-join-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #0c0c0e;
  box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px #3c3833;
}
.mc-join-ico { width: 64px; height: 64px; image-rendering: pixelated; }
.mc-join-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.mc-join-n {
  font-size: 20px;
  line-height: 1.4;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85);
}
.mc-join-m {
  font-size: 14px;
  line-height: 1.5;
  color: #b6b0a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-join-m b { color: #ffcf4d; font-weight: 400; }
.mc-join-ip { font-size: 13px; line-height: 1.5; color: #8a8377; letter-spacing: 0.02em; }
.mc-join-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mc-join-num {
  font-size: 14px;
  color: #a8a29a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
}
.mc-join-num b { color: #e6dfd2; font-weight: 400; }
.mc-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.mc-bars i { display: block; width: 3px; background: #7b9a5e; }
.mc-bars i:nth-child(1) { height: 4px; }
.mc-bars i:nth-child(2) { height: 6px; }
.mc-bars i:nth-child(3) { height: 9px; }
.mc-bars i:nth-child(4) { height: 11px; }
.mc-bars i:nth-child(5) { height: 14px; background: #5c7444; }
.mc-join-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.mc-join-act .mc-btn { flex: 1 1 0; }

/* Hypixel 的金色主按钮：扫光 + 按下回弹 */
.hx-play {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 11px 30px 12px 24px;
  font-family: var(--font);
  color: var(--gold-fg);
  text-align: left;
  background-color: var(--gold);
  background-image: url("../img/tex/gui-noise.png");
  background-size: 32px 32px;
  border: 0;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 0 rgba(94, 48, 0, 0.42),
    0 0 0 2px #000;
  transition: background-color 0.14s linear, transform 0.06s linear, box-shadow 0.14s linear;
}
.hx-play b {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 rgba(255, 226, 168, 0.35);
}
.hx-play > span {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.62;
}
.hx-play::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -45%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-16deg);
  transition: transform 0.58s ease;
  pointer-events: none;
}
.hx-play:hover { background-color: #ffb02e; }
.hx-play:hover::after { transform: translateX(430%) skewX(-16deg); }
.hx-play:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 -2px 0 rgba(255, 255, 255, 0.42),
    inset 0 3px 0 rgba(94, 48, 0, 0.5),
    0 0 0 2px #000;
}
.hx-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hx-play.sm { padding: 9px 22px 10px 18px; }
.hx-play.sm b { font-size: 17px; }



@media (max-width: 820px) {
  .hy-grid { grid-template-columns: 1fr; gap: 26px; }
  .mc-art { height: 240px; }
  .mc-screen-in { padding: 26px 22px; }
}

@media (max-width: 640px) {
  .mc-field { font-size: 16px; padding: 10px 12px; }
  .mc-field-hint { display: none; }
  .mc-art { height: 200px; }
  .art-mob-a { height: 120px; }
  .art-mob-b { height: 104px; }
  .mc-join-row { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px 10px; }
  .mc-join-ico { width: 48px; height: 48px; }
  .mc-join-meta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .mc-join-act { flex-direction: column; }
}

/* ---------- 引述：钉在岩壁上的一块橡木告示牌 ---------- */
.quote {
  position: relative;
  padding: 34px 38px;
  background-image: url("../img/tex/tex-oak.png");
  background-size: 32px 32px;
  image-rendering: pixelated;
  box-shadow:
    inset 2px 2px 0 rgba(255, 226, 180, 0.35),
    inset -2px -2px 0 rgba(60, 38, 16, 0.55),
    0 0 0 3px #2a1a0c,
    0 0 0 5px #040404,
    0 12px 0 rgba(4, 7, 14, 0.35);
}
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 240, 208, 0.42), rgba(255, 233, 192, 0.30));
  pointer-events: none;
}
.quote > * { position: relative; z-index: 1; }
.quote .q-label {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #5b3d13;
  text-transform: uppercase;
}
.quote blockquote {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.7;
  color: #1a0f02;
  text-shadow: 0 2px 0 rgba(255, 248, 226, 0.55);
}
.quote p { margin: 0; font-size: 15px; color: #4a3413; }

/* ---------- 问答：展开时整页自然增高，不做跳变 ---------- */
.faq { border-top: 2px solid var(--edge); }
.faq-item { border-bottom: 2px solid var(--edge); }
.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 4px;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--txt);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.15s linear;
}
.faq-q:hover { color: var(--lava-2); }
.faq-q:focus-visible { outline: 2px solid var(--lava-2); outline-offset: 2px; }
.faq-q-t { flex: 1 1 auto; }

/* 加号用两根像素条拼，展开时竖条缩掉变成减号 */
.faq-pm {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  background: #0f0e0d;
  box-shadow:
    inset 2px 2px 0 #000,
    inset -2px -2px 0 #4a4438,
    0 0 0 2px #000;
}
.faq-pm::before,
.faq-pm::after { content: ""; position: absolute; background: var(--txt-2); }
.faq-pm::before { left: 6px; right: 6px; top: 11px; height: 2px; }
.faq-pm::after {
  top: 6px;
  bottom: 6px;
  left: 11px;
  width: 2px;
  transition: transform 0.26s var(--step), opacity 0.18s linear;
}
.faq-item.open .faq-pm::after { transform: scaleY(0); opacity: 0; }
.faq-item.open .faq-pm::before { background: var(--lava-2); }
.faq-item.open .faq-q { color: var(--lava-3); }

.faq-a { height: 0; overflow: hidden; transition: height 0.34s var(--step); }
.faq-item.open > .faq-a { height: auto; }
.faq-a-in { padding: 0 4px 24px 42px; font-size: 16px; line-height: 1.95; color: var(--txt-2); }
.faq-a-in p { margin: 0 0 12px; }
.faq-a-in p:last-child { margin-bottom: 0; }

/* ---------- 行动区 ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 104px 0 150px;
  text-align: center;
}
.cta > .wrap { position: relative; z-index: 2; }
.cta::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  height: 36px;
  background-image: url("../img/tex/tex-lava.png");
  background-size: 72px 72px;
  image-rendering: pixelated;
  animation: lavaflow 4s steps(4) infinite;
  box-shadow: 0 -20px 44px rgba(255, 106, 26, 0.28);
  opacity: 0.85;
}
.cta h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 30px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  background: #050506;
  border-top: 3px solid #000;
  padding: 62px 0 26px;
}
.foot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/tex/st-bedrock.png");
  background-size: 48px 48px;
  image-rendering: pixelated;
  opacity: 0.42;
}
.foot > .wrap { position: relative; z-index: 1; }
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 2px solid #141210;
}
.foot-brand img.wm { height: 34px; width: auto; image-rendering: pixelated; margin-bottom: 22px; }
.foot-brand p { max-width: 330px; margin: 0; font-size: 15px; line-height: 2; color: var(--txt-3); }
.foot-col h4 {
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--txt-3);
  text-transform: uppercase;
}
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { margin-bottom: 10px; font-size: 15px; }
.foot-col a { color: var(--txt-2); }
.foot-col a:hover { color: var(--lava-2); }
.foot-col .kv { font-size: 15px; color: var(--txt-2); }
.foot-col .kv b { display: block; font-size: 12px; letter-spacing: 0.12em; color: var(--txt-3); font-weight: 400; margin-bottom: 2px; }

.studio {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 12px 15px;
  background: var(--panel);
  box-shadow: inset 2px 2px 0 var(--edge-l), inset -2px -2px 0 var(--edge-d), 0 0 0 2px var(--edge-d);
}
.studio img { width: 36px; height: 36px; }
.studio span { font-size: 12px; letter-spacing: 0.08em; color: var(--txt-3); display: block; }
.studio b { font-size: 16px; font-weight: 400; color: var(--txt); letter-spacing: 0.03em; }

.foot-legal {
  margin: 26px 0 0;
  font-size: 13px;
  line-height: 2;
  color: var(--txt-3);
  max-width: 920px;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 2px solid #141210;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--txt-3);
}
.foot-bottom .ver { color: #a49b8c; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  /* 要盖在连接动画之上，动画里点「复制」才看得到反馈 */
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 14px;
  background: #212121;
  box-shadow: inset 2px 2px 0 #6a6a6a, inset -2px -2px 0 #101010, 0 0 0 2px #040404;
  transform: translateY(180%);
  opacity: 0;
  transition: transform 0.28s var(--step), opacity 0.28s;
}
.toast.show { transform: none; opacity: 1; }
.toast .t-ico { width: 36px; height: 36px; image-rendering: pixelated; box-shadow: inset 0 0 0 2px #101010; }
.toast b { display: block; font-size: 15px; font-weight: 400; color: #ffd54a; }
.toast span { display: block; font-size: 13px; color: #d8d8d8; }

/* ---------- 文档页 ---------- */
.page-head {
  position: relative;
  padding: 58px 0 46px;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lava), transparent);
  opacity: 0.5;
}
.crumb { display: flex; gap: 9px; align-items: center; margin-bottom: 18px; font-size: 13px; color: var(--txt-3); }
.crumb a { color: var(--txt-3); }
.crumb a:hover { color: var(--lava-2); }
.page-head h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.page-head p { max-width: 680px; margin: 0; color: var(--txt-2); font-size: 17px; }

.doc {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 54px;
  padding: 56px 0 100px;
  align-items: start;
}
.side {
  position: sticky;
  top: 92px;
  padding: 20px 0;
  background: var(--panel);
  box-shadow: inset 2px 2px 0 var(--edge-l), inset -2px -2px 0 var(--edge-d), 0 0 0 2px var(--edge-d);
}
.side h5 {
  margin: 0 18px 12px;
  padding-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--txt-3);
  font-weight: 400;
  text-transform: uppercase;
  border-bottom: 2px solid var(--edge-d);
}
.side a {
  display: block;
  padding: 9px 18px;
  font-size: 15px;
  color: var(--txt-2);
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.side a:hover { color: var(--txt); background: var(--panel-2); }
.side a.on { color: var(--lava-3); border-left-color: var(--lava); background: rgba(255, 106, 26, 0.06); }

.article h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-size: 26px;
}
.article h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 58px; height: 3px;
  background: var(--lava);
}
.article section { scroll-margin-top: 96px; margin-bottom: 52px; }
.article h3 { font-size: 19px; margin: 24px 0 8px; color: var(--lava-3); }
.article p { font-size: 17px; line-height: 2.05; color: var(--txt-2); }
.article strong { color: var(--txt); font-weight: 400; }
.article ul { margin: 0 0 16px; padding-left: 20px; }
.article li { margin-bottom: 9px; font-size: 16px; color: var(--txt-2); }
.article li::marker { color: var(--lava); }

.note {
  margin: 22px 0;
  padding: 18px 20px;
  font-size: 16px;
  color: var(--txt-2);
  background: var(--slot);
  box-shadow: inset 2px 2px 0 var(--edge-d), inset -2px -2px 0 var(--edge-l), 0 0 0 2px var(--edge-d);
}
.note b { color: var(--lava-3); font-weight: 400; }

.spec {
  width: 100%;
  margin: 18px 0 24px;
  border-collapse: collapse;
  font-size: 16px;
  box-shadow: 0 0 0 2px var(--edge-d);
}
.spec th, .spec td { padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--edge-d); }
.spec thead th {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--txt-3);
  background: var(--slot);
  font-weight: 400;
  text-transform: uppercase;
}
.spec tbody tr { background: var(--panel); }
.spec tbody tr:nth-child(even) { background: #1c1b18; }
.spec td:first-child { color: var(--txt-2); width: 34%; }
.spec td:last-child { color: var(--txt); }

.rule-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rule-box {
  padding: 22px 22px 8px;
  background: var(--panel);
  box-shadow: inset 2px 2px 0 var(--edge-l), inset -2px -2px 0 var(--edge-d), 0 0 0 2px var(--edge-d);
}
.rule-box.deny {
  background-color: #241614;
  box-shadow: inset 2px 2px 0 #7a4034, inset -2px -2px 0 #0a0706, 0 0 0 2px var(--edge-d);
}
.rule-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  font-size: 17px;
  color: var(--txt);
  border-bottom: 2px solid var(--edge-d);
}
.rule-box h3 span { display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: 13px; line-height: 1; }
.rule-box.ok h3 span { background: #2f6b34; color: #c8ffcf; box-shadow: 0 0 0 2px #040404; }
.rule-box.deny h3 span { background: #6e2030; color: #ffd0d4; box-shadow: 0 0 0 2px #040404; }
.rule-box ol { margin: 0 0 16px; padding-left: 20px; }
.rule-box li { margin-bottom: 12px; font-size: 16px; line-height: 1.95; color: var(--txt-2); }
.rule-box li b { color: var(--txt); font-weight: 400; }

/* 分隔：方块条 */
.divider {
  height: 24px;
  background-image: url("../img/tex/tex-stonebrick.png");
  background-size: 24px 24px;
  image-rendering: pixelated;
  filter: brightness(0.5) saturate(0.5);
  opacity: 0.5;
  border-top: 2px solid var(--edge-d);
  border-bottom: 2px solid var(--edge-d);
}

/* ---------- 滚动出现 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--step), transform 0.6s var(--step);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 关键帧 ---------- */
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.9; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(160vw); } }
@keyframes lavaflow { from { background-position: 0 0; } to { background-position: 0 56px; } }
@keyframes idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translateY(-420px) scale(0.4); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateY(-8px) scale(0.4); opacity: 0.35; }
}
@keyframes lamp { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.22); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- 响应式 ---------- */

/* ==========================================================================
   地层剖面 —— 页面自上而下穿过泥土、原石、深板岩，直到基岩
   ========================================================================== */
.layer { position: relative; }
.layer > .wrap { position: relative; z-index: 2; }

.strata {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  image-rendering: pixelated;
  background-color: #0a0a0b;
  background-image: var(--tex);
  background-size: 48px 48px;
}
/* 层与层之间的暗缝 */
.strata::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 4;
  height: 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0));
}
/* 压暗蒙层：既保证正文可读，又留住材质颗粒。
   矿石画在它下面，跟岩壁吃同一层压暗，才不会变成贴上去的亮方块 */
.strata::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--scrim);
}

/* 泥土层 */
.l-dirt {
  --tex: url("../img/tex/st-dirt.png");
  --scrim: linear-gradient(180deg, rgba(4, 4, 6, 0.68), rgba(4, 4, 6, 0.60) 12%, rgba(4, 4, 6, 0.60) 88%, rgba(4, 4, 6, 0.68));;
}
/* 原石层 */
.l-stone {
  --tex: url("../img/tex/st-stone.png");
  --scrim: linear-gradient(180deg, rgba(4, 4, 6, 0.62), rgba(4, 4, 6, 0.56) 12%, rgba(4, 4, 6, 0.56) 88%, rgba(4, 4, 6, 0.62));;
}
/* 更深一层的原石 */
.l-stone-2 {
  --tex: url("../img/tex/st-stone.png");
  --scrim: linear-gradient(180deg, rgba(4, 4, 6, 0.62), rgba(4, 4, 6, 0.56) 12%, rgba(4, 4, 6, 0.56) 88%, rgba(4, 4, 6, 0.62));;
}
/* 深板岩层 */
.l-deepslate {
  --tex: url("../img/tex/st-deepslate.png");
  --scrim: linear-gradient(180deg, rgba(4, 4, 6, 0.62), rgba(4, 4, 6, 0.56) 12%, rgba(4, 4, 6, 0.56) 88%, rgba(4, 4, 6, 0.62));;
}
/* 基岩层 */
.l-bedrock {
  --tex: url("../img/tex/st-bedrock.png");
  --scrim: linear-gradient(180deg, rgba(4, 4, 6, 0.66), rgba(4, 4, 6, 0.58) 12%, rgba(4, 4, 6, 0.58) 88%, rgba(4, 4, 6, 0.66));;
}

/* 矿脉方块：基底与岩壁同源，只靠矿物色差区分 */
.strata .ore {
  position: absolute;
  z-index: 1;
  width: 48px;
  height: 48px;
  background-size: 48px 48px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
/* 隧道：逐格凿出来的洞。洞壁沿用本层岩石，只压暗成背光面 */
.strata .cv {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  background-image: var(--tex);
  background-size: 48px 48px;
  image-rendering: pixelated;
  /* 比岩面暗一档但留住岩纹；洞口压一条重阴影，读起来才是往里凹 */
  background-color: #08080a;
  filter: brightness(0.26) saturate(0.78);
  box-shadow:
    inset 0 12px 0 rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(0, 0, 0, 0.6),
    inset 0 -2px 0 rgba(255, 255, 255, 0.06);
}
.strata .cv.lava {
  background-color: #a8380c;
  background-image: url("../img/tex/tex-lava.png");
  background-size: 48px 48px;
  filter: brightness(0.84) saturate(1.02);
  box-shadow:
    0 0 22px 2px rgba(255, 106, 26, 0.18),
    inset 0 3px 0 rgba(38, 8, 0, 0.62),
    inset 0 -2px 0 rgba(255, 190, 110, 0.22);
  animation: lavaflow-cell 3.2s steps(4) infinite;
}
@keyframes lavaflow-cell {
  from { background-position: 0 0; }
  to { background-position: 0 48px; }
}

/* 数据条所在的地面带 */
.band-dirt {
  position: relative;
  padding: 0 0 32px;
  background-color: #0a0a0b;
  background-image: url("../img/tex/st-dirt.png");
  background-size: 48px 48px;
}
.band-dirt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 8, 4, 0.52), rgba(12, 8, 4, 0.30));
  pointer-events: none;
}
.band-dirt .wrap { position: relative; z-index: 2; }

/* ---------- 面板贴图：石头 GUI ---------- */
.card, .step, .side, .note, .studio,
.bar-strip, .rule-box {
  background-image:
    linear-gradient(rgba(30, 28, 25, 0.66), rgba(22, 21, 19, 0.74)),
    url("../img/tex/st-stone.png");
  background-size: auto, 48px 48px;
  image-rendering: pixelated;
}
.bar-strip {
  background-image:
    linear-gradient(rgba(40, 37, 33, 0.86), rgba(30, 28, 25, 0.90)),
    url("../img/tex/st-stone.png");
}
.spec thead th {
  background-image:
    linear-gradient(rgba(30, 28, 25, 0.86), rgba(30, 28, 25, 0.86)),
    url("../img/tex/st-stone.png");
  background-size: auto, 48px 48px;
}
.spec tbody tr:nth-child(even) { background-image: linear-gradient(rgba(12, 11, 10, 0.5), rgba(12, 11, 10, 0.5)), url("../img/tex/st-stone.png"); background-size: auto, 48px 48px; }

/* ---------- 页头：原石层的切面 ---------- */
.page-head { border-bottom: 3px solid #000; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .doc { grid-template-columns: 200px minmax(0, 1fr); gap: 34px; }
  .bar-strip li { padding: 16px 14px; }
  .bar-strip dd { font-size: 18px; }
  .moon { right: 6%; width: 48px; height: 48px; background-size: 48px 48px; }
  .mob-hero-creeper { right: 5%; height: 148px; }
  .mob-hero-zombie { right: 17%; height: 124px; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .ip-chip { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  body.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    padding: 6px 22px 14px;
    background: #12100d;
    border-bottom: 2px solid var(--edge-d);
    box-shadow: 0 8px 0 rgba(4, 7, 14, 0.5);
  }
  body.nav-open .nav a { padding: 13px 10px; font-size: 16px; border-bottom: 2px solid #141210; }
  body.nav-open .nav a.on { box-shadow: none; background: none; color: var(--lava-2); }
  .worlds { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .doc { grid-template-columns: 1fr; gap: 26px; }
  .side { position: static; }
  .rule-pair { grid-template-columns: 1fr; }
  .bar-strip ul { grid-template-columns: repeat(2, 1fr); }
  .bar-strip li:nth-child(2) { border-right: 0; }
  .bar-strip li:nth-child(1), .bar-strip li:nth-child(2) { border-bottom: 2px solid var(--edge-d); }
  .hero { min-height: 0; padding-bottom: 150px; }
  .hero-in { padding-top: 44px; }
  .hero-lead { font-size: 17px; max-width: none; }
  .ground { height: 120px; }
  .ground-lip { bottom: 120px; }
  .ground::after { height: 30px; background-size: 30px 30px; }
  .mob-hero-creeper { height: 126px; right: 2%; bottom: 113px; }
  .mob-hero-zombie { display: none; }
  .glowstone { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: min(100% - 32px, var(--wrap)); }
  .sec { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-title { gap: 12px; }
  .hero-title .hero-mark { width: 64px; height: 64px; }
  .hero-title .wordmark { width: auto; flex: 1 1 auto; min-width: 0; }
  .signboard { width: auto; max-width: 100%; }
  .signboard .ip { font-size: 16px; padding: 7px 13px 9px; letter-spacing: 0; }
  .signboard .ip small { font-size: 12px; letter-spacing: 0.06em; }
  .signboard .copy { padding: 0 13px; font-size: 15px; }
  .cta { padding: 72px 0 110px; }
  .moon { display: none; }
  .hero-meta { gap: 6px 16px; font-size: 12px; max-width: calc(100% - 108px); }
  .bar-strip li { padding: 14px; }
  .doc { padding: 34px 0 70px; }
  .side { display: none; }
  .hero { padding-bottom: 130px; }
  .mob-hero-creeper { height: 100px; right: -12px; bottom: 96px; }
  .ground { height: 96px; background-size: 48px 48px; }
  .ground::before { height: 48px; background-size: 48px 48px; }
  .ground-lip { bottom: 96px; }
  .faq-a-in { padding-left: 4px; }
  .article p { font-size: 16px; }
  .rule-box li, .article li { font-size: 15px; }

  /* 窄屏表格：缩小内边距并加宽首列，避免四字词被拆行 */
  .spec { font-size: 15px; }
  .spec th, .spec td { padding: 10px 12px; }
  .spec td:first-child { width: 40%; }
  .bar-strip dd { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .embers, .clouds { display: none; }
}
