/* 落地项目 · 官网 — 暗黑科技风 · 青蓝发光 */
/* 令牌沿用 MathConstruct/NexusOS 一套，便于两站视觉统一 */

:root {
  --bg-deep: #06080c;
  --bg-mid: #0c1018;
  --bg-card: #111827;
  --bg-elevated: #151d2e;
  --text-primary: #e8f4fc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #00e5ff;
  --accent-soft: #22d3ee;
  --accent-dim: #0891b2;
  --accent-glow: rgba(0, 229, 255, 0.35);
  --accent-line: rgba(0, 229, 255, 0.5);
  --border: rgba(0, 229, 255, 0.12);
  --warn: #f59e0b;
  --ok: #34d399;
  --radius: 12px;
  --header-h: 64px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(0, 229, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 45%, rgba(8, 145, 178, 0.06), transparent);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h);
  z-index: 50;
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--text-secondary); }
.nav a:hover, .nav a.is-active { color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: 8px; padding: 6px 10px; font-size: 14px; }

@media (max-width: 860px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column;
    gap: 0; background: rgba(8, 12, 18, .97); border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 40px; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  color: var(--accent); text-transform: uppercase;
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 5px 12px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.18; margin: 0 0 18px;
  font-weight: 700; letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--text-secondary); max-width: 46em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--accent-line); color: var(--accent);
  background: rgba(0, 229, 255, .06); transition: .18s;
}
.btn:hover { background: rgba(0, 229, 255, .14); color: #fff; border-color: var(--accent); }
.btn.ghost { border-color: rgba(255,255,255,.16); color: var(--text-secondary); background: transparent; }
.btn.ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,.35); }

/* ---------- Section ---------- */
.section { padding: 54px 0; border-top: 1px solid rgba(255,255,255,.05); }
.section:first-of-type { border-top: none; }
.section-head { margin-bottom: 30px; }
.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--accent-dim); }
.section h2 { font-size: clamp(22px, 2.8vw, 32px); margin: 8px 0 10px; font-weight: 700; }
.section h3 { font-size: 18px; margin: 26px 0 10px; font-weight: 600; }
.section p { color: var(--text-secondary); }
.section p.strong { color: var(--text-primary); }

/* ---------- 两条线 ---------- */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 880px) { .lines { grid-template-columns: 1fr; } }
.line-card {
  position: relative; padding: 26px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(0,229,255,.06), rgba(17,24,39,.6) 40%);
  border: 1px solid var(--border); overflow: hidden;
}
.line-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.line-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--accent-dim); }
.line-card h3 { margin: 8px 0 10px; font-size: 20px; color: var(--text-primary); }
.line-card p { margin: 0 0 16px; font-size: 14.5px; }
.line-card ul { margin: 0 0 18px; padding-left: 18px; color: var(--text-secondary); font-size: 14px; }
.line-card li { margin: 6px 0; }
.line-card .go { font-size: 14px; font-weight: 600; }

/* ---------- 卡片网格 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 20px;
}
.card h4 { margin: 0 0 8px; font-size: 15px; color: var(--text-primary); }
.card p { margin: 0; font-size: 13.5px; }
.card .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-dim); }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 30px; color: var(--accent); font-family: var(--font-mono); font-weight: 600; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- 公式 ---------- */
.formula {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text-primary);
  background: rgba(0,229,255,.05); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; margin: 10px 0; overflow-x: auto;
}
.formula small { color: var(--text-muted); display: block; margin-top: 6px; font-size: 12px; }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
th { background: rgba(0,229,255,.06); color: var(--accent-soft); font-weight: 600; font-size: 12.5px; }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
td.num, th.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }

/* ---------- 演示：预算计算器 ---------- */
.widget {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px;
}
@media (max-width: 860px) { .widget { grid-template-columns: 1fr; } }
.ctrl { margin-bottom: 18px; }
.ctrl label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.ctrl label b { font-family: var(--font-mono); color: var(--accent); font-weight: 600; }
.ctrl input[type=range] { width: 100%; accent-color: var(--accent); }
.readout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.readout .box { background: rgba(0,229,255,.05); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.readout .box span { display: block; font-size: 11.5px; color: var(--text-muted); }
.readout .box b { font-family: var(--font-mono); font-size: 22px; color: var(--accent); }
.readout .verdict { grid-column: 1 / -1; }
.readout .verdict b { font-size: 15px; color: var(--warn); }

/* ---------- 下载 ---------- */
.dl { display: grid; gap: 10px; }
.dl-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: var(--bg-mid);
}
.dl-item:hover { border-color: var(--accent-line); }
.dl-item .ext {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  border: 1px solid var(--accent-line); color: var(--accent); border-radius: 5px; padding: 3px 6px; flex: none;
}
.dl-item .meta { flex: 1; }
.dl-item .meta b { display: block; font-size: 14px; color: var(--text-primary); font-weight: 600; }
.dl-item .meta span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid rgba(255,255,255,.07); padding: 34px 0 46px; margin-top: 20px; }
.footer .row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.footer a { color: var(--text-secondary); }

