﻿/* =========================================================
   南京汉岳科技有限公司 · 官网样式系统
   Design System / v1.0
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌蓝 —— 科技与数据 */
  --brand-950: #04142B;
  --brand-900: #0A2540;
  --brand-800: #0F3358;
  --brand-700: #16457C;
  --brand-600: #1D5FA8;
  --brand-500: #2E7BD6;
  --brand-400: #5FA3E8;
  --brand-300: #93C3F2;
  --brand-200: #C6DCF9;
  --brand-100: #E4EFFC;
  --brand-50: #F3F8FD;

  /* 科技青蓝 —— 数据与技术 */
  --tech-600: #0369A1;
  --tech-500: #0EA5E9;
  --tech-100: #DBEDFC;

  /* 中性 */
  --ink: #0B1729;
  --ink-2: #2F3E52;
  --ink-3: #5C6B7D;
  --ink-4: #94A2B2;
  --line: #E3E9F1;
  --line-2: #EDF2F8;
  --surface: #FFFFFF;
  --bg: #F7F9FC;
  --bg-2: #EEF3F9;

  --shadow-xs: 0 1px 2px rgba(10, 37, 64, .04);
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .05);
  --shadow-md: 0 8px 24px -6px rgba(10, 37, 64, .10);
  --shadow-lg: 0 20px 48px -16px rgba(10, 37, 64, .18);
  --shadow-glow: 0 16px 40px -14px rgba(46, 123, 214, .45);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --nav-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
               "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
h4 { font-size: 1rem; }
p { margin: 0; }

::selection { background: var(--brand-200); color: var(--brand-900); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #C7D6E8; border-radius: 99px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-400); }

/* 动态内容读取失败提示 */
.content-load-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #F1D7A9;
  border-radius: var(--r-sm);
  background: #FFF9EE;
  color: #7A5420;
  font-size: 14px;
}
.content-load-error button {
  padding: 6px 12px;
  border: 1px solid #D8B16F;
  border-radius: 6px;
  background: #fff;
  color: #875A18;
  font-size: 13px;
  font-weight: 600;
}
.content-load-error button:hover { background: #FFF2D8; }

/* ---------- 3. 布局工具 ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--wide { max-width: 1360px; }
.container--narrow { max-width: 900px; }

.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--bg { background: var(--bg); }
.section--bg2 { background: var(--bg-2); }
.section--deep { background: var(--brand-900); color: rgba(255, 255, 255, .78); }
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }
.section--line { border-top: 1px solid var(--line-2); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 1.25fr .9fr; }

.stack-sm > * + * { margin-top: 12px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 44px; }
.mt-xl { margin-top: 64px; }

/* ---------- 4. 排版辅助 ---------- */
.eyebrow {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  color: var(--brand-600); text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--brand-500); }
.center .eyebrow { align-items: center; }
.center .eyebrow::before { margin-inline: auto; }

.lead { font-size: clamp(1rem, 1.35vw, 1.125rem); color: var(--ink-2); line-height: 1.85; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 16px; color: var(--ink-3); font-size: 1.02rem; line-height: 1.85; }
.section--deep .section-head p { color: rgba(255, 255, 255, .68); }

.gradient-text {
  background: linear-gradient(100deg, var(--brand-700), var(--brand-400) 60%, var(--tech-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-full);
  font-size: .94rem; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: all .28s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .28s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(46,123,214,.55); }

.btn--light { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-md); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }

