/* ==========================================================================
   方块边境 — 站点样式
   零依赖，单文件。所有颜色、间距集中在 :root，改主题只改这里。
   ========================================================================== */

:root {
  /* 配色：黑 / 灰 / 白为主，少量黄色做重点 */
  --bg: #0a0a0a;
  --bg-soft: #101010;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --muted-2: #6e6e6e;
  --accent: #ffd43b;
  --accent-deep: #d9a300;
  --accent-2: #e8e8e8;
  --danger: #ff6b6b;

  --radius: 3px;
  --container: 1160px;
  --header-h: 74px;

  --font-sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

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

/* 全站细网格底纹，模拟方块世界的坐标感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

::selection {
  background: rgba(255, 212, 59, 0.28);
  color: #fff;
}

/* ---------- 布局原子 ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.site-main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 104px 0;
  position: relative;
}

.section--tight {
  padding: 72px 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 212, 59, 0.75);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding-bottom: 6px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  white-space: nowrap;
  padding-bottom: 6px;
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #141400;
  box-shadow: 0 10px 30px -14px rgba(255, 212, 59, 0.55);
}

.btn--primary:hover {
  background: #ffe066;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

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

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-stuck {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
}

.brand-mark i {
  display: block;
  background: var(--accent);
}

.brand-mark i:nth-child(1) {
  background: var(--accent);
}
.brand-mark i:nth-child(2) {
  background: #8a8a8a;
}
.brand-mark i:nth-child(3) {
  background: #4a4a4a;
}
.brand-mark i:nth-child(4) {
  background: var(--accent-2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--muted-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.nav-toggle i {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle i::before,
.nav-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.nav-toggle i::before {
  top: -5px;
}
.nav-toggle i::after {
  top: 5px;
}

body.nav-open .nav-toggle i {
  background: transparent;
}
body.nav-open .nav-toggle i::before {
  transform: translateY(5px) rotate(45deg);
}
body.nav-open .nav-toggle i::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 首页 Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(60% 60% at 22% 30%, rgba(255, 212, 59, 0.07), transparent 70%),
    radial-gradient(50% 50% at 82% 18%, rgba(255, 255, 255, 0.045), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 16.5px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.chip b {
  color: var(--text);
  font-weight: 500;
}

.chip--ok b {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 10px;
  border-radius: var(--radius);
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  opacity: 0.85;
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.hero-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.hero-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d0d0d;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-frame:hover .hero-img img {
  transform: scale(1.035);
}

.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, 0.82) 100%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(242, 242, 242, 0.82);
  z-index: 2;
}

/* ---------- 服务器状态卡 ---------- */

.status-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.95), rgba(16, 16, 16, 0.95));
  border-radius: var(--radius);
  overflow: hidden;
}

.status-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: none;
}

.status-dot.is-online {
  background: var(--accent);
  animation: pulse 2.2s ease-out infinite;
}

.status-dot.is-offline {
  background: var(--danger);
}

.status-dot.is-loading {
  background: var(--accent-2);
  animation: pulse 1.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 212, 59, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 212, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 212, 59, 0);
  }
}

.status-time {
  margin-left: auto;
  color: var(--muted-2);
}

.status-body {
  display: flex;
  gap: 14px;
  padding: 16px;
  align-items: center;
}

.status-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid var(--line);
  background: #0d0d0d;
  display: grid;
  place-items: center;
  image-rendering: pixelated;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  overflow: hidden;
}

.status-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.status-main {
  min-width: 0;
  flex: 1;
}

.status-motd {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-meta {
  display: flex;
  gap: 26px;
  margin: 0;
}

.status-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-meta dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.status-meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

.status-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.status-foot code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 11px;
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-btn.is-done {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- 数据条 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}

.stat b span {
  font-size: 0.5em;
  color: var(--accent);
  margin-left: 2px;
}

.stat p {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ---------- 玩法特色 ---------- */

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 72px 1.1fr 1.4fr 24px;
  gap: 24px;
  align-items: center;
  padding: 26px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.22s ease, padding-left 0.22s ease;
}

.feature-row:hover {
  background: linear-gradient(90deg, rgba(255, 212, 59, 0.055), transparent 60%);
  padding-left: 24px;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  transition: color 0.22s ease;
}

.feature-row:hover .feature-num {
  color: var(--accent);
}

.feature-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.feature-arrow {
  font-family: var(--font-mono);
  color: var(--muted-2);
  transition: transform 0.22s ease, color 0.22s ease;
}

.feature-row:hover .feature-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ---------- 三步加入 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  transition: background 0.22s ease;
}

