:root {
  --paper: #fbfaf7;
  --paper-alt: #f1f3ed;
  --ink: #0d1811;
  --text: #17231b;
  --muted: #5c6b61;
  --line: #e2e6dd;
  --blue: #1f7ae0;
  --blue-dark: #1664bd;
  --blue-deep: #0b4f95;
  --blue-soft: #e8f1fc;
  --grass: #5a9b44;
  --ok: #3fbf6f;
  --bad: #ef7b70;
  --shadow: 0 20px 50px rgba(18, 35, 24, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  font: 16px/1.75 "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); }
a:hover { text-decoration: none; }

:focus-visible { outline: 3px solid #58b6ff; outline-offset: 3px; }
#join :focus-visible { outline-color: #fff; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

/* 页头 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  background: linear-gradient(180deg, rgba(5, 13, 8, 0.62), rgba(5, 13, 8, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.site-header.scrolled {
  color: var(--text);
  background: rgba(251, 250, 247, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(18, 35, 24, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: currentColor;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  border-radius: 7px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  min-width: calc(4em + 38px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(9, 20, 13, 0.22);
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.header-login:hover { background: rgba(255, 255, 255, 0.14); }
[data-account-slot] { position: relative; flex: 0 0 202px; width: 202px; height: 44px; }
.header-account { display: flex; align-items: center; position: relative; width: 100%; height: 44px; animation: account-appear .18s ease-out; }
@keyframes account-appear { from { opacity: 0; } to { opacity: 1; } }
.header-account > .header-login { flex: 1 1 auto; width: auto; min-width: 0; }
.header-notification-wrap { flex: 0 0 36px; width: 36px; height: 36px; margin-right: 6px; }
.header-notifications { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: inherit; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.header-notifications svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transform-origin: 50% 12%; }
.header-notifications:hover { background: rgba(23, 35, 27, 0.08); color: #3c7950; transform: translateY(-1px); }
.header-notifications:hover svg { animation: notification-ring .55s ease-in-out; }
.header-notifications[data-unread="true"]::after { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border: 2px solid #fbfaf7; border-radius: 50%; background: #e33b43; content: ""; }
@keyframes notification-ring { 0%, 100% { transform: rotate(0); } 18%, 54% { transform: rotate(12deg); } 36%, 72% { transform: rotate(-12deg); } }
.notification-preview { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; display: grid; gap: 8px; width: min(320px, calc(100vw - 32px)); padding: 12px; border: 1px solid #dce4da; border-radius: 12px; background: #fff; color: #273c2e; box-shadow: 0 8px 24px #12231820; visibility: hidden; opacity: 0; transform: translateY(-5px); transition: opacity .16s ease, transform .16s ease, visibility 0s .16s; }
.notification-preview::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 11px; content: ""; }
.notification-preview-heading { color: #718174; font-size: 11px; }
.notification-preview-list { display: grid; gap: 4px; max-height: min(360px, 55vh); overflow: auto; overscroll-behavior: contain; }
.notification-preview-list form { margin: 0; }
.notification-preview-list button { display: grid; gap: 4px; width: 100%; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.header-notification-wrap[data-open] .notification-preview-list button { animation: notification-preview-enter .2s ease-out both; }
.notification-preview-list form:nth-child(2) button { animation-delay: .02s; }
.notification-preview-list form:nth-child(3) button { animation-delay: .04s; }
.notification-preview-list button:hover { background: #f1f5ef; }
.notification-preview-list button.is-unread { background: #f1f6ef; font-weight: 600; }
.notification-preview-list button span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.5; }
.notification-preview-list time { color: #718174; font-size: 11px; font-weight: 400; }
.notification-preview-empty { margin: 0; padding: 14px 10px; color: #718174; font-size: 13px; }
.header-notifications:focus-visible, .notification-preview :is(a, button):focus-visible { outline: 2px solid #42694e; outline-offset: 2px; }
.notification-preview-all { padding: 8px 10px 2px; border-top: 1px solid #e7ece5; color: #3c7950; font-size: 12px; text-align: center; text-decoration: none; }
@keyframes notification-preview-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.header-notification-wrap[data-open] .notification-preview { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }
.header-player { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; height: 44px; color: inherit; text-decoration: none; }
.header-avatar { display: block; position: relative; width: 32px; height: 32px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: #edf3e9 url("img/logo.png") center / cover no-repeat; }
.header-avatar img { display: block; width: 32px; height: 32px; }
.header-avatar img[hidden] { display: none; }
.header-avatar img[src^="https://textures.minecraft.net/"] { position: absolute; width: 256px; max-width: none; height: auto; left: -32px; top: -32px; image-rendering: pixelated; }
.header-player-info { display: grid; min-width: 0; gap: 2px; }
.header-player-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.header-player-info > span { font-size: 11px; opacity: .8; }
.account-toggle { flex-shrink: 0; width: 28px; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.account-dropdown { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility 0s .16s; position: absolute; z-index: 30; top: 100%; right: 0; min-width: 160px; padding: 8px; border: 1px solid #dce4da; border-radius: 12px; background: #fff; color: #273c2e; box-shadow: 0 8px 24px #12231820; }
.account-dropdown form { margin: 0; }
.account-dropdown a, .account-dropdown button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: inherit; text-decoration: none; font: inherit; font-size: 13px; cursor: pointer; }
.account-dropdown button { color: #894638; }
.account-dropdown :is(a, button):hover { background: #f1f5ef; }
.header-account[data-open] .account-dropdown, .header-account:has(.header-player:focus-visible, .account-toggle:focus-visible, .account-dropdown:focus-within) .account-dropdown { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
@media (hover: hover) { .header-player:hover ~ .account-dropdown, .account-toggle:hover ~ .account-dropdown, .account-dropdown:hover { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; } }
@media (prefers-reduced-motion: reduce) {
  .header-account { animation: none; }
  .account-dropdown { transition: none; transform: none; }
  .header-notifications, .header-notifications:hover svg, .notification-preview { transition: none; animation: none; transform: none; }
  .header-notification-wrap[data-open] .notification-preview-list button { animation: none; }
}
@media (scripting: enabled) {
  [data-account-pending] > .header-account { visibility: hidden; }
  [data-account-pending]::before { content: ''; position: absolute; inset: 6px 0; border-radius: 10px; background: currentColor; opacity: .08; }
}
@media (max-width: 779px) {
  [data-account-slot] { flex-basis: 202px; width: 202px; }
  .header-player { gap: 6px; }
  .header-player-info strong { max-width: 46px; }
}
.site-header.scrolled .header-login {
  border-color: rgba(23, 35, 27, 0.14);
  background: rgba(255, 255, 255, 0.5);
}
.site-header.scrolled .header-login:hover { background: rgba(23, 35, 27, 0.06); }
@media (forced-colors: active) {
  .header-login { border-color: ButtonText; }
}
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.35s;
}
.site-header.scrolled .header-status { color: var(--muted); }
@media (min-width: 780px) and (max-width: 1023px) {
  .header-status { display: none; }
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9aa69d;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.13);
  display: inline-block;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.status-dot.online { background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 191, 111, 0.18); }
.status-dot.offline { background: var(--bad); box-shadow: 0 0 0 3px rgba(239, 123, 112, 0.18); }

#site-nav {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 20, 13, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(3, 10, 6, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled #site-nav {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(23, 35, 27, 0.1);
}
#site-nav a {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
#site-nav a:focus:not(:focus-visible) { outline: none; }
.site-header.scrolled #site-nav a { color: var(--muted); }
.nav-highlight {
  position: absolute;
  top: var(--nav-y, 4px);
  left: 0;
  width: var(--nav-w, 0px);
  height: var(--nav-h, 0px);
  transform: translateX(var(--nav-x, 0px));
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), height 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.18s ease, background-color 0.2s ease;
  pointer-events: none;
}
.nav-highlight.is-visible { opacity: 1; }
.nav-highlight.is-instant { transition: none; }
.site-header.scrolled .nav-highlight {
  background: rgba(23, 35, 27, 0.07);
}
/* 无 JS 时退回逐项 hover/focus 背景；有 JS 时只显示滑动的那一块。 */
#site-nav:not(.nav-ready) a:hover,
#site-nav:not(.nav-ready) a:focus-visible { background-color: rgba(255, 255, 255, 0.1); }
.site-header.scrolled #site-nav:not(.nav-ready) a:hover,
.site-header.scrolled #site-nav:not(.nav-ready) a:focus-visible { background-color: rgba(23, 35, 27, 0.06); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: currentColor;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.35s;
}
.site-header.scrolled .menu-toggle { border-color: rgba(23, 35, 27, 0.22); }
.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #66baff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 11px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.16s, box-shadow 0.16s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 0 var(--blue-deep), 0 16px 34px rgba(11, 79, 149, 0.3);
}
.btn-primary:hover { background: #2b86e9; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue-deep), 0 7px 18px rgba(11, 79, 149, 0.24); }
.btn-ghost {
  background: rgba(8, 18, 11, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-light {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 4px 0 rgba(4, 58, 101, 0.34), 0 14px 28px rgba(4, 42, 75, 0.16);
}
.btn-light:hover { background: #eef7ff; }
.btn-light:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(4, 58, 101, 0.34); }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 9px; font-size: 14px; }

/* 首页首屏 */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 118px 0 210px;
  overflow: hidden;
  isolation: isolate;
  background: #09140d;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: hero-drift 4.5s ease-out both;
  transform-origin: 50% 40%;
}
.hero.hero-idle .hero-bg { animation-play-state: paused; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 13, 8, 0.74) 0%, rgba(5, 13, 8, 0.3) 34%, rgba(5, 13, 8, 0.22) 54%, rgba(5, 13, 8, 0.8) 100%),
    radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(4, 10, 6, 0.52) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 170px;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0), var(--paper));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  text-align: center;
  color: #fff;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 13, 8, 0.32);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}