.btn--outline-light { border-color: rgba(255,255,255,.42); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* 智库 AI：浅色胶囊 + 旋转流光描边（MagicUI 风格；已去掉表面白色扫光）
   用于导航右侧 CTA 与移动端抽屉主按钮。
   结构：.btn--ai 自身浅蓝白底，.nav__cta-glow 用 conic 渐变 + mask 只留 1.5px 旋转光边。 */
.btn--ai {
  position: relative; isolation: isolate; gap: 8px; color: #0d1b30; border-color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #e9f0f8 100%);
  box-shadow: 0 6px 16px -8px rgba(4, 20, 43, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
}
/* 让文字/图标压在流光之上 */
.btn--ai > * { position: relative; z-index: 1; }
/* 旋转流光描边：conic 渐变经 mask 只留 1.5px 光边 */
.btn--ai .nav__cta-glow {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: conic-gradient(from var(--ai-a),
    rgba(99, 179, 237, 0), #63B3ED, #0EA5E9, #818CF8, rgba(99, 179, 237, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: aiShimmer 4s linear infinite;
}
@property --ai-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes aiShimmer { to { --ai-a: 360deg; } }
.btn--ai:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(4, 20, 43, .22), inset 0 1px 0 rgba(255, 255, 255, .85); }
.btn--ai:active { transform: translateY(0); }

/* 图标底座 */
.nav__cta-ico {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: grid; place-items: center;
  background: rgba(13, 27, 48, .06); box-shadow: inset 0 0 0 1px rgba(13, 27, 48, .10);
}
.nav__cta-ico svg { width: 13px; height: 13px; }
.btn--ai .nav__cta-ico svg { transform: none; }
.nav__cta.btn--ai { padding: 8px 16px 8px 9px; }
/* 抽屉里 .nav__drawer a 的 padding/下边框会盖掉 .btn，这里还回来 */
.nav__drawer a.btn { padding: 13px 26px; border-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .btn--ai .nav__cta-glow { animation: none; }
  .btn--ai:hover { transform: none; }
}

.btn--sm { padding: 10px 20px; font-size: .87rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .9rem; color: var(--brand-600);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .28s var(--ease); }
.link-arrow:hover { color: var(--brand-800); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.nav::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10,37,64,.10) 20%, rgba(10,37,64,.10) 80%, transparent);
  opacity: 0; transition: opacity .35s;
}
.nav.is-solid { background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 20px rgba(10,37,64,.06); }
.nav.is-solid::after { opacity: 1; }

