/* 助战搭子 · 主标题下载页 */
:root {
  color-scheme: light;
  --canvas: #f3efe4;
  --ink: #1c2a24;
  --ink-soft: #46564e;
  --accent: #1f7a5a;
  --accent-deep: #155e45;
  --brand-deep: #143b2e;
  --brand-light: #f4efe2;
  --brand-mint: #7bd3b0;
  --font-sans: "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; }

.stage {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  padding: 0 40px;
  overflow: hidden;
}

.topbar {
  display: flex;
  height: 84px;
  flex: none;
  align-items: center;
}

.brand-mark { width: 42px; height: 42px; }

.stage-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 12px 0 52px;
}

.footer {
  flex: none;
  padding: 0 0 20px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

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

.footer a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1040px;
  padding: 36px 0;
  text-align: center;
}

.hero-art {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  opacity: 0.28;
  pointer-events: none;
}

.hero-rings {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 50%;
  will-change: transform;
}

.ring-a {
  fill: none;
  stroke: var(--brand-deep);
  stroke-width: 14;
  opacity: 0.18;
}

.ring-b {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  opacity: 0.3;
}

.ring-c {
  fill: none;
  stroke: var(--brand-mint);
  stroke-width: 4;
  opacity: 0.55;
}

.hero-copy { position: relative; z-index: 1; }

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(58px, 8vw, 104px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-width: 216px;
  height: 60px;
  padding: 0 30px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: var(--brand-light);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(21, 94, 69, 0.85);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn-primary { background: var(--accent-deep); }

.btn-secondary {
  border: 1px solid rgba(21, 94, 69, 0.32);
  background: rgba(255, 255, 255, 0.38);
  color: var(--accent-deep);
  box-shadow: none;
}

.btn svg { width: 18px; height: 18px; }

.btn:hover {
  background: #0f4c38;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(15, 76, 56, 0.8);
}

.btn-secondary:hover {
  border-color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 26px -18px rgba(21, 94, 69, 0.65);
}

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

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

@media (max-width: 900px) {
  .stage { padding: 0 24px; }
  .topbar { height: 72px; }
  .brand-mark { width: 38px; height: 38px; }
  .stage-main { padding: 8px 0 38px; }
  .hero-art { width: 450px; height: 450px; opacity: 0.24; }
  h1 { font-size: clamp(50px, 10.5vw, 76px); }
  .btn { height: 58px; }
}

@media (max-width: 480px) {
  .stage { padding: 0 16px; }
  .topbar { height: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  .stage-main { padding: 0 0 28px; }
  .footer { padding-bottom: 16px; }
  .hero { padding: 28px 0; }
  .hero-art { width: 350px; height: 350px; opacity: 0.2; }
  h1 { font-size: clamp(42px, 11.8vw, 54px); }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
  .btn { width: 100%; min-width: 0; max-width: 360px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
