/* =========================================================
   自由国度 · 页面层
   ========================================================= */

/* ========== 首屏 ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(48px, 8vh, 96px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -6% 0 -6% 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  /* 滚动进度由 JS 写入 --p，反向滚动即回落 */
  transform: translate3d(0, calc(var(--p, 0) * -5%), 0) scale(calc(1.02 + var(--p, 0) * 0.05));
  will-change: transform;
  animation: heroDrift 34s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { filter: saturate(1) brightness(1); }
  to   { filter: saturate(1.04) brightness(1.03); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 16, 13, 0.86) 0%, rgba(10, 16, 13, 0.5) 32%, rgba(10, 16, 13, 0.34) 58%, rgba(10, 16, 13, 0.95) 100%),
    linear-gradient(100deg, rgba(10, 16, 13, 0.9) 0%, rgba(10, 16, 13, 0.42) 46%, rgba(10, 16, 13, 0) 76%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: rgba(235, 228, 211, 0.72);
  margin-bottom: clamp(16px, 3vh, 26px);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 12vw, 148px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
}
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.32em) rotate(2deg);
  animation: chIn 1.05s var(--ease) forwards;
  animation-delay: calc(0.1s + var(--i) * 0.09s);
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
}
@keyframes chIn {
  to { opacity: 1; transform: none; }
}

.hero-en {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(235, 228, 211, 0.5);
  text-transform: uppercase;
}

.hero-copy {
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  max-width: 30em;
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.95;
  color: rgba(235, 228, 211, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 3.6vh, 34px);
}

.hero-addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: clamp(22px, 3.4vh, 34px);
  padding-top: 18px;
  border-top: 1px solid rgba(235, 228, 211, 0.2);
  max-width: 560px;
}
.hero-addr .label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(235, 228, 211, 0.55);
}
.hero-addr .ip {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.9vw, 20px);
  letter-spacing: 0.04em;
  color: var(--paper);
}
.hero-addr button {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid rgba(216, 163, 90, 0.4);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero-addr button:hover { color: #f0c88f; border-color: #f0c88f; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 54px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(235, 228, 211, 0.55);
}
.scroll-cue .bar {
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, rgba(235, 228, 211, 0.55), rgba(235, 228, 211, 0));
  transform-origin: top;
  animation: cueDrop 2.4s var(--ease-in-out) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); opacity: 0; }
  30% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(6px); opacity: 0.2; }
}
@media (max-width: 720px) {
  .scroll-cue { display: none; }
}

/* ========== 一句话定位带 ========== */
.banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  padding: 26px 0;
}
.banner p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(235, 228, 211, 0.9);
  text-align: center;
  text-wrap: balance;
}
.banner p b { color: var(--gold); font-weight: 700; }

/* ========== 世界掠影：轮播 ========== */
.viewer {
  margin-top: clamp(28px, 4vw, 44px);
  position: relative;
  border: 1px solid var(--line);
  background: var(--ink-3);
}

.viewer-track {
  display: flex;
  width: 100%;
  transition: transform 0.85s var(--ease-in-out);
}

.viewer-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.viewer-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
.viewer.is-idle .viewer-slide img { transform: scale(1); }

.viewer-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  padding: clamp(16px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(10, 16, 13, 0) 0%, rgba(10, 16, 13, 0.78) 62%, rgba(10, 16, 13, 0.94) 100%);
  font-size: 13px;
  color: rgba(235, 228, 211, 0.72);
}
.viewer-slide figcaption strong {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.9vw, 20px);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.06em;
}
.viewer-slide figcaption time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.viewer-ui {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(14px, 2vw, 22px);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

.viewer-btn {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
  flex: 0 0 auto;
}
.viewer-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(216, 163, 90, 0.08); }
.viewer-btn svg { width: 18px; height: 18px; }

.viewer-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.viewer-dots button {
  width: 26px;
  height: 44px;
  display: grid;
  place-items: center;
}
.viewer-dots button span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(235, 228, 211, 0.26);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.viewer-dots button[aria-selected="true"] span { background: var(--gold); transform: scaleY(2); }

.viewer-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  min-width: 46px;
  text-align: right;
}