.nav__inner { display: flex; align-items: center; gap: 18px; width: 100%; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__logo { display: block; width: auto; flex: none; }
/* logo 双变体：默认彩色版（白底场景）；首屏透明导航压深色视频 / 深色页脚时切换白色剪影版，无需衬底直接融进背景 */
.brand__logo--light { display: none; }
.nav:not(.is-solid) .brand__logo--dark { display: none; }
.nav:not(.is-solid) .brand__logo--light { display: block; }
.footer .brand__logo--dark { display: none; }
.footer .brand__logo--light { display: block; }
.nav .brand__logo { height: 40px; }
.footer .brand__logo { height: 38px; }
@media (max-width: 720px) {
  .nav .brand__logo { height: 30px; }
}

.nav__menu { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.nav__link {
  position: relative; display: block; padding: 9px 13px; border-radius: var(--r-full);
  font-size: .92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: all .25s var(--ease);
}
.nav__link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav__link.is-active { color: var(--brand-700); font-weight: 600; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 16px; height: 2.5px; border-radius: 2px; background: var(--brand-500);
}
.nav:not(.is-solid) .nav__link { color: rgba(255,255,255,.86); text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.nav:not(.is-solid) .nav__link:hover { color: #fff; background: rgba(255,255,255,.14); }

/* 导航角标（如「监管智库」上的 AI） */
.nav__badge {
  display: inline-block; margin-left: 5px; padding: 1px 5px 0; border-radius: var(--r-full);
  vertical-align: 2px; font-size: .6rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5;
  color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  text-shadow: none;
}
.nav__link:hover .nav__badge { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); }
.nav:not(.is-solid) .nav__badge {
  color: #fff; background: linear-gradient(135deg, #4aa8ff, var(--brand-600));
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}
.nav__drawer .nav__badge { margin-left: 6px; vertical-align: 1px; }
.nav:not(.is-solid) .nav__link.is-active { color: #fff; }

.nav__cta { margin-left: 4px; flex: none; }

/* 语言切换 */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-full); background: rgba(10, 37, 64, .06); flex: none; }
.lang-switch button { padding: 5px 9px; border-radius: var(--r-full); font-size: .76rem; font-weight: 600; color: var(--ink-3); line-height: 1.25; letter-spacing: .01em; white-space: nowrap; transition: all .25s var(--ease); }
.lang-switch button:hover { color: var(--brand-700); }
.lang-switch button.is-active { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.nav:not(.is-solid) .lang-switch { background: rgba(255, 255, 255, .16); }
.nav:not(.is-solid) .lang-switch button { color: rgba(255, 255, 255, .78); }
.nav:not(.is-solid) .lang-switch button:hover { color: #fff; }
.nav:not(.is-solid) .lang-switch button.is-active { background: #fff; color: var(--brand-700); }
.nav__drawer .lang-switch { margin-top: 18px; background: var(--bg-2); }
.nav:not(.is-solid) .btn--ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }

.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 11px; margin-left: auto; place-items: center; }
.nav__toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: .3s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: .3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav:not(.is-solid) .nav__toggle span,
.nav:not(.is-solid) .nav__toggle span::before,
.nav:not(.is-solid) .nav__toggle span::after { background: #fff; }
.nav.is-open .nav__toggle span { background: transparent !important; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.nav.is-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

/* 移动端抽屉 */
.nav__drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 890;
  background: #fff; border-top: 1px solid var(--line-2);
  padding: 12px 24px 28px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: 2px;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.nav.is-open .nav__drawer { display: flex; animation: drawerIn .3s var(--ease); }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } }
.nav__drawer a { padding: 13px 4px; font-size: 1rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.nav__drawer a.is-active { color: var(--brand-600); }
.nav__drawer .btn { margin-top: 18px; }

/* ---------- 6b. 悬停展开面板（Mega Menu）---------- */
.nav__item { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav__item > .nav__link { display: inline-flex; align-items: center; }
.nav__caret { width: 12px; height: 12px; margin-left: 5px; flex: none; opacity: .5; transition: transform .32s var(--ease), opacity .25s var(--ease); }
.nav__item:hover .nav__caret,
.nav__item.is-open .nav__caret { opacity: 1; transform: rotate(180deg); }

.nav__panels { position: absolute; top: var(--nav-h); left: 0; width: 100%; pointer-events: none; }

.mega {
  position: absolute; top: 0; left: 0; width: 100%;
  background: #fff; border-top: 1px solid var(--line-2);
  box-shadow: 0 30px 64px -30px rgba(10, 37, 64, .32);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .26s var(--ease), transform .34s var(--ease), visibility .26s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.mega__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 28px 24px 34px; }
.mega--2 .mega__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 44px; }

.mega__col { min-width: 0; }
.mega__title {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--brand-700);
  letter-spacing: .02em; padding-bottom: 11px; border-bottom: 1px solid var(--line-2);
}
.mega__title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-400), var(--brand-700)); flex: none; }

.mega__body { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; margin-top: 15px; align-items: start; }
.mega__thumb { display: block; width: 92px; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-sm); }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega__thumb:hover img { transform: scale(1.08); }

.mega__list { display: flex; flex-direction: column; }
.mega__list a {
  position: relative; display: block; padding: 6px 10px 6px 18px; border-radius: var(--r-sm);
  font-size: .875rem; line-height: 1.5; color: var(--ink-2);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.mega__list a::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-4); transform: translateY(-50%); transition: background .22s var(--ease), transform .22s var(--ease);
}
.mega__list a:hover { color: var(--brand-700); background: var(--brand-50); }
.mega__list a:hover::before { background: var(--brand-500); transform: translateY(-50%) scale(1.5); }
.mega__list a.is-active { color: var(--brand-700); font-weight: 600; }
.mega__list a.is-active::before { background: var(--brand-600); }

/* 纯链接型面板（关于我们） */
.mega__links { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 2px; }

