/* ============================================================
   raasdao.com · 金融终端视觉系统 (B 方向)
   深底 + 琥珀单色 · Bloomberg 终端语法 · 纯静态 · 零 webfont
   ============================================================ */

/* ---------- 1. 设计令牌（Design Tokens）---------- */
:root {
  /* 色板：深底 + 琥珀 */
  --bg: #0B0E11;
  --bg-elev: #12161C;
  --surface: #161B22;
  --surface-2: #1C232C;
  --text: #E6EDF3;
  --text-dim: #8B949E;
  --text-mute: #6E7681;
  --accent: #F0B90B;      /* 琥珀 / 金 */
  --accent-soft: rgba(240, 185, 11, 0.12);
  --accent-line: rgba(240, 185, 11, 0.32);
  --border: rgba(240, 237, 232, 0.08);
  --border-strong: rgba(240, 237, 232, 0.14);
  --signal-up: #02C076;
  --signal-down: #F6465D;

  /* 圆角与节奏 */
  --radius: 6px;
  --radius-lg: 10px;

  /* 字体栈 */
  --font-sans: 'HarmonyOS Sans', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'HarmonyOS Sans', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, 'Cascadia Mono', monospace;
}

/* ---------- 2. 基础排版 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
p { color: var(--text-dim); text-wrap: pretty; }
a { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* ---------- 3. Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(150%);
  background: rgba(11, 14, 17, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo img { display: block; }
.nav__links { display: flex; align-items: center; }
.nav__links a {
  margin-left: 24px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .95rem;
  transition-property: color;
  transition-duration: .2s;
}
.nav__links a:hover { color: var(--accent); }
.lang-switch { font-family: var(--font-mono); }
.nav__menu-btn {
  display: none; background: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 10px 12px; cursor: pointer; color: var(--text); line-height: 0;
  transition-property: color, border-color, transform;
  transition-duration: .2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.nav__menu-btn:hover { color: var(--accent); border-color: var(--accent); }
.nav__menu-btn:active { transform: scale(0.96); }

/* ---------- 4. Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
  padding: 88px 0 96px;
}
.hero__kicker {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-family: var(--font-mono);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}
.hero p {
  font-size: 1.1rem;
  max-width: 38ch;
  margin-bottom: 32px;
  color: var(--text-dim);
}
.hero__accent { color: var(--accent); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual img {
  width: 100%; height: auto;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: 0;
  border-radius: var(--radius-lg);
}

/* ---------- 5. 按钮 ---------- */
.cta-btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  transition-property: transform, box-shadow, background-color, border-color, color;
  transition-duration: .18s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.cta-btn:hover { transform: translateY(-1px); }
.cta-btn:active { transform: scale(0.96); }
.cta-btn--primary {
  background: var(--accent); color: #0B0E11;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 24px rgba(240, 185, 11, 0.22);
}
.cta-btn--primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 28px rgba(240, 185, 11, 0.32);
}
.cta-btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--bg-elev);
}
.cta-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 6. Section 通用 ---------- */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section__title { margin-bottom: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- 6.0 Core Logic 非对称 bento ---------- */
.bento-core {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.bento-core .card--feature {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  background:
    radial-gradient(circle at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--surface);
}
.bento-core .card--feature h3 { font-size: 1.5rem; }
.bento-core .card--feature p { font-size: 1.02rem; line-height: 1.65; }

/* ---------- 6.1 问题与方案对照段 ---------- */
.problem-solution { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ps-col { display: flex; flex-direction: column; gap: 12px; }
.ps-col__title {
  font-size: 1.1rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-strong);
}
.ps-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition-property: border-color, background-color;
  transition-duration: .2s;
}
.ps-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.ps-item h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}
.ps-item p { color: var(--text-dim); font-size: .94rem; line-height: 1.55; }

/* ---------- 6.2 角色价值 ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition-property: border-color, transform;
  transition-duration: .2s;
}
.role:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.role__head { padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.role__head h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--text); margin-bottom: 6px; }
.role__head p { color: var(--text-dim); font-size: .94rem; }
.role__list { list-style: none; padding: 0; margin: 0; }
.role__list li {
  color: var(--text);
  font-size: .92rem;
  padding: 6px 0 6px 18px;
  position: relative;
}
.role__list li::before {
  content: ''; position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ---------- 6.3 路线图双轨 ---------- */
.roadmap {
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  gap: 14px 24px;
  align-items: stretch;
}
.roadmap__track { display: contents; }
.roadmap__track-name {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex; align-items: center;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}
.roadmap__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition-property: border-color;
  transition-duration: .2s;
}
.roadmap__step:hover { border-color: var(--border-strong); }
.roadmap__step h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}
.roadmap__step p { color: var(--text-dim); font-size: .9rem; line-height: 1.5; }
.roadmap__note {
  margin-top: 24px;
  color: var(--text-mute);
  font-size: .85rem;
  text-align: center;
  font-family: var(--font-mono);
}

/* ---------- 7. 卡片（终端 panel hover 扫光）---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition-property: border-color, transform, box-shadow;
  transition-duration: .2s;
}
.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 40px rgba(0, 0, 0, 0.45);
}
.card img { margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.card p { color: var(--text-dim); font-size: .94rem; }
.card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(240, 185, 11, 0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition-property: transform;
  transition-duration: .6s;
  pointer-events: none;
}
.card:hover::after { transform: translateX(100%); }

/* ---------- 8. 架构图 ---------- */
.arch-diagram {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

/* ---------- 9. 收尾 CTA ---------- */
.cta-final {
  text-align: center;
  padding: 88px 0;
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-soft) 0%, transparent 55%);
  border-top: 1px solid var(--border);
}
.cta-final h2 { margin-bottom: 14px; }
.cta-final p { margin-bottom: 28px; }

/* ---------- 10. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-mute);
  font-size: .88rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer__beian {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__beian:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer__wangan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__wangan:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer__wangan img {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.footer__mail {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
}
.footer__mail:hover { text-decoration: underline; }

/* ---------- 11. 滚动渐入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition-property: opacity, transform;
  transition-duration: .6s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 同容器内分组渐入,80ms 步进——避免「一闪而齐」 */
.bento-core .reveal:nth-child(2),
.roles .reveal:nth-child(2),
.roadmap__track .reveal:nth-child(3),
.ps-col .reveal:nth-child(2) { transition-delay: .08s; }
.bento-core .reveal:nth-child(3),
.roles .reveal:nth-child(3),
.roadmap__track .reveal:nth-child(4),
.ps-col .reveal:nth-child(3) { transition-delay: .16s; }
.ps-col .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bento-core { grid-template-columns: 1fr; }
  .bento-core .card--feature { grid-row: auto; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .problem-solution { grid-template-columns: 1fr; gap: 28px; }
  .roadmap { grid-template-columns: 120px repeat(3, 1fr); gap: 12px 16px; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .problem-solution { grid-template-columns: 1fr; gap: 20px; }
  .roadmap { grid-template-columns: 1fr; gap: 12px; }
  .roadmap__track-name { border-right: none; padding: 16px 0 4px; }
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-block; }
  .card::after { display: none; }
  .section, .hero, .cta-final { padding: 56px 0; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-elev); padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
  .nav__links.is-open a { margin: 8px 0; }
}

/* ---------- 13. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__visual svg animate { display: none; }
}
