/* ==========================================================================
   凉山州蓝豹应急救援中心 · 全站样式
   响应式：移动端优先，断点 480 / 768 / 1024 / 1280
   ========================================================================== */

:root {
  --blue-900: #002a47;
  --blue-800: #00497e;
  --blue-700: #0066ae;
  --blue-600: #0b7bc4;
  --blue-500: #2e94da;
  --blue-100: #e2effa;
  --blue-050: #f3f8fd;

  --amber-600: #c47a12;
  --amber-500: #e29a20;
  --amber-100: #fdf3e0;

  --ink: #16202b;
  --ink-2: #45535f;
  --ink-3: #75828d;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(16, 32, 48, .06);
  --shadow: 0 4px 18px rgba(16, 32, 48, .08);
  --shadow-lg: 0 18px 48px rgba(16, 32, 48, .14);

  --wrap: 1200px;
  --nav-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 44px 0; }

/* 锚点跳转时给吸顶导航留出空间，避免标题被遮住 */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(22px, 4.4vw, 34px);
  color: var(--blue-900);
  margin-bottom: 14px;
}
.section-desc {
  font-size: clamp(15px, 2.4vw, 17px);
  color: var(--ink-2);
  line-height: 1.85;
}

/* ---------- 顶部导航 ---------- */
/* 吸顶放在外层容器上：.nav 自身高度等于容器，直接给 .nav 设 sticky 不会生效 */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  position: relative;
  z-index: 2;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 9px;
  overflow: hidden;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: #fff;
}
.brand__mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
/* 深色背景上用白色底托，保证标志清晰 */
.brand__mark--dark {
  padding: 3px;
  border-radius: 10px;
  background: #fff;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 15px; font-weight: 700; color: var(--blue-900); white-space: nowrap; }
.brand__sub { font-size: 10px; letter-spacing: .16em; color: var(--ink-3); font-weight: 600; }

.nav__links { display: none; align-items: center; gap: 2px; }
.nav__link {
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav__link:hover { background: var(--blue-050); color: var(--blue-700); }
.nav__link.is-active { color: var(--blue-700); font-weight: 700; background: var(--blue-100); }

.nav__cta {
  display: none;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--blue-700);
  border-radius: 999px;
  transition: background .18s;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--blue-600); }

/* 汉堡按钮 */
.nav__toggle {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: background .2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .22s;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle.is-open span { background: transparent; }
.nav__toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* 抽屉打开时锁住背景滚动：iOS 单锁 body 不生效，html 必须一起锁 */
html.is-nav-open,
html.is-nav-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

/* 移动端抽屉（由 JS 挂到 body 下，脱离导航栏的合成层） */
.nav__drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: auto;                    /* 按内容高度撑开，不铺满整屏 */
  z-index: 9998;                   /* 高于导航栏(100)与页面所有板块 */
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 40px rgba(6, 24, 40, .16);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, transform .22s, visibility .22s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));   /* iOS 动态视口，地址栏收起也正确 */
}

/* 抽屉下方遮挡层：点击关闭 */
.nav__scrim {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  z-index: 9997;
  background: rgba(6, 24, 40, .38);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, visibility .22s;
  -webkit-tap-highlight-color: transparent;
}
.nav__scrim.is-open { opacity: 1; visibility: visible; }
.nav__drawer.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav__drawer a {
  display: block;
  padding: 13px 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.nav__drawer a:last-of-type { border-bottom: none; }
.nav__drawer a.is-active { color: var(--blue-700); font-weight: 700; background: var(--blue-050); }
.nav__drawer .drawer-cta {
  margin-top: 12px;
  text-align: center;
  background: var(--blue-700);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  border-bottom: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(440px, 68vh, 620px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--blue-900);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.02);
}
/* 手机端专用大图：默认不显示，窄屏且有配置时才切换 */
.hero__bg--mobile { display: none; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 42, 71, .42) 0%, rgba(0, 42, 71, .62) 55%, rgba(0, 42, 71, .90) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 56px;
  padding-bottom: 52px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(226, 154, 32, .18);
  border: 1px solid rgba(226, 154, 32, .45);
  color: #f5c66a;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(28px, 6.2vw, 54px);
  line-height: 1.18;
  margin-bottom: 16px;
  max-width: 15em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}
.hero__sub {
  font-size: clamp(14.5px, 2.5vw, 17.5px);
  line-height: 1.8;
  color: rgba(255, 255, 255, .88);
  max-width: 620px;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s, background .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber-500); color: #2b1a00; }