/* 面板内的推荐位 */
.mega__promo {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 24px 26px; border-radius: var(--r-lg); color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(147,195,242,.30), transparent 52%),
    linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 58%, var(--brand-600) 100%);
  box-shadow: var(--shadow-md); overflow: hidden; position: relative;
}
.mega__promo h5 { color: #fff; font-size: 1.06rem; line-height: 1.55; }
.mega__promo p { margin-top: 9px; font-size: .855rem; line-height: 1.72; color: rgba(255,255,255,.74); }
.mega__promo .btn { align-self: flex-start; }

/* ---------- 7. 首屏 Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; background: var(--brand-900); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero__video.is-ready { opacity: 1; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  /* 轻遮罩：仅在顶部（导航）与底部（区块衔接）做过渡，中部保持视频通透 */
  background: linear-gradient(180deg,
    rgba(4, 20, 43, .34) 0%,
    rgba(4, 20, 43, 0) 22%,
    rgba(4, 20, 43, 0) 58%,
    rgba(4, 20, 43, .78) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding: calc(var(--nav-h) + 56px) 0 96px; }
.hero__content { max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px;
  border-radius: var(--r-full); background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 600; color: #fff; letter-spacing: .02em; margin-bottom: 26px;
}
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-300); box-shadow: 0 0 0 4px rgba(147,195,242,.24); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(147,195,242,0); } }

.hero h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5), 0 8px 34px rgba(0,0,0,.42); }
.hero__sub { margin-top: 22px; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.9; color: rgba(255,255,255,.9); text-shadow: 0 1px 6px rgba(0,0,0,.5), 0 4px 20px rgba(0,0,0,.35); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 76px);
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -.02em; }
.hero__stat b em { font-style: normal; font-size: .58em; margin-left: 3px; color: var(--brand-300); }
.hero__stat > span { display: block; margin-top: 5px; font-size: .84rem; color: rgba(255,255,255,.62); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: .7rem; letter-spacing: .2em; color: rgba(255,255,255,.5); text-transform: uppercase;
}
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(180deg, rgba(255,255,255,.7), transparent); animation: scrollDown 2s infinite; }
@keyframes scrollDown { 0% { transform: scaleY(.2); transform-origin: top; opacity: 0; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(.2); transform-origin: bottom; opacity: 0; } }

/* 内页页头 */
.page-hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 72px; background: var(--brand-900); overflow: hidden; color: #fff; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(4,20,43,.94) 8%, rgba(4,20,43,.72) 55%, rgba(4,20,43,.55) 100%); }
.page-hero__inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: #fff; }
.page-hero p { margin-top: 18px; color: rgba(255,255,255,.76); font-size: 1.05rem; line-height: 1.85; max-width: 680px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.32); }

/* ---------- 8. 卡片 ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card--pad { padding: 30px 28px 32px; }
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.card--flat { background: var(--bg); border-color: transparent; }

.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card--hover:hover .card__media img { transform: scale(1.055); }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { color: var(--ink-3); font-size: .92rem; line-height: 1.8; flex: 1; }
.card__body .link-arrow { margin-top: 20px; }

.card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 13px; border-radius: var(--r-full); font-size: .74rem; font-weight: 600;
  background: rgba(255,255,255,.94); color: var(--brand-700); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
}

/* 图标卡 */
.icon-box {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-100), var(--brand-50));
  color: var(--brand-600); border: 1px solid var(--brand-100); flex: none;
  transition: all .35s var(--ease);
}
.icon-box svg { width: 26px; height: 26px; }
.card--hover:hover .icon-box { background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); color: #fff; border-color: transparent; transform: rotate(-4deg) scale(1.05); }

.feature { display: flex; flex-direction: column; gap: 18px; }
.feature h3 { margin: 0; }
.feature p { color: var(--ink-3); font-size: .93rem; line-height: 1.82; }

/* 数据卡 */
.stat-card { padding: 30px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-align: center; }
.stat-card b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--brand-600); line-height: 1.1; letter-spacing: -.03em; }
.stat-card b em { font-style: normal; font-size: .55em; margin-left: 2px; }
.stat-card > span { display: block; margin-top: 8px; font-size: .88rem; color: var(--ink-3); }

