:root {
  --paper: #f4f6f2;
  --surface: #ffffff;
  --ink: #111713;
  --muted: #657168;
  --line: #d5dcd6;
  --forest: #176f43;
  --forest-strong: #0f5a34;
  --green-soft: #dff3e7;
  --amber: #d99b2b;
  --shadow: 0 18px 44px rgba(17, 23, 19, 0.08);
  --content-width: 1180px;
  --section-padding: 96px;
}

[data-theme="dark"] {
  --paper: #0b100e;
  --surface: #111814;
  --ink: #edf3ef;
  --muted: #9aa79f;
  --line: #29342d;
  --forest: #58cf86;
  --forest-strong: #74df9c;
  --green-soft: #142b1e;
  --amber: #efb447;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  transition: background-color 180ms ease, color 180ms ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  height: 76svh;
  min-height: 560px;
  max-height: 720px;
  overflow: hidden;
  background: #09100d;
  color: #ffffff;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 24%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 8, 0.14);
  pointer-events: none;
}

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 64px), var(--content-width));
  height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-size: 20px;
  font-weight: 760;
  line-height: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 6px;
}

.brand-mark span {
  display: block;
  width: 5px;
  height: 11px;
  border-radius: 2px;
  background: #efb447;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}

.desktop-nav a {
  color: rgba(255, 255, 255, 0.76);
  transition: color 150ms ease;
}

.desktop-nav a:hover { color: #ffffff; }

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: rgba(6, 13, 10, 0.34);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.icon-button:active { transform: scale(0.97); }

.icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(calc(100% - 64px), var(--content-width));
  height: 100%;
  margin: 0 auto;
  padding-top: 70px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.hero-kicker span {
  width: 26px;
  height: 2px;
  background: #efb447;
}

.hero h1 {
  max-width: 600px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Times New Roman", serif;
  font-size: 82px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 520px;
  margin: 26px 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.7;
}

.hero-live {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: rgba(7, 15, 11, 0.32);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.hero-action:active { transform: scale(0.97); }
.hero-action svg { width: 18px; height: 18px; }

.section { padding: var(--section-padding) 32px; }

.section-inner,
.footer-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

.section-index {
  margin: 7px 0 0;
  color: var(--forest);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.16;
}

.section-heading p:not(.section-index) {
  max-width: 500px;
  margin: 14px 0 0;
  color: var(--muted);
}

.region-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.region-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.region-tab:hover { border-color: var(--forest); color: var(--ink); }
.region-tab:active { transform: scale(0.97); }

.region-tab.active {
  background: var(--green-soft);
  border-color: var(--forest);
  color: var(--forest-strong);
}

.post-list { border-bottom: 1px solid var(--line); }

.server-row {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 132px;
  border-top: 1px solid var(--line);
}

.server-row::before {
  position: absolute;
  inset: 0 -18px;
  z-index: -1;
  border-radius: 8px;
  background: var(--surface);
  content: "";
  opacity: 0;
  transition: opacity 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .server-row:hover::before { opacity: 1; }
}

.server-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.server-meta strong {
  color: var(--forest);
  font-weight: 800;
}

.server-meta.offline strong { color: var(--muted); }

.server-title {
  display: block;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.28;
}

.server-excerpt {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.meter {
  width: min(240px, 100%);
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.meter > i {
  display: block;
  height: 100%;
  background: var(--forest);
  transition: width 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.server-actions {
  display: flex;
  gap: 8px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.ghost-btn:hover { border-color: var(--forest); }
.ghost-btn:active { transform: scale(0.97); }

.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 150ms ease, transform 150ms ease;
}

[data-theme="dark"] .join-btn { color: #0b100e; }

.join-btn:hover { background: var(--forest-strong); }
.join-btn:active { transform: scale(0.97); }
.join-btn svg { width: 16px; height: 16px; }

.server-row.offline .join-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.hint {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hint code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.about-section {
  padding: 104px 32px;
  background: #101713;
  color: #edf4ef;
}

.about-inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.about-inner .section-index {
  color: #65d58e;
}

.about-copy h2 {
  max-width: 680px;
  font-size: 50px;
  color: #edf4ef;
}

.about-copy p {
  max-width: 650px;
  margin: 28px 0 0;
  color: #9eaaa2;
  font-size: 17px;
  line-height: 1.85;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  margin-top: 32px;
}

.hero-action.on-dark {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(7, 15, 11, 0.32);
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .hero-action:hover,
  .hero-action.on-dark:hover {
    background: #ffffff;
    color: #101713;
    transform: translateY(-2px);
  }
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-bottom: 4px;
  border-bottom: 1px solid #efb447;
  color: #ffffff;
  font-size: 14px;
}

.about-link svg { width: 17px; height: 17px; }

.site-footer {
  padding: 46px 32px;
  background: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.footer-brand { color: var(--ink); }

.footer-mark {
  border-color: color-mix(in srgb, var(--ink) 38%, transparent);
}

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

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

.footer-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-links a:hover { color: var(--forest); }

.beian-link { gap: 5px; }

.beian-badge {
  flex: 0 0 auto;
  width: 18px;
  height: 20px;
  object-fit: contain;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 920px) {
  :root { --section-padding: 78px; }

  .header-inner,
  .hero-content {
    width: min(calc(100% - 40px), var(--content-width));
  }

  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }

  .about-inner { grid-template-columns: 150px minmax(0, 1fr); }

  .footer-inner { grid-template-columns: auto 1fr; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --section-padding: 62px; }

  .hero {
    height: 78svh;
    min-height: 580px;
    max-height: 700px;
  }

  .hero-media img { object-position: 63% center; }
  .hero-shade { background: rgba(3, 9, 6, 0.34); }

  .header-inner {
    width: calc(100% - 32px);
    height: 76px;
  }

  .hero-content {
    justify-content: flex-end;
    width: calc(100% - 40px);
    padding: 0 0 74px;
  }

  .hero h1 { font-size: 48px; }

  .hero-copy {
    margin: 20px 0 16px;
    font-size: 17px;
  }

  .section,
  .about-section,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-heading,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading h2,
  .about-copy h2 { font-size: 38px; }

  .server-row {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 26px 0;
  }

  .server-actions { justify-content: stretch; }
  .server-actions a,
  .server-actions button { flex: 1; }

  .download-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .server-title { font-size: 23px; }

  .site-footer {
    padding: 40px 20px;
  }

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

  .footer-links {
    grid-column: 1;
    flex-flow: row wrap;
    gap: 8px 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
