/* ==========================================================================
   迈智科技官网 — 主样式表
   改版要点（对应诊断报告第四节）：
     4.1 移动端页头不再硬裁切：标语在窄屏隐藏、二维码全部移除、导航改为抽屉
     4.2 首屏正文对比度：hero 用深色底 + 浅色字，明度差 ≥ 7:1
     4.3 标题层级：每页只有一个 h1
     4.4 页头高度：桌面端压缩到 ~150px（原 215px）
     4.7 可访问性：跳转链接、focus-visible、点击热区 ≥ 44px
   ========================================================================== */

:root {
  --brand: #1a7abe;
  --brand-dark: #0c4a80;
  --brand-deep: #07304f;
  --brand-light: #36b2e8;
  --brand-tint: #eef6fc;
  --brand-tint-2: #f6fafd;

  --ink: #14202b;
  --ink-2: #35485a;
  --ink-3: #5d7186;
  --ink-4: #8698a9;

  --line: #dbe5ee;
  --line-2: #eaf1f7;
  --bg: #ffffff;
  --bg-muted: #f5f9fc;

  --ok: #1c7a4a;
  --warn: #9a6400;
  --danger: #b3261e;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(12, 74, 128, .06), 0 2px 8px rgba(12, 74, 128, .05);
  --shadow: 0 4px 14px rgba(12, 74, 128, .08), 0 1px 3px rgba(12, 74, 128, .06);
  --shadow-lg: 0 18px 44px rgba(7, 48, 79, .13);
  --wrap: 1180px;
  --wrap-narrow: 800px;
  --header-h: 150px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
          "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* 兜底：任何子元素都不应撑破视口 */
}

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.32; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); margin-top: 0; }
h3 { font-size: 1.14rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

/* 可见焦点圈：键盘用户必须能看到自己在哪 */
:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 跳转到主内容（诊断报告 4.7） */
.skip-link {
  position: absolute;
  left: 12px; top: -64px;
  z-index: 200;
  background: var(--brand-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* --------------------------------------------------------------------------
   页头
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--brand-deep);
  color: #d6e8f5;
  font-size: .82rem;
  line-height: 1.5;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 36px; padding-top: 4px; padding-bottom: 4px;
}
.topbar__slogan { margin: 0; color: #fff; font-weight: 600; letter-spacing: .06em; }
.topbar__list {
  display: flex; align-items: center; gap: 18px;
  margin: 0; padding: 0; list-style: none;
}
.topbar__list li { margin: 0; }
.topbar__list a { color: #d6e8f5; }
.topbar__list a:hover { color: #fff; }
.topbar__k { color: #8fb9d6; margin-right: 5px; }

.header__inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.2rem; color: var(--ink); letter-spacing: .06em; }
.brand__text em {
  font-style: normal; font-size: .7rem; color: var(--ink-3);
  letter-spacing: .02em; white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0; margin-left: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle__bar {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex; align-items: center; gap: 2px;
  margin: 0; padding: 0; list-style: none;
}
.site-nav__item { position: relative; margin: 0; }
.site-nav__link {
  display: flex; align-items: center;
  min-height: 46px;               /* 触控热区 ≥ 44px */
  padding: 0 12px;
  color: var(--ink); font-size: .95rem; font-weight: 500;
  border-radius: 8px;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] {
  background: var(--brand-tint); color: var(--brand-dark); text-decoration: none;
}
.sub-toggle {
  display: none;
  min-width: 44px; min-height: 44px;
  background: none; border: 0; cursor: pointer;
  color: var(--ink-3); font-size: .8rem;
}
.site-nav__sub {
  position: absolute; left: 0; top: calc(100% + 6px);
  min-width: 190px;
  margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.site-nav__item.has-sub:hover .site-nav__sub,
.site-nav__item.has-sub:focus-within .site-nav__sub,
.site-nav__item.has-sub.is-open .site-nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__sub a {
  display: block; padding: 11px 14px; border-radius: 8px;
  color: var(--ink-2); font-size: .92rem;
}
.site-nav__sub a:hover { background: var(--brand-tint); color: var(--brand-dark); text-decoration: none; }

.header__cta { flex: 0 0 auto; margin-left: 6px; }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .95rem; font-weight: 600; font-family: inherit;
  cursor: pointer; text-align: center;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--brand-dark); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-tint); }
.btn--lg { min-height: 52px; padding: 14px 30px; font-size: 1rem; }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: .88rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(54, 178, 232, .28), transparent 62%),
    linear-gradient(155deg, var(--brand-deep) 0%, var(--brand-dark) 58%, #0a5c98 100%);
  color: #eaf4fb;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -140px; bottom: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: rgba(54, 178, 232, .16);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 68px;
}
.hero__eyebrow {
  display: inline-block; margin: 0 0 14px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #cfe8f8; font-size: .82rem; letter-spacing: .04em;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero__lead {
  font-size: 1.06rem; color: #d3e6f4;   /* 对深色底对比度 ≈ 9:1 */
  max-width: 46em; margin-bottom: 1.6em;
}
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero .btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hero__points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hero__points li {
  position: relative; padding-left: 24px; margin: 0;
  color: #cfe4f3; font-size: .93rem;
}
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-light);
}
.hero__panel {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  backdrop-filter: blur(4px);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { text-align: left; }
.stat__value { margin: 0 0 2px; color: #fff; line-height: 1.1; }
.stat__num { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; }
.stat__suffix { font-size: .9rem; color: #bcd9ec; margin-left: 3px; }
.stat__label { margin: 0; font-size: .84rem; color: #bcd9ec; }
.hero__panel-note {
  margin: 18px 0 0; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .78rem; color: #a9c9de; line-height: 1.6;
}

/* --------------------------------------------------------------------------
   页面 hero
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--brand-tint-2) 100%);
  border-bottom: 1px solid var(--line-2);
}
.page-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 44px; align-items: start;
  padding-top: 46px; padding-bottom: 46px;
}
.page-hero__eyebrow { margin: 0 0 8px; color: var(--brand-dark); font-size: .84rem; font-weight: 600; letter-spacing: .04em; }
.page-hero__sub { margin: 0 0 10px; color: var(--ink-3); font-size: 1rem; }
.page-hero__lead { font-size: 1.02rem; color: var(--ink-2); margin-bottom: 1.2em; }
.page-hero__aside {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.page-hero__aside--note { background: var(--brand-tint-2); }
.aside__title { font-size: 1rem; margin-bottom: .7em; }
.aside__note { font-size: .85rem; color: var(--ink-3); margin: 0; }

.error-hero { padding-top: 20px; }
.error-hero__code {
  font-size: 3.4rem; font-weight: 700; color: var(--brand-light);
  line-height: 1; margin: 0 0 10px; letter-spacing: -.03em;
}

/* --------------------------------------------------------------------------
   面包屑 / 目录
   -------------------------------------------------------------------------- */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--line-2); font-size: .85rem; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 12px 0; list-style: none;
}
.breadcrumb li { margin: 0; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ink-4); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

.toc { background: #fff; border-bottom: 1px solid var(--line-2); }
.toc__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 14px 0; list-style: none; }
.toc__list li { margin: 0; }
.toc__list a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .88rem; color: var(--ink-2);
}
.toc__list a:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-tint); text-decoration: none; }

