/* ==========================================================================
   运深咨询 · 全局样式
   规范来源：docs/design-homepage-refresh.md（v1.0）
   调性：克制 / 可靠 / 正式（政企机构官网）
   --------------------------------------------------------------------------
   约定
   1) 全站不出现硬编码色值，一律走 :root 令牌。
   2) 旧变量名全部保留为别名（--bg-deep / --text / --accent / --radius 等），
      因为 css/pages.css 1262 行大量依赖，删任一别名会造成大面积静默失效。
   3) 圆角只用 4 / 6 / 8 / 12 / pill / 50%。
   4) 阴影只用 --shadow-1 ~ --shadow-4（蓝黑 rgba），禁止彩色发光。
   5) 断点沿用 max-width 向下覆盖：1199 / 959 / 767 / 559。
   ========================================================================== */

/* —— 设计令牌 —— */
:root {
  /* — 品牌蓝 — */
  --brand-900: #0b2a4a;
  --brand-800: #113a63;
  --brand-700: #17497f; /* 主色 */
  --brand-600: #1f5c99;
  --brand-300: #a8c8e8;
  --brand-200: #c8d9ea;
  --brand-100: #e8f0f9;
  --brand-50: #f4f8fc;

  /* — 赭金（仅装饰：荣誉徽章 / 资质标签 / 数据强调，≤3 处） — */
  --gold-700: #8a6a3b;
  --gold-500: #c08a2e;
  --gold-100: #f6efe2;

  /* — 中性（冷灰，与蓝主色同色相） — */
  --ink-900: #131a24;
  --ink-800: #2b3440;
  --ink-600: #5c6979;
  --ink-400: #8a97a6; /* 仅非文本图形 / 禁用边框，禁止用于文字 */
  --line-strong: #c3ccd6;
  --line: #dce3ea;
  --surface-2: #eef2f6;
  --surface-1: #f7f9fb;
  --white: #ffffff;

  /* — 语义 — */
  --success: #1b7a4b;
  --success-bg: #e9f5ee;
  --warning: #a2580a;
  --warning-bg: #fdf3e3;
  --danger: #b3261e;
  --danger-bg: #fbeae8;
  --info: #17497f;
  --info-bg: #e8f0f9;

  /* — 深底专用 — */
  --on-dark: #ffffff;
  --on-dark-muted: #b8c6d4;
  --accent-on-dark: #a8c8e8;

  /* — 兼容旧变量名（pages.css 全站依赖，勿删） — */
  --bg-deep: #0b2a4a;
  --bg-elevated: #113a63;
  --bg-panel: #ffffff;
  --border-subtle: #dce3ea;
  --text: #2b3440;
  --text-muted: #5c6979;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #b8c6d4;
  --accent: #17497f; /* 语义已变：浅底强调色；深底请用 --accent-on-dark */
  --accent-dim: #e8f0f9;
  --accent-2: #c8d9ea;

  /* — 字体（系统栈，零网络请求，已移除全部 Google Fonts） — */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --num: "tnum" 1;

  /* — 字号阶梯 — */
  --fs-h1: 40px;
  --lh-h1: 1.25;
  --fs-h2: 30px;
  --lh-h2: 1.35;
  --fs-h3: 22px;
  --lh-h3: 1.5;
  --fs-h4: 18px;
  --lh-h4: 1.55;
  --fs-lead: 18px;
  --lh-lead: 1.8;
  --fs-body: 16px;
  --lh-body: 1.75;
  --fs-sm: 14px;
  --lh-sm: 1.7;
  --fs-caption: 13px;
  --lh-caption: 1.6;
  --fs-eyebrow: 13px;
  --ls-eyebrow: 0.12em;

  /* — 间距（4 / 8 基准） — */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;
  --sp-13: 120px;

  /* — 圆角（彻底删除 10px） — */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius: 8px; /* 兼容旧名，= md */
  --radius-lg: 12px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* — 阴影（一律蓝黑 rgba，禁止彩色发光） — */
  --shadow-1: 0 1px 2px rgba(11, 42, 74, 0.06);
  --shadow-2: 0 2px 6px rgba(11, 42, 74, 0.08);
  --shadow-3: 0 8px 24px rgba(11, 42, 74, 0.1);
  --shadow-4: 0 16px 40px rgba(11, 42, 74, 0.12);

  /* — 布局与交互 — */
  --header-h: 72px;
  --max: 1160px;
  --max-read: 680px; /* 中文正文最佳阅读行宽 ≈42 字/行 */
  --gutter: 24px;
  --container-pad: 24px;
  --tap: 44px; /* 最小触控目标 */
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
  --dur: 200ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--surface-1);
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* —— 无障碍工具类 —— */
/* 视觉隐藏但对读屏可见（首页 h1 用） */
.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;
}

