/* 北京智元起点科技有限公司 · 官网样式（v2）
   设计方向：Trust & Authority + Conversion —— 深蓝 + 蓝 CTA、浅灰底、大留白、轻动效
   约定：系统字体栈（不引用境外 CDN）；跟随系统深色模式；键盘焦点可见；点击目标 ≥ 44px
*/

:root {
  --navy: #0f172a;
  --accent: #0369a1;
  --accent-strong: #075985;
  --accent-soft: #e0eefa;
  --accent-ink: #0369a1;

  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --card: #ffffff;

  --heading: #0f172a;
  --text: #334155;
  --muted: #475569;
  --muted-2: #5b6b83;   /* 在浅灰底 (#f1f5f9) 上约 4.9:1，原 #64748b 仅 4.34:1 */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ring: #0f172a;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, .08);

  --container: 1160px;
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0b1220;
    --accent: #0369a1;
    --accent-strong: #0f7bb4;
    --accent-ink: #6cb8e8;
    --accent-soft: rgba(56, 163, 221, .14);

    --bg: #0b1220;
    --surface: #111a2b;
    --surface-2: #0f1826;
    --card: #111a2b;

    --heading: #f1f5f9;
    --text: #dbe4f0;
    --muted: #b7c3d4;
    --muted-2: #94a3b8;
    --border: #1e293b;
    --border-strong: #334155;
    --ring: #7dd3fc;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 { color: var(--heading); line-height: 1.25; margin: 0 0 14px; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 18px; margin-bottom: 10px; }
p { margin: 0 0 14px; text-wrap: pretty; }
ul, ol { margin: 0 0 14px; padding-left: 1.15em; }
li { margin-bottom: 6px; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 断行 / 折行规则（全站统一） ----------
   1) 中英混排按语义边界断行，段落避免行尾孤字（text-wrap: pretty）；
   2) 标题尽量均衡分行，不出现「最后一行只剩一个字」（text-wrap: balance）；
   3) 按钮、导航、面包屑、标签等短元素不折成两行；
   4) 超长英文串允许断行，但不撑破容器。
   浏览器不支持 text-wrap 时自动退回默认断行，不影响可读性。 */
body { overflow-wrap: break-word; word-break: normal; line-break: strict; }
h1, h2, h3, h4 { line-break: strict; }
summary, dd, dt, figcaption, blockquote, .section-sub, .hero-lead, .card p, .faq-body { text-wrap: pretty; }
.btn, .link-arrow, .nav > a, .breadcrumb, .breadcrumb a, .section-label, .contact-pending,
.fact-row dt, .fact-row dd, .brand-text strong, .footer-col h2, .skip-link { white-space: nowrap; }
.brand-text strong { font-size: clamp(13px, 4.2vw, 15.5px); }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--heading); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15.5px; font-weight: 700; }
.brand-text small { font-size: 12px; color: var(--muted-2); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
/* 注意：导航里的按钮（.btn.btn-primary.nav-cta）不能被这里的链接样式命中——
   它的 color/min-height 特异性低于 .btn-primary，会被改成深色字压在蓝底上（对比度不足、悬停无反馈） */
.nav > a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--heading); font-size: 15px; border-radius: var(--radius); text-decoration: none;
}
/* 只作用于普通导航链接：导航里的按钮（.btn）自带渐变底色，若也吃到这条 background 简写，
   渐变会被冲掉而文字仍是深色 → 悬停时按钮"消失"（首页 v5 的 nav-cta 曾复现此问题） */
.nav > a:not(.btn):hover { background: var(--surface-2); text-decoration: none; }
.nav > a:not(.btn)[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }
.nav .nav-cta { display: none; }
.nav-cta-wrap { display: flex; align-items: center; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--heading); border-radius: 2px; }

.nav-backdrop {
  position: fixed; inset: var(--header-h) 0 0; background: rgba(2, 6, 23, .5);
  visibility: hidden; opacity: 0; transition: opacity .2s ease; z-index: 40;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-backdrop { visibility: visible; opacity: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  border: 1px solid transparent; background: var(--surface-2); color: var(--heading);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--heading); }
