/* ==========================================================================
   佛山 · FOSHAN — EarthMC 城市官网
   设计基调：深墨 / 鎏金 / 岭南青
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:          #0b0e0d;
  --bg-elev:     #111614;
  --bg-card:     #131917;
  --bg-card-2:   #171e1b;

  --line:        rgba(216, 180, 90, 0.14);
  --line-mid:    rgba(216, 180, 90, 0.24);
  --line-strong: rgba(216, 180, 90, 0.42);

  --gold:        #d8b45a;
  --gold-bright: #f2d493;
  --gold-deep:   #a8823a;
  --jade:        #5fa08c;
  --jade-dim:    #3c6b5d;
  --crimson:     #b23a33;

  --text:        #eae6dc;
  --text-2:      #a9b1a9;
  --text-3:      #6d7871;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --font-sans:  "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --wrap-narrow: 820px;
  --radius: 2px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(216, 180, 90, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 180, 90, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.24;
  margin: 0;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: #10130f; }

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

/* ---------- 3. Layout ---------- */
.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.wrap-narrow { width: min(100% - 48px, var(--wrap-narrow)); margin-inline: auto; position: relative; z-index: 1; }

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.018) 12%, rgba(255,255,255,0.018) 88%, transparent); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-mid) 18%, var(--line-mid) 82%, transparent);
}

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-head { max-width: 720px; margin-bottom: 56px; }

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: 0.04em;
  color: var(--text);
}

.section-title em {
  font-style: normal;
  color: var(--gold);
}

.section-desc {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.85;
  max-width: 62ch;
}

.lead {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-2);
}

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

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(9, 12, 11, 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;
  justify-content: space-between;
  gap: 32px;
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 19px;
  color: #12160f;
  background: linear-gradient(150deg, var(--gold-bright), var(--gold-deep));
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(216,180,90,0.35), 0 6px 18px -8px rgba(216,180,90,0.7);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-serif); font-size: 16px; letter-spacing: 0.18em; font-weight: 600; }
.brand-text i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-top: 4px;
}

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

.nav a {
  position: relative;
  padding: 9px 15px;
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--gold-bright); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  border: 1px solid var(--line-strong);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--gold);
  color: #10130f;
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-mid);
  place-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 14px;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.32s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(150deg, var(--gold-bright), var(--gold));
  color: #11150f;
  font-weight: 600;
  box-shadow: 0 10px 30px -14px rgba(216, 180, 90, 0.8);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -14px rgba(216, 180, 90, 0.95);
  background: linear-gradient(150deg, #ffe4b0, var(--gold-bright));
}

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

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(216, 180, 90, 0.06);
}

.btn .arrow { transition: transform 0.32s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transform: scale(1.04);
  animation: heroDrift 24s var(--ease) forwards;
}

/* 占位图状态下压低存在感，避免与标题争夺注意力 */
.hero-media img.is-placeholder { opacity: 0.85; }

@keyframes heroDrift {
  from { transform: scale(1.09); }
  to   { transform: scale(1.0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11,14,13,0.86) 0%, rgba(11,14,13,0.42) 32%, rgba(11,14,13,0.72) 72%, var(--bg) 100%),
    radial-gradient(ellipse 70% 55% at 22% 62%, rgba(216,180,90,0.10), transparent 70%);
}