/* ---------- 渐显 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.note { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }
.hr { height: 1px; background: rgba(255,255,255,.07); margin: 26px 0; }

/* ---------- 首屏：身位区（立场 + 三条信条 + 信任条） ---------- */
.hero-top { max-width: 52em; }

.creed {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 26px;
}
.creed span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--accent-soft); border: 1px solid var(--border);
  background: rgba(0,229,255,.04); border-radius: 999px; padding: 6px 14px;
}
.creed span::before {
  content: '◇'; margin-right: 8px; color: var(--accent-dim); font-size: 10px;
}

.trustbar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,.06);
}
.trustbar > div { background: var(--bg-mid); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.trustbar b { font-family: var(--font-mono); font-size: 18px; color: var(--accent); font-weight: 600; }
.trustbar span { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
@media (max-width: 820px) { .trustbar { grid-template-columns: 1fr 1fr; } }

/* 立场段落：一句主张放大 */
.claim {
  font-size: clamp(17px, 2vw, 21px) !important; color: var(--text-primary) !important;
  border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 12px;
}

/* 三步卡：左侧竖条 */
.step { position: relative; }
.step::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.step { padding-left: 22px; }

/* ---------- 首屏：主题 + 宾语 ---------- */
.hero h1 { margin-bottom: 10px; }
.scope {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em;
  color: var(--accent-dim); margin: 0 0 18px;
}
.hero .lead b { color: var(--text-primary); font-weight: 600; }

/* 品牌字较长（8 字），页眉收一号并存住呼吸感 */

/* 首屏：主题行（大标题之上的一句定义） */
.theme {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--accent-soft); font-weight: 500; letter-spacing: .04em;
  margin: 0 0 12px;
}

/* 首屏：主标题 + 副标题（副标题承接动作） */
.hero h1 { margin: 0 0 4px; }
.subtitle {
  font-size: clamp(22px, 3.2vw, 36px); font-weight: 600; line-height: 1.25;
  color: var(--accent); margin: 0 0 12px; letter-spacing: .01em;
}
.hero .lead { margin-top: 6px; }

/* ---------- 页眉：左图标 · 中导航 · 右名字 ---------- */
.header-row { display: flex; align-items: center; gap: 22px; height: 100%; }

.mark {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent-dim), var(--accent));
  color: #06121a; font-size: 15px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 1px rgba(0,229,255,.25), 0 6px 18px -8px var(--accent-glow);
  transition: transform .18s;
}
.mark:hover { transform: translateY(-1px); }

.nav { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text-primary); }
.wordmark {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  white-space: nowrap; letter-spacing: .01em;
}
.wordmark:hover { color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 16px;
    background: rgba(8,12,18,.97); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .wordmark { font-size: 14px; }
  .nav-toggle {
    display: block; flex: none; margin-left: auto; background: none; border: 1px solid var(--border);
    color: var(--text-secondary); border-radius: 8px; padding: 6px 10px; font-size: 13px;
  }
}

/* ---------- 首屏：居中 · 横线 · 发光（对齐几何地形） ---------- */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: calc(88vh - var(--header-h));
  padding: 72px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.hero-glow {
  position: absolute; inset: 12% 8% auto; height: 46%;
  background: radial-gradient(ellipse at center, rgba(0,229,255,.13), transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.hero .eyebrow { margin-bottom: 20px; }

.hero-title {
  font-size: clamp(38px, 6vw, 62px); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; margin: 0;
  text-shadow: 0 0 44px rgba(0,229,255,.22);
}
.hero-subtitle {
  font-size: clamp(20px, 3vw, 32px); font-weight: 600; letter-spacing: .06em;
  color: var(--accent-soft); margin: 10px 0 0;
  text-shadow: 0 0 28px rgba(0,229,255,.35);
}
.hero-scope {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .16em;
  color: var(--accent-dim); margin: 16px 0 0;
}

.hero-rule {
  width: min(34rem, 82%); height: 1px; margin: 30px auto 26px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.55), transparent);
  box-shadow: 0 0 12px rgba(0,229,255,.45);
}

.hero-cta { justify-content: center; }
.hero .creed { justify-content: center; margin: 26px 0 0; }
.hero .trustbar { margin-top: 34px; width: min(58rem, 100%); }

@media (max-width: 860px) {
  .hero { min-height: auto; padding: 48px 0 44px; }
  .hero-rule { margin: 24px auto 22px; }
  .hero .trustbar { margin-top: 26px; }
}
