:root {
  --bg: #0b0f0c;
  --bg-2: #101712;
  --surface: #151d17;
  --surface-2: #1a241d;
  --surface-3: #212c24;
  --line: #2a3a2e;
  --line-2: #34473a;
  --text: #eef6f0;
  --text-heading: #ffffff;
  --muted: #95b3a0;
  --muted-2: #6b8674;
  --green: #5bbf4a;
  --green-2: #73d661;
  --green-3: #8bec7a;
  --green-dk: #3a8f2e;
  --green-glow: rgba(91, 191, 74, 0.22);
  --teal: #3dd1a8;
  --blue: #60a5fa;
  --amber: #fbbf24;
  --purple: #a78bfa;
  --rose: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(91, 191, 74, 0.15);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 12, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 58, 46, 0.6);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; flex-shrink: 0;
}
.brand-logo {
  width: 32px; height: 32px;
  border-radius: 7px;
  filter: drop-shadow(0 0 10px rgba(91, 191, 74, 0.35));
}
.brand-name { font-size: 20px; letter-spacing: 0.5px; color: var(--text-heading); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-3));
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text-heading); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.nav-menu {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-menu span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: 0.25s var(--ease); }
.nav-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14.5px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #0a1209; box-shadow: 0 6px 20px rgba(91, 191, 74, 0.32);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(91, 191, 74, 0.45); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-heading); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-2); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(91, 191, 74, 0.20), transparent 60%),
    radial-gradient(760px 440px at 88% 0%, rgba(61, 209, 168, 0.12), transparent 55%),
    radial-gradient(600px 600px at 70% 60%, rgba(91, 191, 74, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
}
.hero-inner {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 100px 24px 80px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy { text-align: left; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(21, 29, 23, 0.7);
  color: var(--green-3); font-size: 12.5px; font-weight: 600; margin-bottom: 22px;
}
.hero-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
.hero-title {
  font-size: clamp(38px, 5.5vw, 64px); margin: 0 0 18px;
  font-weight: 800; letter-spacing: -0.5px; line-height: 1.15;
  color: var(--text-heading);
}
.hero-sub {
  color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 0 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.stat {
  background: rgba(21, 29, 23, 0.65); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  backdrop-filter: blur(8px); transition: transform 0.2s, border-color 0.2s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.stat-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.stat-top b { font-size: 32px; color: var(--green-3); line-height: 1; font-weight: 800; }
.stat-top span { font-size: 16px; color: var(--text-heading); font-weight: 700; }
.stat-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-logo {
  width: min(92%, 420px); position: relative; z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45));
  animation: float 6s ease-in-out infinite;
}
.hero-ring {
  position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(91, 191, 74, 0.18); z-index: 1;
  box-shadow: 0 0 80px rgba(91, 191, 74, 0.1), inset 0 0 80px rgba(91, 191, 74, 0.05);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

/* ---------- 通用 section ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: 96px 24px; }
.section-alt { background: var(--bg-2); max-width: none; }
.section-alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--green-2); margin-bottom: 12px; padding: 4px 10px; border-radius: 6px;
  background: rgba(91, 191, 74, 0.1); border: 1px solid rgba(91, 191, 74, 0.2);
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; color: var(--text-heading); }
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px); border-color: var(--line-2);
  box-shadow: var(--shadow-glow), var(--shadow);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; color: var(--text-heading);
}
.icon-green { background: linear-gradient(135deg, rgba(91,191,74,0.18), rgba(91,191,74,0.08)); box-shadow: 0 0 0 1px rgba(91,191,74,0.25); color: var(--green-3); }
.icon-teal { background: linear-gradient(135deg, rgba(61,209,168,0.18), rgba(61,209,168,0.08)); box-shadow: 0 0 0 1px rgba(61,209,168,0.25); color: var(--teal); }
.icon-blue { background: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(96,165,250,0.08)); box-shadow: 0 0 0 1px rgba(96,165,250,0.25); color: var(--blue); }
.icon-amber { background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(251,191,36,0.08)); box-shadow: 0 0 0 1px rgba(251,191,36,0.25); color: var(--amber); }
.icon-purple { background: linear-gradient(135deg, rgba(167,139,250,0.18), rgba(167,139,250,0.08)); box-shadow: 0 0 0 1px rgba(167,139,250,0.25); color: var(--purple); }
.icon-rose { background: linear-gradient(135deg, rgba(248,113,113,0.18), rgba(248,113,113,0.08)); box-shadow: 0 0 0 1px rgba(248,113,113,0.25); color: var(--rose); }
.card h3 { margin: 0 0 10px; font-size: 17px; color: var(--text-heading); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-no {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, var(--green-2), var(--green-dk)); color: #0a1209;
  margin-bottom: 16px;
}
.step-line {
  position: absolute; top: 45px; right: -20px; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--green-dk), transparent);
}
.step:last-child .step-line { display: none; }
.step h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--text-heading); }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- 开服痛点 ---------- */
.pain-grid { display: flex; flex-direction: column; gap: 16px; }
.pain-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.pain-side { padding: 24px 26px; }
.pain-problem { background: linear-gradient(180deg, rgba(248,113,113,0.07), rgba(248,113,113,0.02)); }
.pain-solution { background: linear-gradient(180deg, rgba(91,191,74,0.09), rgba(91,191,74,0.03)); }
.pain-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
  background: rgba(248,113,113,0.16); color: #f87171; box-shadow: 0 0 0 1px rgba(248,113,113,0.3);
}
.pain-tag-ok {
  background: rgba(91,191,74,0.16); color: var(--green-3); box-shadow: 0 0 0 1px rgba(91,191,74,0.3);
}
.pain-side h3 { margin: 0 0 8px; font-size: 17px; color: var(--text-heading); }
.pain-side p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.pain-arrow {
  display: grid; place-items: center; padding: 0 18px; font-size: 22px; font-weight: 700;
  color: var(--line-2); background: var(--bg-2); flex-shrink: 0;
}
@media (max-width: 760px) {
  .pain-row { grid-template-columns: 1fr; }
  .pain-arrow { padding: 12px 0; transform: rotate(90deg); }
}

/* ---------- 对比表 ---------- */
.compare { max-width: 980px; margin: 0 auto; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; font-size: 14.5px; line-height: 1.6; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--bg-2); font-size: 14px; color: var(--text-heading); font-weight: 700; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .dim { color: var(--muted); font-weight: 600; white-space: nowrap; width: 116px; }
.compare-table .col-mcw { background: rgba(91,191,74,0.06); color: var(--text-heading); }
.compare-table thead .col-mcw { background: rgba(91,191,74,0.12); color: var(--green-3); }
.why-note { max-width: 880px; margin: 36px auto 0; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius); padding: 24px 26px; }
.why-note h3 { margin: 0 0 14px; font-size: 17px; color: var(--text-heading); }
.why-note p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.why-note p:last-child { margin-bottom: 0; }
.why-note ul { margin: 6px 0 16px; padding-left: 18px; }
.why-note li { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin: 8px 0; }
.why-note li strong { color: var(--text-heading); }
.why-note b { color: var(--text-heading); }
.why-honest { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13.8px; }
.compare-footnote { max-width: 980px; margin: 10px auto 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 下载 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center;
  box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s;
}
.platform-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.platform-active { border-color: rgba(91,191,74,0.35); background: linear-gradient(180deg, rgba(91,191,74,0.08), var(--surface)); }
.platform-active:hover { border-color: var(--green-2); }
.platform-disabled { opacity: 0.65; background: var(--surface); }
.platform-disabled:hover { transform: none; border-color: var(--line); }
.platform-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 18px; color: var(--text-heading); }
.platform-active .platform-icon { background: rgba(91,191,74,0.15); color: var(--green-3); }
.platform-name { font-size: 18px; font-weight: 700; color: var(--text-heading); margin-bottom: 6px; }
.platform-meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; flex: 1; }
.platform-card .btn-block { width: 100%; }
.btn-block { display: inline-flex; align-items: center; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dl-note { color: var(--muted); font-size: 14px; margin-top: 18px; text-align: center; }
.release-notes-btn { margin: 18px auto 0; display: flex; }

/* ---------- 更新公告弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); }
.modal-dialog {
  position: relative; z-index: 101; width: 100%; max-width: 640px; max-height: 80vh;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; font-size: 18px; color: var(--text-heading); }
.modal-close { width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; transition: color 0.2s, background 0.2s; }
.modal-close:hover { color: var(--text-heading); background: var(--surface-2); }
.modal-body { padding: 24px; overflow-y: auto; color: var(--text); font-size: 14.5px; line-height: 1.75; }
.modal-loading { color: var(--muted); margin: 0; }
.modal-body p { margin: 0 0 12px; }
.modal-body strong { color: var(--green-3); font-weight: 600; }
.modal-body ul, .modal-body ol { margin: 8px 0; padding-left: 22px; }
.modal-body li { margin: 6px 0; }

/* ---------- 玩家端 ---------- */
.player-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.player-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.ps-no {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; color: #0a1209;
  background: var(--green); font-size: 15px;
}
.player-step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.player-step b { color: var(--text-heading); font-weight: 600; }
.player-note { color: var(--muted); margin-top: 24px; text-align: center; font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); margin-top: 0; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 48px 24px 24px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 38px; height: 38px; border-radius: 8px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-3); }
.footer-bottom {
  max-width: 1160px; margin: 0 auto; padding: 20px 24px 40px;
  color: var(--muted-2); font-size: 12px; line-height: 1.8;
  border-top: 1px solid var(--line);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-heading);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s, color 0.2s;
  z-index: 90;
}
.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--green-3);
  color: var(--bg);
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin-left: auto; margin-right: auto; max-width: 640px; }
  .hero-logo { width: min(70%, 320px); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-line { display: none; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-menu { display: flex; margin-left: auto; }
  .nav-links.is-open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 12px; right: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px; box-shadow: var(--shadow); gap: 4px; z-index: 40;
  }
  .nav-links.is-open a { padding: 10px 12px; border-radius: 8px; }
  .nav-links.is-open a:hover { background: var(--surface-2); }
  .nav-cta { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .player-box { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}
