/* ==========================================================================
   MCTIME — 服务器官网样式
   风格取向：深色区块 + 青色点缀 + 全屏首屏 + 侧边抽屉导航 + 浅色预览区
   （参考 mcLink 一类服务器官网的信息组织方式，配色/排版/插画为本项目原创）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --bg: #0e1116;
  --bg-dark: #14181e;
  --bg-darker: #0b0e12;
  --surface: #191e25;
  --surface-2: #1e242c;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #e9eef3;
  --muted: #9aa6b2;
  --muted-2: #6d7986;

  --teal: #20c997;
  --teal-dark: #17a67c;
  --blue: #0d6efd;
  --blue-dark: #0b5ed7;
  --cyan: #0dcaf0;
  --gray: #6c757d;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;

  --shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.9);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --toggle: 52px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

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

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(32, 201, 151, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 500;
  padding: 10px 18px;
  background: var(--teal);
  color: #06251b;
  font-weight: 700;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ---------- 3. 加载动画 ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--bg-darker);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

#preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader-grid {
  display: grid;
  grid-template-columns: repeat(3, 18px);
  grid-template-rows: repeat(3, 18px);
  gap: 10px;
}

.loader-grid i {
  display: block;
  background: var(--teal);
  border-radius: 3px;
  animation: loaderPulse 1.1s var(--ease) infinite;
  opacity: 0.25;
}

.loader-grid i:nth-child(1) { animation-delay: 0s; }
.loader-grid i:nth-child(2) { animation-delay: 0.1s; }
.loader-grid i:nth-child(3) { animation-delay: 0.2s; }
.loader-grid i:nth-child(4) { animation-delay: 0.1s; }
.loader-grid i:nth-child(5) { animation-delay: 0.2s; }
.loader-grid i:nth-child(6) { animation-delay: 0.3s; }
.loader-grid i:nth-child(7) { animation-delay: 0.2s; }
.loader-grid i:nth-child(8) { animation-delay: 0.3s; }
.loader-grid i:nth-child(9) { animation-delay: 0.4s; }

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 18px rgba(32, 201, 151, 0.55);
  }
}

/* ---------- 4. 菜单按钮 / 抽屉导航 ---------- */
.menu-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 210;
  width: var(--toggle);
  height: var(--toggle);
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(18, 22, 28, 0.78);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.menu-toggle:hover {
  background: rgba(32, 201, 151, 0.16);
  border-color: rgba(32, 201, 151, 0.55);
}

.menu-toggle__bars {
  width: 20px;
  height: 14px;
  position: relative;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 7, 10, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 205;
  width: min(348px, 88vw);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #12171d, #0d1116);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer.is-open {
  transform: none;
}

.drawer__head {
  padding: 26px 26px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.drawer__mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.drawer__name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.drawer__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.drawer__nav {
  padding: 14px 0;
  flex: 1;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  font-size: 15.5px;
  color: #c8d1da;
  border-left: 2px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.drawer__link::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--muted-2);
  transform: rotate(45deg);
  transition: background-color 0.2s var(--ease);
}

.drawer__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--teal);
  padding-left: 32px;
}

.drawer__link:hover::before,
.drawer__link.is-active::before {
  background: var(--teal);
}

.drawer__link.is-active {
  color: #fff;
  border-left-color: var(--teal);
  background: rgba(32, 201, 151, 0.07);
}

.drawer__foot {
  padding: 20px 26px 28px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.drawer__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.drawer__ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #d8e0e8;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.drawer__ip:hover {
  border-color: rgba(32, 201, 151, 0.5);
  background: rgba(32, 201, 151, 0.08);
}

.drawer__ip svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
  flex: none;
}

.drawer__socials {
  display: flex;
  gap: 8px;
}

