/* ==================== 基础变量 ==================== */
/* Keep the tutorial numbering pixel-styled even when the browser cannot reach
   Google Fonts. The bundled face only contains the Latin glyphs used by the
   numeric badges, so it remains lightweight and works offline. */
@font-face {
  font-family: 'Town Pixel';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('assets/fonts/press-start-2p.ttf') format('truetype');
}

:root {
  /* 主色系 - 温暖奶油 */
  --cream:      #fbf3e3;
  --cream2:     #fffaf0;
  --paper:      #f6ead2;
  --ink:        #42352a;
  --ink2:       #6f5f4c;
  --dim:        #9c8b72;

  /* 强调色 */
  --sun:        #f4a521;
  --orange:     #ef7d3c;
  --coral:      #f3936b;
  --sky:        #4facdd;
  --grass:      #6cba5a;
  --red:        #e55050;
  --purple:     #8b5cf6;

  /* 边框线 */
  --line:       rgba(120, 90, 50, 0.14);
  --line2:      rgba(120, 90, 50, 0.24);

  /* 阴影 - 柔和暖调 */
  --sh:         0 14px 38px rgba(150, 100, 40, 0.13);
  --sh-sm:      0 6px 18px rgba(150, 100, 40, 0.10);
  --sh-lg:      0 24px 60px rgba(150, 100, 40, 0.18);

  /* 圆角 */
  --r:          14px;
  --r-sm:       10px;
  --rl:         20px;
  --rx:         28px;

  /* 磨砂玻璃 - 72%透明度 */
  --glass-bg:   rgba(255, 255, 255, 0.72);
  --glass-bg2:  rgba(255, 255, 255, 0.56);
  --glass-bg-s: rgba(255, 255, 255, 0.88);
  --glass-blur: saturate(180%) blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.6);

  /* 深色标签（醒目）*/
  --tag-bg:     rgb(51, 65, 85);
  --tag-color:  #ffffff;

  /* 最大宽度 */
  --max-w:      1760px;

  /* 过渡 */
  --tr-fast:    0.2s cubic-bezier(.4,0,.2,1);
  --tr:         0.35s cubic-bezier(.4,0,.2,1);
  --tr-slow:    0.6s cubic-bezier(.4,0,.2,1);
}

/* 夜间模式 */
body.night {
  --cream:      #16110b;
  --cream2:     #211a12;
  --paper:      #120e09;
  --ink:        #f3ead8;
  --ink2:       #d9c8a8;
  --dim:        #8a7b5f;
  --line:       rgba(240, 210, 150, 0.12);
  --line2:      rgba(240, 210, 150, 0.22);
  --sh:         0 14px 38px rgba(0, 0, 0, 0.5);
  --sh-sm:      0 6px 18px rgba(0, 0, 0, 0.4);
  --sh-lg:      0 24px 60px rgba(0, 0, 0, 0.6);

  --glass-bg:   rgba(40, 30, 20, 0.72);
  --glass-bg2:  rgba(40, 30, 20, 0.56);
  --glass-bg-s: rgba(40, 30, 20, 0.88);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--tr-slow), color var(--tr-slow);
  position: relative;
}

/* 主题切换期间统一过渡颜色、阴影及玻璃效果。该 class 只由手动切换短暂添加，
   不会影响首次加载，也不会改变常规 hover/展开动画的节奏。 */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition-property: background, background-color, color, border-color, box-shadow,
    backdrop-filter, -webkit-backdrop-filter, fill, stroke !important;
  transition-duration: 0.55s !important;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-transitioning,
  body.theme-transitioning *,
  body.theme-transitioning *::before,
  body.theme-transitioning *::after {
    transition-duration: 0.12s !important;
  }
}

/* 背景纹理装饰 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(244, 165, 33, 0.08), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(79, 172, 221, 0.06), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(108, 186, 90, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

body.theme-transitioning::before {
  transition: background-image 0.55s cubic-bezier(.4, 0, .2, 1) !important;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
input { font-family: inherit; }

/* ==================== 磨砂玻璃通用类 ==================== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--sh-sm);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--sh-sm);
  border-radius: var(--r);
}

.glass-card-lg {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--sh);
  border-radius: var(--rl);
}

.glass-btn {
  background: var(--glass-bg2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--tr-fast);
}
.glass-btn:hover {
  background: var(--glass-bg-s);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.glass-btn-sm {
  background: var(--glass-bg2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--tr-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.glass-btn-sm:hover {
  background: var(--sun);
  color: #fff;
  transform: translateY(-1px);
}

/* ==================== 导航栏（参考官网 smzmc 风格） ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  height: 70px;
  /* 整屏玻璃磨砂（不是 inner 卡片磨砂）*/
  background: rgba(255, 250, 236, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(210, 170, 110, 0.14);
  transition: box-shadow var(--tr), background var(--tr), backdrop-filter var(--tr);
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
body.night .nav {
  background: rgba(22, 17, 11, 0.72);
  border-bottom: 1px solid rgba(240, 210, 150, 0.12);
}
.nav.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--max-w);
  height: 70px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* 不再是卡片玻璃 → 全宽直条（参考站风格）*/
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 28px;
  border: 1px solid rgba(244, 165, 33, 0.32);
  filter: drop-shadow(0 2px 4px rgba(244,165,33,0.3));
}
.logo-text {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  /* 参考站：靠左布局（logo+links 一组在左，actions 靠右）*/
  flex: 0 1 auto;
  justify-content: flex-start;
  height: 100%;
}
.nav-link {
  position: relative;
  padding: 0 18px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink2);
  /* 参考站：文字 hover 变橙，不改变背景块 */
  background: transparent;
  border-radius: 0;
  transition: color var(--tr-fast);
  white-space: nowrap;
  will-change: color;
}
.nav-link::after {
  /* 选中短下划线（药丸橙条）— smzmc 核心特征 */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun), var(--orange));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform var(--tr), opacity var(--tr);
  pointer-events: none;
}
.nav-link:hover {
  color: var(--orange);
  background: transparent;
}
.nav-link.active {
  color: var(--orange);
  font-weight: 500;
  background: transparent;
  box-shadow: none;
}
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* —— 服务器状态胶囊（参考站右侧：人数+地址+状态灯）—— */
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink2);
  background: rgba(244, 165, 33, 0.09);
  border: 1px solid rgba(244, 165, 33, 0.18);
  border-radius: 999px;
  white-space: nowrap;
  transition: all var(--tr);
}
.nav-status .nav-suffix {
  color: var(--dim);
  font-weight: 400;
}
.nav-status #navOnline {
  display: inline-block;
  flex: 0 0 3em;
  min-width: 3em;
  text-align: center;
}
body.night .nav-status {
  background: rgba(244, 165, 33, 0.10);
  border-color: rgba(244, 165, 33, 0.22);
}
.nav-status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156,163,175,0.18);
  flex-shrink: 0;
  transition: background var(--tr-fast), box-shadow var(--tr-fast);
}
.server-status-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 18px;
  border: 1px solid rgba(244, 165, 33, 0.30);
}
.nav-status.online  .dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22); }
.nav-status.online  { background: rgba(74, 222, 128, 0.10); border-color: rgba(74, 222, 128, 0.28); }
.nav-status.online  .nav-suffix { color: #4ade80; }
.nav-status.offline .dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22); }
.nav-status.offline { background: rgba(248, 113, 113, 0.10); border-color: rgba(248, 113, 113, 0.28); }
.nav-status.offline .nav-suffix { color: #f87171; }

/* —— 主题切换按钮（与导航整体风格统一的药丸圆角）—— */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(210, 170, 110, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--tr-fast);
}
body.night .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(240, 210, 150, 0.18);
}
.theme-toggle:hover {
  background: rgba(244, 165, 33, 0.14);
  color: var(--orange);
  transform: rotate(-12deg);
}

