/*
 * FutureCat「喵星」设计系统：futurecat.cc 与 manuscript.futurecat.cc 共用。
 * 规范副本在 manuscript-aggregator/assets/css/futurecat.css，
 * futurecat-official-site/assets/css/futurecat.css 必须与之逐字节一致（测试会校验）。
 *
 * 规则：深空底色；青绿（--signal）用于科技高光；橙色（--accent）只用于主按钮；
 * 图像只用真实产品界面与矢量图形；内容对齐同一条 3 / 9 分栏线。
 */

:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #080c16;
  --panel: #0b111d;
  --panel-2: #101827;
  --line: rgba(148, 163, 184, 0.14);
  --line-2: rgba(148, 163, 184, 0.28);
  --text: #eef2f8;
  --text-2: #aeb8c9;
  --text-3: #808ca0;
  --signal: #4de2c9;
  --signal-soft: rgba(77, 226, 201, 0.1);
  --signal-line: rgba(77, 226, 201, 0.45);
  --violet: #8f9dff;
  --accent: #ff7a2e;
  --accent-hover: #ff9152;
  --accent-ink: #1a0b02;
  --beta: #ffcf73;
  --caution: #ff9d8a;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --col-gap: clamp(16px, 2.4vw, 32px);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: -9999px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--signal);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  left: var(--gutter);
}

.wrap {
  position: relative;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 0 var(--col-gap);
}

.mono {
  font-family: var(--mono);
}

/* 背景网格与光晕 */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.glow {
  position: absolute;
  z-index: 0;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77, 226, 201, 0.16), transparent);
  filter: blur(10px);
  pointer-events: none;
}

.glow-violet {
  background: radial-gradient(closest-side, rgba(143, 157, 255, 0.16), transparent);
}

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.glyph {
  width: 28px;
  height: 28px;
  color: var(--signal);
  filter: drop-shadow(0 0 6px rgba(77, 226, 201, 0.55));
}

.wordmark-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
}

.wordmark-sub {
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.wordmark-latin {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
  font-size: 14px;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-user {
  overflow: hidden;
  max-width: 12em;
  color: var(--text-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-mobile {
  display: none;
  position: relative;
}

.nav-mobile summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  list-style: none;
  cursor: pointer;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

.nav-mobile-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
}

.nav-mobile-panel a:hover {
  background: var(--panel-2);
  color: var(--text);
}

/* ---------- 按钮与链接 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

/* 全站唯一使用橙色的元素 */
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(255, 122, 46, 0.7);
}

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

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--signal-line);
  background: var(--signal-soft);
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--signal-line);
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--signal);
}

.arrow {
  display: inline-block;
  transition: transform 140ms ease;
}

a:hover > .arrow,
a:hover .arrow {
  transform: translateX(4px);
}

/* ---------- 标签与标题 ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  from {
    opacity: 0.8;
    transform: scale(0.6);
  }

  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

.display {
  font-size: clamp(40px, 6.6vw, 84px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.display-m {
  font-size: clamp(34px, 5vw, 60px);
}

.display-s {
  font-size: clamp(28px, 3.6vw, 36px);
}

.grad {
  background: linear-gradient(92deg, #eef2f8 0%, var(--violet) 45%, var(--signal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2 {
  margin-top: 20px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.3;
}

.h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.35;
}

.lede {
  max-width: 36em;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.9;
}

.body {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.9;
}

.body + .body {
  margin-top: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 36px;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(80px, 12vw, 160px) 0 clamp(120px, 14vw, 200px);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-planet {
  position: absolute;
  top: calc(100% - clamp(90px, 10vw, 150px));
  left: 50%;
  z-index: 0;
  width: max(1600px, 140vw);
  height: max(1600px, 140vw);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(77, 226, 201, 0.12), transparent 18%), var(--bg);
  box-shadow:
    0 -1px 0 rgba(77, 226, 201, 0.6),
    0 -24px 80px -10px rgba(77, 226, 201, 0.35),
    0 -60px 180px -40px rgba(143, 157, 255, 0.35);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero .wrap {
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.hero .display {
  max-width: 10em;
}

.scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.scenarios li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.6);
  color: var(--text-2);
  font-size: 13px;
}

.scenarios .scenarios-label {
  border-color: transparent;
  background: none;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.hero-compact {
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
}

/* ---------- 分区 ---------- */

.section {
  position: relative;
  overflow-x: clip;
  padding: clamp(80px, 10vw, 140px) 0 0;
}

.hero + .section {
  padding-top: clamp(40px, 5vw, 72px);
}

.section:last-of-type {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .lede {
  margin-top: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

/* 事实条 */
.facts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 17, 29, 0.6);
}

.facts-row > div {
  padding: 24px 28px;
}

.facts-row > div + div {
  border-left: 1px solid var(--line);
}

