@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-display: "Fraunces", "Songti SC", "Noto Serif SC", "STSong", serif;
  --font-ui: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --max: 1120px;
  --narrow: 740px;
  --radius: 22px;
  --radius-sm: 14px;
  --copper: #e39b4a;
  --copper-2: #f0b56a;
  --rust: #c45c32;
  --ember: #ffd9a3;
  --ink: #14110e;
  font-family: var(--font-body);
  font-synthesis: none;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14110e;
  --bg-2: #1c1814;
  --bg-3: #0f0d0b;
  --panel: #221c17;
  --panel-2: #2c241d;
  --text: #f4ece2;
  --text-2: #d8cfc4;
  --muted: #a39688;
  --line: rgb(243 220 190 / .12);
  --hairline: rgb(227 155 74 / .28);
  --card: rgb(34 28 23 / .88);
  --accent: var(--copper);
  --accent-ink: #1a120c;
  --link: #f0b56a;
  --hero-bg: #120f0c;
  --header-bg: rgb(20 17 14 / .72);
  --code-bg: #181410;
  --glow: rgb(227 155 74 / .22);
  --shadow: 0 18px 50px rgb(0 0 0 / .35);
  --ok: #7cb86a;
  --bad: #d46a5c;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6efe6;
  --bg-2: #efe4d6;
  --bg-3: #e7d8c6;
  --panel: #fffaf4;
  --panel-2: #f3e8d9;
  --text: #1c1611;
  --text-2: #3d342b;
  --muted: #6f6358;
  --line: rgb(28 22 17 / .1);
  --hairline: rgb(196 92 50 / .22);
  --card: rgb(255 250 244 / .92);
  --accent: #b85c28;
  --accent-ink: #fffaf4;
  --link: #9a4318;
  --hero-bg: #2a1c14;
  --header-bg: rgb(255 250 244 / .78);
  --code-bg: #efe6d8;
  --glow: rgb(196 92 50 / .16);
  --shadow: 0 16px 40px rgb(70 42 18 / .12);
  --ok: #3d7a38;
  --bad: #b44538;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -10%, var(--glow), transparent 55%),
    var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pixel { font-family: var(--font-ui); font-weight: 700; letter-spacing: .01em; }
code, kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.skip-link {
  position: fixed; z-index: 1000; left: 1rem; top: -5rem;
  padding: .65rem 1rem; color: var(--accent-ink); background: var(--copper);
  border-radius: 999px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, var(--narrow)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: .75rem 0 .35rem;
  background: linear-gradient(180deg, var(--bg) 40%, transparent);
}
.nav-wrap {
  position: relative;
  width: min(100% - 1.4rem, var(--max));
  min-height: 64px; margin: auto;
  display: flex; align-items: center; gap: .55rem;
  padding: .35rem .4rem .35rem .85rem;
  background: var(--header-bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.2);
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto;
}
.brand-badge {
  width: 40px; height: 40px; flex: none; border-radius: 13px;
  box-shadow: 0 0 0 1px var(--hairline), 0 8px 18px rgb(227 155 74 / .18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.brand-sub {
  color: var(--accent); font-family: var(--font-ui); font-size: .58rem;
  font-weight: 700; letter-spacing: .18em;
}

.site-nav { display: flex; align-items: center; gap: .1rem; }
.site-nav > a, .site-nav .nav-item > button {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .48rem .78rem; border: 0; border-radius: 999px;
  background: none; text-decoration: none; font-family: var(--font-ui);
  font-size: .92rem; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.site-nav > a:hover, .site-nav .nav-item > button:hover,
.site-nav > a[aria-current="page"]:not(.nav-cta) { background: var(--panel-2); color: var(--accent); }
.site-nav .nav-cta {
  margin-left: .25rem; color: var(--accent-ink); background: var(--accent);
}
.site-nav .nav-cta:hover { filter: brightness(1.08); color: var(--accent-ink); }
.site-nav > .nav-cta[aria-current="page"] { filter: brightness(.94); color: var(--accent-ink); background: var(--accent); }
.site-nav .nav-drive { color: var(--accent); font-weight: 700; }
.site-nav .nav-drive .nav-icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.nav-item { position: relative; }
.nav-item > button::after {
  content: ""; width: 0; height: 0; margin-left: .2rem;
  border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; translate: 0 2px;
}
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 180px; margin: 0; padding: .4rem; list-style: none;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow);
  display: none; z-index: 20;
}
.nav-item.open > .nav-menu, .nav-item:focus-within > .nav-menu { display: block; }
@media (hover: hover) { .nav-item:hover > .nav-menu { display: block; } }
.nav-menu a {
  display: flex; width: 100%; padding: .5rem .75rem; text-decoration: none; font-weight: 650; border-radius: 10px;
}
.nav-menu a:hover { background: var(--panel-2); color: var(--accent); }

.icon-button {
  width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--hairline); border-radius: 50%;
  cursor: pointer; padding: 0; color: var(--text);
}
.icon-button:hover { background: var(--panel-2); }
.icon-button svg { width: 18px; height: 18px; }
.icon-button svg[fill="currentColor"] { fill: currentColor; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-burger { display: none; }
.nav-burger svg { stroke: currentColor; fill: none; }

@media (max-width: 900px) {
  .nav-wrap { border-radius: 24px; }
  .nav-burger { display: inline-grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: .15rem;
    padding: .7rem; background: var(--panel); border: 1px solid var(--hairline);
    border-radius: 20px; box-shadow: var(--shadow); display: none;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav > a, .site-nav .nav-item > button { width: 100%; justify-content: flex-start; padding: .8rem .75rem; }
  .site-nav .nav-cta { margin: .35rem 0 0; justify-content: center; }
  .nav-menu { position: static; border: 0; box-shadow: none; background: transparent; padding-left: .8rem; }
  .nav-item.open > .nav-menu { display: block; }
  .nav-item:focus-within > .nav-menu { display: none; }
  .nav-item.open:focus-within > .nav-menu { display: block; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
}

.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--hairline); border-radius: 999px;
  cursor: pointer; text-decoration: none; font-family: var(--font-ui);
  font-weight: 700; line-height: 1.2;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(0 0 0 / .18); }
.button:active { transform: translateY(0); }
.button-primary { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.button-grass { color: var(--accent-ink); background: var(--copper); border-color: transparent; }
.button-quiet { background: var(--panel); color: var(--text); }
.button-ghost { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .18); }
.button-small { min-height: 36px; padding: .4rem .75rem; font-size: .84rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions-center { justify-content: center; }

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - 88px);
  display: grid; align-items: center;
  color: #f7efe6;
  background: var(--hero-bg);
}
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(42% 48% at 82% 18%, rgb(227 155 74 / .38), transparent 62%),
    radial-gradient(36% 42% at 12% 78%, rgb(196 92 50 / .28), transparent 60%),
    radial-gradient(28% 30% at 48% 42%, rgb(255 217 163 / .08), transparent 70%);
}
.hero-orbs .orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgb(255 232 196 / .55), rgb(227 155 74 / .08) 58%, transparent 72%);
  filter: blur(2px);
  animation: orb-float 16s ease-in-out infinite;
}
.hero-orbs .o1 { width: 280px; height: 280px; right: 8%; top: 8%; }
.hero-orbs .o2 { width: 160px; height: 160px; right: 28%; bottom: 18%; animation-delay: -6s; opacity: .7; }
.hero-orbs .o3 { width: 90px; height: 90px; left: 12%; top: 22%; animation-delay: -11s; opacity: .55; }
@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, -18px, 0); }
}
.hero-grain {
  position: absolute; inset: 0; opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
.hero-ring {
  position: absolute; right: clamp(-4rem, 4vw, 2rem); top: 50%;
  width: min(46vw, 420px); height: min(46vw, 420px);
  translate: 0 -50%;
  border-radius: 50%;
  border: 1px solid rgb(227 155 74 / .28);
  box-shadow: inset 0 0 80px rgb(227 155 74 / .08), 0 0 80px rgb(227 155 74 / .08);
}
.hero-ring::before, .hero-ring::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px dashed rgb(240 181 106 / .28);
}
.hero-ring::after { inset: 26%; border-style: solid; border-color: rgb(227 155 74 / .18); }