/* —— 申请入住 CTA（参考站药丸大按钮）—— */
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  /* 药丸完整圆角（关键特征）*/
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(239,125,60,0.28);
  transition: all var(--tr-fast);
  white-space: nowrap;
  text-decoration: none;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(239,125,60,0.38);
  filter: brightness(1.04);
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(210, 170, 110, 0.18);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

/* ==================== Hero 装饰 ==================== */
.hero-deco {
  height: 80px;
  position: relative;
  overflow: hidden;
}
.deco-clouds {
  position: absolute;
  inset: 0;
}
.cloud {
  position: absolute;
  font-size: 40px;
  opacity: 0.5;
  animation: float 12s ease-in-out infinite;
}
.cloud.c1 { top: 10px; left: 5%; animation-delay: 0s; }
.cloud.c2 { top: 20px; left: 45%; animation-delay: -4s; font-size: 50px; }
.cloud.c3 { top: 5px; right: 10%; animation-delay: -8s; }
.bird {
  position: absolute;
  font-size: 20px;
  animation: fly 20s linear infinite;
}
.bird.b1 { top: 30px; left: 20%; animation-delay: -2s; }
.bird.b2 { top: 40px; left: 60%; animation-delay: -10s; font-size: 16px; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(10px); }
}
@keyframes fly {
  0% { transform: translateX(-100px); opacity: 0; }
  10%, 90% { opacity: 0.6; }
  100% { transform: translateX(calc(100vw + 100px)); opacity: 0; }
}

/* ==================== 主 Hero 区 ==================== */
.xzhero {
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}
.xzhero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

/* 版本标签 */
.mc-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
}
.mc-icon { font-size: 16px; }
.mc-text { letter-spacing: 0.3px; }

/* 标题 */
.xzhero-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: 0;
}
.title-main {
  display: inline-block;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.title-main.accent {
  background: linear-gradient(135deg, var(--sun) 0%, var(--orange) 50%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: -0.05em;
  position: relative;
}
.title-main.accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg, var(--sun), var(--coral));
  opacity: 0.2;
  border-radius: 4px;
  z-index: -1;
}

.xzhero-subtitle {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.xzhero-subtitle strong {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.xzhero-desc {
  font-size: 15px;
  color: var(--ink2);
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0 auto 28px;
  line-height: 1.9;
}
.xzhero-desc-line { display: block; }
.xzhero-desc-line + .xzhero-desc-line { white-space: nowrap; }

/* 在线人数卡片 */
.online-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
}
.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grass);
  box-shadow: 0 0 0 4px rgba(108,186,90,0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(108,186,90,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(108,186,90,0.08); }
}
.online-count {
  font-weight: 900;
  font-size: 20px;
  color: var(--grass);
  font-family: 'Press Start 2P', 'Noto Sans SC', monospace;
}

/* 服务器信息卡 */
.server-info {
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.si-left { text-align: left; flex: 1; }
.si-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.si-address {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  color: var(--ink);
  font-family: 'Press Start 2P', 'Noto Sans SC', monospace;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.si-right { flex-shrink: 0; }
.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  padding: 16px 28px;
  border-radius: var(--r);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 28px rgba(239,125,60,0.4);
  transition: all var(--tr);
  white-space: nowrap;
}
.join-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(239,125,60,0.5);
}

/* CTA 按钮组 */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.cta-primary {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(239,125,60,0.35);
  transition: all var(--tr-fast);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(239,125,60,0.45);
}
.cta-secondary {
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: all var(--tr-fast);
}
.cta-secondary:hover {
  background: var(--glass-bg-s);
  transform: translateY(-2px);
}

/* 统计数据行 */
.stats-row {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-item {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all var(--tr);
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.stat-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: 'Press Start 2P', 'Noto Sans SC', monospace;
}
.stat-unit {
  font-size: 0.4em;
  font-weight: 700;
  color: var(--ink2);
  -webkit-text-fill-color: var(--ink2);
  margin-left: 4px;
  font-family: 'Noto Sans SC', sans-serif;
}
.stat-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.stat-sub {
  font-size: 13px;
  color: var(--dim);
}
.stat-hardware {
  align-items: stretch;
  text-align: left;
}
.hw-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  width: fit-content;
  margin: 0 auto;
}
.hw-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}
.hw-desc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line2);
  font-size: 13px;
  color: var(--dim);
  text-align: center;
  font-weight: 500;
}

/* ==================== 通用区块 ==================== */
.sec {
  padding: 90px 20px;
  position: relative;
  z-index: 1;
  transition: background var(--tr-slow);
}
.sec.paper { background: var(--paper); }
.sec.dark-sec {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream2) 100%);
}
body.night .sec.dark-sec {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream2) 100%);
}
.sec-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* 区块头 */
.sec-head {
  text-align: center;
  margin-bottom: 56px;
}
.sec-tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-family: 'Press Start 2P', monospace;
}
.sec-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.sec-big {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  color: var(--ink2);
  margin-bottom: 12px;
}
.sec-big strong {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.sec-desc {
  font-size: 15px;
  color: var(--dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ==================== 特色卡片 ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px 24px;
  text-align: center;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}
.feature-card:hover::before { left: 100%; }

.feature-icon {
  font-size: 48px;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.feature-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.8;
}

/* ==================== 玩法卡片 ==================== */
.gameplay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.game-card {
  padding: 32px 24px;
  transition: all var(--tr);
  position: relative;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}
.game-status {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.game-status.open {
  background: rgba(108,186,90,0.15);
  color: var(--grass);
}
.game-status.wip {
  background: rgba(244,165,33,0.15);
  color: var(--sun);
}
.game-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pixel-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(3px 4px 0 rgba(69, 48, 28, 0.16));
}
.game-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  text-align: center;
}
.game-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.8;
  margin-bottom: 18px;
  flex: 1;
}
.game-desc p + p {
  margin-top: 14px;
}
.game-desc strong {
  color: var(--ink);
  font-weight: 800;
}
.game-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  transition: gap var(--tr-fast);
}
.game-link:hover { gap: 10px; }