.step:hover {
  background: var(--panel);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.step code {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
}

/* ---------- 公告 ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  min-height: 220px;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 212, 59, 0.45);
  background: var(--panel-2);
}

.news-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.tag {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent-2);
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.news-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.news-card:hover .news-card-foot span:last-child {
  color: var(--accent);
}

.news-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr 24px;
  gap: 24px;
  align-items: center;
  padding: 24px 12px;
  background: var(--bg);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.news-item:hover {
  background: var(--panel);
  padding-left: 22px;
}

.news-item time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.news-item h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.news-item .feature-arrow {
  color: var(--muted-2);
}

.news-item:hover .feature-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---------- 地图 ---------- */

.map-shell {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-shell iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  filter: saturate(0.95);
}

.map-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 320px;
  padding: 48px 24px;
  text-align: center;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.map-placeholder strong {
  font-size: 16px;
  font-weight: 600;
}

.map-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 46ch;
}

.map-placeholder code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  border: 1px dashed var(--line-strong);
  padding: 6px 10px;
}

.map-shell--full iframe {
  height: min(72vh, 760px);
  min-height: 480px;
}

.map-shell--full .map-placeholder {
  min-height: min(60vh, 560px);
}

/* ---------- 表单 ---------- */

.apply-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.apply-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.apply-aside h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.apply-aside p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rule-list li {
  background: var(--bg);
  padding: 14px 4px 14px 0;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.rule-list li span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 3px;
}

.form-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.field label em {
  color: var(--accent-2);
  font-style: normal;
  margin-left: 4px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f5f5f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 212, 59, 0.12);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--accent-deep);
  flex: none;
}

.form-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.6;
}

.form-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.6;
}

.form-msg.is-shown {
  display: block;
}

.form-msg.is-ok {
  border-color: rgba(255, 212, 59, 0.5);
  background: rgba(255, 212, 59, 0.07);
  color: #ffe9a8;
}

.form-msg.is-err {
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.07);
  color: #ffd5d5;
}

/* ---------- 文章详情 ---------- */

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.article-head h1 {
  margin: 14px 0 0;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.article-body p {
  margin: 0 0 20px;
  color: #c8c8c8;
  font-size: 16px;
  line-height: 1.9;
}

.article-body h2 {
  margin: 40px 0 16px;
  font-size: 19px;
  font-weight: 600;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.article-body ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.article-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: #c8c8c8;
  font-size: 15.5px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--accent-deep);
}

.article-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 34ch;
  line-height: 1.75;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col span {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* ---------- 入场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apply-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .apply-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 72px 0;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 22px;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-link {
    padding: 13px 10px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-link.is-active {
    color: var(--accent);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    padding: 36px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8.6vw, 2.9rem);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-index {
    display: none;
  }

  .feature-row {
    grid-template-columns: 44px 1fr;
    gap: 8px 14px;
    padding: 22px 4px;
  }

  .feature-row p {
    grid-column: 2;
  }

  .feature-arrow {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 4px;
  }

  .news-item:hover {
    padding-left: 4px;
  }

  .news-item .feature-arrow {
    display: none;
  }

  .form-panel {
    padding: 22px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .map-shell iframe {
    height: 360px;
  }
}

/* ---------- 内页头部 ---------- */

.page-head {
  position: relative;
  z-index: 1;
  padding: 68px 0 52px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(closest-side, rgba(255, 212, 59, 0.06), transparent 70%);
  pointer-events: none;
}

.page-head h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-head .lead {
  position: relative;
  margin: 18px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 16px;
}

.page-head .hero-meta {
  margin-top: 22px;
}

/* ---------- 玩法详情 ---------- */

.feature-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.feature-block:last-of-type {
  border-bottom: 0;
}

.feature-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  font-weight: 700;
}

.feature-block .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.feature-block p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.point-list li {
  position: relative;
  padding-left: 24px;
  color: #c8c8c8;
  font-size: 14.5px;
  line-height: 1.7;
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 2px;
  background: var(--accent-deep);
}

.no-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.no-item {
  background: var(--bg);
  padding: 26px 24px;
}

.no-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.no-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.no-item .mark {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--danger);
  letter-spacing: 0.14em;
}

/* ---------- 加入指南时间线 ---------- */

.guide-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.guide-item:last-child {
  border-bottom: 0;
}

.guide-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.guide-item h2 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
}

.guide-item p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.guide-item code {
  display: inline-block;
  padding: 5px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-2);
  word-break: break-all;
}

.notice {
  border: 1px solid rgba(255, 212, 59, 0.3);
  background: rgba(255, 212, 59, 0.06);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 36px 0;
}

.notice h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

.notice p {
  margin: 0;
  color: #e6dfc9;
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- 页面内小结构 ---------- */

.section-lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 40px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
}

.panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .feature-block,
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .no-list {
    grid-template-columns: 1fr;
  }

  .feature-block {
    padding: 44px 0;
  }
}

@media (max-width: 780px) {
  .page-head {
    padding: 44px 0 36px;
  }

  .guide-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .panel {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