.kicker-block {
  width: 12px;
  height: 12px;
  background: linear-gradient(180deg, #71b95a 0 34%, #7c5c3b 34% 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.22);
}
.kicker-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.hero h1 {
  margin: 0;
  font-size: clamp(50px, 8.6vw, 108px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 0 rgba(5, 13, 8, 0.18), 0 22px 64px rgba(0, 0, 0, 0.46);
}
.hero-lede {
  margin: 20px auto 0;
  max-width: 36em;
  font-size: clamp(16px, 1.5vw, 18px);
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}
.server-ip { margin: 0; font-size: 16px; }
.server-ip strong {
  overflow-wrap: anywhere;
  font-weight: 700;
}
.hero .server-ip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  max-width: 100%;
  margin-top: 28px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  background: rgba(5, 13, 8, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 16px;
}
.server-ip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}
.hero .server-ip strong {
  color: #fff;
  font-size: clamp(19px, 2.4vw, 26px);
  letter-spacing: 0.03em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.76);
}
.hero-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93cdfb;
  box-shadow: 0 0 0 3px rgba(147, 205, 251, 0.14);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(23, 35, 27, 0.1);
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(18, 35, 24, 0.08);
  transition: opacity 0.3s, transform 0.3s, color 0.2s, background-color 0.2s;
}
.scroll-cue:hover { background: #fff; color: var(--blue-deep); }
.scroll-cue.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}
.scroll-cue-track {
  width: 28px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 122, 224, 0.16);
}
.scroll-cue-track i {
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
}