/* ==================== 服务器规则 ==================== */
.server-rules {
  margin-top: 72px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(210, 170, 110, 0.22);
  border-radius: var(--rl);
  box-shadow: var(--sh-sm);
}
.server-rules-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.server-rules-head .sec-tag {
  margin-bottom: 12px;
}
.server-rules-head h3 {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.35;
}
.server-rules-head > p {
  max-width: 280px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.8;
  text-align: right;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rules-group {
  padding: 22px 22px 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sun);
  border-radius: var(--r);
}
.rules-building { border-top-color: var(--grass); }
.rules-economy { border-top-color: var(--sky); }
.rules-punishment { border-top-color: var(--red); }
.rules-group h4 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}
.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rule-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line2);
}
.rule-item:last-child { border-bottom: none; padding-bottom: 2px; }
.rule-number {
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-weight: 400;
  font-synthesis: none;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(239, 125, 60, 0.2);
}
.rules-building .rule-number { background: linear-gradient(135deg, #6cba5a, #3e9f68); }
.rules-economy .rule-number { background: linear-gradient(135deg, #4facdd, #3d83c6); }
.rule-copy { min-width: 0; }
.rule-copy strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}
.rule-copy strong em {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  color: #b45f00;
  background: rgba(244, 165, 33, 0.16);
  border-radius: 4px;
  font-size: 10px;
  font-style: normal;
  vertical-align: 1px;
}
.rule-copy p {
  margin-top: 4px;
  color: var(--ink2);
  font-size: 12.5px;
  line-height: 1.75;
}
.penalty-list {
  display: grid;
  gap: 12px;
}
.penalty-item {
  padding: 14px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}
.penalty-item.mild { border-color: rgba(244, 165, 33, 0.3); }
.penalty-item.severe { border-color: rgba(229, 80, 80, 0.3); background: rgba(229, 80, 80, 0.05); }
.penalty-label {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
}
.penalty-item.severe .penalty-label { color: var(--red); }
.penalty-item p {
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.8;
}
.penalty-item p strong { color: var(--ink); }

@media (max-width: 768px) {
  .server-rules { margin-top: 52px; padding: 24px 18px; }
  .server-rules-head { display: block; text-align: center; }
  .server-rules-head > p { max-width: none; margin-top: 8px; text-align: center; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-group { padding: 20px 18px 16px; }
}

/* ==================== 画廊 ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--rl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--sh);
  transition: all var(--tr);
}
.gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--sh-lg);
}
.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.gallery-item:hover .gallery-img { transform: scale(1.08); }
.gallery-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.bg-1 { background-image: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.bg-2 { background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-3 { background-image: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-4 { background-image: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.bg-5 { background-image: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.bg-cta {
  background-image: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-cta::after { display: none; }
.cta-plus {
  font-size: 80px;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 画廊占位图案（模拟建筑纹理） */
.bg-1::before, .bg-2::before, .bg-3::before, .bg-4::before, .bg-5::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 20px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 20px);
  opacity: 0.6;
}

.gallery-info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 12px 16px;
  z-index: 2;
}
.gallery-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}
.gallery-info p {
  font-size: 12px;
  color: var(--ink2);
  font-weight: 500;
}
.gallery-cta .gallery-info h4 {
  color: var(--orange);
}

/* ==================== 公会卡片 ==================== */
.guild-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.guild-card {
  padding: 32px 24px;
  text-align: center;
  transition: all var(--tr);
}
.guild-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}
.guild-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guild-avatar .pixel-icon {
  width: 68px;
  height: 68px;
}
.guild-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.guild-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
}
.more-guilds {
  text-align: center;
  font-size: 14px;
  color: var(--dim);
  font-weight: 500;
}

/* ==================== 入住流程 ==================== */
.steps-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.step-card {
  flex: 1;
  max-width: 320px;
  padding: 36px 28px;
  text-align: center;
  transition: all var(--tr);
  position: relative;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.step-num {
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  padding-top: 3px;
  font-size: 22px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-synthesis: none;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(239,125,60,0.35);
}
.step-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--ink2);
}
.step-arrow {
  display: flex;
  align-items: center;
  font-size: 28px;
  color: var(--sun);
  font-weight: 700;
  flex-shrink: 0;
}

.apply-area {
  text-align: center;
}
.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  padding: 18px 40px;
  border-radius: var(--rl);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(239,125,60,0.4);
  transition: all var(--tr);
  margin-bottom: 16px;
}
.apply-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 48px rgba(239,125,60,0.5);
}
.apply-icon { font-size: 20px; }
.apply-tip {
  font-size: 14px;
  color: var(--dim);
}
.apply-tip strong {
  color: var(--sun);
  font-weight: 700;
  background: rgba(244,165,33,0.12);
  padding: 2px 10px;
  border-radius: 6px;
}

/* ==================== Wiki ==================== */
.wiki-all-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  transition: all var(--tr-fast);
}
.wiki-all-link:hover { color: var(--sun); }

.wiki-search {
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-icon {
  font-size: 18px;
  padding: 0 8px 0 14px;
  color: var(--dim);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 10px;
  font-size: 15px;
  background: #ffffff;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 500;
  min-width: 0;
}
body.night .search-input {
  background: rgba(255,255,255,0.06);
  color: var(--ink);
}
.search-input::placeholder {
  color: var(--dim);
  font-weight: 400;
}
.search-btn {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 14px;
  transition: all var(--tr-fast);
  flex-shrink: 0;
}
.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239,125,60,0.35);
}

.wiki-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.wiki-tag {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition: all var(--tr-fast);
}
.wiki-tag:hover {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239,125,60,0.3);
}

/* ==================== 新闻列表 ==================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.news-item {
  padding: 24px 28px;
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.news-item:hover {
  transform: translateX(6px);
  box-shadow: var(--sh-lg);
}
.news-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.news-badge.notice {
  background: rgba(244,165,33,0.15);
  color: var(--sun);
}
.news-badge.update {
  background: rgba(79,172,221,0.15);
  color: var(--sky);
}
.news-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.6;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--dim);
}
.news-author {
  font-weight: 500;
}
.news-date {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  opacity: 0.9;
}

/* ==================== 小镇公告 ==================== */
.announcement-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 70px);
  padding: 116px 20px 82px;
}
.announcement-hero {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}
.announcement-kicker {
  color: var(--orange);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.8;
}
.announcement-hero h1 {
  margin: 11px 0 12px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
}
.announcement-hero h1 span { color: var(--orange); }
.announcement-hero p {
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.9;
}
.announcement-board {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 12px;
  background: rgba(244, 165, 33, 0.12);
  border: 1px solid rgba(244, 165, 33, 0.30);
  border-radius: var(--rl);
}
.announcement-board .announcement-empty {
  max-width: none;
  min-height: 280px;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
.announcement-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.announcement-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px 22px;
  border-bottom: 1px solid var(--line);
}
.announcement-type {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(244, 165, 33, 0.14);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}
.announcement-card h2 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
}
.announcement-card time {
  flex: 0 0 auto;
  padding-top: 5px;
  color: var(--dim);
  font-family: 'Press Start 2P', 'Noto Sans SC', monospace;
  font-size: 11px;
  line-height: 1.7;
}
.announcement-card-body {
  padding: 26px 30px 30px;
  color: var(--ink2);
  font-size: 15px;
  line-height: 1.9;
}
.announcement-card-body code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(244, 165, 33, 0.12);
  color: #9a5700;
  font-family: 'Cascadia Mono', Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.mod-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding-left: 28px;
}
.mod-list li {
  padding-left: 4px;
}
.mod-list li::marker {
  color: var(--orange);
  font-weight: 900;
}
.announcement-note {
  padding: 14px 16px;
  border-left: 3px solid var(--sun);
  background: rgba(244, 165, 33, 0.08);
  color: var(--ink2);
}
.announcement-empty {
  max-width: 720px;
  min-height: 180px;
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}
.announcement-empty-icon { font-size: 30px; line-height: 1; }
.announcement-empty p {
  color: var(--ink2);
  font-size: 16px;
  font-weight: 700;
}

/* ==================== 整合包教程 ==================== */
.tutorials-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 70px);
  padding: 116px 20px 82px;
}
.tutorials-hero {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}
.tutorials-kicker {
  color: var(--orange);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.8;
}
.tutorials-hero h1 {
  margin: 11px 0 12px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
}
.tutorials-hero h1 span { color: var(--orange); }
.tutorials-hero p {
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.9;
}
.tutorials-directory {
  width: min(1240px, 100%);
  margin: 0 auto;
}
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tutorial-card {
  min-height: 166px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  color: var(--ink);
  transition: transform var(--tr-fast), border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
}
.tutorial-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-s);
  border-color: rgba(239, 125, 60, 0.42);
  box-shadow: var(--sh);
}
.tutorial-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 25px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(244, 165, 33, 0.14);
  color: var(--orange);
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-style: normal;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.tutorial-title {
  display: block;
  margin: 14px 0 auto;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
}
.tutorial-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  transition: gap var(--tr-fast);
}
.tutorial-card:hover .tutorial-read { gap: 10px; }
.tutorials-source {
  margin: 28px auto 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.85;
  text-align: center;
}