.fact-value {
  font-size: 22px;
  font-weight: 600;
}

.fact-label {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 14px;
}

/* 卡片 */
.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--signal-line);
  border-radius: 12px;
  background: var(--signal-soft);
  color: var(--signal);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-index {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.card-title {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.card-en {
  margin-left: 8px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-text {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.85;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* 使命 / 愿景 */
.statement {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(77, 226, 201, 0.6), rgba(143, 157, 255, 0.35) 50%, rgba(148, 163, 184, 0.12)) border-box;
}

.statement-text {
  margin-top: 18px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.6;
}

/* 产品展示 */
.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.product + .product {
  margin-top: clamp(80px, 10vw, 128px);
}

.product-reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.product-reverse .product-copy {
  order: 2;
}

.product-copy .h3 {
  margin-top: 16px;
}

.product-copy .body {
  margin-top: 16px;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--text-2);
  font-size: 15px;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.checks li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid var(--signal);
  border-left: 2px solid var(--signal);
  transform: translateY(-3px) rotate(-45deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 12px;
}

.frame {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.frame-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a3446;
}

.frame-url {
  flex: 1;
  margin: 0 36px 0 18px;
  padding: 2px 10px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame img {
  width: 100%;
  height: auto;
}

.stage {
  position: relative;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77, 226, 201, 0.22), transparent);
  filter: blur(30px);
}

.stage > * {
  position: relative;
}

.stack {
  aspect-ratio: 16 / 12;
}

.stack .frame {
  position: absolute;
  width: 76%;
}

.stack .frame:nth-child(1) {
  top: 0;
  left: 0;
  filter: brightness(0.45) saturate(0.7);
}

.stack .frame:nth-child(2) {
  top: 14%;
  left: 12%;
  filter: brightness(0.7) saturate(0.85);
}

.stack .frame:nth-child(3) {
  top: 28%;
  left: 24%;
}

.figcaption {
  margin-top: 14px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: right;
}

/* 流程 */
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal-line) 12%, var(--signal-line) 88%, transparent);
}

.pipeline::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 8%;
  width: 12%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  filter: drop-shadow(0 0 6px var(--signal));
  animation: flow 4.8s linear infinite;
}

@keyframes flow {
  from {
    left: 6%;
  }

  to {
    left: 82%;
  }
}

.step {
  position: relative;
  text-align: center;
}

.step-node {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid var(--signal-line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--signal);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px -4px rgba(77, 226, 201, 0.6);
}

.step-node svg {
  width: 20px;
  height: 20px;
}

.step-index {
  display: block;
  margin-top: 18px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.step-title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
}

.step-text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.8;
}

/* 语录横幅 */
.quote {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 50%, rgba(77, 226, 201, 0.12), transparent 40%),
    var(--panel);
}

.quote img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 24px -4px rgba(77, 226, 201, 0.5);
}

.quote p {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.7;
}

.quote small {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 400;
}

.subhead {
  margin: clamp(56px, 7vw, 88px) 0 24px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
}

/* 时间线 */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--signal-line), var(--line) 85%, transparent);
}

.milestone {
  position: relative;
  padding-top: 36px;
}

.milestone::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 12px rgba(77, 226, 201, 0.7);
}

.milestone-next::before {
  border-color: var(--text-3);
  box-shadow: none;
}

.milestone time,
.milestone .milestone-date {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.milestone-next .milestone-date {
  color: var(--text-3);
}

.milestone h3 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.milestone p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.8;
}

/* 轨道图 / 网络图 */
.orbit-figure,
.network-figure {
  width: 100%;
  height: auto;
  overflow: visible;
}

.orbit-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.net-link {
  stroke-dasharray: 4 6;
  animation: dash 6s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

/* 社区横幅 / 行动号召 */
.banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 157, 255, 0.16), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(77, 226, 201, 0.12), transparent 40%),
    var(--bg-2);
}

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-2);
  text-align: center;
}

.cta .display-m {
  position: relative;
}

.cta .actions {
  position: relative;
  justify-content: center;
}

/* ---------- 工具目录 ---------- */

.group-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.group-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
}

.group-index a span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
}

.group-index a:hover {
  border-color: var(--signal-line);
  color: var(--text);
}

.directory {
  padding-top: 0;
}