/* 键盘焦点必须可见（原文件零 focus 样式） */
:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 2px;
}

/* 深底上焦点环用浅蓝，否则深蓝压深蓝看不见 */
.hero :focus-visible,
.section--strength :focus-visible,
.footer :focus-visible {
  outline-color: var(--brand-300);
}

/* —— Header —— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  /* 实底白 + 细线：不用玻璃拟态，老浏览器降级不会出现 82% 灰底 */
  background: var(--white);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 原规则有一条丢掉属性名的坏声明，已整块重写 */
/* 客户 logo 大概率是横版，宽度自适应：最低 40px（方形图标），最高 180px（长条字标） */
.logo__glyph {
  width: auto;
  min-width: 40px;
  max-width: 180px;
  height: 40px;
  padding: 0 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
}

/* {pboot:sitelogo} 是客户后台上传的任意比例图，必须按比例伸缩、不裁不拉 */
.logo__glyph img {
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* 深蓝 footer 上带边框的白方块最扎眼：去边框、高度收到 36px 的干净白底衬托。
   不选透明底，是因为客户 logo 若是深色会在深底上直接看不见。
   宽度不锁 36px：header 与 footer 共用同一张 {pboot:sitelogo}，客户横版字标
   一旦被锁进 36x36 方框，会被 max-width 夹到 36px 宽 → 只剩 10px 高，
   字标变一道糊线、白方块反而更抢眼。故放开宽度、只压高度。 */
.logo__glyph--footer {
  width: auto;
  min-width: 36px;
  max-width: 180px;
  height: 36px;
  padding: 0 6px;
  border: none;
  background: var(--white);
}

/* 比页头的 32px 再小一档，白底面积降下来 */
.logo__glyph--footer img {
  height: 24px;
}

.logo__text {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}

/* 内页 13 处在用，保留 */
.logo__tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-1);
}

.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2px;
  justify-content: flex-end;
  align-items: center;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-600);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--brand-700);
  background: var(--brand-50);
}

.nav__caret {
  font-size: 10px;
  opacity: 0.6;
}

.nav__item--dropdown {
  position: relative;
  /* Bridge hover gap so submenu won't close on mouse move */
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 200px;
  padding: 8px;
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur);
  z-index: 120;
}

.nav__item--dropdown:hover .nav__sub,
.nav__item--dropdown:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__sub a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-600);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav__sub a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* 实底藏青 + 白字（9.15:1），不用渐变、不发光、hover 不位移 */
.header__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--brand-700);
  box-shadow: var(--shadow-1);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.header__cta:hover {
  background: var(--brand-800);
  box-shadow: var(--shadow-2);
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  background: var(--white);
}

.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-900);
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav__mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - var(--header-h));
  background: var(--white);
  padding: 8px var(--container-pad) 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
  z-index: 130;
}

.nav__mobile-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
}

.nav__mobile-list a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* 移动端二级菜单：原生 details/summary，零脚本 */
.nav__mobile-item > details {
  border-bottom: 1px solid var(--line);
}

.nav__mobile-item > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  border-bottom: 0;
  list-style: none;
  cursor: pointer;
}

.nav__mobile-item > details > summary::-webkit-details-marker {
  display: none;
}

.nav__mobile-item > details > summary .nav__caret {
  font-size: 12px;
  opacity: 0.55;
  transition: transform var(--dur) var(--ease);
}

.nav__mobile-item > details[open] > summary {
  color: var(--brand-700);
}

.nav__mobile-item > details[open] > summary .nav__caret {
  transform: rotate(180deg);
}

.nav__mobile-sub {
  padding: 4px 0 8px;
}

.nav__mobile-sub a {
  display: block;
  min-height: 48px;
  padding: 12px 12px 12px 28px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-600);
  border-bottom: 0;
}

.nav__mobile-sub a:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

/* 移动端底部联系块：政府客户手机上第一诉求是打电话，放在拇指区 */
.nav__mobile-foot {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav__mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  background: var(--brand-700) !important;
  color: var(--white) !important;
  box-shadow: var(--shadow-1);
}