/* ---------- 9. 分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split--rev .split__media { order: -1; }
.split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 3 / 4; }

/* 列表条目 */
.list-svc { display: flex; flex-direction: column; gap: 2px; }
.list-svc__item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: var(--r-md); transition: all .3s var(--ease); cursor: default;
}
.list-svc__item:hover { background: var(--brand-50); }
.list-svc__item:hover .list-svc__idx { background: var(--brand-600); color: #fff; border-color: transparent; }
.list-svc__idx {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; color: var(--brand-700);
  background: #fff; border: 1px solid var(--line); transition: all .3s var(--ease);
}
.list-svc__txt b { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; }
.list-svc__txt span { display: block; font-size: .84rem; color: var(--ink-3); margin-top: 2px; }
.list-svc__go { margin-left: auto; color: var(--ink-4); flex: none; }
.list-svc__go svg { width: 16px; height: 16px; }

/* ---------- 10. 全宽横幅 ---------- */
.banner { position: relative; overflow: hidden; background: var(--brand-900); }
.banner__bg { position: absolute; inset: 0; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,20,43,.82), rgba(4,20,43,.90)); }
.banner__inner { position: relative; z-index: 2; padding: clamp(72px, 9vw, 120px) 0; text-align: center; }
.banner h2 { color: #fff; max-width: 780px; margin-inline: auto; }
.banner p { margin: 20px auto 0; max-width: 660px; color: rgba(255,255,255,.76); font-size: 1.03rem; line-height: 1.9; }
.banner .btn { margin-top: 34px; }

/* ---------- 11. 生态 / 客户墙 ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-wall__item {
  display: grid; place-items: center; padding: 22px 14px; min-height: 82px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: .86rem; font-weight: 600; color: var(--ink-2); text-align: center;
  letter-spacing: .01em; line-height: 1.45;
  transition: all .3s var(--ease); filter: grayscale(1); opacity: .74;
}
.logo-wall__item:hover { filter: none; opacity: 1; border-color: var(--brand-200); transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--brand-800); }
.logo-wall--dark .logo-wall__item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.82); }
.logo-wall--dark .logo-wall__item:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }

/* ---------- 12. 新闻 ---------- */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card__meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--ink-3); margin-bottom: 12px; }
.news-card__date { font-weight: 700; color: var(--brand-600); letter-spacing: .01em; }
.news-card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.news-card h3 { font-size: 1.06rem; line-height: 1.55; margin-bottom: 10px; transition: color .28s; }
.card--hover:hover .news-card h3 { color: var(--brand-700); }

.news-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: center;
  padding: 24px 4px; border-bottom: 1px solid var(--line-2); transition: all .3s var(--ease);
}
.news-row:hover { padding-left: 16px; background: linear-gradient(90deg, var(--brand-50), transparent 70%); }
.news-row__date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.news-row__date b { display: block; font-size: 1.5rem; font-weight: 700; color: var(--brand-600); line-height: 1.1; }
.news-row__date span { font-size: .78rem; color: var(--ink-3); }
.news-row__body h3 { font-size: 1.02rem; line-height: 1.55; margin-bottom: 6px; }
.news-row__body p { font-size: .86rem; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.news-row__arrow { color: var(--ink-4); }
.news-row:hover .news-row__arrow { color: var(--brand-600); }

/* ---------- 13. CTA 合作带 ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brand-900), var(--brand-800) 55%, var(--brand-700)); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 12% 20%, rgba(95,163,232,.34), transparent 40%),
                    radial-gradient(circle at 88% 82%, rgba(14,165,233,.26), transparent 44%);
}
.cta-band__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr auto; gap: 40px; align-items: center; padding: clamp(56px, 7vw, 88px) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 16px; color: rgba(255,255,255,.72); max-width: 560px; line-height: 1.85; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 14. 页脚 ---------- */
.footer { background: var(--brand-950); color: rgba(255,255,255,.6); padding: clamp(56px, 6vw, 76px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 40px; padding-bottom: 52px; }
.footer .brand__name { color: #fff; }
.footer .brand__en { color: rgba(255,255,255,.4); }
.footer__about { margin-top: 20px; font-size: .88rem; line-height: 1.9; color: rgba(255,255,255,.55); max-width: 330px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .02em; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: .88rem; color: rgba(255,255,255,.58); transition: all .25s; }
.footer__links a:hover { color: var(--brand-300); transform: translateX(3px); }
.footer__contact { display: flex; flex-direction: column; gap: 16px; }
.footer__contact-item { display: flex; gap: 12px; font-size: .88rem; line-height: 1.7; }
.footer__contact-item svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--brand-400); }
.footer__contact-item b { color: rgba(255,255,255,.85); font-weight: 600; display: block; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255,255,255,.42);
}
.footer__bottom a:hover { color: var(--brand-300); }

