/* ============================================================
   花式生存 G8.work — 8-BIT 像素风格官网
   字体：Cubic 11（中文像素）/ Press Start 2P（西文点阵）
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face {
  font-family: 'Cubic 11';
  src: url('../assets/fonts/cubic-11.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Press Start 2P';
  src: url('../assets/fonts/press-start-2p.woff2') format('woff2');
  font-display: swap;
}

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #0b0b16;
  --bg-2: #101022;
  --panel: #16162c;
  --panel-2: #1d1d3a;
  --line: #2c2c50;
  --line-soft: #232346;

  --text: #eef0ff;
  --muted: #a6aacb;
  --dim: #7a7ea3;

  --green: #5eff8a;
  --green-d: #1f9e4d;
  --cyan: #4fe8e8;
  --cyan-d: #1596a8;
  --gold: #ffd23e;
  --gold-d: #c98f00;
  --red: #ff4d5e;
  --red-d: #b81e30;
  --purple: #b478ff;
  --purple-d: #6f35c9;

  --font-pixel: 'Cubic 11', 'Press Start 2P', 'PingFang SC', 'Microsoft YaHei', monospace;
  --font-display: 'Press Start 2P', 'Cubic 11', monospace;

  --shadow-hard: 0 4px 0 rgba(0, 0, 0, .55);
  --px: 4px;
}

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

html { scroll-behavior: smooth; }

/* 锚点滚动时避开吸顶导航 */
section[id], main[id], [id="faq"] { scroll-margin-top: 76px; }

body {
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: none;              /* 保持像素锐利 */
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: #1a1400; }

svg { shape-rendering: crispEdges; display: inline-block; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- 背景层 ---------- */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  display: block;
}

/* 像素云 */
.clouds { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }

.cloud {
  position: absolute;
  width: 160px;
  height: 48px;
  background:
    linear-gradient(#ffffff22, #ffffff22) 32px 0 / 96px 24px no-repeat,
    linear-gradient(#ffffff22, #ffffff22) 0 20px / 56px 20px no-repeat,
    linear-gradient(#ffffff22, #ffffff22) 104px 20px / 56px 20px no-repeat,
    linear-gradient(#ffffff22, #ffffff22) 24px 36px / 112px 12px no-repeat;
  image-rendering: pixelated;
  animation: cloud-drift 90s linear infinite;
  opacity: .5;
}
.cloud-1 { top: 12%; left: -200px; animation-duration: 100s; }
.cloud-2 { top: 30%; left: -260px; transform: scale(.7); animation-duration: 140s; animation-delay: -40s; opacity: .35; }
.cloud-3 { top: 55%; left: -180px; transform: scale(1.3); animation-duration: 170s; animation-delay: -90s; opacity: .25; }

@keyframes cloud-drift {
  from { margin-left: 0; }
  to   { margin-left: calc(100vw + 400px); }
}

/* CRT 扫描线 + 暗角 */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, .12) 3px 4px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .38) 100%);
}

/* ---------- XP 经验条（顶部滚动进度） ---------- */
.xp-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 10px;
  z-index: 110;
  background: #1a1a30;
  border-bottom: 2px solid #000;
}
.xp-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(#8cff5e, #3ecf4a);
  box-shadow: 0 0 8px #5eff8a88, inset 0 2px 0 #c8ffb0;
  transition: width .12s steps(6);
}
.xp-level {
  position: absolute;
  right: 8px;
  top: 12px;
  font-size: 12px;
  color: var(--green);
  text-shadow: 1px 1px 0 #000;
}

