:root {
  color-scheme: dark;
  --bg: #0d1218;
  --surface: rgba(22, 29, 38, 0.7);
  --surface-strong: rgba(26, 35, 46, 0.92);
  --text: #f4f7fb;
  --muted: #99a6b6;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #72e1c4;
  --accent-soft: rgba(114, 225, 196, 0.16);
  --accent-two: #79a8ff;
  --shadow: 0 36px 100px rgba(0, 0, 0, 0.38);
}

:root[data-theme="mingming"] {
  --accent: #ffca80;
  --accent-soft: rgba(255, 202, 128, 0.16);
  --accent-two: #ff8da1;
}

:root[data-theme="shenzhen"] {
  --accent: #70e4d0;
  --accent-soft: rgba(112, 228, 208, 0.16);
  --accent-two: #66a8ff;
}

:root[data-theme="yh617"] {
  --accent: #b4a2ff;
  --accent-soft: rgba(180, 162, 255, 0.16);
  --accent-two: #ff92c2;
}

:root[data-theme="pukeur-ai"] {
  --accent: #79ddff;
  --accent-soft: rgba(121, 221, 255, 0.16);
  --accent-two: #9d8cff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 52% -10%, #253247 0, transparent 42%),
    var(--bg);
  background-size: 54px 54px, 54px 54px, auto, auto;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one {
  top: 2%;
  right: -12%;
  background: var(--accent);
}

.ambient-two {
  bottom: -18%;
  left: -10%;
  background: var(--accent-two);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  /* svh：移动端地址栏收起/展开时不跳动；不支持 svh 的浏览器自动忽略这行 */
  min-height: 100svh;
  margin: 0 auto;
  padding: 30px 0 26px;
  display: flex;
  flex-direction: column;
}

.topbar,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--accent);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

/* ────────────────────────────────────────────────────────────────
   竖向节奏按「视口高度」算，不按宽度算。
   原因：以前 h1 用 9.2vw、hero 固定留白 80/80，在 1366×768 这类
   "宽而矮"的笔记本上算出 126px 字号，整页高约 950px ⇒ 页脚与备案号
   被顶出首屏，必须滚动才看得到（2026-09-24 修）。
   现在字号与上下留白都取 min(宽度相关, 高度相关)，矮屏自动收紧。
   ──────────────────────────────────────────────────────────────── */
.hero {
  flex: 1;
  padding: clamp(34px, 11vh, 150px) 0 clamp(22px, 7vh, 80px);
}

.eyebrow {
  margin: 0 0 clamp(14px, 2.2vh, 24px);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, min(9.2vw, 12.5vh), 128px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.lead {
  max-width: 650px;
  margin: clamp(18px, 3vh, 36px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, min(2vw, 2.1vh), 20px);
  line-height: 1.75;
}

.domain-pill {
  width: fit-content;
  margin-top: clamp(16px, 3vh, 32px);
  padding: clamp(10px, 1.7vh, 13px) 17px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.progress-grid article {
  min-height: clamp(78px, 12vh, 112px);
  padding: clamp(14px, 2.4vh, 24px);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

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

.step {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.progress-grid p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.progress-grid strong {
  font-size: 16px;
}

footer {
  padding-top: clamp(14px, 3vh, 28px);
  color: #748091;
  font-size: 12px;
}

.icp {
  /* margin:0 —— 干掉 <p> 的 UA 默认上下外边距（1em），
     否则矮屏上会多出十几像素把页面顶出 100vh */
  margin: 0;
  padding-top: clamp(8px, 1.7vh, 14px);
  color: #748091;
  font-size: 12px;
}

.icp a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(116, 128, 145, 0.35);
}

.icp a:hover {
  color: #b9c6d8;
  border-bottom-color: rgba(185, 198, 216, 0.55);
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 20px;
  }

  .status {
    padding: 7px 10px;
  }

  .hero {
    padding: clamp(26px, 6.5vh, 90px) 0 clamp(16px, 4.5vh, 64px);
  }

  h1 {
    font-size: clamp(38px, min(15vw, 9.5vh), 82px);
  }

  .lead {
    line-height: 1.7;
  }

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

  .progress-grid article {
    min-height: clamp(70px, 10vh, 112px);
  }

  .progress-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* 矮屏笔记本（1366×768 / 1280×800 一类）再收一档，
   目标是页脚与备案号落在首屏内、完全不用滚动 */
@media (min-width: 721px) and (max-height: 860px) {
  .hero {
    padding: clamp(24px, 7vh, 72px) 0 clamp(14px, 4vh, 44px);
  }

  h1 {
    font-size: clamp(40px, min(8.4vw, 11vh), 104px);
  }

  .lead {
    margin-top: clamp(14px, 2.2vh, 24px);
  }

  .domain-pill {
    margin-top: clamp(12px, 2.2vh, 22px);
  }

  .progress-grid article {
    min-height: clamp(72px, 10vh, 96px);
    padding: clamp(12px, 1.8vh, 18px);
  }

  footer {
    padding-top: clamp(12px, 2vh, 20px);
  }

  .icp {
    padding-top: 4px;
  }
}

@media (max-width: 480px) {
  .status {
    font-size: 0;
  }

  .status::after {
    content: "已就绪";
    font-size: 12px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > *,
  .progress-grid {
    animation: rise 680ms ease both;
  }

  .hero > :nth-child(2) { animation-delay: 70ms; }
  .hero > :nth-child(3) { animation-delay: 140ms; }
  .hero > :nth-child(4) { animation-delay: 210ms; }
  .progress-grid { animation-delay: 280ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