.viewer-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(216, 163, 90, 0.6);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* ========== 服务器信息 ========== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
}
@media (min-width: 900px) {
  .info-grid { grid-template-columns: 1.05fr 1fr; align-items: start; }
}

.info-intro .title-xl { max-width: 15em; }

.spec-list {
  border-top: 1px solid var(--line-dark);
}
.spec-row {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 8px 16px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.spec-row.is-in { opacity: 1; transform: none; }
.spec-row dt {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(10, 16, 13, 0.5);
}
.spec-row dd {
  margin: 0;
  font-size: clamp(14px, 1.5vw, 15.5px);
  color: var(--ink);
  line-height: 1.6;
  min-width: 0;
}
.spec-row dd.mono {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 0.03em;
  word-break: break-all;
}
.spec-row dd .note {
  display: block;
  font-size: 12.5px;
  color: rgba(10, 16, 13, 0.52);
  margin-top: 3px;
}
@media (max-width: 520px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}

.info-side {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}
.info-side .side-label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(235, 228, 211, 0.55);
  margin: 0 0 12px;
}
.info-side .side-ip {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.3vw, 22px);
  line-height: 1.5;
  word-break: break-all;
  color: var(--paper);
  margin: 0 0 18px;
}
.info-side .btn { width: 100%; min-height: 48px; }
.info-side .side-hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(235, 228, 211, 0.6);
}
.info-side .side-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: rgba(235, 228, 211, 0.72);
}
.info-side .side-row b {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ========== 三入口 ========== */
.entries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: clamp(30px, 4vw, 48px);
}
@media (min-width: 640px) {
  .entries { grid-template-columns: repeat(3, 1fr); }
}

.entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.entry::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  background: var(--accent, var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.entry:hover::after,
.entry:focus-visible::after { transform: scaleX(1); }
.entry:hover { background: #e4dac6; }

.entry .entry-icon {
  width: 34px; height: 34px;
  color: var(--accent, var(--gold-deep));
}
.entry h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.entry p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(10, 16, 13, 0.62);
}
.entry .entry-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(10, 16, 13, 0.48);
}
.entry .arrow {
  width: 20px; height: 20px;
  color: var(--accent, var(--gold-deep));
  transition: transform 0.4s var(--ease);
}
.entry:hover .arrow { transform: translateX(5px); }

.entry--notice { --accent: var(--gold-deep); }
.entry--report { --accent: var(--ember); }
.entry--idea { --accent: var(--moss); }

/* ========== 世界页：横幅 ========== */
.world-hero {
  position: relative;
  min-height: 62vh;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(40px, 7vh, 80px);
  overflow: hidden;
  isolation: isolate;
}
.world-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  z-index: 0;
  transform: translate3d(0, calc(var(--p, 0) * -4%), 0) scale(calc(1.03 + var(--p, 0) * 0.04));
}
.world-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 16, 13, 0.88) 0%, rgba(10, 16, 13, 0.4) 46%, rgba(10, 16, 13, 0.96) 100%),
    linear-gradient(90deg, rgba(10, 16, 13, 0.7), rgba(10, 16, 13, 0.1));
}
.world-hero .wrap { position: relative; z-index: 2; }

/* ========== 世界页：画廊 ========== */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-3);
  text-align: left;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.05s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.96);
}
.shot:hover img { transform: scale(1.07); filter: saturate(1.06); }
.shot .shot-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px clamp(16px, 2.4vw, 24px);
  background: linear-gradient(180deg, rgba(10, 16, 13, 0) 0%, rgba(10, 16, 13, 0.86) 70%);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  color: rgba(235, 228, 211, 0.78);
  font-size: 12.5px;
}
.shot .shot-cap strong {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.shot .shot-cap time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}

/* ========== 世界页：时间轴 ========== */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(30px, 4vw, 46px);
  --axis-x: calc(150px + clamp(20px, 3vw, 42px));
}
@media (min-width: 780px) {
  .timeline { grid-template-columns: 150px 1px 1fr; column-gap: clamp(20px, 3vw, 42px); }
}

.tl-item { display: contents; }

.tl-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--gold);
  padding: 22px 0 0;
}
@media (max-width: 779px) {
  .tl-time { padding: 0 0 6px; }
}

.tl-axis {
  display: none;
}