/* 区块与标题 */
section { padding: 96px 0; }
.alt {
  background: var(--paper-alt);
  border-block: 1px solid var(--line);
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 20px 48px;
  margin-bottom: 46px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.eyebrow span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 0 var(--blue-deep);
}
.intro h2, .intro h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-lede {
  margin: 0 0 4px;
  max-width: 34em;
  text-wrap: pretty;
  color: var(--muted);
}

/* 玩法 */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feature-list li {
  position: relative;
  grid-column: span 6;
  overflow: hidden;
  padding: 30px 32px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(18, 35, 24, 0.03);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, opacity 0.45s;
}
.feature-list li:nth-child(1),
.feature-list li:nth-child(4) { grid-column: span 7; }
.feature-list li:nth-child(2),
.feature-list li:nth-child(3) { grid-column: span 5; }
.feature-list li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #6db9f5);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s;
}
.feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  box-shadow: 0 3px 0 rgba(31, 122, 224, 0.14);
  transition: background-color 0.2s, transform 0.2s;
}
.icon-chip svg { width: 23px; height: 23px; }
.feature-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #e8ede6;
  transition: color 0.25s;
}
.feature-list h3 { margin: 0 0 6px; font-size: 20px; }
.feature-list p { margin: 0; color: var(--muted); }