.btn--primary:hover { background: var(--amber-600); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--blue { background: var(--blue-700); color: #fff; }
.btn--blue:hover { background: var(--blue-600); }
.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--blue-500); color: var(--blue-700); }

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.stat {
  background: #fff;
  padding: 22px 18px;
  text-align: center;
}
.stat__num {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 800;
  color: var(--blue-700);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat__num span { font-size: .5em; font-weight: 700; margin-left: 3px; color: var(--ink-3); }
.stat__label { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ---------- 通用卡片 ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #cfdae6; box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--blue-900); }
.card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; margin: 0; }

/* ---------- 图文分栏 ---------- */
.split {
  display: grid;
  gap: 28px;
  align-items: center;
}
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 0; }
.tl-item {
  position: relative;
  padding: 0 0 26px 30px;
  border-left: 2px solid var(--line);
}
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -7px; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--blue-500);
}
.tl-year {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--blue-600);
  display: block;
  margin-bottom: 3px;
}
.tl-text { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 荣誉 ---------- */
.honor-list { display: grid; gap: 10px; }
.honor {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.honor svg { width: 17px; height: 17px; color: var(--amber-500); flex-shrink: 0; margin-top: 3px; }

/* ---------- 业务能力卡（带配图） ---------- */
.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.svc:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfdae6; }
.svc__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-100); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__body { padding: 22px 22px 24px; flex: 1; }
.svc__title { font-size: 18px; color: var(--blue-900); margin-bottom: 12px; }
.svc__list { display: grid; gap: 7px; }
.svc__list li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}
.svc__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
}

/* ---------- 行动卡片（纯文字，无配图） ---------- */
.op {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  display: flex;
}
.op:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfdae6; }
.op__body { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.op__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.op__year {
  display: inline-block;
  background: var(--blue-700);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.5;
}
.op__date { font-size: 12.5px; color: var(--ink-3); }
.op__title { font-size: 18px; color: var(--blue-900); margin-bottom: 8px; line-height: 1.45; }
.op__loc { font-size: 13px; color: var(--blue-600); font-weight: 600; margin-bottom: 10px; }
.op__summary { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-bottom: 14px; }
.op__hl { display: grid; gap: 6px; }
.op__hl li {
  font-size: 13.5px;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}
.op__hl li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
}

/* ---------- 项目卡 ---------- */
.proj {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.proj::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue-500);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s;
}
.proj:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfdae6; }
.proj:hover::after { transform: scaleY(1); }
.proj__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.proj h3 { font-size: 17px; color: var(--blue-900); margin-bottom: 8px; }
.proj p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; margin: 0; }

/* ---------- 动态列表 ---------- */
.news-item {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .2s;
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; }
.news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.news-item__date { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-item__tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--amber-600);
  background: var(--amber-100);
  padding: 3px 10px;
  border-radius: 999px;
}
.news-item__title {
  font-size: clamp(16px, 2.8vw, 18.5px);
  color: var(--blue-900);
  margin-bottom: 8px;
  line-height: 1.5;
  transition: color .18s;
}
.news-item:hover .news-item__title { color: var(--blue-600); }
.news-item__summary { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; margin: 0; }

/* ---------- 课程表 ---------- */
.course {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: box-shadow .2s, transform .2s;
}
.course:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.course__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.course h3 { font-size: 16px; color: var(--blue-900); }
.course__dur {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.course p { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin: 0; }

/* ---------- 相册 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  cursor: pointer;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.gallery__item:hover img { transform: scale(1.06); }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 26, 45, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid; place-items: center;
}

/* ---------- 加入我们 ---------- */
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.join-col { min-width: 0; width: 100%; }
.join-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.join-qr__box {
  width: 118px; height: 118px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px;
}
.join-qr__box img { width: 100%; height: 100%; object-fit: contain; }
.join-qr__text h3 { font-size: 16px; color: var(--blue-900); margin-bottom: 6px; }
.join-qr__text p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 0; }
.join-sub {
  font-size: 16px !important;
  color: var(--blue-900);
  margin: 0 0 12px;
  font-weight: 700;
}
.join-sub--first { margin-top: 0; }
.join-col > .honor-list + .join-sub { margin-top: 26px; }
.join-note {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
  margin: 14px 0 26px;
  padding-left: 14px;
  border-left: 3px solid var(--blue-100);
}

/* 加入流程：独占整行 */
.join-flow {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.steps--split { grid-template-columns: minmax(0, 1fr); }

/* ---------- 流程 ---------- */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-900);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- 联系信息 ---------- */
.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid; place-items: center;
}
.contact-card__icon svg { width: 19px; height: 19px; }
.contact-card dt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 3px; font-weight: 600; }
.contact-card dd { margin: 0; font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.6; word-break: break-all; }