/* --------------------------------------------------------------------------
   区块
   -------------------------------------------------------------------------- */
.section { padding: 68px 0; }
.section--muted { background: var(--bg-muted); }
.section--alt { background: var(--bg); }
.section--cta {
  background: linear-gradient(160deg, var(--brand-deep), var(--brand-dark));
  color: #dcebf7;
}
.section--cta h2 { color: #fff; }
.section--cta p { color: #cfe3f2; }
.section--cta a { color: #a9d6f2; }
.section--cta a:hover { color: #fff; }

.section__head { margin-bottom: 34px; max-width: 46em; }
.section__head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; max-width: none; flex-wrap: wrap;
}
.section__lead { color: var(--ink-3); margin: 0; }
.section__more { margin-top: 26px; text-align: center; }

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 22px; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--compact { margin-top: 28px; gap: 16px; }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8dced; }
.card__tag {
  margin: 0 0 10px; font-size: .78rem; color: var(--brand-dark);
  letter-spacing: .03em; font-weight: 600;
}
.card__title { font-size: 1.06rem; margin-bottom: .4em; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand-dark); text-decoration: none; }
.card__sub { margin: 0 0 10px; font-size: .84rem; color: var(--brand-dark); font-weight: 600; }
.card__text { margin: 0 0 14px; font-size: .93rem; color: var(--ink-3); flex: 1 1 auto; }
.card__more { margin: auto 0 0; font-size: .9rem; font-weight: 600; }
.card--plain { background: var(--bg-muted); border-color: transparent; box-shadow: none; }
.card--plain .card__text { flex: none; }
.card--service .card__icon { display: block; }
.card--compact { padding: 18px; }

.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 14px; font-size: .86rem; }
.meta-list dt { color: var(--ink-4); }
.meta-list dd { margin: 0; color: var(--ink-2); }
.meta-list--inline {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 12px 0 0; padding: 0;
}
.meta-list--inline dt { margin: 0; }
.meta-list--inline dd { margin: 0; }