/* 公告列表 */
.news-list {
  position: relative;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.news-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.news-list article {
  position: relative;
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 20px;
  padding: 26px 18px 26px 34px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s, transform 0.25s, opacity 0.45s;
}
.news-list article::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 34px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--paper-alt);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.news-list time,
.long-term {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.news-list h3 { margin: 0; font-size: 18px; }
.news-list p { margin: 3px 0 0; color: var(--muted); }
.long-term { grid-column: 1; }
.tag {
  padding: 2px 10px;
  border: 1px solid rgba(31, 122, 224, 0.32);
  border-radius: 999px;
  background: rgba(31, 122, 224, 0.06);
  color: var(--blue-dark);
  font-size: 12px;
  white-space: nowrap;
}

/* 截图布局 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px 24px;
  align-items: start;
}
.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #dfe5da;
  box-shadow: 0 1px 0 rgba(18, 35, 24, 0.05);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.45s;
}
.gallery-grid .wide { grid-column: 1 / -1; }
.gallery-grid figure:nth-child(2) {
  grid-column: 1 / 8;
  margin-top: 24px;
}
.gallery-grid .crop {
  grid-column: 8 / 13;
  margin-top: 74px;
}
.gallery-grid .left { grid-column: 1 / 6; margin-top: 10px; }
.gallery-grid .right { grid-column: 7 / 13; margin-top: 72px; }
.gallery-grid figure a {
  position: relative;
  display: block;
  cursor: zoom-in;
}
.gallery-grid figure a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
.gallery-grid figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1), filter 0.35s;
}
.gallery-grid .wide img { aspect-ratio: 21 / 9; }
.gallery-grid .crop img { aspect-ratio: 4 / 3; }
.gallery-grid .portrait img { aspect-ratio: 4 / 5; }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 18px 15px;
  background: linear-gradient(180deg, rgba(2, 10, 5, 0), rgba(2, 10, 5, 0.74));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.shot-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(3, 11, 6, 0.56);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s, background-color 0.2s;
}
.shot-zoom svg { width: 18px; height: 18px; }
.gallery-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* 加入服务器 */
#join {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(80% 100% at 88% 0%, rgba(92, 179, 255, 0.28), transparent 58%),
    linear-gradient(140deg, #0d63a8, #084a82 56%, #063a68);
}
#join::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.12));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}
#join > .container { position: relative; z-index: 1; }
#join .intro { border-bottom-color: rgba(255, 255, 255, 0.2); }
#join .eyebrow { color: rgba(255, 255, 255, 0.72); }
#join .eyebrow span { background: #fff; color: var(--blue-deep); box-shadow: 0 2px 0 rgba(4, 58, 101, 0.34); }
#join .section-lede { color: rgba(255, 255, 255, 0.82); }
.join-steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.join-steps::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 8%;
  right: 8%;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
}
.join-steps > li {
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s, opacity 0.45s;
}
.join-steps > li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 3px 0 rgba(4, 58, 101, 0.34);
}
.join-steps h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.join-steps p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.join-steps .btn { margin-top: 14px; }
.join-steps .server-ip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}
.join-steps .server-ip-label { color: rgba(255, 255, 255, 0.56); }
.join-steps .server-ip strong { color: #fff; font-size: 19px; letter-spacing: 0.03em; }

/* 页脚 */
.site-footer {
  background: var(--ink);
  padding: 46px 0 34px;
  color: #93a398;
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 38px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}
.footer-brand strong { display: block; font-size: 15px; letter-spacing: 0.02em; }
.footer-brand p { margin: 2px 0 0; color: #93a398; font-size: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: #bcc9bf; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-legal {
  flex-basis: 100%;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f8f84;
  font-size: 12px;
}
.footer-legal a { color: #9ec8f3; }

/* 截图弹窗 */
.image-viewer {
  width: min(1100px, 94vw);
  max-height: 94vh;
  padding: 54px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #0b170f;
  color: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}
.image-viewer::backdrop {
  background: rgba(3, 10, 5, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.image-viewer figure { margin: 0; }
.image-viewer img {
  margin: auto;
  max-height: 74vh;
  border-radius: 8px;
  object-fit: contain;
}
.image-viewer figcaption { padding-top: 14px; text-align: center; color: rgba(255, 255, 255, 0.86); }
.viewer-close {
  position: absolute;
  top: 5px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.viewer-close:hover { background: rgba(255, 255, 255, 0.12); }

/* 操作提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100vw - 32px);
  overflow-wrap: anywhere;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: #102017;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 18px 44px rgba(4, 10, 6, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 平板布局 */
@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }
  .section-lede { max-width: 38em; }
  .feature-list li,
  .feature-list li:nth-child(1),
  .feature-list li:nth-child(2),
  .feature-list li:nth-child(3),
  .feature-list li:nth-child(4) { grid-column: span 6; }
  .gallery-grid figure:nth-child(2) { grid-column: 1 / 7; }
  .gallery-grid .crop { grid-column: 7 / 13; margin-top: 56px; }
  .gallery-grid .left { grid-column: 1 / 7; }
  .gallery-grid .right { grid-column: 7 / 13; margin-top: 52px; }
}

/* 移动端布局 */
@media (max-width: 779px) {
  .menu-toggle { display: flex; }
  #site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: rgba(8, 18, 12, 0.98);
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: 0 24px 40px rgba(4, 10, 6, 0.28);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-highlight { display: none; }
  #site-nav.open { display: flex; }
  #site-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    color: #fff;
  }
  #site-nav a:active { background: rgba(255, 255, 255, 0.1); }
  .site-header.scrolled #site-nav {
    background: rgba(251, 250, 247, 0.99);
    border-top-color: var(--line);
  }
  .site-header.scrolled #site-nav a {
    color: var(--text);
    border-bottom-color: var(--line);
  }
  .site-header.scrolled #site-nav a:active { background: rgba(23, 35, 27, 0.06); }
  .hero { padding: 104px 0 190px; }
}

@media (max-width: 639px) {
  .header-inner { gap: 8px; }
  .header-inner .brand { gap: 6px; font-size: 14px; }
  [data-account-slot] { flex: 0 1 202px; min-width: 0; }
  .notification-preview { position: fixed; top: 82px; right: 16px; left: 16px; width: auto; }
  .header-inner .brand img { width: 28px; height: 28px; }
  .header-login { min-width: calc(4em + 30px); padding: 0 14px; }
  .header-status { display: none; }
  section { padding: 66px 0; }
  .intro { margin-bottom: 32px; }
  .feature-list,
  .gallery-grid,
  .join-steps { grid-template-columns: 1fr; }
  .feature-list li,
  .feature-list li:nth-child(1),
  .feature-list li:nth-child(2),
  .feature-list li:nth-child(3),
  .feature-list li:nth-child(4) { grid-column: 1 / -1; }
  .gallery-grid .wide,
  .gallery-grid figure:nth-child(2),
  .gallery-grid .crop,
  .gallery-grid .left,
  .gallery-grid .right {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .news-list article { grid-template-columns: 1fr auto; padding-left: 30px; }
  .news-list time,
  .long-term { grid-column: 1; }
  .news-list article > div { grid-column: 1 / -1; }
  .tag { grid-row: 1; grid-column: 2; }
  .hero-lede { font-size: 16px; }
  .hero .server-ip { width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 180px; min-height: 54px; padding: 0 20px; }
  .scroll-cue { bottom: 26px; }
  .join-steps::before { display: none; }
  .footer-inner { align-items: flex-start; }
  .footer-legal { font-size: 11.5px; }
}

/* 仅对支持悬停的设备启用反馈。 */
@media (hover: hover) and (pointer: fine) {
  .feature-list li:hover {
    transform: translateY(-5px);
    border-color: #c8d8ea;
    box-shadow: var(--shadow);
  }
  .feature-list li:hover::before { transform: scaleX(1); }
  .feature-list li:hover .icon-chip {
    background: #d9eafd;
    transform: translateY(-2px) rotate(-3deg);
  }
  .feature-list li:hover .feature-num { color: #cfe0f4; }
  .news-list article:hover {
    background: rgba(255, 255, 255, 0.62);
    transform: translateX(5px);
  }
  .news-list article:hover::before {
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.12);
  }
  .join-steps > li:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(3, 32, 58, 0.24);
  }
  .gallery-grid figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 54px rgba(18, 35, 24, 0.18);
  }
  .gallery-grid figure:hover img { transform: scale(1.045); }
  .gallery-grid figure:hover .shot-zoom,
  .gallery-grid figure:focus-within .shot-zoom {
    opacity: 1;
    transform: none;
  }
  .gallery-grid figure:hover .shot-zoom { background: var(--blue); }
  .btn:hover { transform: translateY(-2px); }
  .brand:hover img { transform: rotate(-6deg) scale(1.05); }
  #site-nav a:hover { color: #fff; }
  .site-header.scrolled #site-nav a:hover { color: var(--text); }
  .menu-toggle:hover { background: rgba(255, 255, 255, 0.1); }
  .site-header.scrolled .menu-toggle:hover { background: rgba(23, 35, 27, 0.06); }
  .viewer-close:hover { transform: scale(1.08); }
  .viewer-close:active { transform: scale(0.92); }
}