.btn-outline:hover { background: var(--surface-2); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.link-arrow::after { content: "→"; }

/* ---------- 通用版式（全站） ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-label {
  display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.section-sub { color: var(--muted); font-size: 17px; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--radius);
}
.icon-box svg { width: 22px; height: 22px; }

.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 26px; }
.list-check li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
}

/* ---------- 首页 Hero ---------- */
.hero { padding: 68px 0 20px; }
.hero-title { max-width: 20ch; }
.hero-lead { max-width: 62ch; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }

.fact-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin: 40px 0 0; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.fact-row dt { font-size: 13px; color: var(--muted-2); margin-bottom: 4px; }
.fact-row dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--heading); }

/* ---------- 流程 / 编号 ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { position: relative; padding-left: 60px; margin-bottom: 26px; }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius); font-weight: 700; font-size: 15px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- 方案示例页：推进方式（2×2）+ CASE STUDY 案例研读窗（整幅宽、置于下方） ---------- */
.case-grid { display: block; }

/* 「四步走到可验收的成果」改为 2×2：1 2 在上、3 4 在下，3 与 1 左对齐、4 与 2 右对齐 */
.case-grid > .steps {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  margin: 0 0 clamp(22px, 2.6vw, 34px);
}
.case-grid > .steps li:nth-last-child(-n + 2) { margin-bottom: 0; }

.case-viewer { position: static; min-width: 0; }