/* 服务图标：用纯 CSS 图形，不依赖位图 */
.card__icon {
  width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px;
  background: var(--brand-tint); position: relative; flex: 0 0 auto;
}
.card__icon::before, .card__icon::after {
  content: ""; position: absolute; background: var(--brand);
}
.icon-training::before { left: 13px; top: 12px; width: 20px; height: 3px; box-shadow: 0 6px 0 var(--brand), 0 12px 0 var(--brand); }
.icon-training::after { left: 13px; top: 27px; width: 12px; height: 3px; background: var(--brand-light); }
.icon-consulting::before { left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: none; border: 3px solid var(--brand); }
.icon-consulting::after { left: 27px; top: 27px; width: 10px; height: 3px; transform: rotate(45deg); }
.icon-products::before { left: 13px; top: 13px; width: 20px; height: 20px; border-radius: 4px; background: none; border: 3px solid var(--brand); }
.icon-products::after { left: 20px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); }
.icon-data::before { left: 13px; top: 15px; width: 5px; height: 16px; box-shadow: 8px 0 0 var(--brand), 16px 0 0 var(--brand-light); }
.icon-data::after { display: none; }

/* --------------------------------------------------------------------------
   步骤 / 时间轴 / 列表
   -------------------------------------------------------------------------- */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px; margin: 0 0 34px; padding: 0; list-style: none;
}
.step { margin: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__num {
  display: block; font-size: 1.5rem; font-weight: 700;
  color: var(--brand-light); letter-spacing: -.02em; margin-bottom: 6px;
}
.step__title { font-size: 1.02rem; margin-bottom: .4em; }
.step__text { margin: 0; font-size: .9rem; color: var(--ink-3); }

.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.timeline__item { position: relative; margin: 0 0 26px; padding-left: 26px; }
.timeline__item::before {
  content: ""; position: absolute; left: -8px; top: .5em;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.timeline__year { display: block; font-weight: 700; color: var(--brand-dark); }
.timeline__body h3 { margin: .2em 0 .3em; font-size: 1rem; }
.timeline__body p { margin: 0; color: var(--ink-3); font-size: .93rem; }

.check-list, .bullet-list, .deliver-list, .link-list, .credential-list {
  margin: 0 0 1em; padding: 0; list-style: none;
}
.check-list li, .bullet-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-2);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}
.bullet-list li::before {
  content: ""; position: absolute; left: 4px; top: .68em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-light);
}
.deliver-list li {
  position: relative; padding: 12px 16px 12px 44px; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: .94rem;
}
.deliver-list li::before {
  content: ""; position: absolute; left: 16px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: var(--brand-tint); border: 2px solid var(--brand-light);
}
.link-list li { margin-bottom: 8px; }
.credential-list li {
  padding: 14px 18px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.credential-list__evidence { display: block; font-size: .86rem; color: var(--ink-3); }

.contact-inline { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.contact-inline li { margin: 0; font-size: .93rem; display: flex; gap: 12px; align-items: baseline; }
.contact-inline__k {
  flex: 0 0 auto; min-width: 68px;
  color: var(--ink-4); font-size: .82rem;
}
.section--cta .contact-inline__k { color: #8fb9d6; }
.contact-inline a { font-weight: 500; }

/* --------------------------------------------------------------------------
   表格
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-2);
}
.data-table thead th {
  background: var(--brand-tint); color: var(--brand-dark);
  font-weight: 600; white-space: nowrap;
  /* 不做 position:sticky —— 页头本身是 sticky，表头再吸顶会叠在页头下面 */
}
.data-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--brand-tint-2); }
.table__note { margin-top: 12px; font-size: .86rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   案例
   -------------------------------------------------------------------------- */
.case-list { display: grid; gap: 26px; }
.case-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.case-card__title { font-size: 1.24rem; margin: .1em 0 .3em; }
.case-card__title a { color: var(--ink); }
.case-card__body h3 { font-size: .95rem; margin: 1.2em 0 .5em; color: var(--brand-dark); }
.case-card__body p { margin-bottom: .6em; }
.case-card__disclosure {
  padding: 12px 16px; background: var(--brand-tint-2);
  border-left: 3px solid var(--brand-light); border-radius: 0 8px 8px 0;
  font-size: .9rem; color: var(--ink-2); margin-bottom: 0;
}

.callout {
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--brand-tint-2); border: 1px solid var(--line);
  font-size: .93rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout--pending { background: #fffaf0; border-color: #f0dcae; }
.callout--pending strong { color: var(--warn); }
.callout__hint { font-size: .85rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   文章 / 洞察
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2);
}
.filter-bar__label { font-size: .85rem; color: var(--ink-4); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li { margin: 0; }
.tag {
  min-height: 40px; padding: 7px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: .85rem; color: var(--ink-2); cursor: pointer;
}
.tag:hover { border-color: var(--brand); color: var(--brand-dark); }
.tag.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-status { font-size: .86rem; color: var(--ink-3); min-height: 1.4em; }

.post-list { display: grid; gap: 20px; }
.post-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, transform .18s ease;
}
.post-card:hover { border-color: #c8dced; transform: translateY(-2px); }
.post-card[hidden] { display: none; }
.post-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: .82rem; color: var(--ink-4); margin-bottom: 8px;
}
.post-card__title { font-size: 1.2rem; margin-bottom: .4em; }
.post-card__title a { color: var(--ink); }
.post-card__summary { color: var(--ink-3); font-size: .95rem; margin-bottom: 14px; }
.post-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.post-card__tags li {
  margin: 0; padding: 3px 12px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-dark); font-size: .78rem;
}