/* ---------- 15. 标签页 / 筛选 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 20px; border-radius: var(--r-full); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--ink-2); background: #fff; transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.chip.is-active { background: var(--brand-600); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }

/* ---------- 16. 时间轴 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--brand-400), var(--brand-100)); }
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50);
}
.timeline__year { font-size: .84rem; font-weight: 700; color: var(--brand-600); letter-spacing: .04em; }
.timeline__item h4 { margin-top: 4px; font-size: 1.02rem; }
.timeline__item p { margin-top: 6px; font-size: .9rem; color: var(--ink-3); line-height: 1.8; }

/* ---------- 17. 表格（业绩/资质）---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
table.tbl th, table.tbl td { padding: 16px 22px; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--line-2); }
table.tbl th { background: var(--bg); font-weight: 600; color: var(--ink); font-size: .82rem; letter-spacing: .04em; white-space: nowrap; }
table.tbl td { color: var(--ink-2); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: var(--brand-50); }
.tbl__num { font-weight: 700; color: var(--brand-600); white-space: nowrap; }

/* ---------- 18. 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field label i { color: var(--brand-500); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  font: inherit; font-size: .93rem; color: var(--ink); background: #fff; transition: all .25s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-50);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.form-note { font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.form-msg { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); font-size: .88rem; font-weight: 500; border: 1px solid var(--brand-100); }
.form-msg.is-show { display: block; animation: drawerIn .3s var(--ease); }

/* ---------- 19. 地图 / 联系方式 ---------- */
.contact-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-tile { padding: 28px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.contact-tile .icon-box { margin-bottom: 18px; }
.contact-tile b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.contact-tile p { font-size: .9rem; color: var(--ink-3); line-height: 1.8; }
.contact-tile a:hover { color: var(--brand-600); }

.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); height: 340px; display: grid; place-items: center; position: relative; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 20. 动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 返回顶部 */
.to-top {
  position: fixed; right: 142px; bottom: 34px; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--brand-700); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); color: #fff; border-color: transparent; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 20b. 清单 / 要点 ---------- */
.checklist { display: grid; gap: 13px; }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); line-height: 1.75; }
.checklist li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--brand-500); }
.checklist li > span[data-icon] { flex: none; display: grid; place-items: center; margin-top: 3px; }
.checklist li b { color: var(--ink); font-weight: 600; }

.detail-block { padding: clamp(44px, 5.5vw, 72px) 0; }
.detail-block + .detail-block { border-top: 1px solid var(--line-2); }

.pill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.pill-list span { padding: 7px 15px; border-radius: var(--r-full); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); font-size: .82rem; font-weight: 500; }

/* 流程步骤 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--brand-500); margin-bottom: 14px;
}
.step h4 { font-size: .98rem; margin-bottom: 8px; }
.step p { font-size: .85rem; color: var(--ink-3); line-height: 1.7; }

.pc-br { display: none; }
@media (min-width: 900px) { br.pc-br { display: inline; } }
.nowrap { white-space: nowrap; }
.lang-en .nav__link, .lang-en .nav__cta, .lang-id .nav__link, .lang-id .nav__cta { font-size: .89rem; }
.lang-en .hero__stats, .lang-id .hero__stats { gap: 20px 34px; }
.lang-en .hero__stat > span, .lang-id .hero__stat > span { font-size: .8rem; }
.lang-en .hero h1, .lang-id .hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1180px) {
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr; }
  .nav__menu { display: none; }
  .nav__toggle { display: grid; }
  .nav__cta { display: none; }
  .nav__inner .lang-switch { margin-left: auto; }
  .nav__toggle { margin-left: 0; }
  .nav__panels { display: none; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .checklist--2 { grid-template-columns: 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--rev .split__media { order: 0; }
  .split__media--tall { aspect-ratio: 4 / 3; }
  .cta-band__inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 15px; }
  .container { padding-inline: 18px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; gap: 12px; }
  .news-row__date { text-align: left; border-right: none; padding-right: 0; display: flex; align-items: baseline; gap: 8px; }
  .news-row__date b { font-size: 1.05rem; }
  .news-row__arrow { display: none; }
  .hero { min-height: 100vh; min-height: 100dvh; }
  .hero__inner { padding-bottom: 92px; }
  .hero__stats { gap: 22px 34px; }
  .page-hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 52px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
}

/* ---------- 22. 数字人智能助手（右下角）---------- */
.aid {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  font-size: 14px; line-height: 1.6;
}