/* 数字图标（tab）贴在整幅显示框的上边框之上 */
.case-tabs { display: flex; align-items: flex-end; flex-wrap: wrap; row-gap: 6px; gap: 8px; padding-left: 14px; margin-bottom: -1px; }
.case-tabs-label {
  margin: 0 6px 7px 0; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; color: var(--muted); white-space: nowrap;
}
.case-tab {
  min-width: 48px; height: 32px; padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, .34); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--surface); color: var(--heading);
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.case-tab:hover, .case-tab:focus-visible { border-color: rgba(34, 211, 238, .6); color: var(--accent-ink); }
.case-tab[aria-selected="true"] { background: #0a1120; border-color: rgba(125, 211, 252, .5); color: #7dd3fc; }
/* 标签页右侧的操作提示 */
.case-tabs-hint { margin: 0 0 7px 6px; font-size: 12px; line-height: 1.4; color: var(--muted); white-space: nowrap; }

.case-frame {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border: 1px solid rgba(125, 211, 252, .3); border-radius: 0 14px 14px 14px;
  background: linear-gradient(150deg, #0a1120 0%, #0f3350 100%);
  box-shadow: 0 18px 44px -30px rgba(2, 6, 23, .95);
}
.case-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(125, 211, 252, .18); }
.case-title { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: #e8f4ff; }
.case-badge {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .3); background: rgba(125, 211, 252, .1);
  font-size: 11px; color: #a5d8ff; white-space: nowrap;
}
.case-zoom {
  flex: 0 0 auto; min-height: 30px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(125, 211, 252, .3); background: rgba(125, 211, 252, .08); color: #cfe9ff;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
}
.case-zoom:hover, .case-zoom:focus-visible { border-color: rgba(34, 211, 238, .6); color: #fff; }

.case-viewport {
  /* 宽度 = 整幅容器（比原来一栏宽约一倍），高度也提到约两倍，演示稿文字才看得清 */
  flex: 0 0 auto; height: clamp(420px, 68vh, 760px); overflow: auto; padding: 14px;
  scrollbar-width: thin; scrollbar-color: rgba(125, 211, 252, .45) transparent;
  user-select: none; -webkit-user-select: none;
}
.case-viewport::-webkit-scrollbar { width: 10px; height: 10px; }
.case-viewport::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, .38); border-radius: 99px; }
.case-viewport::-webkit-scrollbar-track { background: transparent; }
.case-page {
  display: block; width: calc(100% * var(--case-zoom, 1)); height: auto; max-width: none;
  margin: 0 0 12px; border-radius: 10px; border: 1px solid rgba(125, 211, 252, .2);
  -webkit-user-drag: none; user-drag: none;
}
.case-empty, .case-loading, .case-error { margin: 0; color: #b8d6ee; font-size: 13px; line-height: 1.7; }
.case-empty-title { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; color: #7dd3fc; }
.case-legend { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.case-legend li { display: flex; gap: 9px; align-items: baseline; font-size: 13px; color: #e2eefb; }
.case-legend b { color: #7dd3fc; font-family: var(--font-mono); font-size: 12px; }
.case-empty-note { margin: 0; font-size: 12px; color: #93b4cf; }
.case-error { color: #ffd9c2; }

/* 打印时隐藏案例画面，避免用「打印成 PDF」的方式带走内容 */
@media print { .case-viewer { display: none !important; } }

@media (max-width: 900px) {
  .case-tabs { padding-left: 0; }
  .case-tabs-label { flex: 1 0 100%; margin: 0 0 2px; }
  .case-tab { height: 44px; min-width: 52px; flex: 0 0 auto; }
  .case-viewport { height: min(64vh, 520px); }
}

/* 窄屏放不下两列，四步回到单列 */
@media (max-width: 620px) {
  .case-grid > .steps { grid-template-columns: 1fr; }
  .case-grid > .steps li:nth-last-child(-n + 2) { margin-bottom: 22px; }
  .case-grid > .steps li:last-child { margin-bottom: 0; }
}

/* ---------- CTA 区 ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  color: #e6edf7; border-radius: var(--radius-lg);
  padding: 44px clamp(22px, 4vw, 48px); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 22px;
  background-color: var(--navy);
  /* 与首屏同源底图：等比拉伸铺满 + 暗化，形成收尾的科技感区块 */
  background-image:
    linear-gradient(120deg, rgba(7, 11, 20, .94) 0%, rgba(9, 17, 32, .86) 55%, rgba(8, 47, 73, .78) 100%),
    url("/assets/img/background.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: cover, cover;
  border: 1px solid rgba(125, 211, 252, .16);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #c7d3e4; max-width: 56ch; }

/* 卡片顶部整幅配图（AI 产品页等）：来自 resources 目录的配图 */
.card-media { margin: -26px -26px 18px; overflow: hidden; border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; }
.card-media picture { display: block; }
.card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- 内页首屏（科技感版式） ----------
   二级页面统一使用 resources/background.jpg 做首屏底图：等比拉伸铺满 + 高斯模糊，
   再叠加暗化渐变、页面专属蓝青光晕与科技网格线；文字层在最上方，始终保持清晰。 */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 46px 0 40px;
  background-color: #060b14;
  border-bottom: 1px solid rgba(125, 211, 252, .18);
}
.page-hero::before {
  content: ""; position: absolute; inset: -40px; z-index: 0; pointer-events: none;
  background-image: url("/assets/img/background.jpg");
  background-repeat: no-repeat; background-position: center center; background-size: cover;
  filter: blur(12px) saturate(1.18) brightness(.70);
  transform: translateZ(0);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(6, 11, 20, .84) 0%, rgba(6, 11, 20, .56) 56%, rgba(6, 11, 20, .90) 100%),
    radial-gradient(760px 340px at 10% -40%, var(--hero-glow-1, rgba(34, 211, 238, .22)), transparent 68%),
    radial-gradient(620px 320px at 92% 130%, var(--hero-glow-2, rgba(59, 130, 246, .24)), transparent 66%),
    linear-gradient(rgba(125, 211, 252, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .13) 1px, transparent 1px);
  background-size: auto, auto, auto, 46px 46px, 46px 46px;
  background-position: center, center, center, center, center;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-eyebrow {
  margin: 0 0 10px; font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #7dd3fc;
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-2); margin-bottom: 14px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-2); }
.breadcrumb span[aria-hidden] { color: var(--muted-2); }
.page-hero h1 { margin-bottom: 12px; color: #f4f8fd; letter-spacing: -.015em; }
.page-hero p { max-width: 66ch; color: rgba(203, 214, 230, .92); margin: 0; font-size: 17px; }
.page-hero .breadcrumb { color: rgba(203, 214, 230, .74); }
.page-hero .breadcrumb a { color: rgba(203, 214, 230, .74); }
.page-hero .breadcrumb a:hover { color: #7dd3fc; }
.page-hero .breadcrumb span[aria-hidden] { color: rgba(203, 214, 230, .62); }

/* 各二级页面的光晕色相（保持深蓝主色，用辅色区分页面主题） */
body.page-ai        { --hero-glow-1: rgba(34, 211, 238, .22); --hero-glow-2: rgba(59, 130, 246, .26); }
body.page-finance   { --hero-glow-1: rgba(16, 185, 129, .20); --hero-glow-2: rgba(45, 212, 191, .20); }
body.page-tech      { --hero-glow-1: rgba(59, 130, 246, .24); --hero-glow-2: rgba(34, 211, 238, .18); }
body.page-solutions { --hero-glow-1: rgba(139, 92, 246, .22); --hero-glow-2: rgba(56, 189, 248, .20); }
body.page-about     { --hero-glow-1: rgba(148, 163, 184, .18); --hero-glow-2: rgba(59, 130, 246, .18); }
body.page-faq       { --hero-glow-1: rgba(56, 189, 248, .22); --hero-glow-2: rgba(59, 130, 246, .18); }
body.page-contact   { --hero-glow-1: rgba(34, 211, 238, .24); --hero-glow-2: rgba(37, 99, 235, .22); }
body.page-404       { --hero-glow-1: rgba(148, 163, 184, .20); --hero-glow-2: rgba(34, 211, 238, .16); }

/* 页头下方的科技渐变细线（仅内页，避免与首页透明页头冲突） */
body.page-sub .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .75), rgba(34, 211, 238, .85), transparent);
  pointer-events: none;
}

.def-list { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 22px; margin: 0; }
.def-list dt { color: var(--muted-2); font-size: 14.5px; }
.def-list dd { margin: 0; }

.info-table { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.info-table dt, .info-table dd { padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--border); background: var(--card); }
.info-table dt { color: var(--muted-2); font-size: 14.5px; }
.info-table dd { font-weight: 600; color: var(--heading); }

.scope-list { columns: 2; column-gap: 32px; margin: 0; padding-left: 1.1em; }
.scope-list li { break-inside: avoid; }

/* ---------- 常见问题 ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; min-height: 59px; cursor: pointer;
  font-weight: 600; color: var(--heading); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--accent-ink); font-size: 20px; font-weight: 500; }
.faq-item[open] summary::after { content: "–"; }
.faq-body { padding: 0 0 18px; color: var(--muted); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- 联系 ---------- */
.contact-pending {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 13.5px; font-weight: 600;
}

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 72px; background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; padding: 48px 0 32px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand strong { display: block; color: var(--heading); }
.footer-brand p { margin: 6px 0 0; color: var(--muted-2); font-size: 14px; max-width: 34ch; }
.footer-col h2 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { margin: 0 0 6px; font-size: 14.5px; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding: 18px 0 28px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13.5px; }
.footer-bottom p { margin: 0; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--heading); border: 1px solid var(--border-strong);
  border-radius: 50%; box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 入场动效 ---------- */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .35s ease-out, transform .35s ease-out; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-cta-wrap { display: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 45;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 10px 20px 20px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { min-height: 48px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav .nav-cta { display: inline-flex; margin-top: 16px; min-height: 48px; border-bottom: 0; }
  .brand-text small { display: none; }

  .def-list { grid-template-columns: 1fr; gap: 2px 0; }
  .def-list dt { margin-top: 12px; }
}

@media (max-width: 700px) {
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding: 44px 0 12px; }
  .cta-band { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 36px 0 24px; }
  .footer-col a { min-height: 44px; }
  .scope-list { columns: 1; }
  .info-table { grid-template-columns: 1fr; }
  .info-table dt { border-bottom: 0; padding-bottom: 0; background: var(--surface-2); }
  .info-table dd { padding-top: 6px; }
}

/* 内页：标题与定义列表均衡分行，避免最后一行只剩一个字；长列表项不在两栏间断开 */
.card h3, .steps h3, .def-list dd, .info-table dd, .faq-body p { text-wrap: balance; }
.scope-list { text-wrap: pretty; }

/* 内页章节标题区：标签与副标题的折行更规整 */
.section-head h2 { max-width: 30ch; }
.section-sub { max-width: 60ch; }

/* 深色模式下内页首屏与 CTA 区块保持一致，不需要额外覆盖 */

/* ============================================================
   业务板块视觉（v3.2）：resources 素材配图
   首屏配图墙 .hero-visual / .hero-tile · 卡片配图 .media-tile
   ============================================================ */
.hero-visual { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 16px); margin: 24px 0 0; }
.hero-tile {
  margin: 0; width: clamp(104px, 12vw, 148px); aspect-ratio: 3 / 2;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(140deg, #0a1120 0%, #0f3350 100%);
  border: 1px solid rgba(125, 211, 252, .28);
  box-shadow: 0 16px 34px -20px rgba(2, 6, 23, .95), 0 0 22px -12px rgba(34, 211, 238, .5);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s ease;
}
.hero-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-tile:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .6); }

/* 卡片顶部「科技感图头条」：与卡片同宽的深色底 + 蓝青光晕，配图按原始比例居中，不拉伸 */
.media-tile {
  margin: -26px -26px 18px; height: clamp(104px, 11vw, 132px);
  display: flex; align-items: center; justify-content: center;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(240px 130px at 18% -30%, rgba(34, 211, 238, .22), transparent 72%),
    radial-gradient(220px 120px at 88% 130%, rgba(59, 130, 246, .22), transparent 70%),
    linear-gradient(140deg, #0a1120 0%, #0f3350 100%);
  border-bottom: 1px solid rgba(125, 211, 252, .22);
  transition: border-color .3s ease;
}
.media-tile img { display: block; height: 76%; width: auto; max-width: 82%; object-fit: contain; }
.card:hover .media-tile { border-bottom-color: rgba(34, 211, 238, .55); }

@media (prefers-reduced-motion: reduce) {
  .hero-tile:hover { transform: none; }
}

/* 联系方式：邮箱链接（业务咨询 / 电子邮箱统一使用同一邮箱） */
.contact-mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-ink); font-weight: 600; overflow-wrap: anywhere; }
.contact-mail:hover { text-decoration: underline; }

/* ============================================================
   首屏右侧配图 · 首页中部横幅 · 关于我们横幅（v3.3）
   ============================================================ */

/* 内页首屏：h1 + 副标题两行文字在左，配图在右，并与这两行文字垂直对齐 */
.hero-split { display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 3vw, 44px); }
.hero-split-text { min-width: 0; }
.hero-split-text h1 { margin-bottom: 12px; }
.hero-split .hero-visual { margin: 0 0 0 auto; flex: 0 0 auto; }
.hero-split .hero-tile { width: clamp(96px, 11vw, 142px); }
/* 财务服务首屏配图（account-00.png，455×280）：盒子按原图比例，整幅显示不裁切 */
.hero-tile--account { aspect-ratio: 455 / 280; }
.hero-tile--account img { object-fit: contain; }