/* ==================== 整合包介绍 ==================== */
.modpack-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 70px);
  padding: 116px 20px 82px;
}
.modpack-hero {
  max-width: 920px;
  margin: 0 auto 42px;
  text-align: center;
}
.modpack-kicker,
.modpack-section-tag {
  display: inline-block;
  color: var(--orange);
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.8;
}
.modpack-hero h1 {
  margin: 11px 0 12px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
}
.modpack-hero h1 span { color: var(--orange); }
.modpack-hero > p {
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.9;
}
.modpack-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.modpack-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(244, 165, 33, 0.28);
  border-radius: 999px;
  background: rgba(244, 165, 33, 0.09);
  color: var(--ink);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.modpack-meta span b { color: var(--orange); font-family: inherit; font-size: inherit; margin-right: 3px; }
.modpack-video { width: min(1300px, 100%); margin: 0 auto 22px; padding: 18px; border: 1px solid rgba(239, 125, 60, 0.26); }
.modpack-video-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 2px 4px 15px; }
.modpack-video-head h2 { margin: 5px 0 0; color: var(--ink); font-size: 19px; font-weight: 900; }
.modpack-video-head a { flex: none; color: var(--orange); font-size: 13px; font-weight: 800; }
.modpack-video-head a:hover { color: var(--sun); }
.modpack-video-frame { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--line2); border-radius: var(--r-sm); background: #2c211a; aspect-ratio: 16 / 9; box-shadow: inset 0 0 0 4px rgba(255, 196, 94, 0.16); }
.modpack-video-frame::before, .modpack-video-frame::after { content: ''; position: absolute; z-index: 1; width: 10px; height: 10px; border-color: var(--orange); pointer-events: none; }
.modpack-video-frame::before { left: 8px; top: 8px; border-left: 2px solid; border-top: 2px solid; }
.modpack-video-frame::after { right: 8px; bottom: 8px; border-right: 2px solid; border-bottom: 2px solid; }
.modpack-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
body.night .modpack-meta span { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 193, 104, 0.38); color: var(--ink); }
.modpack-author {
  width: min(1180px, 100%);
  margin: 0 auto 22px;
  padding: 27px 30px 25px;
  border-color: rgba(79, 172, 221, 0.28);
}
.modpack-author-main {
  display: flex;
  align-items: center;
  gap: 21px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.modpack-author-avatar {
  width: 112px;
  height: 112px;
  flex: none;
  object-fit: cover;
  image-rendering: pixelated;
  border: 3px solid rgba(244, 165, 33, 0.46);
  border-radius: 50%;
  background: #34373d;
  box-shadow: 0 7px 18px rgba(74, 49, 25, 0.2);
}
.modpack-author-copy h2 {
  margin: 7px 0 2px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.25;
}
.modpack-author-id {
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.7;
}
.modpack-author-id strong { color: var(--orange); font-weight: 800; }
.modpack-author-role {
  margin-top: 4px;
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.7;
}
.modpack-author-bio {
  display: grid;
  gap: 10px;
  padding: 21px 0 20px;
}
.modpack-author-bio-label {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}
.modpack-author-bio p {
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.9;
}
.modpack-author-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.modpack-author-links-label {
  margin-right: 3px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}
.modpack-author-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 31px;
  padding: 4px 10px;
  border: 1px solid rgba(239, 125, 60, 0.28);
  border-radius: var(--r-sm);
  background: rgba(239, 125, 60, 0.07);
  color: var(--ink2);
  font-size: 12px;
  font-weight: 700;
  transition: color var(--tr-fast), background var(--tr-fast), border-color var(--tr-fast), transform var(--tr-fast);
}
.modpack-author-links a:hover {
  border-color: rgba(239, 125, 60, 0.55);
  background: rgba(239, 125, 60, 0.14);
  color: var(--orange);
  transform: translateY(-1px);
}
.modpack-supporters {
  width: min(1180px, 100%);
  margin: 0 auto 22px;
  padding: 28px 30px 25px;
  border-color: rgba(108, 186, 90, 0.30);
}
.modpack-supporters-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.modpack-supporters-head h2 {
  margin: 7px 0 5px;
  color: var(--ink);
  font-size: clamp(24px, 3.3vw, 34px);
  font-weight: 900;
  line-height: 1.3;
}
.modpack-supporters-head p {
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.8;
}
.modpack-helper-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
}
.modpack-helper {
  min-width: 0;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
}
.modpack-helper h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
}
.modpack-helper h3 span {
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
}
.modpack-helper ul {
  display: grid;
  gap: 6px;
  padding-left: 17px;
  color: var(--ink2);
}
.modpack-helper li {
  font-size: 13px;
  line-height: 1.85;
}
.modpack-helper li::marker { color: var(--grass); }
.modpack-supporters-boundary {
  display: grid;
  gap: 5px;
  padding-top: 19px;
}
.modpack-supporters-boundary p {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.8;
}
.modpack-intro-grid,
.modpack-system-list,
.modpack-section,
.modpack-source {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.modpack-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.modpack-feature {
  min-height: 190px;
  padding: 25px;
}
.modpack-feature-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1;
}
.modpack-feature h2,
.modpack-system h3,
.modpack-roadmap h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}
.modpack-feature p,
.modpack-system p,
.modpack-roadmap p,
.modpack-source p {
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.85;
}
.modpack-feature h2 { margin-bottom: 8px; }
.modpack-section { margin-top: 72px; }
.modpack-section-head {
  max-width: 770px;
  margin: 0 auto 28px;
  text-align: center;
}
.modpack-section-head h2 {
  margin: 10px 0 9px;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.3;
}
.modpack-section-head p { color: var(--ink2); font-size: 15px; line-height: 1.85; }
.modpack-system-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.modpack-system {
  min-height: 170px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 14px;
  padding: 21px;
}
.modpack-system-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(244, 165, 33, 0.12);
  font-size: 21px;
}
.modpack-system h3 { margin-bottom: 7px; font-size: 16px; }
.modpack-howto { padding-top: 4px; }
.modpack-roadmap {
  width: min(980px, 100%);
  margin: 0 auto;
  list-style: none;
  counter-reset: none;
}
.modpack-roadmap li {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 17px;
  padding: 0 0 25px;
}
.modpack-roadmap li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 43px;
  bottom: 4px;
  width: 1px;
  background: rgba(239, 125, 60, 0.30);
}
.modpack-roadmap li > span {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  box-shadow: 0 5px 13px rgba(239, 125, 60, 0.25);
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1;
}
.modpack-roadmap h3 { margin: 4px 0 5px; }
.modpack-source {
  margin-top: 64px;
  padding: 19px 22px;
  border-color: rgba(244, 165, 33, 0.26);
  background: rgba(244, 165, 33, 0.07);
}
.modpack-source strong { display: block; margin-bottom: 5px; color: var(--orange); font-size: 14px; }
.modpack-source a { color: var(--orange); font-weight: 800; }