/* ---------- 页头 ---------- */
.pagehead {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: #fff;
  padding: 52px 0 48px;
  position: relative;
  overflow: hidden;
}
.pagehead::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
}
.pagehead__title { font-size: clamp(24px, 5vw, 38px); margin-bottom: 12px; position: relative; }
.pagehead__desc { font-size: clamp(14px, 2.4vw, 16.5px); color: rgba(255, 255, 255, .8); max-width: 680px; line-height: 1.8; position: relative; }
.crumb { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 12px; position: relative; }
.crumb a:hover { color: #fff; }

/* ---------- 合作方 ---------- */
.partner-group h3 {
  font-size: 15px;
  color: var(--blue-900);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.partner-group li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 7px 0;
  border-bottom: 1px dashed #eef2f6;
  line-height: 1.6;
}
.partner-group li:last-child { border-bottom: none; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  border-radius: var(--radius-lg);
  padding: 40px 26px;
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: clamp(20px, 4vw, 28px); margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .82); font-size: 15px; max-width: 560px; margin: 0 auto 24px; line-height: 1.8; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, .7);
  padding: 48px 0 26px;
  font-size: 14px;
}
.footer__grid { display: grid; gap: 32px; margin-bottom: 32px; }
.footer h4 { font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.footer a:hover { color: #fff; }
.footer__links li { padding: 5px 0; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: rgba(255, 255, 255, .45); }
.footer__brand p { font-size: 13.5px; line-height: 1.9; margin-top: 14px; max-width: 340px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
}
/* 备案号：按工信部要求需链接到 beian.miit.gov.cn */
.footer__icp {
  color: rgba(255, 255, 255, .5);
  transition: color .18s;
}
.footer__icp:hover {
  color: rgba(255, 255, 255, .9);
  text-decoration: underline;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  border: none;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s, background .2s;
  z-index: 90;
}
.to-top.is-show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue-600); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__bg { transform: none; }
}

/* ==========================================================================
   断点：≥600px 小屏手机横向 / 大屏手机
   ========================================================================== */
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { padding-top: 72px; padding-bottom: 64px; }
}

/* ==========================================================================
   断点：≤767px 手机竖屏 —— 首屏启用手机端专用大图
   ========================================================================== */
@media (max-width: 767px) {
  .hero--has-m .hero__bg--desktop { display: none; }
  .hero--has-m .hero__bg--mobile {
    display: block;
    background-position: center 32%;
  }
  /* 手机端大图多为竖构图，略微加高，避免主体被裁掉 */
  .hero--has-m { min-height: clamp(460px, 76vh, 640px); }
}

/* ==========================================================================
   断点：≥768px 平板
   ========================================================================== */
@media (min-width: 768px) {
  :root { --nav-h: 72px; }
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
  .wrap { padding: 0 32px; }
  .split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split--reverse .split__media { order: 2; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .steps--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand__name { font-size: 16px; }
  .hero__inner { padding-top: 90px; padding-bottom: 80px; }
  .pagehead { padding: 72px 0 64px; }
  .card { padding: 30px 26px; }
  .op__body { padding: 24px 24px 26px; }
  .cta { padding: 56px 48px; }
  .footer { padding: 60px 0 30px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .to-top { right: 24px; bottom: 24px; }
  .contact-card { padding: 24px; }
}

/* ==========================================================================
   断点：≤1023px 移动/平板
   iOS Safari 上 sticky + backdrop-filter 会让导航栏的合成层错位，
   这里改用不透明背景，去掉滤镜，保证层级稳定
   ========================================================================== */
@media (max-width: 1023px) {
  .nav {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ==========================================================================
   断点：≥1024px 桌面
   ========================================================================== */
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__drawer { display: none !important; }
  .nav__scrim { display: none !important; }
  .section { padding: 96px 0; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .split { gap: 56px; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 16.5px; }
  .news-item { padding: 26px 0; }
}

/* ==========================================================================
   断点：≥1280px 宽屏
   ========================================================================== */
@media (min-width: 1280px) {
  .wrap { padding: 0 40px; }
  .hero__inner { padding-top: 110px; padding-bottom: 96px; }
  .gallery { grid-template-columns: repeat(6, 1fr); }
}

/* ==========================================================================
   打印
   ========================================================================== */
@media print {
  .nav, .to-top, .lightbox, .footer, .hero__actions { display: none !important; }
  .hero { min-height: auto; color: #000; background: none; }
  .hero__scrim, .hero__bg { display: none; }
  body { font-size: 12pt; }
  .section { padding: 20px 0; page-break-inside: avoid; }
}