/* ---------- 成就 Toast ---------- */
.toast-wrap {
  position: fixed;
  top: 24px;
  right: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 340px;
  padding: 12px 16px;
  background: #2b2b2bdd;
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #5a5a5a, 0 4px 0 rgba(0,0,0,.5);
  transform: translateX(120%);
  transition: transform .35s steps(5);
}
.toast.show { transform: translateX(0); }
.toast-icon {
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  background: #ffd23e;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #fff3b8, inset -2px -2px 0 #c98f00;
}
.toast-icon svg { width: 20px; height: 20px; }
.toast-body { min-width: 0; }
.toast-title {
  font-size: 14px;
  color: #ffd23e;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
}
.toast-desc {
  font-size: 13px;
  color: #cfd2e6;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 像素按钮 ---------- */
.px-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-pixel);
  font-size: 16px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
  background: var(--btn-bg, #3f8f4f);
  border: 3px solid #0c0c18;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, .28),
    inset -3px -3px 0 rgba(0, 0, 0, .32),
    0 5px 0 rgba(0, 0, 0, .5);
  transition: transform .08s steps(2), box-shadow .08s steps(2), filter .15s;
  user-select: none;
}
.px-btn svg { width: 18px; height: 18px; }
.px-btn:hover { filter: brightness(1.14); transform: translateY(-2px); }
.px-btn:active {
  transform: translateY(5px);
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, .2),
    inset -3px -3px 0 rgba(0, 0, 0, .32);
}