.hero-inner {
  padding-bottom: 132px;
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.hero-title {
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  margin: 0 0 26px;
  background: linear-gradient(175deg, #fffaf0 8%, var(--gold-bright) 46%, var(--gold-deep) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.hero-title span {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.3vw, 15px);
  letter-spacing: 0.62em;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  margin-top: 18px;
  opacity: 0.72;
}

.hero-sub {
  max-width: 48ch;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.9;
  color: rgba(234, 230, 220, 0.82);
  margin-bottom: 38px;
}

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

/* Hero stat rail */
.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,14,13,0.55), rgba(11,14,13,0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-stats-inner {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  padding: 22px 0 24px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

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

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 500;
  color: var(--gold-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-value small {
  font-size: 12px;
  color: var(--text-3);
  margin-left: 5px;
  letter-spacing: 0.04em;
}

.stat-sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 7px;
  letter-spacing: 0.03em;
}

/* ---------- 8. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 88px) 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 78% 0%, rgba(216,180,90,0.09), transparent 68%);
  pointer-events: none;
}

.page-hero .eyebrow { margin-bottom: 16px; }

.page-title {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.page-title small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-top: 16px;
  opacity: 0.65;
}

.page-desc {
  max-width: 62ch;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.9;
}

/* ---------- 9. Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(165deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--line);
  padding: 32px 30px;
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.card:hover {
  border-color: var(--line-mid);
  transform: translateY(-3px);
  background: linear-gradient(165deg, #1a221f, var(--bg-card));
}

.card:hover::before { opacity: 0.9; }

.card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.card-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-2);
  margin: 0;
}

/* Feature card with glyph */
.feature-glyph {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--gold);
  opacity: 0.9;
}

/* ---------- 10. Photo placeholders & figures ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.photo:hover img { transform: scale(1.035); }

.photo--wide { aspect-ratio: 16 / 9; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--banner { aspect-ratio: 21 / 9; }

.photo figcaption,
.photo-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 22px 18px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(234,230,220,0.9);
  background: linear-gradient(transparent, rgba(6,8,7,0.88));
  pointer-events: none;
}

.photo-cap b { display: block; font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.1em; margin-bottom: 3px; }
.photo-cap span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--text-3); }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.gallery > *:nth-child(1) { grid-column: span 4; }
.gallery > *:nth-child(2) { grid-column: span 2; }
.gallery > *:nth-child(3) { grid-column: span 2; }
.gallery > *:nth-child(4) { grid-column: span 4; }

/* ---------- 11. Data table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 400;
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--line-mid);
}

.data-table td {
  padding: 15px 16px 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}

.data-table td:first-child { color: var(--text); }
.data-table tr:last-child td { border-bottom: 0; }

.tag {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line-mid);
  color: var(--gold);
  white-space: nowrap;
}

.tag--jade { color: var(--jade); border-color: rgba(95,160,140,0.35); }
.tag--dim { color: var(--text-3); border-color: var(--line); }

/* ---------- 12. Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-deep), var(--line) 30%, var(--line) 90%, transparent);
}

.tl-item {
  position: relative;
  padding-bottom: 38px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold);
  background: var(--bg);
  transform: rotate(45deg);
}

.tl-item.is-key::before { background: var(--gold); box-shadow: 0 0 14px rgba(216,180,90,0.6); }

.tl-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
}

.tl-title { font-size: 18px; margin-bottom: 8px; letter-spacing: 0.04em; }
.tl-text { font-size: 14.5px; color: var(--text-2); line-height: 1.8; margin: 0; }

/* ---------- 13. Ming banner ---------- */
.ming-banner {
  position: relative;
  border: 1px solid var(--line-mid);
  background:
    radial-gradient(ellipse 70% 120% at 82% 50%, rgba(216,180,90,0.13), transparent 66%),
    linear-gradient(120deg, #141a17, #0e1210);
  padding: 56px;
  overflow: hidden;
}

.ming-banner::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  border-right: 1px solid var(--line-mid);
  border-top: 1px solid var(--line-mid);
  transform: rotate(45deg) translate(78px, -78px);
  opacity: 0.6;
}

.ming-banner .eyebrow { color: var(--gold); }

/* ---------- 14. Guide layout ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 64px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.toc a {
  display: block;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.5;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--gold); padding-left: 6px; }

.toc-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-deep);
  margin-right: 8px;
}

.guide-body > section {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.guide-body > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.guide-body h2 {
  font-size: 27px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  scroll-margin-top: calc(var(--header-h) + 32px);
}

.guide-body h2 .h2-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 12px;
  opacity: 0.8;
}

.guide-body h3 {
  font-size: 17.5px;
  margin: 32px 0 12px;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.guide-body p { color: var(--text-2); font-size: 15.2px; line-height: 1.9; }
.guide-body li { color: var(--text-2); font-size: 15px; line-height: 1.85; }
.guide-body strong { color: var(--text); font-weight: 600; }

.guide-lead {
  font-size: 16.5px !important;
  color: var(--text) !important;
  padding-bottom: 26px;
  border-bottom: 1px dashed var(--line-mid);
  margin-bottom: 26px !important;
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 2px; margin: 26px 0; }

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child { border-bottom: 0; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--line-mid);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  letter-spacing: 0;
  align-self: start;
}

.step h4 { font-size: 16.5px; margin-bottom: 7px; letter-spacing: 0.04em; }
.step p { font-size: 14.6px; margin: 0; }

/* Callout */
.callout {
  border-left: 2px solid var(--gold);
  background: rgba(216, 180, 90, 0.045);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.8;
}

.callout b { color: var(--gold-bright); }

.callout--danger { border-left-color: var(--crimson); background: rgba(178, 58, 51, 0.06); }
.callout--danger b { color: #e08b85; }

.callout--jade { border-left-color: var(--jade); background: rgba(95, 160, 140, 0.05); }
.callout--jade b { color: var(--jade); }

/* Command table */
.cmd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
}

.cmd-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 400;
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--line-mid);
}