/* 数字人形象：透明底，无圆形底板与脉冲圈 */
.aid__avatar {
  position: relative; display: block;
  width: 72px; height: 110px; padding: 0; background: none; border: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .32s var(--ease);
}
.aid__avatar:hover { transform: translateY(-5px); }
.aid__avatar:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 6px; border-radius: 18px; }
.aid__img {
  width: 100%; height: 100%; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(10, 37, 64, .26)) drop-shadow(0 2px 4px rgba(10, 37, 64, .12));
}

/* 气泡对话 */
.aid__bubble {
  position: absolute; right: 0; bottom: calc(100% + 16px);
  width: min(332px, calc(100vw - 44px));
  padding: 17px 17px 16px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 28px 62px -22px rgba(10, 37, 64, .36), 0 8px 20px -10px rgba(10, 37, 64, .14);
  transform: translateY(12px) scale(.95); transform-origin: 100% 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.aid.is-open .aid__bubble { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.aid__bubble::after {
  content: ""; position: absolute; right: 34px; bottom: -8px;
  width: 15px; height: 15px; background: #fff;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg); border-bottom-right-radius: 3px;
}

.aid__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-right: 28px; }
.aid__name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.aid__state {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; color: #0E9F6E;
  background: #ECFDF3; border: 1px solid #D3F5E1; padding: 2px 9px; border-radius: var(--r-full);
}
.aid__state i { width: 6px; height: 6px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 3px rgba(18, 183, 106, .16); }

.aid__msg { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.78; }
.aid__msg.is-in { animation: aidMsgIn .38s var(--ease); }
@keyframes aidMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aid__text { display: inline; }
/* 句尾跟随的语境内跳转链接 */
.aid__links { display: inline; }
.aid__link {
  display: inline-flex; align-items: baseline;
  color: var(--brand-600); font-size: .86rem; font-weight: 600; white-space: nowrap;
  transition: color .2s var(--ease);
}
.aid__link::after { content: ">>"; margin-left: 2px; font-weight: 700; letter-spacing: -1.5px; }
.aid__link:hover { color: var(--brand-700); }

.aid__close {
  position: absolute; top: 9px; right: 9px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 50%; color: var(--ink-4);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.aid__close:hover { background: var(--bg-2); color: var(--ink-2); }
.aid__close svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .aid { right: 12px; bottom: 12px; }
  .aid__avatar { width: 62px; height: 94px; }
  .aid__bubble { width: min(300px, calc(100vw - 28px)); padding: 15px 15px 14px; }
  .aid__msg { font-size: .87rem; }
  .to-top { right: 108px; bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .aid__msg.is-in { animation: none; }
  .aid__avatar, .aid__bubble, .aid__link { transition: none; }
}

/* ---------- 23. AI 咨询页（智库问答 / FAQ）---------- */

/* 无障碍：仅屏幕阅读器可见 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 会话面板 */
.ai-ask {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.ai-ask__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--brand-50), #fff);
}
.ai-ask__face { width: 40px; height: 58px; object-fit: contain; flex: none; }
.ai-ask__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-ask__who b { font-size: .96rem; color: var(--ink); }
.ai-ask__who span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-3); }
.ai-ask__who span i { width: 6px; height: 6px; border-radius: 50%; background: var(--tech-500); box-shadow: 0 0 0 3px var(--tech-100); }
.ai-ask__tag {
  margin-left: auto; flex: none; padding: 4px 12px; border-radius: var(--r-full);
  background: var(--brand-600); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
}