/* ==================== 更新日志下载 ==================== */
.log-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid rgba(239, 125, 60, 0.30);
  border-radius: var(--r-sm);
  background: rgba(244, 165, 33, 0.10);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  transition: color var(--tr-fast), background var(--tr-fast), border-color var(--tr-fast), transform var(--tr-fast);
}
.log-download:hover {
  transform: translateY(-1px);
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.log-download.is-unavailable {
  border-color: var(--line2);
  background: transparent;
  color: var(--dim);
  cursor: not-allowed;
}
.log-download.is-unavailable:hover { transform: none; border-color: var(--line2); background: transparent; color: var(--dim); }

/* ==================== 地图 ==================== */
.maps-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 70px);
  padding: 116px 20px 82px;
}
.maps-hero {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}
.maps-kicker {
  color: var(--orange);
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.8;
}
.maps-hero h1 {
  margin: 11px 0 12px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
}
.maps-hero h1 span { color: var(--orange); }
.maps-hero p {
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.9;
}
.maps-directory {
  width: min(1440px, 100%);
  margin: 0 auto;
}
.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.map-tab {
  min-width: 112px;
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: var(--glass-bg);
  color: var(--ink2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  transition: color var(--tr-fast), background var(--tr-fast), border-color var(--tr-fast), box-shadow var(--tr-fast), transform var(--tr-fast);
}
.map-tab:hover {
  border-color: rgba(239, 125, 60, 0.42);
  color: var(--orange);
  transform: translateY(-1px);
}
.map-tab.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 7px 16px rgba(239, 125, 60, 0.22);
}
.map-shell {
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.map-toolbar {
  min-height: 62px;
  padding: 12px 16px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.map-world-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}
.map-world-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(108, 186, 90, 0.14);
  color: var(--grass);
  font-size: 14px;
  line-height: 1;
}
.map-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  transition: color var(--tr-fast), transform var(--tr-fast);
}
.map-open-link:hover {
  color: var(--sun);
  transform: translateX(2px);
}
.map-frame-wrap {
  position: relative;
  overflow: hidden;
  height: min(68vh, 720px);
  min-height: 520px;
  background: #161b22;
}
.map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #161b22;
}
.map-frame-wrap.is-clean iframe {
  /* BlueMap 控件由 iframe 内部样式隐藏；此状态仅用于标记同源清理成功。 */
  transform: none;
}
.map-frame-wrap.is-clean-fallback iframe {
  /* 本地 file:// / localhost 预览无法跨域注入，仅轻微裁剪边缘控件。 */
  width: 106%;
  height: 106%;
  margin: -3% 0 0 -3%;
}

/* ==================== 小镇烟火 ==================== */
.townfire-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 70px);
  padding: 116px 20px 82px;
}
.townfire-hero {
  width: min(880px, 100%);
  margin: 0 auto 36px;
  text-align: center;
}
.townfire-kicker {
  color: var(--orange);
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.8;
}
.townfire-hero h1 {
  margin: 11px 0 12px;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
}
.townfire-hero h1 span { color: var(--orange); }
.townfire-hero p {
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.9;
}
.townfire-directory {
  width: min(1655px, 100%);
  margin: 0 auto;
}
.townfire-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.townfire-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform var(--tr-fast), border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
}
.townfire-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-s);
  border-color: rgba(239, 125, 60, 0.42);
  box-shadow: var(--sh);
}
.townfire-card-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  height: auto;
  background: #49351f;
}
.townfire-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform var(--tr);
}
.townfire-card-image:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: -3px;
}
.townfire-card:hover .townfire-card-image { transform: scale(1.045); }
.townfire-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(52, 35, 20, 0.68);
  color: #fff8e8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}
.townfire-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 4px 17px 5px;
}
.townfire-card-body h2 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}
.townfire-card-body p {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.25;
}

/* 小镇烟火图片灯箱 */
.townfire-lightbox[hidden] { display: none; }
.townfire-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(45, 28, 16, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.townfire-lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}
.townfire-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1280px, 94vw);
  max-height: 94vh;
}
.townfire-lightbox-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 94vh;
  padding: 18px 18px 15px;
  border: 2px solid var(--orange);
  border-radius: 40px;
  background: var(--cream2);
  box-shadow: 0 0 0 1px rgba(244, 165, 33, 0.42), 0 20px 65px rgba(25, 13, 5, 0.52);
}
.townfire-lightbox-image {
  display: block;
  width: auto;
  max-width: min(88vw, 1200px);
  max-height: calc(94vh - 78px);
  object-fit: contain;
  border-radius: 40px;
  background: #22160d;
}
.townfire-lightbox-figure figcaption {
  max-width: 100%;
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}
body.townfire-lightbox-open { overflow: hidden; }

@media (max-width: 480px) {
  .townfire-lightbox { padding: 12px; }
  .townfire-lightbox-figure {
    width: 100%;
    padding: 18px 10px 12px;
    border-width: 2px;
  }
  .townfire-lightbox-image {
    max-width: calc(100vw - 44px);
    max-height: calc(94vh - 76px);
  }
  .townfire-lightbox-figure figcaption { font-size: 12px; }
}