/* 桌面端点与点之间由一条贯通的轴线相连 */
@media (min-width: 780px) {
  .timeline {
    position: relative;
  }
  .timeline::before {
    content: "";
    position: absolute;
    left: var(--axis-x);
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(235, 228, 211, 0.18);
  }
  .timeline::after {
    content: "";
    position: absolute;
    left: var(--axis-x);
    top: 6px;
    width: 1px;
    height: var(--h, 0%);
    background: var(--gold);
    transition: height 0.4s var(--ease);
  }
  .tl-axis { display: block; }
}

.tl-body {
  padding: clamp(14px, 2vw, 22px) 0 clamp(26px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.tl-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tl-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 40em;
}
@media (max-width: 779px) {
  .tl-body {
    position: relative;
    padding-left: 22px;
    border-left: 1px solid rgba(235, 228, 211, 0.18);
  }
  .tl-body::before {
    content: "";
    position: absolute;
    left: -4px; top: 26px;
    width: 7px; height: 7px;
    background: var(--gold);
  }
}

/* ========== 加入页 ========== */
.join-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
}
@media (min-width: 900px) {
  .join-intro { grid-template-columns: 1fr 0.85fr; align-items: center; }
}

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--line);
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 6px 18px;
  padding: clamp(20px, 2.6vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 6px;
}
.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 36em;
}
.step code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 1px 6px;
  background: rgba(216, 163, 90, 0.12);
  color: var(--gold);
  letter-spacing: 0.02em;
  word-break: break-all;
}

.joincard {
  border: 1px solid var(--line);
  background: var(--ink-3);
  padding: clamp(22px, 3vw, 32px);
  border-radius: 14px;
}
.joincard h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.joincard .sub {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.joincard .ip {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.2vw, 21px);
  word-break: break-all;
  line-height: 1.55;
  color: var(--paper);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.joincard .btn { width: 100%; margin-top: 18px; }
.joincard dl {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.joincard .kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}
.joincard .kv dt { color: var(--text-dim); }
.joincard .kv dd {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--gold);
  text-align: right;
}

/* FAQ */
.faq {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 800px) {
  .faq { grid-template-columns: repeat(2, 1fr); }
}
.qa {
  background: var(--paper);
  padding: clamp(20px, 2.8vw, 28px);
}
.qa h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.qa p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(10, 16, 13, 0.62);
}

/* ========== 灯箱 ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9992;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6, 10, 8, 0.9);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open { display: grid; opacity: 1; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82svh;
  object-fit: contain;
  transform: scale(0.94);
  transition: transform 0.45s var(--ease);
  border: 1px solid var(--line-strong);
}
.lightbox.is-open img { transform: none; }
.lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 26px);
  right: clamp(14px, 3vw, 26px);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-cap {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vw, 34px);
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(235, 228, 211, 0.7);
  text-align: center;
}

/* ========== 页尾行动带 ========== */
.cta-band {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(46px, 7vw, 84px) 0;
}
.cta-band .title-xl { max-width: 20em; }
.cta-band .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

/* ========== 主界面板块直达按钮 ========== */
.board-strip {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.board-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 880px) {
  .board-strip-inner {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
}
.strip-label {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  white-space: nowrap;
}
.board-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
@media (min-width: 620px) {
  .board-links { grid-template-columns: repeat(3, 1fr); }
}

.board-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(235, 228, 211, 0.9);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.board-btn .b-dot {
  width: 6px; height: 6px;
  background: var(--accent, var(--gold));
  flex: 0 0 auto;
}
.board-btn .b-arrow {
  margin-left: auto;
  width: 18px; height: 18px;
  color: var(--accent, var(--gold));
  transition: transform 0.4s var(--ease);
}
.board-btn:hover {
  border-color: var(--accent, var(--gold));
  background: rgba(235, 228, 211, 0.05);
  color: var(--text);
}
.board-btn:hover .b-arrow { transform: translateX(4px); }

.board-btn--notice { --accent: var(--gold); }
.board-btn--report { --accent: var(--ember); }
.board-btn--idea { --accent: var(--moss); }

/* ========== 建设阶段时间轴 ========== */
.tl-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.tl-status::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--moss);
}
.tl-status--now { color: var(--gold); }
.tl-status--now::before { background: var(--gold); }