@media (max-width: 900px) {
  .hero-split { flex-direction: column; align-items: flex-start; }
  .hero-split .hero-visual { margin: 18px 0 0; }
}

/* 关于我们：整幅横幅（about-00.png），与内容容器两端对齐 */
.hero-band {
  margin: 26px 0 0; height: clamp(70px, 8.5vw, 116px);
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, .22);
  background-image: url("/assets/img/about-00.png");
  background-repeat: no-repeat; background-position: center center; background-size: cover;
  box-shadow: 0 18px 40px -30px rgba(2, 6, 23, .95);
}

/* 首页中部区域：index.png（原图 753×182）作为整幅背景。
   高度不再写死 30vh，而是按「内容区宽度 ÷ 图片宽高比」算出来：
   --band-w 即业务卡所在内容区宽度（= min(1120px, 100vw - 40px)），
   1440 宽视口下为 1120×271，恰好是 900 高视口的 30%；视口更高时仍按图片比例，
   因此图片整幅完整显示、不裁切、不拉伸，左右两端与下方三张业务卡严格对齐。 */
.page-home .index-band {
  --band-w: min(1120px, calc(100vw - 40px));
  /* margin-top: auto 让首屏标题缩小后多出来的纵向余量由「标题→横幅」「横幅→业务卡」平均分摊，
     避免空白全部堆在横幅与业务卡之间；窗口偏矮、没有余量时该值自然为 0 */
  flex: 0 1 auto; margin-top: auto; min-height: 0; max-height: none; display: flex; padding: 0;
  height: calc(var(--band-w) * 182 / 753);
}
.page-home .index-band > .container { display: flex; align-self: stretch; justify-content: center; }
.index-band-inner {
  /* 宽度不再写死：由横幅实际高度按 753:182 换算，窗口过矮时面板随图片一起收窄并居中，
     避免出现「图片两侧留空面板」；正常视口下宽度即内容区宽度，与业务卡两端对齐。 */
  flex: 0 0 auto; align-self: stretch; width: auto; max-width: 100%; aspect-ratio: 753 / 182;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, .18);
  background-color: rgba(6, 20, 33, .55);
  background-image: url("/assets/img/index.png");
  background-repeat: no-repeat; background-position: center center;
  /* 盒子已与图片同比例，contain 在此等价于「满幅且不裁切」 */
  background-size: contain;
  box-shadow: 0 26px 60px -36px rgba(2, 6, 23, .95);
}
/* 三张业务卡固定在下方，中部区域由横幅占据；
   桌面单屏下再向上收 30px，与页脚之间留出呼吸间距（窄屏是可滚动布局，沿用自身间距，不叠加） */