/* ==================== 团队 ==================== */
.team-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 70px);
  padding: 116px 20px 86px;
}
.team-hero {
  width: min(1000px, 100%);
  margin: 0 auto 42px;
}
.team-kicker {
  color: var(--orange);
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.8;
}
.team-hero h1 {
  margin: 11px 0 12px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.25;
}
.team-hero h1 span { color: var(--orange); }
.team-hero p {
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.9;
}
.team-directory {
  width: min(1000px, 100%);
  margin: 0 auto;
}
.owner-profile {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 54px);
  align-items: center;
  padding: clamp(30px, 5vw, 50px);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--r);
  box-shadow: var(--sh);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.owner-profile::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background-image: linear-gradient(rgba(244, 165, 33, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 165, 33, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(225deg, #000, transparent 72%);
  pointer-events: none;
}
.team-skin-stage {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  isolation: isolate;
  background: transparent;
  border: 0;
}
body.night .team-skin-stage {
  background: transparent;
}
.owner-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(239, 125, 60, 0.24);
}
.owner-skin-canvas,
.owner-skin-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.owner-skin-canvas {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
}
.owner-skin-fallback {
  z-index: 0;
  padding: 8px 22px 0;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 12px rgba(66, 53, 42, 0.16));
  transition: opacity var(--tr);
}
.team-skin-stage.is-ready .owner-skin-canvas { opacity: 1; }
.team-skin-stage.is-ready .owner-skin-fallback {
  opacity: 0;
  pointer-events: none;
}
.owner-details {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.owner-role {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}
.owner-details h2 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}
.owner-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 22px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 600;
}
.owner-avatar {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--line2);
  border-radius: 5px;
  image-rendering: pixelated;
}
.owner-intro {
  max-width: 650px;
  color: var(--ink2);
  font-size: 15px;
  line-height: 2;
}
.owner-duties {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  list-style: none;
}
.owner-duties li {
  position: relative;
  padding: 7px 12px 7px 25px;
  background: rgba(244, 165, 33, 0.08);
  border: 1px solid rgba(239, 125, 60, 0.18);
  border-radius: 6px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
}
.owner-duties li::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--orange);
  transform: translateY(-50%);
}
.team-support {
  width: min(1000px, 100%);
  margin: 74px auto 0;
}
.team-support-heading {
  max-width: 720px;
  margin-bottom: 24px;
}
.team-support-heading h2 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900;
  line-height: 1.35;
}
.team-support-heading h2 span { color: var(--orange); }
.team-support-heading p {
  color: var(--ink2);
  font-size: 15px;
  line-height: 1.9;
}
.supporter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.supporter-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  min-height: 196px;
  padding: 24px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sun);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.supporter-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  background-image: linear-gradient(rgba(244, 165, 33, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 165, 33, 0.11) 1px, transparent 1px);
  background-size: 12px 12px;
  clip-path: polygon(100% 0, 100% 100%, 42% 0);
  pointer-events: none;
}
.supporter-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 125, 60, 0.35);
  box-shadow: var(--sh);
}
.supporter-avatar-frame {
  position: relative;
  align-self: start;
  width: 84px;
  height: 84px;
  padding: 5px;
  background: rgba(244, 165, 33, 0.14);
  border: 1px solid rgba(239, 125, 60, 0.28);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(239, 125, 60, 0.16);
}
.supporter-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(120, 90, 50, 0.15);
  border-radius: 4px;
  image-rendering: pixelated;
}
.supporter-details {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.supporter-role {
  margin-bottom: 4px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.supporter-details h3 {
  color: var(--ink);
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.supporter-details p {
  margin-top: 10px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.8;
}
.supporter-id {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 12px;
}
.supporter-id strong {
  color: var(--ink2);
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* ==================== 页脚 ==================== */
.footer {
  background: rgba(244, 165, 33, 0.12);
  border-top: 1px solid rgba(244, 165, 33, 0.30);
  color: #8a5a10;
  padding: 48px 20px 0;
  position: relative;
  z-index: 1;
}
body.night .footer {
  background: rgba(244, 165, 33, 0.08);
  border-top-color: rgba(244, 165, 33, 0.22);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(240px, 0.8fr) minmax(300px, 1fr);
  align-items: start;
  gap: clamp(36px, 6vw, 100px);
  padding-bottom: 32px;
}
.footer-links { min-width: 0; }
.footer-links .footer-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  max-width: 320px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-logo-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}
.footer-slogan {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.9;
}
.footer-col h5 {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink2);
  transition: all var(--tr-fast);
}
.footer-col a:hover {
  color: var(--sun);
  padding-left: 6px;
}
.footer-contact h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-contact p {
  font-size: 14px;
  color: var(--ink2);
  padding: 6px 0;
}
.footer-contact strong {
  color: var(--ink);
  font-weight: 600;
}
.footer-declaration {
  max-width: 560px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 165, 33, 0.24);
}
.footer-declaration h5 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.footer-declaration p {
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.85;
}
.footer-bottom {
  border-top: 1px solid rgba(244, 165, 33, 0.30);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%) translateY(-20px);
  background: var(--tag-bg);
  color: #fff;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.toast.toast-success {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 10px 30px rgba(239, 125, 60, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.toast.toast-welcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toast.toast-wiki {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #334155;
  border: 1px solid rgba(244, 165, 33, 0.28);
  box-shadow: 0 12px 32px rgba(126, 78, 26, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.toast-wiki::before {
  content: '📖';
  font-size: 15px;
  line-height: 1;
}
.toast-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1240px) {
  .features-grid, .gameplay-grid, .guild-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .nav-links { display: none; }
  .nav-status { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    flex-direction: column;
    padding: 16px;
    margin-top: 8px;
    border-radius: var(--rl);
    background: var(--glass-bg-s);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--sh-lg);
    height: auto;
    gap: 4px;
  }
  .nav-links.open .nav-link {
    height: auto;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: var(--r-sm);
  }
  .nav-links.open .nav-link:hover { background: rgba(244,165,33,0.10); }
  .nav-links.open .nav-link::after { display: none; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 768px) {
  .nav {
    height: 62px;
  }
  .nav-inner {
    height: 62px;
    padding: 0 14px;
    gap: 10px;
  }
  .nav-logo {
    gap: 6px;
    font-size: 16px;
  }
  .logo-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .nav-actions {
    gap: 8px;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .nav-cta {
    height: 32px;
    padding: 0 11px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .menu-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .nav-links.open {
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 76px);
    margin-top: 6px;
    padding: 10px;
    gap: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* 移动端菜单使用实色面板，避免底层内容透出影响阅读 */
    background: var(--cream2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links.open .nav-link {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .sec { padding: 60px 16px; }
  .xzhero { padding: 20px 16px 60px; }
  .xzhero-desc-line + .xzhero-desc-line { white-space: normal; }
  .announcement-page { padding: 96px 16px 60px; }
  .announcement-board { padding: 8px; }
  .announcement-card-head { padding: 22px 20px 18px; }
  .announcement-card-body { padding: 22px 20px 24px; }
  .tutorials-page { padding: 96px 16px 60px; }
  .tutorials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .modpack-page { padding: 96px 16px 60px; }
  .modpack-intro-grid, .modpack-system-list { grid-template-columns: 1fr; }
  .modpack-section { margin-top: 54px; }
  .modpack-feature, .modpack-system { min-height: 0; }
  .modpack-source { margin-top: 48px; }
  .maps-page { padding: 96px 16px 60px; }
  .map-frame-wrap { height: 62vh; min-height: 460px; }
  .townfire-page { padding: 96px 16px 60px; }
  .townfire-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .townfire-card-body { min-height: 0; padding: 5px 15px 6px; }
  .team-page { padding: 96px 16px 64px; }
  .team-hero { margin-bottom: 30px; }
  .owner-profile {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
  }
  .team-skin-stage { min-height: 290px; }
  .supporter-card { padding: 20px; grid-template-columns: 74px minmax(0, 1fr); gap: 15px; }
  .supporter-avatar-frame { width: 74px; height: 74px; }

  .features-grid, .gameplay-grid, .guild-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
  }
  .step-card { max-width: 100%; width: 100%; }
  .step-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .server-info {
    flex-direction: column;
    padding: 20px;
  }
  .si-left { text-align: center; }

  .nav-login { display: none; }
  .nav-cta {
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
  }

  .wiki-search {
    flex-wrap: wrap;
  }
  .search-input {
    order: 2;
    min-width: 100%;
  }
  .search-btn {
    order: 3;
    width: 100%;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .announcement-card-head { flex-direction: column; gap: 4px; }
  .announcement-card time { padding-top: 0; }
  .footer-links .footer-col { grid-template-columns: 1fr; }
  .tutorials-grid { grid-template-columns: 1fr; }
  .tutorial-card { min-height: 0; }
  .modpack-meta { justify-content: flex-start; }
  .modpack-meta span { font-size: 11px; padding: 8px 10px; }
  .modpack-meta span b { font-size: inherit; }
  .modpack-video { padding: 13px; margin-bottom: 18px; }
  .modpack-video-head { align-items: flex-start; flex-direction: column; gap: 8px; padding: 1px 2px 12px; }
  .modpack-video-head h2 { font-size: 17px; }
  .modpack-author { margin-bottom: 18px; padding: 21px 17px 19px; }
  .modpack-author-main { align-items: flex-start; gap: 14px; padding-bottom: 17px; }
  .modpack-author-avatar { width: 78px; height: 78px; border-width: 2px; }
  .modpack-author-copy h2 { margin-top: 4px; font-size: clamp(25px, 8vw, 34px); }
  .modpack-author-id, .modpack-author-role, .modpack-author-bio p { font-size: 13px; }
  .modpack-author-bio { gap: 8px; padding: 17px 0; }
  .modpack-author-links { align-items: flex-start; flex-direction: column; gap: 7px; padding-top: 14px; }
  .modpack-author-links-label { margin: 0 0 1px; }
  .modpack-author-links a { width: 100%; justify-content: space-between; }
  .modpack-supporters { margin-bottom: 18px; padding: 21px 17px 19px; }
  .modpack-supporters-head { padding-bottom: 15px; }
  .modpack-supporters-head p { font-size: 13px; }
  .modpack-helper-list { grid-template-columns: 1fr; }
  .modpack-helper { padding: 16px 0 15px; }
  .modpack-helper h3 { font-size: 15px; }
  .modpack-helper li { font-size: 13px; line-height: 1.8; }
  .modpack-supporters-boundary { padding-top: 16px; }
  .modpack-roadmap li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .modpack-roadmap li > span { width: 42px; height: 42px; font-size: 9px; }
  .modpack-roadmap li:not(:last-child)::before { left: 21px; top: 37px; }
  .log-download { margin-left: 0; }
  .maps-hero { margin-bottom: 28px; }
  .map-tabs { gap: 8px; }
  .map-tab { min-width: 0; flex: 1 1 120px; }
  .map-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .map-frame-wrap { height: 500px; min-height: 0; }
  .townfire-hero { margin-bottom: 28px; }
  .townfire-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .townfire-card-body { min-height: 0; padding: 7px 13px 8px; gap: 1px; }
  .townfire-card-body h2 { font-size: 14px; line-height: 1.2; }
  .townfire-card-body p { font-size: 11px; line-height: 1.3; }
  .team-hero { text-align: center; }
  .owner-profile {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 22px;
  }
  .team-skin-stage {
    width: min(230px, 100%);
    min-height: 310px;
    margin: 0 auto;
  }
  .owner-details { text-align: center; }
  .owner-identity { justify-content: center; }
  .owner-intro { text-align: left; }
  .owner-duties { justify-content: center; }
  .team-support { margin-top: 58px; }
  .team-support-heading { text-align: center; }
  .supporter-list { grid-template-columns: 1fr; }
  .supporter-card { min-height: 0; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .cta-primary, .cta-secondary { width: 100%; text-align: center; }
  .xzhero-title { letter-spacing: 0; }
}

/* ==================== 首页场景化 Hero ==================== */
.xzhero {
  padding: 94px 20px 80px;
}
.hero-scene {
  position: relative;
  width: min(100%, var(--max-w));
  min-height: 676px;
  margin: 0 auto 26px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(105, 71, 33, 0.22);
  border-radius: 22px;
  background: #49351f url('assets/hero/vanilla-era-hero-v1.png') center center / cover no-repeat;
  box-shadow: 0 26px 64px rgba(123, 78, 26, 0.24);
}
.hero-scene::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 18, 11, 0.83) 0%, rgba(28, 20, 10, 0.68) 34%, rgba(28, 20, 10, 0.24) 62%, rgba(20, 14, 8, 0.04) 100%),
    linear-gradient(0deg, rgba(23, 15, 7, 0.42) 0%, transparent 42%);
}
.hero-scene::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255, 226, 168, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 226, 168, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.58) 45%, transparent 74%);
  pointer-events: none;
}
.hero-scene-content {
  position: relative;
  z-index: 2;
  width: min(100%, 850px);
  min-height: 676px;
  display: flex;
  align-items: center;
  padding: 58px clamp(34px, 6vw, 92px);
}
.xzhero-inner {
  width: 100%;
  text-align: left;
}
.mc-version {
  color: rgba(255, 247, 228, 0.9);
  background: rgba(43, 29, 15, 0.52);
  border: 1px solid rgba(255, 241, 208, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.xzhero-title { justify-content: flex-start; }
.title-main {
  color: #fff9ed;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.4);
}
.xzhero-subtitle {
  color: rgba(255, 248, 235, 0.96);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.36);
}
.xzhero-desc {
  width: auto;
  max-width: 670px;
  margin: 0 0 28px;
  color: rgba(255, 244, 225, 0.84);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}
.online-card {
  color: rgba(255, 245, 225, 0.92);
  background: rgba(44, 31, 17, 0.6);
  border: 1px solid rgba(255, 241, 208, 0.24);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.server-info {
  margin: 0 0 28px;
  color: #fff8ea;
  background: rgba(39, 27, 15, 0.65);
  border: 1px solid rgba(255, 241, 208, 0.25);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.si-label { color: rgba(255, 241, 210, 0.66); }
.si-address { color: #fffaf0; }
.hero-ctas { justify-content: flex-start; }
.cta-secondary {
  color: #fff9ed;
  background: rgba(44, 31, 17, 0.56);
  border: 1px solid rgba(255, 241, 208, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cta-secondary:hover { background: rgba(70, 50, 27, 0.72); }

/* 浏览器不支持 WebGL 时，保留静态像素风皮肤作为降级显示。 */
.home-skin-stage {
  position: absolute;
  z-index: 1;
  right: clamp(16px, 4vw, 86px);
  bottom: 20px;
  width: min(29vw, 400px);
  height: min(39vw, 550px);
  min-width: 260px;
  min-height: 370px;
  pointer-events: none;
  filter: drop-shadow(0 20px 18px rgba(30, 18, 7, 0.48));
}
.home-skin-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 15%;
  right: 15%;
  bottom: 4%;
  height: 10%;
  border-radius: 50%;
  background: rgba(26, 17, 8, 0.38);
  filter: blur(10px);
}
.home-skin-role {
  position: absolute;
  z-index: 3;
  top: 6%;
  left: 50%;
  padding: 7px 11px;
  border: 1px solid rgba(255, 238, 196, 0.42);
  border-radius: 7px;
  background: rgba(48, 32, 14, 0.65);
  color: #fff5df;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}
.home-skin-canvas,
.home-skin-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.home-skin-canvas {
  z-index: 2;
  opacity: 0;
  transition: opacity var(--tr);
}
.home-skin-fallback {
  z-index: 1;
  padding: 24px 14px 0;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  transition: opacity var(--tr);
}
.home-skin-stage.is-ready .home-skin-canvas { opacity: 1; }
.home-skin-stage.is-ready .home-skin-fallback { opacity: 0; }

@media (max-width: 768px) {
  .xzhero { padding: 78px 16px 60px; }
  .hero-scene {
    min-height: 740px;
    border-radius: 16px;
    background-position: 60% center;
  }
  .hero-scene::before {
    background:
      linear-gradient(90deg, rgba(24, 18, 11, 0.84) 0%, rgba(27, 19, 10, 0.68) 66%, rgba(27, 19, 10, 0.28) 100%),
      linear-gradient(0deg, rgba(23, 15, 7, 0.76) 0%, rgba(23, 15, 7, 0.14) 58%);
  }
  .hero-scene-content {
    min-height: 740px;
    width: min(100%, 620px);
    align-items: flex-start;
    padding: 38px 24px 178px;
  }
  .xzhero-title { font-size: clamp(46px, 13vw, 72px); }
  .xzhero-desc { max-width: min(100%, 470px); font-size: 14px; }
  .home-skin-stage {
    right: 4px;
    bottom: 4px;
    width: min(46vw, 300px);
    height: min(62vw, 420px);
    min-width: 180px;
    min-height: 266px;
    opacity: 0.93;
  }
  .home-skin-role { display: none; }
}
@media (max-width: 480px) {
  .hero-scene { min-height: 772px; background-position: 63% center; }
  .hero-scene-content { min-height: 772px; padding: 31px 18px 202px; }
  .mc-version { margin-bottom: 20px; padding: 7px 11px; font-size: 11px; }
  .mc-text { line-height: 1.55; }
  .xzhero-subtitle { font-size: 18px; margin-bottom: 9px; }
  .xzhero-desc { margin-bottom: 19px; font-size: 13px; line-height: 1.76; }
  .online-card { margin-bottom: 18px; padding: 9px 13px; font-size: 12px; gap: 6px; }
  .online-count { font-size: 16px; }
  .server-info { margin-bottom: 18px; padding: 15px; gap: 13px; }
  .si-address { font-size: 20px; }
  .copy-btn { font-size: 12px; }
  .join-btn { padding: 12px 19px; font-size: 14px; }
  .hero-ctas { gap: 9px; margin-bottom: 0; }
  .cta-primary, .cta-secondary { padding: 12px 16px; font-size: 14px; }
  .home-skin-stage {
    right: -7px;
    bottom: 3px;
    width: 48vw;
    height: 67vw;
    min-width: 155px;
    min-height: 232px;
  }
}

/* ==================== 入场动画 ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 独立入住页面 ==================== */
.join-page {
  min-height: calc(100vh - 70px);
  padding: 116px 20px 88px;
  position: relative;
  z-index: 1;
}
.join-shell {
  width: min(100%, 900px);
  margin: 0 auto;
}
.join-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.join-kicker {
  display: inline-block;
  color: var(--orange);
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.join-hero h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}
.join-hero h1 span {
  color: var(--orange);
}
.join-lead {
  color: var(--ink2);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 10px;
}
.join-lead strong {
  color: var(--orange);
  font-weight: 800;
}
.join-desc {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.9;
}
.join-rule {
  width: 36px;
  height: 2px;
  margin: 78px 0 30px max(0px, calc((100% - 760px) / 2));
  background: var(--orange);
}
.join-card {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 32px 36px 28px;
  background: var(--glass-bg-s);
  border: var(--glass-border);
  border-top: 3px solid var(--orange);
  border-radius: var(--rl);
  box-shadow: var(--sh);
}
.join-card-intro {
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 28px;
}
.join-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.join-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  width: 1px;
  background: rgba(239, 125, 60, 0.34);
}
.join-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 24px;
}
.join-step:last-child {
  padding-bottom: 0;
}
.join-step-num {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-weight: 400;
  font-synthesis: none;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 5px 13px rgba(239, 125, 60, 0.28);
}
.join-step-copy {
  min-width: 0;
  padding-top: 1px;
}
.join-step-copy h2 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 4px;
}
.join-step-copy p {
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.8;
}
.join-step-copy code,
.join-callout code {
  color: var(--ink);
  background: rgba(244, 165, 33, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'Town Pixel', 'Press Start 2P', monospace;
  font-size: 11px;
}
.join-callout {
  margin-top: 28px;
  padding: 15px 18px;
  background: rgba(79, 172, 221, 0.07);
  border: 1px solid rgba(79, 172, 221, 0.24);
  border-radius: var(--r-sm);
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.8;
}
.join-callout > strong {
  display: block;
  color: var(--sky);
  margin-bottom: 6px;
}
.join-callout p + p {
  margin-top: 2px;
}
.join-callout p strong {
  color: var(--ink);
}
.join-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.join-primary,
.join-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 800;
  transition: all var(--tr-fast);
}
.join-primary {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 125, 60, 0.3);
}
.join-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 125, 60, 0.4);
}
.join-secondary {
  color: var(--ink2);
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.34);
}
.join-secondary:hover {
  color: var(--orange);
  border-color: rgba(239, 125, 60, 0.35);
  background: rgba(244, 165, 33, 0.08);
}
.join-tip {
  margin-top: 16px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.join-tip strong {
  color: var(--sun);
}

@media (max-width: 768px) {
  .join-page { padding: 102px 16px 64px; }
  .join-hero { text-align: center; }
  .join-rule { margin: 54px auto 24px; }
  .join-card { padding: 26px 20px 24px; }
  .join-actions { flex-direction: column; align-items: stretch; }
  .join-primary, .join-secondary { width: 100%; }
}

/* ==================== 独立游玩手册 ==================== */
.gameplay-page {
  position: relative;
  overflow: hidden;
  padding: 112px 20px 88px;
  background:
    radial-gradient(circle at 92% 8%, rgba(108, 186, 90, 0.12), transparent 28rem),
    radial-gradient(circle at 7% 30%, rgba(244, 165, 33, 0.11), transparent 25rem),
    var(--cream);
}
.gameplay-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: linear-gradient(rgba(128, 97, 53, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 97, 53, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.gameplay-page-hero,
.gameplay-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-right: auto;
  margin-left: auto;
}
.gameplay-page-hero {
  min-height: 230px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 42px clamp(28px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--rl);
  box-shadow: var(--sh);
  background:
    linear-gradient(90deg, rgba(55, 41, 25, 0.9) 0%, rgba(55, 41, 25, 0.78) 44%, rgba(55, 41, 25, 0.25) 72%, rgba(55, 41, 25, 0.1) 100%),
    url('assets/hero/vanilla-era-hero-v1.png') center 54% / cover no-repeat;
}
.gameplay-page-hero::after {
  content: '';
  position: absolute;
  inset: auto -28px -64px auto;
  width: 180px;
  height: 180px;
  border: 18px solid rgba(255, 235, 177, 0.2);
  border-radius: 50%;
}
.gameplay-page-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}
.gameplay-page-hero .sec-tag {
  color: #fff0c8;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 243, 216, 0.28);
}
.gameplay-page-hero h1 {
  margin: 12px 0 10px;
  color: #fffdf7;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.2;
}
.gameplay-page-hero p {
  color: rgba(255, 250, 238, 0.88);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 500;
  line-height: 1.75;
}
.gameplay-page-hero p strong { color: #ffd173; }
.gameplay-page .gameplay-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.gameplay-page .game-card {
  min-height: 100%;
  padding: 34px 32px 30px;
}
.gameplay-page .game-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
}
.gameplay-page .game-title {
  font-size: 24px;
  margin-bottom: 14px;
}
.gameplay-page .game-desc {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 22px;
}
.gameplay-page .game-link { align-self: flex-start; }
.gameplay-page .server-rules {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 38px);
}
body.night .gameplay-page {
  background:
    radial-gradient(circle at 92% 8%, rgba(108, 186, 90, 0.1), transparent 28rem),
    radial-gradient(circle at 7% 30%, rgba(244, 165, 33, 0.08), transparent 25rem),
    var(--cream);
}
body.night .gameplay-page::before { opacity: 0.16; }
body.night .gameplay-page-hero {
  border-color: rgba(255, 231, 180, 0.16);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
  .gameplay-page { padding: 82px 16px 60px; }
  .gameplay-page-hero {
    min-height: 202px;
    margin-bottom: 16px;
    padding: 32px 24px;
    border-radius: var(--r);
    background-position: 62% 52%;
  }
  .gameplay-page-hero h1 { font-size: 31px; }
  .gameplay-page-hero p { font-size: 16px; }
  .gameplay-page .gameplay-grid { grid-template-columns: 1fr; gap: 14px; }
  .gameplay-page .game-card { padding: 28px 22px 24px; }
  .gameplay-page .game-icon { width: 68px; height: 68px; margin-bottom: 18px; }
  .gameplay-page .game-title { font-size: 22px; }
  .gameplay-page .server-rules { margin-top: 18px; padding: 24px 18px; }
}

@media (max-width: 480px) {
  .gameplay-page { padding-right: 12px; padding-left: 12px; }
  .gameplay-page-hero { padding: 28px 20px; }
  .gameplay-page-hero h1 { font-size: 28px; }
  .gameplay-page .game-card { padding: 26px 18px 22px; }
}