.social {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.social:hover {
  color: var(--teal);
  border-color: rgba(32, 201, 151, 0.45);
  background: rgba(32, 201, 151, 0.08);
}

.social svg {
  width: 16px;
  height: 16px;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #062a20;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 14px 30px;
  min-height: 52px;
  font-size: 16px;
  border-radius: 9px;
}

.btn--sm {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 13.5px;
}

.btn--blue {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
}

.btn--teal {
  --btn-bg: var(--teal);
  --btn-fg: #062a20;
}

.btn--gray {
  --btn-bg: #373f47;
  --btn-fg: #eef2f5;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
}

.btn--ghost:hover {
  border-color: rgba(32, 201, 151, 0.55);
  background: rgba(32, 201, 151, 0.08);
  filter: none;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- 6. 首屏 ---------- */
.masthead {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 96px;
  overflow: hidden;
  isolation: isolate;
}

.masthead__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero.jpg");
  background-image: image-set(
    url("../img/hero.webp") type("image/webp"),
    url("../img/hero.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.03);
  will-change: transform;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0.08), rgba(6, 9, 13, 0.42) 78%),
    linear-gradient(180deg, rgba(8, 11, 15, 0.62) 0%, rgba(8, 11, 15, 0.18) 34%, rgba(8, 11, 15, 0.55) 74%, var(--bg) 100%);
}

.masthead__inner {
  max-width: 900px;
}

.masthead__kicker {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 600;
  color: #b9c6d2;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.masthead__title {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.6);
}

.masthead__sub {
  margin-top: 14px;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  color: #d3dde6;
  font-weight: 400;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.masthead__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.masthead__hint {
  margin-top: 26px;
  font-size: 13.5px;
  color: #a9b6c2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.masthead__hint a {
  color: var(--teal);
  border-bottom: 1px solid rgba(32, 201, 151, 0.4);
  padding-bottom: 1px;
}

.masthead__hint a:hover {
  border-bottom-color: var(--teal);
}

.masthead__hint .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* ---------- 7. 数据条 ---------- */
.ticker {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  padding: 0 20px;
}

.ticker__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(20, 25, 32, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ticker__item {
  padding: 22px 24px;
  text-align: center;
}

.ticker__item + .ticker__item {
  border-left: 1px solid var(--line);
}

.ticker__value {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ticker__value small {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--teal);
  margin-left: 3px;
}

.ticker__label {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* ---------- 8. 区块 ---------- */
.section {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
}

.section--dark {
  background: var(--bg-dark);
}

.section--darker {
  background: var(--bg-darker);
}

.section--gradient {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(32, 201, 151, 0.16), transparent 58%),
    linear-gradient(180deg, #131a20, #0d1116);
}

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

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 4.4vw, 56px);
}

.section__head--left {
  text-align: left;
  margin-inline: 0;
}

.section__title {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section__title em {
  font-style: normal;
  color: var(--teal);
}

.section__sub {
  margin-top: 10px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--muted);
}

.section__foot {
  margin-top: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.section__foot a {
  color: var(--teal);
}

/* ---------- 9. 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4.6vw, 64px);
  align-items: start;
}

.about__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 18px;
}

.about__text p {
  color: #b9c4ce;
  font-size: 15.5px;
  line-height: 1.9;
}

.about__text p + p {
  margin-top: 14px;
}

.about__points {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.point__icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--teal);
  background: rgba(32, 201, 151, 0.13);
}

.point__icon svg {
  width: 14px;
  height: 14px;
}

.point b {
  display: block;
  font-size: 14.5px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 2px;
}

.point p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* 服务器信息卡片 */
.spec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1b2129, #151a20);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.spec-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.spec-card__dots {
  display: flex;
  gap: 6px;
}

.spec-card__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.spec-card__dots i:first-child { background: #ff6b6b; }
.spec-card__dots i:nth-child(2) { background: #ffd43b; }
.spec-card__dots i:last-child { background: var(--teal); }

.spec-card__body {
  padding: 16px 20px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row span {
  color: var(--muted-2);
}

.spec-row b {
  color: #e6edf3;
  font-weight: 500;
  text-align: right;
}

.spec-row b.is-on {
  color: var(--teal);
}

.spec-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-2);
}

.spec-card__foot a {
  color: var(--teal);
}

/* ---------- 10. 入服 ---------- */
.join-card {
  max-width: 800px;
  margin-inline: auto;
  background: linear-gradient(180deg, #1a2028, #141920);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.4vw, 38px);
}

.join-card__title {
  text-align: center;
  color: var(--teal);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 28px;
}

.steps {
  display: grid;
  gap: 24px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step__num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--teal);
  border: 1px solid rgba(32, 201, 151, 0.45);
  background: rgba(32, 201, 151, 0.08);
}

.step__body h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step__body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.step__body a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(13, 202, 240, 0.35);
}

.step__body a:hover {
  border-bottom-color: var(--cyan);
}

.join-card__foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s var(--ease);
}

.copy-field:hover {
  border-color: rgba(32, 201, 151, 0.5);
}

.copy-field code {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: #d9e3ea;
  letter-spacing: 0.01em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--teal);
  color: #062a20;
  font-size: 13px;
  font-weight: 700;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.copy-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.join-card__tip {
  font-size: 12.5px;
  color: var(--muted-2);
}

.join-card__tip a {
  color: var(--teal);
}

/* ---------- 11. 特色 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, rgba(30, 37, 45, 0.95), rgba(21, 26, 32, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 201, 151, 0.35);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.9);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--teal);
  background: rgba(32, 201, 151, 0.13);
  border: 1px solid rgba(32, 201, 151, 0.22);
}

.card__icon svg {
  width: 23px;
  height: 23px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: #a7b3bf;
  line-height: 1.8;
}

/* ---------- 12. 玩法 Tab ---------- */
.play {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #171d24, #12171c);
  overflow: hidden;
}

.play__tabs {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.play__tabs::-webkit-scrollbar {
  display: none;
}

.play__tab {
  flex: none;
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.play__tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.play__tab[aria-selected="true"] {
  color: #062a20;
  background: var(--teal);
  border-color: var(--teal);
}

.play__panel {
  display: none;
  padding: clamp(22px, 3.6vw, 40px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(22px, 3.6vw, 44px);
  align-items: center;
}

.play__panel.is-active {
  display: grid;
  animation: fadeIn 0.45s var(--ease-out) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.play__copy h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin-bottom: 12px;
}

.play__copy > p {
  color: #b0bcc7;
  font-size: 14.5px;
  line-height: 1.85;
}

.play__list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.play__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--muted);
}

.play__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--teal);
  transform: rotate(45deg);
  opacity: 0.85;
}

