/* =========================================================================
   智为康乐 ZhiWellCare — 官网设计系统（静态多页）
   主色：蓝青渐变 #1548C0 · 简约科技医疗风 · 圆角 · 适老化
   ========================================================================= */

/* ---------- 变量 ---------- */
:root {
  /* 色彩（与品牌 logo 一致：深蓝 → 青绿渐变 #0436A7 → #0DD5C1） */
  --c-primary: #0436a7;
  --c-primary-2: #0dd5c1;      /* 青绿 / 梯度端 */
  --c-primary-dark: #032a86;
  --c-primary-soft: #e6edfd;   /* 浅蓝 */
  --c-primary-tint: #f3f7fe;
  --c-ink: #1a2233;            /* 主文字 */
  --c-ink-2: #55637b;          /* 次文字 */
  --c-ink-3: #8593a8;          /* 辅助 */
  --c-line: #e4eaf2;
  --c-line-2: #d5dee9;
  --c-bg: #ffffff;
  --c-bg-2: #f6f9fd;
  --c-bg-3: #eef4fb;
  --c-accent: #2aab6b;         /* 成功 */
  --c-warn-bg: #fdf6ec;
  --c-warn-line: #f1dcb8;
  --c-warn-ink: #8a5a12;
  --c-danger: #cc3340;

  /* 渐变（与 logo 一致，青色主导约 80%：深蓝仅作左上点缀 → 青绿大面积） */
  --grad-brand: linear-gradient(135deg, #0436a7 0%, #0d74c4 28%, #0fb0ce 60%, #0dd5c1 100%);
  --grad-brand-soft: linear-gradient(135deg, #0d74c4 0%, #0db4cc 52%, #0dd5c1 100%);
  --grad-hero: linear-gradient(150deg, #0436a7 0%, #0d74c4 34%, #10b3cd 66%, #0dd5c1 100%);

  /* 圆角 / 阴影 */
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;
  --shadow-sm: 0 2px 10px rgba(4, 54, 167, 0.06);
  --shadow: 0 14px 40px rgba(4, 54, 167, 0.10);
  --shadow-lift: 0 24px 60px rgba(3, 42, 134, 0.16);

  /* 排版 */
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
          "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-base: 16.5px;        /* 适老：基线略大 */
  --lh: 1.7;

  /* 布局 */
  --container: 1200px;
  --gap: 28px;
  --nav-h: 74px;
}

/* ---------- 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: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
body { overflow-wrap: break-word; }
/* 允许网格/弹性子项收缩，避免移动端出现横向溢出（auto 最小尺寸） */
.grid > *, .grid--2 > *, .grid--3 > *, .grid--4 > *,
.hero__inner > *, .contact-grid > *, .footer-main > *, .form-grid > *,
.qr-grid > *, .dl-list > *, .steps > * { min-width: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; font-weight: 700; color: var(--c-ink); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
table { border-collapse: collapse; width: 100%; }

::selection { background: rgba(31, 133, 208, .18); }
:focus-visible { outline: 3px solid rgba(31, 169, 200, .55); outline-offset: 2px; border-radius: 4px; }

/* ---------- 容器 / 布局工具 ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tint { background: var(--c-bg-2); }
.section--soft { background: var(--c-primary-tint); }
.section--tight { padding-block: clamp(32px, 5vw, 48px); }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- 版式 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary);
  padding: 6px 14px; border-radius: 999px; background: var(--c-primary-soft);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); }
.h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: .01em; }
.h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: .005em; }
.h3 { font-size: clamp(1.18rem, 1.9vw, 1.42rem); }
.lead { font-size: clamp(1.03rem, 1.4vw, 1.2rem); color: var(--c-ink-2); }
.muted { color: var(--c-ink-2); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border-radius: var(--radius-s);
  font-size: 1.02rem; font-weight: 600; line-height: 1.1; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad-brand-soft); color: #fff; box-shadow: 0 10px 24px rgba(13, 180, 204, .30); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: #fff; color: var(--c-primary); border-color: #c9dcf6; }
.btn--ghost:hover { border-color: var(--c-primary); background: var(--c-primary-tint); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--light:hover { background: rgba(255,255,255,.24); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .94rem; }
.btn .ic { width: 20px; height: 20px; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--grad-brand); box-shadow: 0 6px 16px rgba(4,54,167,.28);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.14; }
.brand__en, .brand__cn { background: var(--grad-brand-soft); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--c-primary); }
.brand__en { font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.brand__cn { font-size: 1.3rem; font-weight: 800; letter-spacing: .12em; }
.nav__menu { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--c-ink-2);
  transition: color .15s, background .15s; font-size: 1rem;
}
.nav__link:hover { color: var(--c-primary); background: var(--c-primary-tint); }
.nav__link.is-active { color: var(--c-primary); background: var(--c-primary-soft); }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--c-line-2);
  background: #fff; place-items: center; margin-left: auto;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--c-ink-2); border-radius: 2px; position: relative;
}
.nav__toggle span::before { position: absolute; top: -7px; left: 0; }
.nav__toggle span::after { position: absolute; top: 7px; left: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--grad-hero); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.28) 1px, transparent 1px); background-size: 22px 22px; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 5vw, 64px); padding-block: clamp(56px, 8vw, 104px); }
.hero__slogan { font-size: clamp(2.05rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.12; letter-spacing: .01em; }
.hero__slogan b { background: linear-gradient(90deg, #8fe0ff, #cdeaff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__desc { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.86); margin: 20px 0 30px; max-width: 560px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero__tag { font-size: .9rem; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { border-radius: var(--radius-l); box-shadow: var(--shadow-lift); overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); }
/* 主打产品轮播（hero 右侧） */
.hero-carousel { position: relative; border-radius: var(--radius-l); box-shadow: var(--shadow-lift); overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); }
.hero-carousel__viewport { overflow: hidden; }
.hero-carousel__track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.hero-slide { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 3; display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__label { position: absolute; top: 0; left: 0; right: 0; padding: 20px 20px 34px; color: #fff; font-weight: 700; font-size: 1.08rem; background: linear-gradient(180deg, rgba(3,42,134,.6) 0%, transparent 100%); }
.hero-slide__label small { display: block; font-weight: 500; font-size: .82rem; opacity: .8; margin-top: 2px; }
.hero-carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #0436a7; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s, transform .2s; }
.hero-carousel__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-carousel__nav svg { width: 22px; height: 22px; }
.hero-carousel__nav--prev { left: 12px; }
.hero-carousel__nav--next { right: 12px; }
.hero-carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.hero-carousel__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: all .2s; }
.hero-carousel__dot.is-active { background: #fff; width: 22px; border-radius: 6px; }
.hero__stat-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.hero__stat { padding: 20px 12px; text-align: center; background: rgba(4,54,167,.34); }
.hero__stat b { display: block; font-size: clamp(1.4rem,2.4vw,2rem); font-weight: 800; }
.hero__stat span { font-size: .86rem; color: rgba(255,255,255,.78); }

/* ---------- 卡片 ---------- */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--c-primary-tint), #eef4fb); display: grid; place-items: center; }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 24px 26px; }
.card__title { font-size: 1.18rem; margin-bottom: 8px; }
.card__text { color: var(--c-ink-2); font-size: .98rem; margin-bottom: 16px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary); }
.badge--cyan { background: #e4f6fb; color: #12809c; }
.badge--amber { background: var(--c-warn-bg); color: var(--c-warn-ink); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-primary); }
.link-more svg { width: 18px; height: 18px; transition: transform .18s; }
.link-more:hover svg { transform: translateX(3px); }

/* 产品卡片 */
.product-card { display: flex; flex-direction: column; }
.product-card .card__media { aspect-ratio: 16 / 10; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card__price-tag { font-size: .82rem; color: var(--c-ink-3); }

/* ---------- 图标条目 / 特性 ---------- */
.feature { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__ic { width: 54px; height: 54px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(13,180,204,.28); }
.feature__ic svg { width: 28px; height: 28px; }
.feature__title { font-size: 1.14rem; margin-bottom: 8px; }
.feature__text { color: var(--c-ink-2); font-size: .97rem; margin: 0; }

/* ---------- 统计 / 数字 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
.stat { text-align: center; padding: 28px 18px; }
.stat__num { font-size: clamp(2rem,4vw,3rem); font-weight: 800; background: var(--grad-brand-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__num small { font-size: .5em; }
.stat__label { color: var(--c-ink-2); margin-top: 6px; font-size: .95rem; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; max-width: 820px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--c-primary), var(--c-primary-2)); }
.timeline__item { position: relative; padding: 0 0 30px 22px; }
.timeline__item::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-tint); }
.timeline__year { font-weight: 800; font-size: 1.15rem; color: var(--c-primary); }
.timeline__title { font-weight: 700; margin: 2px 0 4px; }
.timeline__text { color: var(--c-ink-2); font-size: .96rem; margin: 0; }

/* ---------- 表：参数 ---------- */
.params-table { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.params-table th, .params-table td { padding: 14px 18px; text-align: left; font-size: .97rem; }
.params-table thead th { background: var(--grad-brand-soft); color: #fff; font-weight: 600; }
.params-table tbody tr:nth-child(odd) { background: var(--c-bg-2); }
.params-table tbody tr:nth-child(even) { background: #fff; }
.params-table td:first-child { font-weight: 600; color: var(--c-ink); width: 34%; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: clamp(24px,3.5vw,38px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-label { font-weight: 700; font-size: .95rem; }
.form-label .req { color: var(--c-danger); margin-left: 3px; }
.form-item { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--c-line-2); border-radius: 12px; background: #fff; color: var(--c-ink); transition: border .15s, box-shadow .15s; }
.form-item:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(21,72,192,.12); }
textarea.form-item { min-height: 120px; resize: vertical; }
.form-required-note { font-size: .86rem; color: var(--c-ink-3); }
.form-hint { font-size: .88rem; color: var(--c-ink-3); }
.form-tabs { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 26px; }
.form-tab { padding: 14px 12px; border-radius: 12px; border: 1.5px solid var(--c-line-2); background: #fff; text-align: center; font-weight: 600; color: var(--c-ink-2); transition: all .15s; }
.form-tab.is-active { border-color: var(--c-primary); background: var(--c-primary-tint); color: var(--c-primary); }

/* ---------- 报价 / 信息条 ---------- */
.panel { border-radius: var(--radius); padding: 30px; border: 1px solid var(--c-line); background: #fff; }
.panel--grad { background: var(--grad-brand); color: #fff; border: none; }
.panel--grad .muted { color: rgba(255,255,255,.85); }
.panel--grad h2, .panel--grad h3 { color: #fff; }
.info-list li { display: flex; gap: 12px; padding: 8px 0; color: var(--c-ink-2); }
.info-list li b { color: var(--c-ink); min-width: 76px; }
.info-list svg { width: 22px; height: 22px; color: var(--c-primary); flex: none; margin-top: 2px; }

/* ---------- 步骤流程 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
.step { position: relative; padding: 26px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); }
.step__no { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.step__title { font-weight: 700; margin-bottom: 6px; }
.step__text { color: var(--c-ink-2); font-size: .95rem; margin: 0; }

/* ---------- 资质 / 证书 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.cert { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert__media { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--c-line); display: grid; place-items: center; padding: 22px; }
.cert__media svg { width: 100%; height: 100%; }
/* 实拍证照：竖版，用 --photo 变体（占位 SVG 仍是 16/10 的横版框） */
.cert__media img { width: 100%; height: 100%; object-fit: contain; }
.cert__media--photo { aspect-ratio: 3 / 4; padding: 12px; }
.cert__media--photo a { display: block; width: 100%; height: 100%; }
.cert__media--photo img { cursor: zoom-in; }
.cert__body { padding: 16px 18px 20px; }
/* 证书类型独占一行（实用新型专利 / 发明专利…），避免与专利名称挤在一行时断在词中间 */
.cert__type { font-size: .78rem; line-height: 1.4; color: var(--c-ink-3); letter-spacing: .04em; margin-bottom: 4px; }
.cert__name { font-weight: 700; margin-bottom: 4px; }
.cert__no { font-size: .86rem; color: var(--c-ink-3); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

/* ---------- 证书放大查看（灯箱） ----------
   点缩略图在页面内看 300 DPI 高清图，不触发"下载 / 选择保存路径"。
   竖版证书按宽度铺满并纵向滚动（一屏放不下时滚动比缩放更易读），点图片在
   "适应宽度 / 原始像素"之间切换。 */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(6,16,36,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 20px 20px; }
.lightbox__close { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--c-ink-1); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__close:hover { background: #fff; transform: translateY(-1px); }
.lightbox__scroll { max-width: 100%; max-height: calc(100vh - 190px); overflow: auto; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lift, var(--shadow)); -webkit-overflow-scrolling: touch; }
/* 默认整张铺满可视区（先看全貌），点图片切到原始像素（2481px 宽，可滚动细看编号） */
.lightbox__img { display: block; width: auto; height: auto; max-width: 92vw; max-height: calc(100vh - 190px); object-fit: contain; cursor: zoom-in; }
.lightbox__img--actual { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.lightbox__bar { width: min(92vw, 1300px); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; }
.lightbox__meta b { display: block; font-size: 1rem; margin-bottom: 2px; }
.lightbox__meta span { font-size: .84rem; opacity: .82; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.lightbox__hint { display: block; margin-top: 6px; font-size: .78rem; opacity: .68; }
@media (max-width: 760px) {
  .lightbox { padding: 56px 12px 12px; }
  .lightbox__scroll { max-height: calc(100vh - 190px); }
  .lightbox__bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- 机构 logo 墙 ---------- */
/* 合作机构数量不固定（现在 2 家，以后可能增减）：auto-fit + 最大 320px + 居中，
   2 家时两格居中、5 家时自动排成两行，都不需要改 CSS。 */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; gap: 18px; }
/* 机构名称可能较长（如「长盛康复医疗技术（北京）有限公司」），用最小高度而非固定 3:1 比例，
   保证换行后不溢出。 */
.logo-cell { min-height: 96px; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; color: var(--c-ink-3); font-weight: 700; font-size: 1rem; line-height: 1.5; padding: 14px 16px; text-align: center; transition: all .2s; }
.logo-cell:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; overflow: hidden; margin-bottom: 14px; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 22px; font-size: 1.05rem; font-weight: 700; color: var(--c-ink); background: #fff; border: 0; text-align: left; }
.faq-q .faq-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; transition: transform .2s; }
.faq-q .faq-ic svg { width: 18px; height: 18px; }
.faq-item.is-open .faq-q .faq-ic { transform: rotate(45deg); background: var(--grad-brand-soft); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a__inner { padding: 0 22px 22px; color: var(--c-ink-2); font-size: .98rem; }

/* ---------- 公告 / 披露 ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--c-warn-line); background: var(--c-warn-bg); color: var(--warn-ink, var(--c-warn-ink));
}
.notice__ic { flex: none; width: 26px; height: 26px; color: var(--c-warn-ink); margin-top: 2px; }
.notice__title { font-weight: 700; color: var(--c-warn-ink); margin-bottom: 4px; }
.notice p { margin: 0; font-size: .96rem; line-height: 1.6; }
.notice p + p { margin-top: 8px; }

/* ---------- 下载区 ---------- */
.dl-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.dl-item { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; transition: all .2s; }
.dl-item:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.dl-item__ic { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--c-primary-tint); color: var(--c-primary); display: grid; place-items: center; }
.dl-item__ic svg { width: 26px; height: 26px; }
.dl-item__name { font-weight: 700; margin-bottom: 2px; }
.dl-item__meta { font-size: .86rem; color: var(--c-ink-3); }
.dl-item .btn { margin-left: auto; flex: none; }

/* ---------- 横幅 CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--grad-brand); color: #fff; padding: clamp(28px,4vw,52px); }
.cta::after { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(rgba(255,255,255,.3) 1px, transparent 1px); background-size: 20px 20px; }
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); margin: 8px 0 0; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { background: linear-gradient(180deg, #053d8f 0%, #04286e 58%, #03215c 100%); color: #c9d6ec; font-size: .94rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.6fr repeat(4,1fr); gap: 34px; padding-block: clamp(42px,6vw,64px); }
.footer-brand .brand__en, .footer-brand .brand__cn {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor; color: #fff;
}
.footer-brand p { color: #9fb3d3; font-size: .92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #9fb3d3; }
.footer-col a:hover { color: #fff; }
.footer-comply {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: center;
  font-size: .84rem; color: #9fb3d3;
}
.footer-comply a { color: #9fb3d3; }
.footer-comply a:hover { color: #fff; }
.icp-badge { display: inline-flex; align-items: center; gap: 6px; }
.icp-badge::before { content: ""; width: 16px; height: 16px; }

/* ---------- 新闻列表 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.news-card { display: flex; flex-direction: column; }
.news-card .card__media { aspect-ratio: 16 / 9; }
.news-tag { font-size: .78rem; font-weight: 600; color: var(--c-primary); background: var(--c-primary-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; display: inline-block; }
.news-date { color: var(--c-ink-3); font-size: .88rem; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--c-line-2); font-weight: 600; color: var(--c-ink-2); }
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .is-active { background: var(--grad-brand-soft); color: #fff; border-color: transparent; }

/* ---------- 文章详情 ---------- */
.article { max-width: 800px; margin-inline: auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--c-ink-3); font-size: .9rem; margin: 14px 0 26px; }
.article__body { font-size: 1.06rem; color: var(--c-ink-2); }
.article__body h3 { margin: 1.4em 0 .6em; color: var(--c-ink); }
.article__body p { margin-bottom: 1.1em; }
.article__body ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1.1em; }
.article__body figure { margin: 1.4em 0; }
.article__body figcaption { text-align: center; color: var(--c-ink-3); font-size: .86rem; margin-top: 8px; }

/* 面包屑 */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--c-ink-3); padding-block: 16px; }
.breadcrumb a { color: var(--c-ink-3); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: var(--c-ink); font-weight: 600; }
/* 内页顶部 banner（page-hero）内：面包屑改用白色以适配深色渐变背景 */
.page-hero .breadcrumb, .page-hero .breadcrumb a, .page-hero .breadcrumb .cur { color: rgba(255,255,255,.88); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .cur { font-weight: 600; }
.page-hero .breadcrumb .sep { opacity: .6; }

/* ---------- 页头（内页 banner） ---------- */
.page-hero { background: var(--grad-hero); color: #fff; padding-block: clamp(40px,6vw,68px); }
.page-hero .eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.page-hero .eyebrow::before { background: #8fe0ff; }
.page-hero p { color: rgba(255,255,255,.86); max-width: 680px; margin-top: 12px; }
.page-hero h1 { color: #fff; }

/* ---------- 联系信息卡 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); }
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.contact-info-card__ic { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--c-primary-tint); color: var(--c-primary); display: grid; place-items: center; }
.contact-info-card__ic svg { width: 24px; height: 24px; }
.contact-info-card b { display: block; margin-bottom: 3px; }
.contact-info-card span { color: var(--c-ink-2); }

/* 二维码 */
.qr-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.qr-cell { text-align: center; padding: 18px 12px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.qr-cell img, .qr-cell svg { width: 100%; aspect-ratio: 1; margin: 0 auto 10px; background: #fff; }
.qr-cell b { display: block; font-size: .95rem; }
.qr-cell span { color: var(--c-ink-3); font-size: .82rem; }

/* ---------- 视频占位 ---------- */
.video-shell { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; background: linear-gradient(160deg,#0436a7,#032a80); display: grid; place-items: center; }
.video-shell svg { width: 100%; height: 100%; }
/* 详情页顶部主图（实拍图）：铺满 16/9 容器，避免按原始尺寸溢出 */
.video-shell img { width: 100%; height: 100%; object-fit: cover; }
.video-shell .play { position: absolute; width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-lift); color: var(--c-primary); cursor: pointer; border: 0; }
.video-shell .play svg { width: 34px; height: 34px; }

/* ---------- 地图（占位） ---------- */
.map-shell { position: relative; height: 320px; border-radius: var(--radius-l); overflow: hidden; background: linear-gradient(150deg,#e7f2fb,#cfe7f5); border: 1px solid var(--c-line-2); }
.map-shell svg { width: 100%; height: 100%; }
.map-pin { position: absolute; left: 46%; top: 40%; transform: translate(-50%,-100%); animation: bounce 2s infinite; }

/* ---------- 工具类 ---------- */
.ta-c { text-align: center; }
.text-primary { color: var(--c-primary); }
.inline-list { display: inline-flex; flex-wrap: wrap; gap: 8px 18px; }
.dl-inline { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 22px; }
.divider { height: 1px; background: var(--c-line); border: 0; margin: clamp(24px,4vw,40px) 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  /* .logo-wall 交给 auto-fit 自适应，不再按断点写死列数 */
  .steps { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: repeat(2,1fr); }
}

/* 主导航含 8 项 + CTA，桌面横向空间不足 1240px 时收起为汉堡菜单，避免挤压溢出 */
@media (max-width: 1240px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); padding: 14px 20px 22px; gap: 6px;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { padding: 14px 16px; }
  .nav__cta { margin: 10px 0 0; }
  .nav__cta .btn { width: 100%; }
}

@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4, .stats-grid, .stat-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 0; }
  .hero .btn { width: 100%; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  /* .logo-wall 交给 auto-fit 自适应（窄屏会自动变成单列，长机构名不会被挤成多行） */
  .steps { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .dl-list { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .hero__stat-row { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .form-tabs { grid-template-columns: 1fr 1fr; }
  .qr-grid { grid-template-columns: repeat(2,1fr); }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  :root { --fs-base: 15.5px; }
  .form-tabs { grid-template-columns: 1fr; }
  .brand__en { display: none; }
  .hero__slogan { font-size: 1.9rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 表单消息 & 校验 ---------- */
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; line-height: 1.5; }
.form-msg.is-ok { background: #e8f6ef; color: #17734a; border: 1px solid #bfe5d2; }
.form-msg.is-error { background: #fdecee; color: #b02430; border: 1px solid #f2c4c9; }
.form-item.is-invalid { border-color: var(--c-danger); box-shadow: 0 0 0 4px rgba(204, 51, 64, .1); }

/* ---------- 分类筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--c-line-2); background: #fff; font-weight: 600; color: var(--c-ink-2); transition: all .15s; }
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.is-active { background: var(--grad-brand-soft); color: #fff; border-color: transparent; }
.filter-btn.is-active:hover { color: #fff; }

/* ---------- 演示视频播放态 ---------- */
.video-shell.is-playing .play { display: none; }
