/* 慧源行官网 · 基础样式（Web / H5 共用） */
:root {
  --navy-950: #04162e;
  --navy-900: #072651;
  --navy-800: #0a3d7a;
  --blue-700: #0b53a8;
  --blue-600: #1472c4;
  --blue-500: #2b95d6;
  --cyan-400: #4fc4e3;
  --cyan-300: #6fe0ec;
  --ink: #0f1f33;
  --ink-2: #33465e;
  --muted: #657890;
  --line: #e3ecf6;
  --bg: #f4f8fd;
  --white: #fff;
  --grad: linear-gradient(120deg, #0b53a8 0%, #1e86cf 48%, #4fc9e2 100%);
  --grad-soft: linear-gradient(120deg, #eaf5ff 0%, #e6f8fc 100%);
  --shadow-sm: 0 4px 18px rgba(12, 52, 102, .06);
  --shadow: 0 16px 46px rgba(9, 46, 95, .10);
  --shadow-lg: 0 26px 70px rgba(6, 35, 78, .16);
  --radius: 16px;
  --max: 1200px;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.72;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
::selection { background: #bfe9f7; color: #06264f; }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.container-narrow { width: min(100% - 48px, 900px); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(10, 61, 122, .09);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled { box-shadow: 0 8px 28px rgba(6, 38, 81, .09); }
.nav-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 4px 8px rgba(11, 83, 168, .18)); }
.brand-wordmark { width: 112px; height: auto; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-cn { font-size: 18px; font-weight: 800; letter-spacing: .16em; color: var(--navy-900); }
.brand-en { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: var(--blue-600); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 13px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--blue-700); background: #eef6ff; }
.nav-links a.active { color: var(--blue-700); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 1px;
  height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(20, 114, 196, .24);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 114, 196, .34); }
.nav-cta-static { cursor: default; }
.nav-cta-static:hover { transform: none; box-shadow: 0 6px 18px rgba(20, 114, 196, .24); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #7cf0c0; box-shadow: 0 0 0 4px rgba(124, 240, 192, .22); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy-900); position: relative; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy-900); transition: .25s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(20, 114, 196, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20, 114, 196, .38); }
.btn-ghost { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue-700); border-color: var(--line); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.section { padding: 96px 0; position: relative; }
.section-head { margin-bottom: 52px; max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; letter-spacing: -.02em; margin: 14px 0 14px; font-weight: 800; color: var(--navy-900); }
.section-desc { color: var(--muted); font-size: 16px; line-height: 1.9; margin: 0; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c7def4; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-950); color: #b8c9dd; padding: 64px 0 26px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 12% -10%, rgba(41, 149, 214, .22), transparent 70%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; position: relative; }
.footer .brand-cn { color: #fff; }
.footer .brand-en { color: var(--cyan-400); }
.footer p { font-size: 13.5px; line-height: 1.9; margin: 18px 0 0; max-width: 330px; }
.footer h4 { color: #fff; font-size: 14px; margin: 2px 0 18px; letter-spacing: .06em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a, .footer li { font-size: 13.5px; color: #a8bdd4; }
.footer a:hover { color: var(--cyan-300); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #7f98b4; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 860px) {
  .container, .container-narrow { width: min(100% - 32px, var(--max)); }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .nav-inner { height: 64px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.show { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .container, .container-narrow { width: calc(100% - 28px); }
  .brand-wordmark { width: 104px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 27px; }
  .section-desc { font-size: 14.5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer { padding: 48px 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