.group {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.group + .group {
  margin-top: clamp(48px, 6vw, 80px);
}

.group-head {
  align-self: start;
  position: sticky;
  top: 96px;
  padding-bottom: 24px;
}

.group-index-no {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.group-title {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.group-summary {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.8;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tool:hover {
  border-color: var(--signal-line);
  box-shadow: 0 0 0 1px rgba(77, 226, 201, 0.12), 0 18px 50px -20px rgba(77, 226, 201, 0.35);
  transform: translateY(-2px);
}

.tool .card-icon {
  width: 46px;
  height: 46px;
}

.tool-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.tool-desc {
  display: block;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}

.tool-go {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0.06em;
  vertical-align: 2px;
}

.tag-beta {
  border-color: rgba(255, 207, 115, 0.45);
  color: var(--beta);
}

.tag-caution {
  border-color: rgba(255, 157, 138, 0.45);
  color: var(--caution);
}

.legend {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 20px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.8;
  list-style: none;
}

.legend .tag {
  margin: 0 10px 0 0;
  vertical-align: 1px;
}

.legend-row {
  margin-top: clamp(48px, 6vw, 72px);
}

/* 工具箱首屏中的“起草中”示意 */
.draft {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(11, 17, 29, 0.85);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  font-size: 13px;
}

.draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.draft-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
}

.draft-title {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
}

.draft-lines {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.draft-lines li {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(174, 184, 201, 0.28), rgba(174, 184, 201, 0.12));
  transform-origin: left;
  animation: type 5s ease-in-out infinite;
}

.draft-lines li:nth-child(2) {
  width: 92%;
  animation-delay: 0.3s;
}

.draft-lines li:nth-child(3) {
  width: 84%;
  animation-delay: 0.6s;
}

.draft-lines li:nth-child(4) {
  width: 60%;
  animation-delay: 0.9s;
}

@keyframes type {
  0% {
    transform: scaleX(0);
  }

  30%,
  85% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(1);
    opacity: 0.4;
  }
}

.draft-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.draft-sources li {
  padding: 2px 8px;
  border: 1px solid var(--signal-line);
  border-radius: 5px;
  background: var(--signal-soft);
  color: var(--signal);
  font-family: var(--mono);
  font-size: 11px;
}

.draft-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}

.draft-foot strong {
  color: var(--beta);
  font-weight: 500;
}

/* ---------- 账号表单 ---------- */

.auth {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px);
}

.auth .wrap {
  z-index: 1;
}

.auth-panel {
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(11, 17, 29, 0.82);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-intro {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.85;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:focus {
  border-color: var(--signal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 226, 201, 0.18);
}

.field-hint {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
}

.form .btn {
  margin-top: 6px;
}

.notice {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.notice-success {
  border-color: rgba(77, 226, 201, 0.4);
  background: rgba(77, 226, 201, 0.08);
  color: #c4f6ec;
}

.notice-error {
  border-color: rgba(255, 128, 128, 0.45);
  background: rgba(255, 107, 107, 0.08);
  color: #ffd0c9;
}

.auth-links {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
  list-style: none;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.8;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 32px var(--col-gap);
  padding: 56px 0 40px;
}

.footer-top h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.footer-top ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-top a,
.footer-bottom a {
  text-decoration: none;
}

.footer-top a:hover,
.footer-bottom a:hover {
  color: var(--text);
}

.footer-tagline {
  margin-top: 14px;
  color: var(--text-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  text-decoration: none;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* ---------- 入场动画（仅在脚本可用且未要求减弱动画时生效） ---------- */

.js [data-reveal] {
  transition: opacity 700ms ease, transform 700ms ease;
}

.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }

  .pipeline::before,
  .pipeline::after {
    display: none;
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 36px;
  }

  .timeline::before {
    display: none;
  }

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

  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
  }
}

@media (max-width: 860px) {
  .two-col,
  .product,
  .product-reverse,
  .banner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-reverse .product-copy {
    order: 0;
  }

  .group-head {
    position: static;
  }

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

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-top > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .facts-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts-row > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .cards-4,
  .cards-2,
  .pipeline,
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    text-align: left;
  }

  .step-node {
    grid-row: span 3;
    margin: 0;
  }

  .step-index {
    margin-top: 0;
  }

  .timeline {
    padding-left: 4px;
    border-left: 1px solid var(--line-2);
  }

  .milestone {
    padding: 0 0 0 24px;
  }

  .milestone::before {
    top: 6px;
    left: -11px;
  }

  .quote {
    align-items: flex-start;
    flex-direction: column;
  }

  .stack {
    aspect-ratio: 16 / 13;
  }

  .stack .frame {
    width: 86%;
  }

  .stack .frame:nth-child(2) {
    left: 7%;
  }

  .stack .frame:nth-child(3) {
    left: 14%;
  }

  .nav-user,
  .wordmark-latin {
    display: none;
  }

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

@media (max-width: 400px) {
  .site-header .wrap {
    gap: 12px;
  }

  .site-nav {
    gap: 16px;
  }

  /* 超小屏页头只保留主要账号入口，注册入口仍在首屏与页脚 */
  .nav-secondary {
    display: none;
  }

  .wordmark {
    gap: 8px;
  }

  .wordmark-name {
    font-size: 16px;
  }

  .wordmark-sub {
    padding-left: 8px;
    font-size: 13px;
  }

  .glyph {
    width: 24px;
    height: 24px;
  }

  .btn {
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