.hero-content {
  position: relative; z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: clamp(3.4rem, 9vh, 6.5rem) 0 clamp(3.6rem, 10vh, 6rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  text-align: left;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .7rem; margin: 0;
  color: var(--copper-2); font-family: var(--font-ui); font-size: .78rem;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.hero-kicker::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}
.hero h1 {
  margin: 0; font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 7.4rem); line-height: .92;
  letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff6ea 20%, #e39b4a 140%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0; max-width: 28ch; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 650; color: rgb(244 236 226 / .82); }
.hero .actions { margin-top: .7rem; justify-content: flex-start; }
@media (max-width: 700px) {
  .hero-ring { opacity: .45; }
  .hero-orbs .o2 { display: none; }
}

.section { padding: clamp(3.2rem, 7vw, 5.4rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: .6rem 2rem; margin-bottom: 1.8rem;
}
.section-head > div { min-width: 0; flex: 1 1 320px; }
.kicker {
  display: inline-block; margin-bottom: .5rem; color: var(--accent);
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .2em;
}
.section-title {
  margin: 0; font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem); line-height: 1.2;
  letter-spacing: -.02em;
}
.section-lede { margin: .7rem 0 0; max-width: 680px; color: var(--muted); }
.section-more {
  font-weight: 750; text-decoration: none;
  border-bottom: 1px solid var(--accent); color: var(--accent);
}

.servers-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.4rem 2rem; align-items: start; }
.server-list { display: grid; gap: 1.1rem; }
.server-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 1.15rem; padding: 1.2rem;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.server-icon-fallback {
  width: 88px; height: 88px; border-radius: 22px;
  background:
    radial-gradient(circle at 30% 28%, var(--ember), transparent 42%),
    linear-gradient(160deg, #c45c32, #7a3a1e);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.server-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
.server-head h3 { margin: 0; font-family: var(--font-ui); font-weight: 700; font-size: 1.35rem; }
.status-badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .65rem;
  color: var(--text); background: var(--panel-2); border-radius: 999px;
  font-size: .76rem; font-weight: 800;
}
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-badge.online { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.status-badge.offline { color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); }
.status-badge.pending { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.server-stats {
  display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; margin: .55rem 0 0; padding: 0; list-style: none;
  color: var(--text-2); font-size: .92rem; font-weight: 700;
}
.server-stats .num { font-family: var(--font-ui); }
.server-motd { margin: .55rem 0 0; color: var(--muted); }
.server-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.tag {
  padding: .12rem .55rem; border: 1px solid var(--line); background: var(--panel-2);
  border-radius: 999px; font-size: .74rem; font-weight: 750;
}
.tag-accent { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.server-endpoints { display: grid; gap: .55rem; margin-top: .9rem; }
.endpoint {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .6rem .75rem;
  background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.endpoint .edition { font-family: var(--font-ui); color: var(--accent); min-width: 4.2em; font-weight: 700; }
.endpoint code { font-size: 1rem; font-weight: 700; user-select: all; }
.endpoint .port { color: var(--muted); font-size: .9rem; }
.endpoint-actions { margin-left: auto; display: flex; gap: .4rem; }
.server-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .8rem; font-weight: 750; }
.server-links a { text-decoration: none; color: var(--link); border-bottom: 1px solid currentColor; }
.play-title { margin: 0 0 1rem; font-family: var(--font-ui); font-weight: 700; font-size: 1.3rem; }
.play-panel .card-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 899px) { .servers-layout { grid-template-columns: 1fr; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.feature-card, .project-card {
  padding: 1.25rem 1.2rem; background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px; height: 44px; margin-bottom: .8rem; border-radius: 12px;
}
.feature-card h3, .project-card h3 {
  margin: 0 0 .35rem; font-family: var(--font-ui); font-weight: 700; font-size: 1.12rem;
}
.feature-card p, .project-card p { margin: 0; color: var(--text-2); font-size: .95rem; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.post-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; overflow: hidden;
}
.post-card:hover { transform: translateY(-4px); }
.post-cover {
  position: relative; aspect-ratio: 16 / 9;
  display: grid; place-items: center; color: #fff7ea;
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .04em;
}
.post-cover.c-群 { background: linear-gradient(145deg, #8a4a22, #2a1810); }
.post-cover.c-服 { background: linear-gradient(145deg, #3f6a3a, #172116); }
.post-cover.c-指南 { background: linear-gradient(145deg, #3d5f78, #151c24); }
.post-date {
  position: absolute; left: .9rem; bottom: .9rem; padding: .2rem .65rem;
  color: var(--accent-ink); background: var(--copper); border-radius: 999px;
  font-family: var(--font-ui); font-size: .74rem; font-weight: 700;
}
.post-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; }
.post-body h3 { margin: 0; font-size: 1.12rem; }
.post-meta { color: var(--muted); font-size: .82rem; font-weight: 700; }
.post-excerpt { margin: 0; color: var(--text-2); font-size: .94rem; }

.join-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; align-items: center; }
.join-contact { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; font-weight: 700; }
.timeline {
  position: relative; margin: 0; padding: 1.4rem 1.5rem; list-style: none; display: grid; gap: 1.3rem;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow);
}
.timeline li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: -1.3rem;
  border-left: 1px dashed var(--hairline);
}
.tl-num {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--accent-ink); background: var(--accent); border-radius: 50%;
  font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700;
}
.timeline h3 { margin: .35rem 0 .2rem; font-size: 1.08rem; }
.timeline p { margin: 0; color: var(--text-2); font-size: .95rem; }
@media (max-width: 960px) { .join-layout { grid-template-columns: 1fr; gap: 1.6rem; } }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: clamp(1.4rem, 4vw, 2.3rem); color: #fff7ea;
  background:
    radial-gradient(80% 140% at 100% 0%, rgb(240 181 106 / .28), transparent 55%),
    linear-gradient(135deg, #7a3a1c, #2a1810);
  border: 1px solid rgb(227 155 74 / .28); border-radius: 28px; box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 .35rem; font-family: var(--font-ui); font-weight: 700; font-size: 1.7rem; }
.cta-band p { margin: 0; color: rgb(255 247 234 / .82); }

.page-hero {
  position: relative; overflow: hidden; color: #f7efe6;
  background:
    radial-gradient(70% 80% at 90% 0%, rgb(227 155 74 / .28), transparent 55%),
    linear-gradient(180deg, #1a1410, #241910);
}
.page-hero-inner { width: min(100% - 2rem, var(--max)); margin: auto; padding: clamp(3rem, 7vw, 4.6rem) 0; }
.page-hero h1 {
  margin: .2rem 0 0; font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.03em;
}
.page-hero p { margin: .9rem 0 0; max-width: 720px; color: rgb(255 255 255 / .86); }
.page-hero .kicker { color: var(--copper-2); }
.page-hero .actions { margin-top: 1.4rem; }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.doc-toc {
  position: sticky; top: 96px; padding: 1rem 1.05rem;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.doc-toc h2 { margin: 0 0 .6rem; font-family: var(--font-ui); font-weight: 700; font-size: .92rem; color: var(--accent); }
.doc-toc ol { margin: 0; padding-left: 1.2rem; font-size: .92rem; }
.doc-toc a { text-decoration: none; font-weight: 650; }
.doc-toc a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-toc ol { columns: 2; }
}

.prose { max-width: 76ch; font-size: 1.02rem; }
.prose h2 { margin: 2.4rem 0 .8rem; font-family: var(--font-ui); font-weight: 700; font-size: 1.55rem; scroll-margin-top: 96px; }
.prose h2::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .55rem; border-radius: 50%; background: var(--accent); translate: 0 -2px; }
.prose h3 { margin: 1.8rem 0 .5rem; font-size: 1.15rem; }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--link); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose code { padding: .1rem .4rem; background: var(--code-bg); border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { padding: .55rem .7rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--panel-2); }
.callout { margin: 1.2rem 0; padding: .95rem 1.15rem; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); border-left: 4px solid var(--accent); }
.callout-tip { border-left-color: var(--ok); }
.callout-warn { border-left-color: var(--copper); }
.callout-info { border-left-color: var(--accent); }
.callout-title { display: block; margin-bottom: .3rem; font-family: var(--font-ui); font-weight: 700; }
.addr-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .8rem 0; padding: .75rem .9rem;
  background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.addr-box .label { font-family: var(--font-ui); color: var(--accent); font-weight: 700; }
.faq details { border: 1px solid var(--line); background: var(--panel); margin: .6rem 0; border-radius: 14px; }
.faq summary { padding: .8rem 1rem; cursor: pointer; font-weight: 800; }
.faq details > div { padding: 0 1rem 1rem; color: var(--text-2); }

.form-card {
  padding: clamp(1.2rem, 3vw, 2rem); background: var(--card);
  border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 800; }
.required { color: var(--bad); }
.help { margin: 0; color: var(--muted); font-size: .86rem; }
.input, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; background: var(--code-bg);
  border: 1px solid var(--line); border-radius: 12px;
}
.textarea { min-height: 140px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip span {
  padding: .45rem .85rem; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; font-weight: 750;
}
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.form-message { min-height: 1.4em; margin: .8rem 0 0; font-weight: 700; }
.form-message.ok { color: var(--ok); }
.form-message.err { color: var(--bad); }
.receipt {
  padding: 1.6rem; background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.receipt-id {
  display: inline-block; margin: .8rem 0; padding: .55rem 1rem; background: var(--code-bg);
  border-radius: 12px; font-family: var(--font-ui); font-size: 1.15rem; font-weight: 700;
}

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.link-card {
  display: flex; flex-direction: column; gap: .2rem; padding: .95rem 1.05rem;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  text-decoration: none;
}
.link-card:hover { transform: translateY(-2px); }
.link-card span { color: var(--muted); font-size: .88rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat {
  padding: 1rem; text-align: center; background: var(--card);
  border: 1px solid var(--hairline); border-radius: 18px;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.contact-box {
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: 1rem 0; padding: 1rem 1.2rem;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: 16px;
}
.need-config { display: none; }
html.need-qq .has-qq { display: none; }
html.need-qq .need-config { display: block; }
html.need-consult .has-consult { display: none; }

.qr-card {
  display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 1.2rem; align-items: center;
  margin: 0 0 1.2rem; padding: 1.05rem 1.15rem; background: var(--card);
  border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow);
}
.qr-card img { width: 100%; height: auto; border-radius: 16px; background: #fff; }
.qr-card h2 { margin: 0 0 .35rem; font-family: var(--font-ui); font-weight: 700; font-size: 1.3rem; }
.qr-card p { margin: 0; color: var(--text-2); }
.qr-card .actions { margin-top: .8rem; }
@media (max-width: 640px) { .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.pan-band { margin-top: -1px; }
.pan-band .kicker { color: var(--copper); }

.site-footer { position: relative; background: var(--bg-3); color: var(--text-2); }
.site-footer::before {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
.footer-grid {
  width: min(100% - 2rem, var(--max)); margin: auto; padding: 3rem 0 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem 2.5rem;
}
.footer-grid h4 { margin: 0 0 .7rem; font-family: var(--font-ui); font-weight: 700; font-size: .92rem; color: var(--accent); letter-spacing: .08em; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: .35rem 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.footer-brand img { width: 48px; height: 48px; border-radius: 14px; }
.footer-brand strong { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.footer-desc { margin: 0; color: var(--muted); font-size: .92rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  width: min(100% - 2rem, var(--max)); margin: auto; padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem;
  color: var(--muted); font-size: .84rem; text-align: center;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.back-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90; opacity: 0; translate: 0 12px; pointer-events: none;
  transition: opacity .2s, translate .2s;
}
.back-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }

.toast {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 120; translate: -50% 0;
  padding: .55rem 1rem; color: var(--accent-ink); background: var(--copper);
  border-radius: 999px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }
.mt-2 { margin-top: 2rem; }
.receipt pre { white-space: pre-wrap; min-height: auto; margin: 0 0 1rem; padding: .8rem 1rem; }

html.home .screen { padding: clamp(3rem, 6vw, 4.6rem) 0; }
@media (min-width: 700px) {
  html.home .post-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .server-card { grid-template-columns: 1fr; }
  .server-icon-fallback { width: 64px; height: 64px; border-radius: 18px; }
  .endpoint-actions { margin-left: 0; width: 100%; }
  .play-panel .card-grid { grid-template-columns: 1fr 1fr; }
}