/* ========== 站外链接（服务器列表页） ========== */
.spec-link {
  font-size: 14px;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(169, 116, 52, 0.45);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  word-break: break-all;
}
.spec-link:hover { color: var(--ink); border-color: var(--ink); }

.spec-link--light {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
  border-bottom-color: rgba(216, 163, 90, 0.45);
}
.spec-link--light:hover { color: var(--paper); border-color: var(--paper); }

/* ========== 首屏板块按钮（第一眼可见） ========== */
.hero-boards {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  max-width: 620px;
}
.hero-boards .board-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(10, 16, 13, 0.42);
}
.hero-boards .board-btn .b-arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
@media (max-width: 460px) {
  .hero-boards { gap: 8px; }
  .hero-boards .board-btn {
    padding: 0 10px;
    font-size: 12.5px;
    gap: 8px;
  }
  .hero-boards .b-arrow { display: none; }
}

/* 矮屏收紧首屏，保证三个按钮不用滚动就能看到 */
@media (max-height: 700px) {
  .hero { padding-bottom: 26px; }
  .hero-title { font-size: clamp(44px, 10vw, 104px); }
  .hero-copy { margin-top: 12px; line-height: 1.8; }
  .hero-actions { margin-top: 16px; }
  .hero-addr { margin-top: 16px; padding-top: 12px; }
  .hero-boards { margin-top: 12px; }
}

/* ========== 圆角统一：所有方框与按钮都做收角 ========== */
.btn { border-radius: 10px; }
.addr-pill { border-radius: 999px; }
.toast { border-radius: 10px; }
.board-btn { border-radius: 10px; }
.viewer-btn { border-radius: 8px; }
.lightbox-close { border-radius: 8px; }
.lightbox img { border-radius: 12px; }

.viewer {
  border-radius: 14px;
  overflow: hidden;
}
.viewer-slide img { border-radius: 14px 14px 0 0; }

.entries {
  border-radius: 14px;
  overflow: hidden;
}

.shot {
  border-radius: 12px;
  overflow: hidden;
}

.faq {
  border-radius: 14px;
  overflow: hidden;
}

.step code { border-radius: 4px; }
.joincard .ip { border-radius: 6px; }

/* ========== 教程截图 ========== */
.step-shot {
  display: block;
  width: 100%;
  max-width: 660px;
  margin: 14px 0 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-3);
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease);
}
.step-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s var(--ease);
}
.step-shot:hover { border-color: var(--gold); }
.step-shot:hover img { transform: scale(1.015); }

/* =========================================================
   移动端适配（窄屏优先优化）
   ========================================================= */