.article__head { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line-2); }
.article__meta { color: var(--ink-4); font-size: .88rem; margin: 0 0 12px; }
.article__sep { margin: 0 8px; }
.article__summary {
  font-size: 1.02rem; color: var(--ink-2);
  padding: 16px 20px; background: var(--brand-tint-2);
  border-left: 3px solid var(--brand-light); border-radius: 0 8px 8px 0;
  margin: 0 0 16px;
}
.article__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.article__disclaimer { font-size: .86rem; color: var(--ink-3); }
.article__back { margin: 0; font-weight: 600; }

.prose { font-size: 1.02rem; color: var(--ink-2); }
.prose h2 { margin: 1.8em 0 .6em; padding-top: .2em; font-size: 1.35rem; }
.prose h3 { margin: 1.5em 0 .5em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.2em 0; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--brand-tint); color: var(--brand-dark); }
.prose blockquote {
  margin: 1.2em 0; padding: 14px 20px;
  background: var(--brand-tint-2); border-left: 3px solid var(--brand-light);
  border-radius: 0 8px 8px 0; color: var(--ink-2);
}
.prose code {
  padding: 2px 6px; background: var(--brand-tint);
  border-radius: 4px; font-size: .9em;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq__item[open] { border-color: #c8dced; box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 16px 20px;
  font-weight: 600; color: var(--ink); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; margin-left: auto; flex: 0 0 auto;
  color: var(--brand); font-size: 1.3rem; line-height: 1; font-weight: 400;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { background: var(--brand-tint-2); }
.faq__body { padding: 0 20px 18px; color: var(--ink-3); font-size: .95rem; }
.faq__body p { margin: 0; }

/* --------------------------------------------------------------------------
   招聘
   -------------------------------------------------------------------------- */
.job-list { display: grid; gap: 20px; }
.job {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
}
.job__title { font-size: 1.14rem; display: flex; align-items: center; gap: 12px; }
.job__count {
  font-size: .76rem; font-weight: 500;
  padding: 3px 12px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-dark);
}
.job__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.job__grid h4 { color: var(--brand-dark); margin-bottom: .5em; }
.job__grid ul { margin: 0; }

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */
.cta__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 46px; align-items: start;
}
.cta__copy h2 { margin-bottom: .5em; }
.cta__copy p { margin-bottom: 1.1em; }
.cta__form { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }

.contact-form { display: grid; gap: 16px; }
.form__title { font-size: 1.1rem; margin-bottom: 0; }
.form__hint { margin: 0; font-size: .84rem; color: var(--ink-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: grid; gap: 6px; }
.form__field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.req { color: var(--danger); }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font-family: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__field textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(54, 178, 232, .22);
  outline: none;
}
.form__field input[aria-invalid="true"],
.form__field select[aria-invalid="true"],
.form__field textarea[aria-invalid="true"] { border-color: var(--danger); }
.form__field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.form__field--check input { width: 20px; height: 20px; min-height: 20px; margin-top: 3px; }
.form__field--check label { font-weight: 400; font-size: .87rem; color: var(--ink-2); line-height: 1.6; }
.form__counter { margin: 0; font-size: .78rem; color: var(--ink-4); text-align: right; }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__actions .btn { flex: 0 0 auto; min-width: 160px; }
.form__sla { margin: 0; font-size: .84rem; color: var(--ink-3); }
.form__status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--ok); font-weight: 600; }
.form__status.is-error { color: var(--danger); font-weight: 600; }
.form__noscript { font-size: .85rem; color: var(--ink-3); margin: 0; }