.nav__mobile-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  font-size: 15px;
  color: var(--ink-600);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: clamp(520px, calc(100vh - var(--header-h)), 720px);
  min-height: clamp(520px, calc(100svh - var(--header-h)), 720px);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero__slides {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: clamp(520px, calc(100vh - var(--header-h)), 720px);
  min-height: clamp(520px, calc(100svh - var(--header-h)), 720px);
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 56px var(--container-pad) 120px;
  background: var(--slide-bg, var(--bg-deep));
  opacity: 0;
  transition: opacity 0.85s var(--ease);
  pointer-events: none;
}

/* 文字可读性保障层：客户上传的轮播图不可控，白字必须有可预期的底。
   文字区（左 45%）不透明度 ≥0.86 —— 这是对比度硬线，不是审美偏好。
   实测：0.86 时副标题 #B8C6D4 → 5.10:1；若降到 0.80 只剩 4.44:1，不达标。 */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(11, 42, 74, 0.9) 0%,
    rgba(11, 42, 74, 0.86) 45%,
    rgba(11, 42, 74, 0.55) 72%,
    rgba(11, 42, 74, 0.2) 100%
  );
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding-bottom: 96px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent-on-dark);
  margin: 0 0 16px;
}

.eyebrow--on-light {
  color: var(--brand-700);
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  /* 14em ≈ 560px @40px：13 字的中文标题（如「以数据与标准，定义可信服务」）
     正好一行放下；再长的标题才换行。
     text-wrap:balance 保证换行时不出现「定义可 / 信服务」这类拆词断行。 */
  max-width: 14em;
  text-wrap: balance;
}

.hero__lead {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--on-dark-muted);
}

/* 双 CTA：政企访客有两条主路径（看你们做什么 / 直接联系），权重 7:3 */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__cta {
  margin-top: 40px;
  text-decoration: none;
}

.hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 视觉轨道 6px，触控热区 44px 高。
   原实现用 overflow:hidden 裁切进度条，导致 ::before 热区无法外扩，
   这里把「轨道」交给伪元素、进度条显式定位，热区靠元素自身高度保证。 */
.hero__dot {
  position: relative;
  display: block;
  width: 32px;
  height: var(--tap);
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  transition: width 0.3s var(--ease);
}

.hero__dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.35);
}

.hero__dot-progress {
  position: absolute;
  left: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--white);
  pointer-events: none;
}

.hero__dot.is-active {
  width: 44px;
}

.hero__dot.is-active::before {
  background: rgba(255, 255, 255, 0.28);
}

.hero--paused .hero__dot .hero__dot-progress {
  animation-play-state: paused !important;
}

/* 悬停 / 键盘聚焦时暂停进度动画（配合 main.js 需要时才真正停表） */
.hero:hover .hero__dot .hero__dot-progress,
.hero:focus-within .hero__dot .hero__dot-progress {
  animation-play-state: paused;
}

@keyframes hero-dot-autoplay {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.hero__line {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

/* —— Sections —— */
.section {
  padding: 96px var(--container-pad);
}

.section__head {
  max-width: var(--max);
  margin: 0 auto 48px;
  text-align: center;
}

.section__head--dark .section__title {
  color: var(--text-on-dark);
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-900);
}

.section__title--sm {
  font-size: 24px;
}

.section__lead {
  margin: 0 auto;
  max-width: 620px;
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.8;
}

.section__lead--muted {
  color: var(--text-on-dark-muted);
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
}

.shell--panel {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

/* 首页：新闻区块紧贴 hero 下方 */
.section--news {
  padding-top: 80px;
  padding-bottom: 96px;
}

.shell--narrow {
  max-width: 720px;
}

.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}

.section__actions--triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  transition: background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn--primary {
  color: var(--white);
  background: var(--brand-700);
  box-shadow: var(--shadow-1);
}

.btn--primary:hover {
  background: var(--brand-800);
  box-shadow: var(--shadow-2);
}

/* Hero 次 CTA：1px 白边框 + 透明底，权重明显低于主 CTA */
.btn--outline {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--ghost {
  color: var(--brand-700);
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
}

.btn.hero__cta {
  border-radius: var(--radius-md);
}

/* —— News —— */
.news-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.news-grid__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.overview-spotlight {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: box-shadow var(--dur) var(--ease);
}

.overview-spotlight:hover {
  box-shadow: var(--shadow-2);
}

.overview-spotlight__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  color: var(--brand-700);
  margin: 0;
  padding: 20px 22px 0;
}

.overview-spotlight__heading {
  margin: 8px 0 16px;
  padding: 0 22px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--ink-900);
}