/* 对话区 */
.ai-log {
  padding: 20px; height: 340px; overflow-y: auto; background: var(--bg);
  display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth;
}
.ai-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.ai-msg--bot { align-self: flex-start; }
.ai-msg--user { align-self: flex-end; flex-direction: row-reverse; }
.ai-msg__avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700);
}
.ai-msg--user .ai-msg__avatar { background: var(--brand-600); color: #fff; }
.ai-msg__avatar svg { width: 17px; height: 17px; }
.ai-msg__bubble {
  padding: 12px 16px; border-radius: 14px; font-size: .9rem; line-height: 1.8;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
  border-top-left-radius: 4px;
}
.ai-msg--user .ai-msg__bubble {
  background: var(--brand-600); color: #fff; border-color: transparent;
  border-top-left-radius: 14px; border-top-right-radius: 4px;
}
.ai-msg__bubble p { margin: 0; }
.ai-msg__bubble p + p { margin-top: 8px; }
/* 打字机光标 */
.ai-caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  vertical-align: text-bottom; background: var(--brand-600);
  animation: aiCaret .7s steps(1) infinite;
}
@keyframes aiCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.ai-msg__meta { display: block; margin-top: 8px; font-size: .76rem; color: var(--ink-3); }
.ai-msg--user .ai-msg__meta { color: rgba(255, 255, 255, .78); }
.ai-msg__link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  color: var(--brand-600); font-weight: 600; font-size: .86rem;
}
.ai-msg__link::after { content: ">>"; font-weight: 700; letter-spacing: -1.5px; }
.ai-msg__link:hover { color: var(--brand-700); }

/* 思考中 */
.ai-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-300);
  animation: aiBlink 1.1s var(--ease) infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .16s; }
.ai-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes aiBlink { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* 热门问题 */
.ai-suggest {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 20px 0;
}
.ai-suggest .chip { padding: 7px 14px; font-size: .82rem; cursor: pointer; }

/* 输入条 */
.ai-bar { display: flex; gap: 10px; padding: 16px 20px 6px; }
.ai-bar input {
  flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  font: inherit; font-size: .93rem; color: var(--ink); background: #fff; transition: all .25s var(--ease);
}
.ai-bar input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-50); }
.ai-bar input::placeholder { color: var(--ink-4); }
.ai-bar .btn { flex: none; }
.ai-bar .btn svg { width: 17px; height: 17px; }
.ai-note { margin: 0; padding: 0 20px 18px; font-size: .76rem; color: var(--ink-3); line-height: 1.7; }

/* 侧栏 SLA 卡 */
.ai-sla .icon-box { margin-bottom: 4px; }

/* FAQ 手风琴 */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--line-2); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); transition: background .2s var(--ease);
}
.faq__q:hover { background: var(--brand-50); }
.faq__q svg { flex: none; width: 18px; height: 18px; color: var(--ink-4); transition: transform .28s var(--ease); }
.faq__q[aria-expanded="true"] { color: var(--brand-700); }
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--brand-600); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq__a > p { overflow: hidden; margin: 0; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > p { padding: 0 24px 22px; }
.faq__a p { font-size: .9rem; color: var(--ink-3); line-height: 1.85; }

@media (max-width: 860px) {
  .ai-log { height: 300px; }
}
@media (max-width: 640px) {
  .ai-log { height: 260px; padding: 16px; }
  .ai-msg { max-width: 96%; }
  .ai-bar { flex-direction: column; }
  .ai-bar .btn { justify-content: center; }
  .faq__q { padding: 16px 18px; font-size: .95rem; }
  .faq__item.is-open .faq__a > p { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-typing span { animation: none; }
  .faq__a, .faq__q svg { transition: none; }
  .ai-caret { display: none; }
}