@media (max-width: 640px) {
  body { font-size: 15.5px; line-height: 1.72; }
  .site-header {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .wrap {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .section { padding: 52px 0; }
  .kicker { margin-bottom: 16px; letter-spacing: 0.14em; }
  .nav-link { padding: 10px 0; }
  .title-xl { font-size: clamp(26px, 8vw, 34px); line-height: 1.28; }
  .lede { font-size: 14.5px; line-height: 1.8; margin-top: 14px; }

  /* 首屏：压缩纵向节奏，保证按钮不出首屏 */
  .hero {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 22px;
  }
  .hero-meta { gap: 6px 12px; font-size: 11.5px; margin-bottom: 14px; }
  .hero-title { font-size: clamp(46px, 13vw, 68px); }
  .hero-en { font-size: 10px; letter-spacing: 0.24em; }
  .hero-copy { font-size: 14px; line-height: 1.8; margin-top: 12px; max-width: 26em; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }
  .hero-actions .btn { min-height: 46px; padding: 0 14px; font-size: 13px; }
  .hero-actions .btn--primary { grid-column: 1 / -1; }
  .hero-addr { margin-top: 14px; padding-top: 12px; gap: 6px 10px; }
  .hero-addr .label { font-size: 10.5px; }
  .hero-addr .ip { font-size: 15px; }
  .hero-addr button { padding: 6px 2px; min-height: 34px; }
  .hero-boards { gap: 8px; margin-top: 12px; max-width: none; }
  .hero-boards .board-btn { min-height: 44px; padding: 0 10px; font-size: 12.5px; }

  /* 定位带 */
  .banner { padding: 18px 0; }
  .banner p { font-size: 15px; line-height: 1.7; }

  /* 世界页横幅 */
  .world-hero { padding-top: calc(var(--header-h) + 30px); padding-bottom: 40px; }
  .world-hero .title-xl { font-size: clamp(26px, 8.2vw, 36px); }
  .world-hero .lede { font-size: 14px; }

  /* 轮播 */
  .viewer { margin-top: 20px; }
  .viewer-slide figcaption {
    padding: 14px 14px 16px;
    font-size: 12px;
    gap: 4px 10px;
  }
  .viewer-slide figcaption strong { font-size: 14.5px; }
  .viewer-ui { padding: 10px 12px; gap: 8px; }
  .viewer-btn { width: 44px; height: 44px; }
  .viewer-dots { gap: 4px; }
  .viewer-dots button { width: 18px; height: 44px; }
  .viewer-dots button span { width: 14px; }
  .viewer-count { font-size: 11px; min-width: 40px; }

  /* 服务器信息 */
  .info-side { padding: 20px; border-radius: 12px; }
  .info-side .side-ip { font-size: 15.5px; }
  .info-side .btn { min-height: 46px; }
  .spec-row { padding: 15px 0; }
  .spec-row dt { font-size: 12px; }
  .spec-row dd.mono { font-size: 15px; }

  /* 三入口 */
  .entries { margin-top: 24px; }
  .entry { padding: 20px; gap: 10px; }
  .entry h3 { font-size: 18px; }
  .entry p { font-size: 13px; }

  /* 画廊与时间轴 */
  .gallery { gap: 12px; margin-top: 20px; }
  .shot { aspect-ratio: 4 / 3; }
  .shot .shot-cap { padding: 12px 14px; font-size: 12px; }
  .shot .shot-cap strong { font-size: 14.5px; }
  .timeline { margin-top: 22px; }
  .tl-time { font-size: 11.5px; padding: 0 0 4px; }
  .tl-body { padding: 10px 0 22px 18px; }
  .tl-body h3 { font-size: 17px; }
  .tl-body p { font-size: 13.5px; }

  /* 加入页 */
  .join-intro { gap: 24px; }
  .joincard { padding: 20px; border-radius: 12px; }
  .steps { margin-top: 24px; }
  .step { grid-template-columns: 38px 1fr; gap: 4px 12px; padding: 18px 0; }
  .step::before { font-size: 12px; padding-top: 4px; }
  .step h3 { font-size: 16.5px; }
  .step p { font-size: 13px; }
  .step-shot { margin-top: 10px; border-radius: 10px; }
  .faq { margin-top: 22px; }
  .qa { padding: 18px; }

  /* 页脚 */
  .site-footer { padding: 32px 0 24px; }
  .footer-grid { gap: 24px; }
  .footer-col a { padding: 6px 0; }
  .footer-bottom {
    margin-top: 26px;
    padding-top: 16px;
    font-size: 12px;
    gap: 8px;
  }
  .footer-bottom code { display: block; }

  /* 收尾行动带 */
  .cta-band { padding: 42px 0; }
  .cta-band .row { margin-top: 20px; gap: 8px; }
  .cta-band .row .btn { flex: 1 1 140px; }

  /* 浮层与灯箱 */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 18px;
    width: auto;
    transform: translateY(16px);
    text-align: center;
  }
  .toast.is-on { transform: none; }
  .lightbox { padding: 14px; }
  .lightbox img { max-height: 76svh; }
  .lightbox-cap { bottom: 16px; width: 86%; font-size: 11.5px; line-height: 1.6; }
}

/* 超窄屏与横屏补充 */
@media (max-width: 380px) {
  .nav { gap: 9px; }
  .nav-link { font-size: 12px; }
  .brand .mark { width: 24px; height: 24px; }
  .brand-text strong { font-size: 16px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .btn--ghost { min-height: 44px; }
  .board-btn .b-arrow { display: none; }
  .viewer-count { display: none; }
  .step { grid-template-columns: 1fr; }
  .step::before { padding-top: 0; }
}

@media (max-height: 640px) and (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 16px); padding-bottom: 16px; }
  .hero-title { font-size: clamp(40px, 11vw, 56px); }
  .hero-copy { display: none; }
  .hero-meta { margin-bottom: 10px; }
}