.cmd-table td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
  font-size: 14px;
}

.cmd-table tr:hover td { background: rgba(216,180,90,0.025); }

.cmd-table code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-bright);
  background: rgba(216,180,90,0.07);
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

/* 窄屏下允许长指令换行，避免撑破表格 */
@media (max-width: 760px) {
  .cmd-table code {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12.5px;
    padding: 2px 5px;
  }
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--gold-bright);
  background: rgba(216,180,90,0.07);
  padding: 2px 6px;
  border-radius: 2px;
}

pre {
  background: #0a0d0c;
  border: 1px solid var(--line);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 20px 0;
}

pre code { background: none; padding: 0; color: inherit; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  padding: 18px 30px 18px 0;
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--text);
  list-style: none;
  position: relative;
  letter-spacing: 0.03em;
  transition: color 0.25s var(--ease);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary { color: var(--gold-bright); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq .faq-a {
  padding: 0 40px 20px 0;
  color: var(--text-2);
  font-size: 14.8px;
  line-height: 1.85;
}

/* ---------- 15. Join page ---------- */
.join-card {
  border: 1px solid var(--line-mid);
  background: linear-gradient(160deg, #171e1b, #101412);
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.join-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(216,180,90,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(216,180,90,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}

.ip-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line-mid);
  margin: 26px 0;
}

.ip-value {
  font-family: var(--font-mono);
  font-size: clamp(18px, 3vw, 26px);
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  transition: all 0.25s var(--ease);
}

.copy-btn:hover { background: var(--gold); color: #10130f; border-color: var(--gold); }
.copy-btn.is-done { background: var(--jade); border-color: var(--jade); color: #06110d; }

.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  margin: 0;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list span:first-child { color: var(--text-3); font-size: 13px; }
.spec-list span:last-child { color: var(--text); font-family: var(--font-mono); font-size: 13.5px; }

/* ---------- 16. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 34px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3));
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 18px; }

.footer-desc {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.8;
  max-width: 34ch;
  margin: 0;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 400;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 5px 0;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-col a:hover { color: var(--gold); transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.footer-bottom p { margin: 0; }

/* ---------- 17. Reveal animation ---------- */
.reveal { opacity: 0; }

.reveal.is-in {
  animation: revealUp 0.85s var(--ease) forwards;
}

@keyframes revealUp {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
  .reveal.is-in { animation: none; }
}

/* ---------- 18. Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .guide-layout { grid-template-columns: 200px 1fr; gap: 44px; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: rgba(9, 12, 11, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }

  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a::after { display: none; }
  .nav a.is-active { color: var(--gold); }

  .nav-toggle { display: grid; }
  .header-cta { display: none; }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }

  .hero {
    display: block;
    min-height: auto;
    padding-top: calc(var(--header-h) + 72px);
  }
  .hero-inner { padding-bottom: 48px; }
  .hero-stats { position: static; margin-top: 40px; }
  .hero-stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-cell { min-width: 0; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
  .stat-cell:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .stat-value { font-size: 20px; }
  .stat-value small { font-size: 11px; }

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

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery > *:nth-child(n) { grid-column: span 1; }
  .gallery > *:nth-child(1) { grid-column: span 2; }

  .ming-banner { padding: 36px 28px; }

  .guide-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
  }
  .toc-title { width: 100%; margin-bottom: 8px; }
  .toc a { padding: 5px 0; font-size: 12.5px; }
  .toc a.is-active { padding-left: 0; }

  .page-hero { padding: calc(var(--header-h) + 56px) 0 48px; }
}

@media (max-width: 620px) {
  .wrap, .wrap-narrow, .header-inner, .hero-inner, .hero-stats-inner { width: calc(100% - 36px); }

  body { font-size: 15.5px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery > *:nth-child(1) { grid-column: span 1; }

  .hero-title { letter-spacing: 0.02em; }
  .hero-title span { letter-spacing: 0.4em; }

  .card { padding: 26px 22px; }
  .join-card { padding: 28px 22px; }
  .ming-banner { padding: 28px 22px; }

  .timeline { padding-left: 26px; }
  .tl-item::before { left: -26px; }

  .step { grid-template-columns: 36px 1fr; gap: 14px; }
  .step::before { width: 30px; height: 30px; font-size: 11px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .data-table, .cmd-table { font-size: 13px; }
  .data-table th, .data-table td, .cmd-table th, .cmd-table td { padding-right: 10px; }

  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