.page-home .bento { flex: 0 0 auto; margin-top: auto; }
@media (min-width: 820px) {
  .page-home .bento { margin-bottom: 30px; }
}
/* 屏幕过矮时隐藏横幅，避免压坏首页整屏布局 */
@media (max-height: 640px) {
  .page-home .index-band { display: none; }
}

/* 窄屏首页高度自动，横幅按图片原始比例铺满宽度，不留空高 */
@media (max-width: 819px) {
  .page-home .index-band { flex: 0 0 auto; max-height: none; height: auto; }
  .page-home .index-band > .container { align-self: center; }
  .index-band-inner { flex: 1 1 auto; align-self: auto; width: 100%; height: auto; aspect-ratio: 753 / 182; }
}

/* 关于我们：光带图（about-00.png，313×102 ≈ 3.07:1）放在 h1 + 副标题两行文字右侧，
   高度与这两行文字块完全等高 —— 上下两端分别对齐第一行顶部与第二行底部。
   用真实 <img>（替换元素）承载：高度撑满文字块，宽度按图片原始比例自动得出，
   因此整幅显示、不裁切不拉伸，右端与内容容器右缘齐平 */
.hero-split .hero-visual--stretch { align-self: stretch; align-items: stretch; min-height: 88px; }
.hero-band-chip {
  display: block; width: min(100%, 320px); height: auto; max-width: 100%; object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, .22);
  box-shadow: 0 18px 40px -30px rgba(2, 6, 23, .95);
}

/* 桌面端：图块绝对定位锚在文字块右侧，高度撑满「关于我们 + 以技术为起点…」两行文字块，
   宽度由图片原始比例（313:102）自动得出，宽度随窗口变化也不会变形 */
@media (min-width: 901px) {
  .hero-split .hero-visual--stretch { position: relative; }
  /* 外层 .hero-visual--stretch 宽度为 0（绝对定位子元素不参与撑宽），
     所以这里必须放开 max-width，否则宽度会被 100%×0 夹成 0 */
  .hero-band-chip { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; }
}

@media (max-width: 900px) {
  .hero-split .hero-visual--stretch { align-self: stretch; }
  .hero-band-chip { width: min(100%, 320px); height: auto; }
}