/* --------------------------------------------------------------------------
   触控热区
   诊断报告 4.7 指出旧站移动端有 9 个点击热区小于 32px。
   本站在两个层级上约束：
     · 主要控件（按钮、导航、标签、表单控件、FAQ 摘要）≥ 44px —— 手指可靠点击的尺寸
     · 卡片与页脚里的块级次级链接 ≥ 32px；正文中真正内联的链接按 WCAG 2.5.8 的 24px 下限
   tools/gates.py 的 css_contract_gate 会检查这些数值是否还在，删掉就会构建失败。
   -------------------------------------------------------------------------- */
.card__more a,
.link-list a,
.article__back a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.footer__list a,
.footer__legal-links a,
.post-card__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}
.breadcrumb a { display: inline-flex; align-items: center; min-height: 28px; }
.contact-inline a { display: inline-flex; align-items: center; min-height: 28px; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer { background: #0a2c46; color: #9fbdd3; font-size: .9rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 36px; padding-top: 54px; padding-bottom: 40px;
}
.footer__brand img { width: 42px; height: auto; margin-bottom: 12px; }
.footer__legal { color: #fff; font-weight: 600; margin: 0 0 8px; }
.footer__intro { margin: 0; font-size: .86rem; line-height: 1.7; }
.footer__title { color: #fff; font-size: .95rem; margin-bottom: .9em; }
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 9px; }
.footer__list a { color: #9fbdD3; }
.footer__list a:hover { color: #fff; }
.footer__list--contact li { display: flex; gap: 8px; font-size: .87rem; }
.footer__list--contact a { word-break: break-all; }
.footer__col .btn { margin-top: 12px; }
.footer__col .btn--ghost { background: transparent; color: #cfe4f3; border-color: #2c5471; }
.footer__col .btn--ghost:hover { background: #123a58; color: #fff; border-color: #4b7c9e; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding-top: 20px; padding-bottom: 26px;
  border-top: 1px solid #17405e; font-size: .82rem;
}
.footer__copy { margin: 0; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.footer__legal-links li { margin: 0; }
.footer__legal-links a { color: #9fbdd3; }
.footer__legal-links a:hover { color: #fff; }
.footer__note { flex: 1 1 100%; margin: 0; color: #7ea3bd; font-size: .78rem; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  html { scroll-padding-top: 84px; }

  .topbar__hours { display: none; }
  .brand__text em { display: none; }        /* 副标语在窄屏收起，不再被裁切 */
  .header__inner { min-height: 64px; gap: 12px; }
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed; inset: 64px 0 auto 0;
    max-height: calc(100vh - 64px); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px 20px 26px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__item { border-bottom: 1px solid var(--line-2); }
  .site-nav__item:last-child { border-bottom: 0; }
  .site-nav__item.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .site-nav__link { min-height: 52px; padding: 0 4px; font-size: 1rem; }
  .sub-toggle { display: block; }
  .site-nav__sub {
    position: static; grid-column: 1 / -1;
    min-width: 0; padding: 0 0 8px 12px;
    border: 0; box-shadow: none; background: transparent;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .site-nav__item.has-sub.is-open .site-nav__sub { display: block; }
  .site-nav__sub a { min-height: 46px; display: flex; align-items: center; }
  .header__cta { display: none; }

  .hero__inner, .page-hero__inner, .cta__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__inner { padding-top: 46px; padding-bottom: 50px; }
  .section { padding: 52px 0; }
  .job__grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .card-grid--4, .card-grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat__num { font-size: 1.7rem; }
  .topbar__slogan { font-size: .76rem; }
  .topbar__list { font-size: .76rem; gap: 12px; }
  .topbar__list li:first-child .topbar__k { display: none; }
  .cta__form { padding: 20px; }
  .case-card, .post-card, .job { padding: 20px; }
  .hero h1 { font-size: 1.6rem; }
  .section__head--row { align-items: flex-start; }
}

@media (max-width: 420px) {
  .topbar__list li:first-child { display: none; }
  .hero__actions .btn { width: 100%; }
}

/* 尊重"减少动态效果"偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 打印：去掉导航与装饰，保留正文 */
@media print {
  .site-header, .site-footer, .section--cta, .breadcrumb, .nav-toggle, .filter-bar { display: none !important; }
  body { color: #000; }
  .card, .case-card, .post-card { box-shadow: none; border-color: #999; }
}