/* 缩略图区：保留图片原始比例，最高 520px 封顶。
   原来写死 aspect-ratio:16/10 + object-fit:cover，遇到竖版图（后台上传过
   562×1000 的信息图）会把上下裁掉，图内文字被切，视觉上像排版重叠。
   width/height 都用 auto + max-* 约束，浏览器会按比例缩放，横图照旧铺满、
   竖图完整显示不裁切。 */
.overview-spotlight__media {
  margin: 0 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  justify-content: center;
}

.overview-spotlight__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;
}

.overview-spotlight__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.overview-spotlight__lead,
.overview-spotlight__text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-600);
}

.overview-spotlight__body .text-link {
  margin-top: 4px;
  align-self: flex-start;
}

.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: box-shadow var(--dur) var(--ease);
}

.news-card:hover {
  box-shadow: var(--shadow-2);
}

.news-card--featured {
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card--featured .news-card__body {
  flex: 1;
}

.news-card__media {
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.03);
}

.news-card__media--sm {
  aspect-ratio: 3 / 2;
  max-height: 160px;
}

.news-card--compact {
  display: grid;
  grid-template-columns: 140px 1fr;
}

.news-card--compact .news-card__media--sm {
  max-height: none;
  height: 100%;
  min-height: 120px;
}

.news-card__body {
  padding: 22px;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--ink-600);
  font-variant-numeric: tabular-nums;
}

.pill {
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--ink-800);
}

.pill--accent {
  background: var(--brand-100);
  color: var(--brand-700);
}

.news-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-900);
}

.news-card--featured .news-card__title {
  font-size: 24px;
}

.news-card__excerpt {
  margin: 0;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.7;
}

/* —— Business —— */
.section--biz {
  /* 去掉原来的 #f8fafc→#eef2ff 渐变：偏紫冷色与藏青主色不同色相，办公屏上发灰紫 */
  background: var(--surface-2);
  padding-top: 96px;
}

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

.biz-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.biz-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.biz-card__link {
  display: block;
  color: inherit;
  height: 100%;
}

.biz-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-2);
}

.biz-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biz-card__body {
  padding: 24px 22px;
}

.biz-card__code {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 8px;
}

.biz-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-900);
}

.biz-card__excerpt {
  margin: 0;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.7;
}

/* —— Strength（HTML 中保持 hidden，样式提前对齐） —— */
.section--strength {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  position: relative;
}

.section--strength .shell {
  position: relative;
  z-index: 1;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.strength-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
}

.strength-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text-on-dark);
}

.strength-card p {
  margin: 0 0 16px;
  color: var(--text-on-dark-muted);
  font-size: 15px;
  line-height: 1.7;
}

.text-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-700);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--strength .text-link {
  color: var(--accent-on-dark);
}

.map-placeholder {
  position: relative;
  height: 140px;
  border-radius: var(--radius-md);
  background: rgba(168, 200, 232, 0.12);
  border: 1px solid rgba(168, 200, 232, 0.25);
  margin-bottom: 16px;
  overflow: hidden;
}

.map-placeholder__pulse {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-circle);
  border: 1px solid rgba(168, 200, 232, 0.55);
  animation: pulse 3s var(--ease) infinite;
}

.map-placeholder__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(11, 42, 74, 0.65);
  color: var(--text-on-dark);
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* —— Footer —— */
.footer {
  background: var(--brand-900);
  color: var(--text-on-dark-muted);
  padding: 64px var(--container-pad) 0;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}

.footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer__brand strong {
  display: block;
  color: var(--text-on-dark);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer__brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  /* logo 改横版后文字栏变窄，中文会在词中间断行（「人才服/务」）；
     keep-all 只允许在「·」这类空格处断，断点落在分隔符上 */
  word-break: keep-all;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer__cols h4 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 1;
}

.footer__cols p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.7;
}

.footer__cols a {
  color: inherit;
  transition: color var(--dur) var(--ease);
}

.footer__cols a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
}

.footer__bar a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   响应式：1199 / 959 / 767 / 559（max-width 向下覆盖）
   ========================================================================== */