.play__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 5px;
  color: #a9d8c8;
  background: rgba(32, 201, 151, 0.09);
  border: 1px solid rgba(32, 201, 151, 0.2);
}

.play__art {
  aspect-ratio: 1 / 0.94;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 34%, rgba(32, 201, 151, 0.12), transparent 62%), #0c1015;
  display: grid;
  place-items: center;
  padding: 6%;
  overflow: hidden;
}

.play__art picture,
.cta picture {
  display: contents;
}

.play__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.5));
}

.play__art:hover img {
  transform: scale(1.03);
}

/* ---------- 14. 规则 ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rule {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.rule:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(32, 201, 151, 0.3);
}

.rule__no {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  padding-top: 3px;
}

.rule h3 {
  font-size: 15.5px;
  margin-bottom: 5px;
}

.rule p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- 15. FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

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

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 2px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.faq__q:hover {
  color: var(--teal);
}

.faq__q > span:first-child {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.faq__icon {
  position: relative;
  flex: none;
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__icon {
  background: rgba(32, 201, 151, 0.14);
  border-color: rgba(32, 201, 151, 0.4);
  color: var(--teal);
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(0deg);
  opacity: 0;
}

.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}

.faq__a-inner {
  padding: 0 2px 22px 44px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.faq__a-inner a {
  color: var(--teal);
}

/* ---------- 16. 结尾 CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 8vw, 110px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(32, 201, 151, 0.22), transparent 62%),
    linear-gradient(180deg, #10161b, #0a0d11);
  border-top: 1px solid var(--line);
}

.cta__art {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(40%, 460px);
  transform: translateY(-50%);
  opacity: 0.5;
  z-index: -1;
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  animation: floaty 12s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(-53%);
  }
}

.cta__inner {
  max-width: 680px;
  margin-inline: auto;
}

.cta__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.cta__desc {
  margin-top: 16px;
  color: #aab6c2;
  font-size: 15.5px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.cta__note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

/* ---------- 17. 页脚 ---------- */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--line);
  padding: 52px 0 40px;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__mark {
  width: 30px;
  height: 30px;
}