@media (hover: none) {
  .shot-zoom { opacity: 1; transform: none; }
}

/* 键盘用圆角内描边，鼠标与触屏点击不显示焦点框。 */
#site-nav a:focus-visible { color: #fff; outline: none; box-shadow: inset 0 0 0 2px #58b6ff; }
.site-header.scrolled #site-nav a:focus-visible { color: var(--text); }

/* 独立子页 */
.subpage { --paper: #f7f8fa; --paper-alt: #f7f8fa; --text: #202a38; --muted: #657080; --line: #e0e5ec; }
.subpage main { padding-top: 72px; min-height: 75vh; }
.subpage main > section { padding: 38px 0 88px; border: 0; background: var(--paper); color: var(--text); }
.subpage #join::before { display: none; }
.subpage .page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 34px 0 44px; }
.subpage .eyebrow, .subpage #join .eyebrow { margin: 0 0 16px; color: #5176a3; font-size: 10px; letter-spacing: .22em; }
.subpage .eyebrow span { display: none; }
.subpage h1 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.28; letter-spacing: -.045em; font-weight: 750; }
.subpage .page-description { flex: 0 1 320px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.subpage .small-label { font-size: 10px; letter-spacing: .13em; font-weight: 600; }
.subpage .world-preview { position: relative; display: grid; grid-template-columns: 1.65fr 1fr; overflow: hidden; border-radius: 22px; background: #172d43; color: #fff; }
.subpage .world-preview > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.subpage .world-preview > div { display: flex; flex-direction: column; justify-content: center; padding: 40px; background: radial-gradient(ellipse at 100% 0, #2c4763, transparent 80%); }
.subpage .world-preview .small-label { color: #b5c7d8; }
.subpage .world-preview p { margin: 24px 0 32px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.55; letter-spacing: -.03em; }
.subpage .world-preview a { width: fit-content; color: #fff; font-size: 13px; text-decoration: none; border-bottom: 1px solid #71899e; padding-bottom: 8px; }
.subpage .world-preview a span { margin-left: 20px; }
.subpage .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 56px 0 24px; }
.subpage .section-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.subpage .section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.subpage .gameplay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.subpage .gameplay-grid li { min-width: 0; padding: 28px 24px; }
.subpage .gameplay-grid li + li { border-left: 1px solid var(--line); }
.subpage .feature-top { align-items: center; margin-bottom: 26px; }
.subpage .icon-chip { width: 42px; height: 42px; border-radius: 12px; box-shadow: none; background: #edf3fa; color: #496e9a; }
.subpage .feature-num { font-size: 11px; font-weight: 500; color: #8793a2; letter-spacing: .06em; }
.subpage .gameplay-grid h3 { margin: 0 0 10px; font-size: 17px; }
.subpage .gameplay-grid p { margin: 0; font-size: 13px; line-height: 1.95; color: var(--muted); }
.subpage .page-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding: 24px 0; border-block: 1px solid var(--line); font-size: 14px; }
.subpage .page-next p { margin: 0; color: var(--muted); }
.subpage .page-next a { white-space: nowrap; text-decoration: none; font-weight: 600; }
.subpage .page-next a span { margin-left: 24px; }
.subpage .dispatch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
.subpage .dispatch-list { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.subpage .dispatch-list article { padding: 36px 40px; }
.subpage .dispatch-list article + article { border-top: 1px solid var(--line); }
.subpage .dispatch-featured { background: linear-gradient(120deg, #edf3fc, #fff 85%); }
.subpage .dispatch-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 30px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.subpage .dispatch-meta > span { color: #476c9b; }
.subpage .dispatch-list h2 { margin: 0 0 14px; font-size: 23px; letter-spacing: -.02em; }
.subpage .dispatch-featured h2 { font-size: 30px; }
.subpage .dispatch-list p { margin: 0; max-width: 38em; color: var(--muted); font-size: 14px; line-height: 1.95; }
.subpage .dispatch-list a { display: inline-flex; gap: 40px; margin-top: 30px; font-size: 13px; text-decoration: none; font-weight: 600; }
.subpage .dispatch-list h2 a { display: inline; margin: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: #b8c8db; text-underline-offset: .2em; }
.subpage .dispatch-list h2 a:hover { color: var(--blue-dark); text-decoration-color: currentColor; }
.subpage .dispatch-list h2 a span { display: inline-block; margin-left: .25em; color: var(--blue-dark); font-size: .6em; vertical-align: middle; }
.subpage .news-detail { max-width: 860px; margin-inline: auto; }
.subpage .news-return { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; font-size: 13px; text-underline-offset: .2em; }
.subpage .news-article { padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow-wrap: anywhere; }
.subpage .news-article header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.subpage .news-body { max-width: 38em; padding-top: 24px; font-size: 16px; line-height: 2; }
.subpage .news-body p { margin: 0; }
.subpage .news-contact { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.subpage .news-contact p { flex-basis: 100%; margin: 0; color: var(--muted); }
.subpage .news-contact a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.subpage code { border-radius: 4px; padding: 2px 5px; background: #edf1f6; color: #34577f; }
.subpage .town-notice { padding: 32px; border-radius: 20px; background: #eaf0eb; }
.subpage .town-notice .small-label { color: #56715f; font-size: 10px; letter-spacing: .05em; }
.subpage .town-notice h2 { margin: 26px 0 22px; color: #2d4938; font-size: 29px; line-height: 1.5; letter-spacing: -.04em; }
.subpage .town-notice p { color: #52685a; font-size: 13px; line-height: 1.95; }
.subpage .town-notice hr { border: 0; border-top: 1px solid #ccd9cf; margin: 26px 0; }
.subpage .town-notice a { color: #345e44; font-size: 12px; text-decoration: none; }
.subpage .gallery-toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-block: 16px; border-block: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.subpage .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.subpage .gallery-grid figure:nth-child(n) { grid-column: auto; margin: 0; border-radius: 16px; background: #e7ebf0; box-shadow: none; transform: none; }
.subpage .gallery-grid figure:first-child { grid-column: 1 / -1; }
.subpage .gallery-grid figure img { aspect-ratio: 16 / 10; object-fit: contain; background: #17212d; }
.subpage .gallery-grid figure:first-child img { aspect-ratio: 16 / 8; object-fit: cover; }
.subpage .gallery-grid .portrait img { aspect-ratio: 4 / 3; background: #e7ebf0; }
.subpage .gallery-grid figcaption { position: static; display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: #fff; color: var(--text); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.subpage .gallery-grid { counter-reset: photo; }
.subpage .gallery-grid figcaption::before { counter-increment: photo; content: '0' counter(photo); color: #8c97a5; font-size: 10px; }
.subpage .gallery-grid figure:hover img { transform: none; }
.subpage .shot-zoom { opacity: 1; transform: none; border-radius: 50%; background: rgba(15, 28, 43, .65); }
.subpage .gallery-note { margin-top: 26px; text-align: center; font-size: 12px; }
.subpage .connect-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; }
.subpage .connect-card { padding: 38px 40px; border-radius: 22px; color: #fff; background: radial-gradient(ellipse at 100% 0, #315477, transparent 75%), #172d43; }
.subpage .connection-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: #c4d2e1; }
.subpage .edition-label { border: 1px solid #6e849c; border-radius: 6px; padding: 3px 8px; font-size: 10px; letter-spacing: .08em; }
.subpage .connect-caption { margin: 44px 0 8px; font-size: 13px; color: #c4d2e1; }
.subpage .connect-card .server-ip strong { font-size: clamp(26px, 3.3vw, 44px); line-height: 1.35; font-weight: 600; letter-spacing: -.035em; }
.subpage .connect-card .btn { min-height: 48px; gap: 36px; margin-top: 30px; padding: 0 22px; border-radius: 9px; box-shadow: none; font-size: 13px; background: #fff; color: #233f5d; transform: none; }
.subpage .connection-note { margin: 18px 0 0; font-size: 11px; color: #c4d2e1; }
.subpage .community-card { padding: 36px; border: 1px solid #dbe3ee; border-radius: 22px; background: #eaf0f8; }
.subpage .community-card .small-label { color: #5b779a; }
.subpage .community-card h2 { margin: 26px 0 12px; font-size: 27px; letter-spacing: -.03em; }
.subpage .community-card p { color: #5d718a; font-size: 13px; line-height: 1.9; }
.subpage .community-card .qq-number { margin-top: 24px; font-size: 11px; }
.subpage .qq-number strong { margin-left: 8px; color: #2d4d72; font-size: 17px; font-weight: 600; }
.subpage .community-card a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 16px; border-top: 1px solid #cbd6e5; padding-top: 15px; font-size: 13px; text-decoration: none; }
.subpage .connection-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 0; padding: 0; list-style: none; }
.subpage .connection-steps li { border-top: 1px solid #cbd5e1; padding-top: 20px; }
.subpage .connection-steps li > span { color: #607d9f; font-size: 11px; letter-spacing: .1em; }
.subpage .connection-steps h3 { margin: 16px 0 10px; font-size: 17px; }
.subpage .connection-steps p { margin: 0; max-width: 24em; color: var(--muted); font-size: 13px; line-height: 1.95; }
.subpage #join :focus-visible { outline-color: #58b6ff; }
@media (max-width: 1000px) {
  .subpage .gameplay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subpage .gameplay-grid li:nth-child(3) { border-left: 0; }
  .subpage .gameplay-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .subpage .world-preview > div { padding: 28px; }
  .subpage .dispatch-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
  .subpage .dispatch-list article, .subpage .town-notice { padding: 28px; }
  .subpage .connect-card, .subpage .community-card { padding: 28px; }
}
@media (max-width: 779px) {
  .subpage .page-heading { align-items: flex-start; flex-direction: column; gap: 22px; padding-top: 24px; }
  .subpage .page-description { flex: auto; max-width: 36em; }
  .subpage .dispatch-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .subpage .connection-top { align-items: flex-start; flex-direction: column; }
  .subpage .connect-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
  .subpage .community-card h2 { font-size: 23px; }
}
@media (max-width: 639px) {
  .subpage .container { padding-inline: 20px; }
  .subpage main > section { padding: 24px 0 56px; }
  .subpage h1 { font-size: clamp(30px, 8.6vw, 43px); }
  .subpage .page-heading { padding-bottom: 30px; }
  .subpage .page-description { font-size: 13px; }
  .subpage .world-preview { grid-template-columns: 1fr; border-radius: 16px; }
  .subpage .world-preview > img { min-height: 0; aspect-ratio: 16 / 10; }
  .subpage .world-preview > div { padding: 28px; }
  .subpage .world-preview p { margin-block: 18px 24px; font-size: 27px; }
  .subpage .section-heading { flex-direction: column; gap: 8px; margin-top: 36px; }
  .subpage .section-heading h2 { font-size: 21px; }
  .subpage .gameplay-grid { grid-template-columns: 1fr; }
  .subpage .gameplay-grid li + li { border-left: 0; border-top: 1px solid var(--line); }
  .subpage .gameplay-grid li { padding: 24px; }
  .subpage .feature-top { margin-bottom: 18px; }
  .subpage .page-next { align-items: flex-start; flex-direction: column; font-size: 13px; }
  .subpage .dispatch-layout, .subpage .connect-layout { grid-template-columns: 1fr; }
  .subpage .dispatch-list article, .subpage .town-notice { padding: 26px; }
  .subpage .dispatch-featured h2 { font-size: 25px; }
  .subpage .dispatch-meta { margin-bottom: 24px; font-size: 10px; }
  .subpage .town-notice h2 br { display: none; }
  .subpage .town-notice h2 { font-size: 25px; }
  .subpage .gallery-toolbar { flex-direction: column; gap: 8px; font-size: 10px; }
  .subpage .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .subpage .gallery-grid figure:first-child img { aspect-ratio: 16 / 10; }
  .subpage .gallery-grid .portrait img { aspect-ratio: 4 / 5; }
  .subpage .connect-card, .subpage .community-card { padding: 28px 24px; border-radius: 16px; }
  .subpage .connect-caption { margin-top: 32px; }
  .subpage .connect-card .server-ip strong { font-size: clamp(25px, 7.7vw, 36px); }
  .subpage .connect-card .btn { width: 100%; gap: 18px; }
  .subpage .connection-steps { grid-template-columns: 1fr; gap: 24px; }
  .subpage .connection-steps h3 { margin-top: 8px; }
}

/* 公告正文与管理表单 */
.news-plain { white-space: pre-wrap; overflow-wrap: anywhere; }
.news-empty, .dispatch-list > [role="alert"] { padding: 28px; }
.admin-bar { border-bottom: 1px solid var(--line); background: #fff; }
.admin-bar .container { min-height: 80px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 16px; }
.admin-bar .brand { color: var(--text); }
.admin-bar .brand span { color: var(--muted); font-size: 12px; font-weight: 400; }
.admin-bar a, .admin-bar button { font-size: 13px; }
.admin-bar form { margin: 0; }
.admin-bar button { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 16px; color: var(--text); font-family: inherit; cursor: pointer; }
.admin-page main { padding-top: 20px; padding-bottom: 48px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-page .admin-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; min-width: 0; }
.admin-card h2 { margin: 8px 0 24px; font-size: 24px; letter-spacing: -.03em; }
.admin-card .small-label { color: #5176a3; }
.admin-login { max-width: 520px; margin-inline: auto; }
.admin-login > p { color: var(--muted); font-size: 14px; }
.admin-card label { display: block; margin: 22px 0 8px; font-size: 14px; font-weight: 600; }
.admin-card label span { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.admin-card input:not([type="hidden"]):not([type="checkbox"]), .admin-card textarea { display: block; width: 100%; min-width: 0; border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px 14px; background: #fcfdfe; color: var(--text); font: inherit; font-size: 14px; }
.admin-card textarea { resize: vertical; }
.admin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-hint, .admin-footnote { color: var(--muted); font-size: 12px; }
.admin-card .btn { min-height: 46px; padding: 12px 22px; border-radius: 8px; font-size: 14px; box-shadow: none; transform: none; }
.admin-login .btn { width: 100%; margin-top: 24px; }
.admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 24px; font-size: 13px; }
.admin-count { color: #5176a3; font-size: 16px; font-weight: 400; }
.admin-list article { border-top: 1px solid var(--line); padding-block: 24px; overflow-wrap: anywhere; }
.admin-list .dispatch-meta { margin-bottom: 14px; }
.admin-list h3 { margin: 0; font-size: 18px; }
.admin-list article > p { color: var(--muted); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.admin-list .admin-actions { margin-top: 12px; }
.admin-delete { margin-left: auto; color: #aa3535; }
.admin-danger { color: #fff; background: #a33232; }
.admin-check input { width: 18px; height: 18px; vertical-align: middle; margin-right: 8px; }
.admin-message { padding: 16px 20px; border: 1px solid #c6d7cf; border-radius: 10px; background: #edf5f0; overflow-wrap: anywhere; }
.admin-message[role="alert"] { border-color: #e2c6b8; background: #fff4ee; }
.admin-footnote { margin-top: 28px; text-align: center; }
@media (max-width: 779px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-bar .container { gap: 16px; }
  .admin-page .admin-card { padding: 24px; }
}
@media (max-width: 420px) { .admin-fields { grid-template-columns: 1fr; gap: 0; } .admin-bar .brand span { display: none; } }

@media (max-width: 420px) {
  .header-inner .brand { gap: 0; }
  .header-inner .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* 无脚本时内容保持可见；动效遵循系统偏好。 */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 0.8s cubic-bezier(0.2, 0.65, 0.25, 1) backwards; }
  .hero-kicker { animation-delay: 0.05s; }
  .hero h1 { animation: hero-title 0.9s cubic-bezier(0.2, 0.65, 0.25, 1) 0.14s backwards; }
  .hero-lede { animation-delay: 0.26s; }
  .hero .server-ip { animation-delay: 0.36s; }
  .hero-actions { animation-delay: 0.46s; }
  .hero-status { animation-delay: 0.56s; }

  .scroll-cue-track i { animation: cue-slide 1.7s ease-in-out 1.1s both; }

  .reveal-pending { opacity: 0; transform: translateY(22px); }
  .reveal-in { animation: reveal 0.7s cubic-bezier(0.2, 0.65, 0.25, 1) backwards; }
  .intro.reveal-in { animation: none; }
  .intro.reveal-in > * { animation: intro-rise 0.7s cubic-bezier(0.2, 0.65, 0.25, 1) backwards; }
  .intro.reveal-in > *:nth-child(2) { animation-delay: 0.1s; }

  .image-viewer[open] { animation: viewer-in 0.3s cubic-bezier(0.2, 0.65, 0.25, 1) backwards; }
  .image-viewer[open]::backdrop { animation: viewer-fade 0.3s ease-out backwards; }

  #site-nav.open { animation: menu-fade 0.12s ease-out backwards; }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes hero-title { from { opacity: 0; transform: translateY(22px) scale(0.975); } }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.025); } }
@keyframes cue-slide {
  0% { opacity: 0; transform: translateX(-120%); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateX(280%); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes viewer-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes viewer-fade { from { opacity: 0; } }
@keyframes menu-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .hero-bg, .scroll-cue-track i { animation: none !important; transform: none !important; }
  .btn, .btn:active,
  .feature-list li:hover,
  .news-list article:hover, .join-steps > li:hover,
  .gallery-grid figure:hover, .gallery-grid figure:hover img,
  .brand:hover img, .viewer-close, .viewer-close:active {
    transform: none !important;
  }
  /* 位置仍由 CSS 变量决定，只关掉滑动过程。 */
  .nav-highlight { transition: none !important; }
}

.subpage .connection-live { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #ffffff26; color: #c4d2e1; font-size: 12px; }
.subpage .connection-live > span { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.subpage .connection-live strong { color: #fff; font-size: 14px; font-weight: 500; }
.subpage .connection-players { margin-top: 22px; }
.subpage .connection-players h2 { margin: 0 0 10px; color: #c4d2e1; font-size: 12px; font-weight: 400; }
.subpage .connection-players p { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; color: #fff; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.subpage .online-player { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 5px 12px 5px 6px; border: 1px solid #ffffff20; border-radius: 999px; background: #ffffff0d; }
.subpage .online-player-avatar { position: relative; display: block; flex: 0 0 32px; width: 32px; height: 32px; overflow: hidden; border-radius: 6px; image-rendering: pixelated; background: #718b7a; }
.subpage .online-player-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 真实皮肤：同一张纹理叠两层，脸取 (8,8)，帽子层取 (40,8)，4 倍放大后刚好裁进 32px。 */
.subpage .online-player-skin img { position: absolute; left: -32px; top: -32px; width: 256px; height: auto; max-width: none; object-fit: fill; image-rendering: pixelated; }
.subpage .online-player-skin .online-player-hat { left: -160px; }
.subpage .online-player-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.subpage .online-player-state { display: inline-flex; align-items: center; gap: 5px; color: #c4d2e1; font-size: 11px; }
.subpage .online-player-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #92d9a3; }
.subpage .online-player-latency { margin-left: 4px; font-variant-numeric: tabular-nums; }