/* —— ≤1199：导航收紧，hero 降高 —— */
@media (max-width: 1199px) {
  .nav__list {
    gap: 0;
  }

  .nav__link {
    padding: 8px 10px;
    font-size: 14px;
  }

  .header__cta {
    padding: 0 16px;
    font-size: 14px;
  }

  .hero,
  .hero__slides {
    min-height: clamp(480px, calc(100vh - var(--header-h)), 640px);
    min-height: clamp(480px, calc(100svh - var(--header-h)), 640px);
  }

  .hero__title {
    font-size: clamp(28px, 3.2vw, 36px);
  }

  .news-grid {
    gap: 24px;
  }

  .biz-grid {
    gap: 20px;
  }

  .footer__inner {
    grid-template-columns: minmax(220px, 260px) 1fr;
    gap: 32px;
  }

  .footer__cols {
    gap: 32px;
  }
}

/* —— ≤959：导航折叠为汉堡（沿用原 960 折叠点） —— */
@media (max-width: 959px) {
  .nav,
  .header__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero,
  .hero__slides {
    min-height: clamp(440px, calc(100vh - var(--header-h)), 560px);
    min-height: clamp(440px, calc(100svh - var(--header-h)), 560px);
  }

  .hero__slide {
    padding: 48px var(--container-pad) 104px;
  }

  .hero__title {
    font-size: 30px;
    max-width: 24ch;
  }

  .hero__content {
    padding-bottom: 72px;
  }

  .hero__hint {
    display: none;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card--compact {
    grid-template-columns: 1fr;
  }

  .news-card--compact .news-card__media--sm {
    max-height: 200px;
  }

  .biz-grid {
    grid-template-columns: 1fr;
  }

  .biz-card {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .section__actions--triple {
    grid-template-columns: 1fr;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .shell--panel {
    padding: 32px 24px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* —— ≤767：单列为主，容器内边距降到 20 —— */
@media (max-width: 767px) {
  :root {
    --container-pad: 20px;
  }

  .section {
    padding: 64px var(--container-pad);
  }

  .section--news {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section--biz {
    padding-top: 64px;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .shell--panel {
    padding: 24px 20px;
  }

  .hero,
  .hero__slides {
    min-height: clamp(420px, calc(100vh - var(--header-h)), 480px);
    min-height: clamp(420px, calc(100svh - var(--header-h)), 480px);
  }

  /* 竖屏文字铺满宽度：改纵向遮罩，最浅处仍保持 0.82 以上 */
  .hero__slide::after {
    background: linear-gradient(
      180deg,
      rgba(11, 42, 74, 0.82) 0%,
      rgba(11, 42, 74, 0.88) 60%,
      rgba(11, 42, 74, 0.92) 100%
    );
  }

  .hero__title {
    font-size: 28px;
    max-width: none;
  }

  .hero__lead {
    font-size: 16px;
  }

  /* 父级 .hero__content 是 align-items:flex-start，容器会收缩成内容宽；
     必须显式撑满，否则 .btn 的 width:100% 只等于 168px 的自然宽 */
  .hero__actions {
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 32px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__controls {
    bottom: 28px;
  }

  .news-card__body {
    padding: 20px;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* —— ≤559：手机窄屏 —— */
@media (max-width: 559px) {
  :root {
    --container-pad: 16px;
  }

  .section {
    padding: 56px var(--container-pad);
  }

  .section--news {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero,
  .hero__slides {
    min-height: clamp(400px, calc(100vh - var(--header-h)), 420px);
    min-height: clamp(400px, calc(100svh - var(--header-h)), 420px);
  }

  .hero__slide {
    padding: 40px var(--container-pad) 96px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__lead {
    font-size: 15px;
  }

  .news-card__body {
    padding: 18px;
  }

  .footer {
    padding-top: 48px;
  }

  .footer__bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* 汉堡菜单在桌面宽度下必须彻底消失（覆盖 hidden 属性） */
@media (min-width: 960px) {
  .nav__mobile[hidden] {
    display: none !important;
  }
}

/* ==========================================================================
   无障碍与偏好
   ========================================================================== */

/* 减少动效：轮播仍由 JS 计时器控制，这里负责关掉所有 CSS 动画/过渡 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* 进度条动画停掉（宽度保持 0，不显示进度） */
  .hero__dot-progress {
    animation: none !important;
  }

  .news-card:hover .news-card__media img {
    transform: none;
  }

  .biz-card:hover {
    transform: none;
  }

  .map-placeholder__pulse {
    animation: none;
    opacity: 0.8;
  }
}

/* 高对比度偏好 */
@media (prefers-contrast: more) {
  :root {
    --line: #9aa7b4;
    --ink-600: #3d4a58;
  }
}