.footer__name {
  font-weight: 700;
  font-size: 16px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 18px 0 22px;
}

.footer__links a {
  font-size: 13.5px;
  color: #a7b3bf;
  transition: color 0.2s var(--ease);
}

.footer__links a:hover {
  color: var(--teal);
}

.footer__lines {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.8;
}

.footer__lines a {
  color: #9aa6b2;
}

.footer__lines a:hover {
  color: var(--teal);
}

/* ---------- 18. 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(24, 30, 37, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #06251b;
}

/* ---------- 19. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 320;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 9px;
  background: rgba(22, 28, 35, 0.97);
  border: 1px solid rgba(32, 201, 151, 0.4);
  color: var(--text);
  font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.toast.is-error {
  border-color: rgba(255, 138, 108, 0.5);
}

.toast.is-error svg {
  color: #ff8a6c;
}

/* ---------- 21. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 22. 子页面 ---------- */
.page-head {
  position: relative;
  padding: calc(96px + 24px) 0 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #121820, #0e1116);
  border-bottom: 1px solid var(--line);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -60% -10% auto;
  height: 460px;
  background: radial-gradient(ellipse at 50% 0%, rgba(32, 201, 151, 0.18), transparent 62%);
  z-index: 0;
}

.page-head > .wrap {
  position: relative;
  z-index: 1;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.crumbs a:hover {
  color: var(--teal);
}

.page-head h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  letter-spacing: -0.02em;
}

.page-head .lead {
  margin-top: 14px;
  max-width: 44em;
  color: #b3bfcb;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
}

.page-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #b6c2cd;
}

.prose {
  max-width: 840px;
}

.prose h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 48px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose p,
.prose li {
  color: #b3bfca;
  font-size: 15px;
  line-height: 1.9;
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  margin: 14px 0;
  display: grid;
  gap: 9px;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  transform: rotate(45deg);
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(32, 201, 151, 0.12);
  color: #8ff0cd;
}

.callout {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(32, 201, 151, 0.25);
  background: rgba(32, 201, 151, 0.07);
  font-size: 13.5px;
  color: #b8c6d1;
}

.callout svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--teal);
}

.table-wrap {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
}

td {
  color: #b3bfca;
}

tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: #fff;
  font-weight: 600;
}

/* ---------- 23. 响应式 ---------- */
@media (max-width: 1024px) {
  .about {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 860px) {
  .play__panel {
    grid-template-columns: 1fr;
  }

  .play__art {
    order: -1;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }

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

  .ticker__item:nth-child(3) {
    border-left: 0;
  }

  .ticker__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .rules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --toggle: 46px;
  }

  .menu-toggle {
    top: 14px;
    right: 14px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .masthead {
    min-height: 92svh;
    padding: 96px 18px 78px;
  }

  .masthead__title {
    font-size: clamp(1.5rem, 7.1vw, 1.9rem);
    letter-spacing: -0.01em;
  }

  .masthead__sub {
    font-size: 1rem;
  }

  .masthead__actions {
    gap: 10px;
  }

  .masthead__actions .btn {
    flex: 1 1 100%;
  }

  .masthead__hint {
    font-size: 12.5px;
  }

  .ticker {
    margin-top: -34px;
  }

  .ticker__item {
    padding: 16px 12px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .join-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-field {
    justify-content: space-between;
  }

  .about__actions .btn {
    flex: 1 1 auto;
  }

  .cta__art {
    width: 74%;
    right: -28%;
    opacity: 0.25;
  }

  .cta__actions .btn {
    flex: 1 1 100%;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

/* ---------- 24. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .loader-grid i {
    opacity: 1;
  }
}