.btn-green { --btn-bg: linear-gradient(#5fd977, #35a852); }
.btn-cyan  { --btn-bg: linear-gradient(#5eeaea, #1fa8bc); }
.btn-gold  { --btn-bg: linear-gradient(#ffd94a, #e0a800); color: #3a2a00; text-shadow: 1px 1px 0 #ffe98a; }

.btn-lg { padding: 15px 30px; font-size: 18px; }
.btn-block { width: 100%; margin-top: 16px; }

/* ---------- 导航：MC 快捷栏 ---------- */
.hotbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1a2ee6;
  backdrop-filter: blur(2px);
  border-bottom: 4px solid #000;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
}
.hotbar-inner {
  width: min(1200px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-icon {
  width: 34px; height: 34px;
  padding: 2px;
  background: #0c0c18;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #ffffff30, inset -2px -2px 0 #00000060;
}
.brand-name {
  font-size: 22px;
  color: #fff;
  text-shadow: 2px 2px 0 var(--green-d), 4px 4px 0 rgba(0, 0, 0, .6);
}

.hotbar-nav { display: flex; gap: 6px; margin-left: auto; }

.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 62px;
  padding: 7px 0 5px;
  font-size: 13px;
  color: var(--muted);
  background: #232346;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #ffffff14, inset -2px -2px 0 #00000050;
  transition: transform .1s steps(2), color .15s;
}
.slot svg { width: 22px; height: 22px; }
.slot:hover { color: #fff; transform: translateY(-3px); }
.slot.active {
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 2px #ffd23e, inset 2px 2px 0 #ffffff20, inset -2px -2px 0 #00000050;
}

.hotbar-cta { flex: none; padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 8px;
  background: #232346;
  border: 2px solid #000;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 4px;
  background: var(--text);
  box-shadow: 1px 1px 0 #000;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--muted);
  background: #141428cc;
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .45);
}
.hero-badge b { color: var(--gold); font-weight: normal; }
.badge-sep { color: var(--dim); }
.badge-dot {
  width: 10px; height: 10px;
  background: var(--gold);
  box-shadow: 0 0 8px currentColor;
  animation: dot-blink 1.2s steps(2) infinite;
}
.badge-dot.online { background: var(--green); }
.badge-dot.offline { background: var(--red); animation: none; }
@keyframes dot-blink { 50% { opacity: .25; } }

.hero-title {
  margin: 26px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-logo-icon {
  width: 44px; height: 44px;
  animation: icon-bob 2.4s steps(4) infinite;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .6));
}
.hero-title .hero-logo-icon:last-of-type { animation-delay: 1.2s; }
@keyframes icon-bob { 50% { transform: translateY(-8px); } }

.logo-pixel {
  font-size: clamp(44px, 9vw, 84px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: 2px;
  text-shadow:
    3px 0 0 var(--gold), 0 3px 0 var(--gold), 3px 3px 0 var(--gold), -3px 0 0 var(--gold), 0 -3px 0 var(--gold),
    6px 6px 0 var(--red-d),
    9px 9px 0 rgba(0, 0, 0, .65);
  animation: logo-float 4s ease-in-out infinite;
}
@keyframes logo-float { 50% { transform: translateY(-6px); } }

.hero-title-sub {
  font-size: clamp(13px, 2.4vw, 18px);
  color: var(--cyan);
  letter-spacing: 4px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .7);
}

/* 打字机 */
.hero-typing {
  min-height: 34px;
  margin: 20px auto 6px;
  font-size: clamp(16px, 3vw, 22px);
  color: var(--gold);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .7);
}
.caret {
  display: inline-block;
  width: 14px; height: 22px;
  margin-left: 4px;
  background: var(--gold);
  vertical-align: -3px;
  animation: caret-blink .8s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.hero-subtitle {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 16px;
  color: var(--muted);
}
.hero-subtitle strong { color: var(--text); font-weight: normal; border-bottom: 2px solid var(--gold); }

/* 服务器地址面板 */
.ip-panel {
  width: min(560px, 94%);
  margin: 36px auto 0;
  padding: 20px 22px 16px;
  background: linear-gradient(#2b2b44, #1e1e34);
  border: 4px solid #000;
  box-shadow:
    inset 3px 3px 0 #ffffff18, inset -3px -3px 0 #00000070,
    0 6px 0 rgba(0, 0, 0, .55);
}
.ip-panel-label {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.ip-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #101020;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #00000080, inset -2px -2px 0 #ffffff10;
}
.ip-sprite { width: 34px; height: 34px; flex: none; animation: icon-bob 3s steps(4) infinite; }
.ip-text {
  flex: 1;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 26px);
  color: var(--gold);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .8);
  word-break: break-all;
}
.ip-copy { flex: none; padding: 10px 18px; font-size: 14px; }
.ip-panel-foot { margin-top: 10px; font-size: 12px; color: var(--dim); }

/* 血量条彩蛋 */
.hero-health {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hearts { display: flex; gap: 4px; }
.hearts svg { width: 20px; height: 20px; animation: heart-beat 1.6s steps(3) infinite; }
.hearts svg:nth-child(2n) { animation-delay: .3s; }
.hearts svg:nth-child(3n) { animation-delay: .6s; }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.health-label { font-size: 12px; color: var(--dim); text-shadow: 1px 1px 0 #000; }

/* ---------- 公告跑马灯 ---------- */
.ticker {
  display: flex;
  align-items: stretch;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  background: #14142a;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .4);
}
.ticker-tag {
  flex: none;
  display: grid;
  place-items: center;
  padding: 0 22px;
  font-size: 15px;
  color: #1a1400;
  background: linear-gradient(#ffd94a, #e0a800);
  border-right: 4px solid #000;
  text-shadow: 1px 1px 0 #ffe98a;
}
.ticker-viewport { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding: 10px 0;
  font-size: 14px;
  color: #ffe98a;
  text-shadow: 1px 1px 0 #000;
  animation: ticker-scroll 36s linear infinite;
  will-change: transform;
}
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- 数据统计 ---------- */
.stats { padding: 56px 0 8px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 12px 18px;
  background: var(--panel);
  border: 4px solid #000;
  box-shadow: inset 3px 3px 0 #ffffff0d, 0 5px 0 rgba(0, 0, 0, .5);
  transition: transform .12s steps(2);
}
.stat:hover { transform: translateY(-4px); }
.stat-icon { width: 32px; height: 32px; margin-bottom: 6px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cyan);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .8);
}
.stat-value small { font-size: 13px; color: var(--muted); }
.stat-label { font-size: 13px; color: var(--muted); }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0 8px; }

.section-header { text-align: center; margin-bottom: 44px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  background: #14142a;
  border: 2px solid var(--gold-d);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .5);
}
.section-title {
  margin: 16px 0 10px;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: normal;
  color: #fff;
  text-shadow:
    3px 0 0 var(--cyan-d), 0 3px 0 var(--cyan-d), 3px 3px 0 var(--cyan-d),
    6px 6px 0 rgba(0, 0, 0, .6);
}
.section-desc { color: var(--muted); font-size: 15px; }

/* 像素面板 */
.px-panel {
  background: var(--panel);
  border: 4px solid #000;
  box-shadow:
    inset 3px 3px 0 #ffffff0c, inset -3px -3px 0 #00000060,
    0 5px 0 rgba(0, 0, 0, .5);
}

/* ---------- 玩法卡片 ---------- */
.gamemode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gamemode-card {
  padding: 26px 24px;
  transition: transform .12s steps(2);
}
.gamemode-card:hover { transform: translateY(-6px); }
.gamemode-card:hover .gamemode-icon { animation: icon-pop .4s steps(3); }
@keyframes icon-pop { 50% { transform: scale(1.25) rotate(-6deg); } }

.gamemode-icon {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  background: #101020;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #ffffff12, inset -2px -2px 0 #00000070, 0 4px 0 rgba(0,0,0,.5);
  margin-bottom: 16px;
}
.gamemode-icon svg { width: 40px; height: 40px; }
.gamemode-icon.icon-chest { background: #2a1c10; }
.gamemode-icon.icon-gold { background: #2e2610; }

.gamemode-card h3 {
  font-size: 20px;
  font-weight: normal;
  color: var(--green);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .7);
  margin-bottom: 10px;
}
.gamemode-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

.feature-list li {
  position: relative;
  padding: 5px 0 5px 26px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 2px dashed #232346;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
}
.feature-list.compact li { font-size: 13px; padding: 4px 0 4px 24px; }

/* ---------- 会员表 ---------- */
.tier-table-wrapper {
  overflow-x: auto;
  background: var(--panel);
  border: 4px solid #000;
  box-shadow: inset 3px 3px 0 #ffffff0c, 0 5px 0 rgba(0, 0, 0, .5);
}
.tier-table { width: 100%; border-collapse: collapse; min-width: 640px; }

.tier-table th, .tier-table td {
  padding: 13px 14px;
  text-align: center;
  font-size: 14px;
  border: 2px solid #232346;
}
.tier-table thead th {
  font-size: 17px;
  font-weight: normal;
  color: #fff;
  background: #1c1c38;
  position: relative;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .7);
}
.tier-benefit-col { text-align: left; color: var(--muted) !important; }
.vip-col   { color: var(--gold) !important; }
.svip-col  { color: var(--purple) !important; }
.mvp-col   { color: var(--cyan) !important; background: #14313a !important; }

.tier-ribbon {
  position: absolute;
  top: -12px; right: 8px;
  padding: 2px 8px;
  font-size: 11px;
  color: #1a1400;
  background: var(--gold);
  border: 2px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .5);
}
.tier-table tbody td { color: var(--text); }
.tier-table tbody td:first-child { text-align: left; color: var(--muted); }
.tier-table tbody tr:nth-child(odd) { background: #ffffff05; }
.tier-table tbody tr:hover { background: #ffffff0c; }
.tier-table .yes { color: var(--green); font-size: 17px; font-weight: bold; text-shadow: 0 0 6px #5eff8a80; }
.tier-table .no { color: #4a4e6e; }
.tier-note { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.tier-note b { color: var(--gold); font-weight: normal; }

/* ---------- 下载 ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.download-card { padding: 24px; }
.download-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.download-icon {
  flex: none;
  width: 52px; height: 52px;
  padding: 4px;
  background: #101020;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #ffffff12, 0 3px 0 rgba(0, 0, 0, .5);
}
.download-card-head h3 { font-size: 19px; font-weight: normal; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.7); }
.download-card-head p { font-size: 13px; color: var(--dim); margin-top: 4px; }

.group-badge {
  display: inline-block;
  vertical-align: middle;
  padding: 2px 10px;
  margin-left: 8px;
  font-size: 12px;
  color: #1a1400;
  background: var(--green);
  border: 2px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .5);
}
.badge-android { background: var(--cyan); }

.download-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dl-size {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  text-shadow: 1px 1px 0 #000;
}
.dl-tag {
  padding: 2px 10px;
  font-size: 12px;
  color: var(--muted);
  border: 2px solid var(--line);
}
.dl-tag.ready { color: var(--green); border-color: var(--green-d); }
.dl-tag.ready::before { content: "● "; animation: dot-blink 1.2s steps(2) infinite; }

.ds-contents { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ds-chip {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--cyan);
  background: #101c26;
  border: 2px solid #14404d;
}

.download-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 18px;
  background: var(--panel);
  border: 4px solid #000;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .5);
}
.step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.step-num {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  font-family: var(--font-display);
  font-size: 13px;
  color: #1a1400;
  background: var(--gold);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #fff3b8, inset -2px -2px 0 #c98f00, 0 3px 0 rgba(0, 0, 0, .5);
}
.step-arrow { color: var(--gold); font-size: 12px; }

.download-note {
  margin-top: 20px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--muted);
  background: #141428;
  border: 3px dashed var(--line);
}
.download-note strong { color: var(--gold); font-weight: normal; }

/* ---------- 社区 ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.community-card {
  padding: 30px 24px;
  text-align: center;
  transition: transform .12s steps(2);
}
.community-card:hover { transform: translateY(-6px); }
.community-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: #101020;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #ffffff12, 0 4px 0 rgba(0, 0, 0, .5);
}
.community-icon svg { width: 36px; height: 36px; }
.community-icon.icon-gold { background: #2e2610; }
.community-icon.icon-chest { background: #2a1c10; }
.community-card h3 { font-size: 19px; font-weight: normal; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.7); }
.community-num {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .8);
  word-break: break-all;
}
.community-card p:last-child { font-size: 13px; color: var(--muted); }

/* ---------- FAQ（MC 聊天气泡） ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: #101020;
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 #00000070, inset -2px -2px 0 #ffffff0a, 0 4px 0 rgba(0, 0, 0, .5);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  text-align: left;
  font-size: 15px;
  color: var(--text);
}
.faq-q:hover { color: var(--gold); }
.faq-avatar {
  flex: none;
  width: 34px; height: 34px;
  background: #0c0c18;
  border: 2px solid #000;
  box-shadow: inset 1px 1px 0 #ffffff20;
}
.faq-q-text { flex: 1; }
.faq-q-text::before { content: "<Steve> "; color: var(--green); }
.faq-sign {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  transition: transform .15s steps(3);
}
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  background: var(--gold);
  box-shadow: 1px 1px 0 #000;
}
.faq-sign::before { left: 0; top: 9px; width: 22px; height: 4px; }
.faq-sign::after { left: 9px; top: 0; width: 4px; height: 22px; transition: opacity .15s steps(2); }
.faq-item.open .faq-sign { transform: rotate(90deg); }
.faq-item.open .faq-sign::after { opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s steps(6);
}
.faq-a-inner {
  padding: 4px 18px 16px 64px;
  font-size: 14px;
  color: var(--muted);
}
.faq-a-inner strong { color: var(--cyan); font-weight: normal; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 80px;
  padding: 48px 0 24px;
  background: #0a0a14;
  border-top: 4px solid #000;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--line-soft);
}
.footer-brand p { margin-top: 14px; font-size: 13px; color: var(--muted); }
.footer-brand b { color: var(--gold); font-weight: normal; }
.footer-creeper { width: 40px; height: 40px; margin-top: 16px; opacity: .85; animation: icon-bob 3.2s steps(4) infinite; }

.footer-col h4 {
  font-size: 16px;
  font-weight: normal;
  color: var(--cyan);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .7);
  margin-bottom: 14px;
}
.footer-col li { padding: 5px 0; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-col a::before { content: "» "; color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--dim);
}

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .45s steps(6), transform .45s steps(6); }

/* ---------- 复制成功粒子 ---------- */
.burst-particle {
  position: fixed;
  width: 12px; height: 12px;
  z-index: 130;
  pointer-events: none;
  animation: burst-fly .8s steps(8) forwards;
}
@keyframes burst-fly {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to   { transform: translate(var(--bx), var(--by)) scale(.4); opacity: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .gamemode-grid, .community-grid, .download-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .hotbar-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: #1a1a2ef8;
    border-bottom: 4px solid #000;
    display: none;
  }
  .hotbar-nav.open { display: flex; }
  .slot { width: 100%; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 14px; font-size: 15px; }
  .slot svg { width: 26px; height: 26px; }
  .nav-toggle { display: flex; }
  .hotbar-cta { display: none; }
  .hero { padding: 56px 0 48px; }
  .ip-row { flex-direction: column; align-items: stretch; text-align: center; }
  .ip-text { text-align: center; }
  .toast-wrap { left: 16px; right: 16px; }
  .toast { max-width: none; }
  .ticker-tag { padding: 0 14px; font-size: 13px; }
  .faq-a-inner { padding-left: 18px; }
}

/* ---------- 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
