/* ============================================================
   哈特赛福 HeartSafe · 企业官网纯静态样式表
   设计风格：医疗科技 · 亮色 · 简洁大气
   品牌色：
     哈特蓝 Brand Blue  #004680 (PANTONE 2154C) — 主品牌 / Logo / 主按钮 / Tab激活
     文本蓝 Text Blue    #1A65A6 — 标题 / 正文强调
     急救橙 SOS Orange   #FF5722 → #FF6B35 — SOS / 紧急呼叫 / 预警
   技术：纯 CSS，零外部依赖（无 Google Fonts / 无 CDN 图标），
         全站不依赖 JS 即可正常使用（移动端菜单与轮播均为 CSS 实现），
         便于 ICP 备案与国内静态托管。
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 品牌色 */
  --brand: #004680;          /* 哈特蓝 主品牌色 */
  --brand-600: #003a6e;      /* 深一档 hover */
  --brand-700: #002c54;
  --brand-50: #eef4fb;       /* 极浅蓝底 */
  --brand-100: #d9e6f5;      /* 浅蓝底 */

  --text-blue: #1A65A6;      /* 文本蓝 标题/强调 */
  --text-blue-700: #144e80;

  --sos: #FF5722;            /* 急救橙 主 */
  --sos-2: #FF6B35;          /* 急救橙 渐变尾 */
  --sos-50: #fff1ec;         /* 极浅橙底 */

  /* 中性文字（为保证正文可读性，正文采用深石板色，属文本蓝同族深色） */
  --ink: #23323f;            /* 正文 */
  --ink-soft: #51606f;       /* 次要文字 */
  --line: #e3e9f0;           /* 分割线 */
  --bg: #ffffff;
  --bg-soft: #f4f8fc;        /* 浅灰蓝背景 */
  --bg-deep: #06223d;        /* 深蓝页脚 */

  /* 圆角 / 阴影 */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0, 45, 90, .06);
  --shadow: 0 10px 30px rgba(0, 45, 90, .10);
  --shadow-lg: 0 20px 50px rgba(0, 45, 90, .16);

  --maxw: 1180px;
  --nav-h: 68px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
          "Noto Sans SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text-blue); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--text-blue); line-height: 1.3; margin: 0 0 .5em; font-weight: 800; letter-spacing: .2px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.brandbg { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff; }
.section.brandbg h2 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--sos); text-transform: uppercase; margin-bottom: 10px;
}
.eyebrow.blue { color: var(--brand); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); }
.btn-sos { background: linear-gradient(135deg, var(--sos), var(--sos-2)); color: #fff; box-shadow: 0 8px 22px rgba(255,87,34,.30); }
.btn-sos:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,87,34,.40); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand-100); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand); }
.btn-ghost.light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost.light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ==================== 导航 ==================== */
.navbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.brand .brand-name { font-weight: 800; color: var(--brand); font-size: 18px; letter-spacing: .3px; }
.brand .brand-name small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: 1px; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > li > a {
  display: block; padding: 10px 16px; border-radius: 999px; color: var(--ink);
  font-weight: 600; font-size: 15px; transition: .18s;
}
.nav-menu > li > a:hover { background: var(--brand-50); color: var(--brand); }
.nav-menu > li > a.active { background: var(--brand); color: #fff; }
.nav-cta { margin-left: 8px; }

/* 移动端菜单：纯 CSS checkbox 实现，无需 JS */
#nav-toggle { display: none; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--brand); position: relative; transition: .2s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .nav-burger { display: flex; }
  .nav-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-menu > li > a { border-radius: var(--r-sm); }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
  #nav-toggle:checked ~ .nav-menu { display: flex; }
  #nav-toggle:checked ~ .nav-burger span { background: transparent; }
  #nav-toggle:checked ~ .nav-burger span::before { top: 0; transform: rotate(45deg); }
  #nav-toggle:checked ~ .nav-burger span::after { top: 0; transform: rotate(-45deg); }
}

/* ==================== 首页 Hero + 纯CSS轮播 ==================== */
.hero { position: relative; background: linear-gradient(135deg, #003a6e 0%, #004680 55%, #0057a0 100%); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.10) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 85%, rgba(255,255,255,.06) 0 2px, transparent 3px);
  background-size: 180px 180px, 220px 220px, 160px 160px; opacity: .7;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 70px 0 78px; }
.hero-copy h1 { color: #fff; font-size: 42px; line-height: 1.18; margin-bottom: 18px; }
.hero-copy .lead { font-size: 18px; color: rgba(255,255,255,.88); margin-bottom: 26px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-tags span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 轮播：radio 控制，纯 CSS */
.carousel { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); /*width: 100%;margin: 0;*/}
.carousel-input { position: absolute; opacity: 0; pointer-events: none; }
.carousel-track { display: flex; width: 300%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.slide { width: 33.3333%; flex: 0 0 33.3333%; }
.slide img { width: 100%; /*height: 320px; object-fit: cover;*/}
.carousel-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.carousel-dots label { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s; }
.carousel-dots label:hover { background: #fff; }
#c1:checked ~ .carousel-track { transform: translateX(0); }
#c2:checked ~ .carousel-track { transform: translateX(-33.3333%); }
#c3:checked ~ .carousel-track { transform: translateX(-66.6666%); }
#c1:checked ~ .carousel-dots label[for="c1"],
#c2:checked ~ .carousel-dots label[for="c2"],
#c3:checked ~ .carousel-dots label[for="c3"] { background: #fff; width: 26px; border-radius: 6px; }

/* ==================== 数据条 ==================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1; }
.stat .num em { font-style: normal; color: var(--sos); }
.stat .label { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }

/* ==================== 卡片网格 ==================== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px; box-shadow: var(--shadow-sm); transition: .22s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 16px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* 强调卡（橙色） */
.card.accent .ic { background: var(--sos-50); color: var(--sos); }
.card.accent { border-color: #ffe0d4; }

/* ==================== 特性列表 ==================== */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .tick { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.feature .tick svg { width: 16px; height: 16px; }
.feature h4 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ==================== 分屏布局 ==================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .media { order: 2; }
.media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--brand-50); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ==================== 时间线 ==================== */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--brand-100); }
.tl-item { position: relative; padding: 0 0 30px 46px; }
.tl-item::before { content: ""; position: absolute; left: 6px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--brand-100); }
.tl-date { display: inline-block; font-size: 13px; font-weight: 700; color: var(--sos); margin-bottom: 4px; }
.tl-item h4 { margin: 0 0 4px; font-size: 17px; }
.tl-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ==================== 政策清单 ==================== */
.policy-list { display: grid; gap: 12px; }
.policy { display: flex; gap: 14px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px; }
.policy .date { flex: 0 0 92px; font-weight: 800; color: var(--brand); font-size: 14px; }
.policy .doc { color: var(--ink); font-size: 15px; }
.policy .doc small { color: var(--ink-soft); }

/* ==================== 项目介绍：二级锚点导航 ==================== */
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; -ms-overflow-style: none; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-soft); white-space: nowrap; border: 1px solid transparent; }
.subnav a:hover { background: var(--brand-50); color: var(--brand); }
.subnav a.active { background: var(--brand); color: #fff; }

.anchor { scroll-margin-top: calc(var(--nav-h) + 64px); padding-top: 56px; }
.anchor:first-of-type { padding-top: 40px; }
.anchor h2 { display: flex; align-items: center; gap: 12px; }
.anchor h2 .idx { flex: 0 0 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* 五体系架构图容器 */
.ecosystem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.eco-item { background: linear-gradient(160deg, #fff, var(--brand-50)); border: 1px solid var(--brand-100); border-radius: var(--r); padding: 22px; }
.eco-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.eco-item .ic svg { width: 22px; height: 22px; }
.eco-item h4 { margin: 0 0 6px; font-size: 16px; color: var(--brand); }
.eco-item p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.eco-center { grid-column: 1 / -1; background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; border-radius: var(--r); padding: 22px 26px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.eco-center .ic { background: rgba(255,255,255,.16); }
.eco-center h4 { color: #fff; margin: 0 0 2px; }
.eco-center p { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }

/* 合作流程步骤 */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 12px; text-align: center; }
.step::before { counter-increment: step; content: counter(step); display: block; width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 800; line-height: 30px; }
.step h4 { font-size: 14px; margin: 0 0 4px; color: var(--brand); }
.step p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

/* 模式对比 */
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode-card { border-radius: var(--r); padding: 26px; border: 1px solid var(--line); }
.mode-card.free { background: linear-gradient(160deg, #fff, var(--brand-50)); border-color: var(--brand-100); }
.mode-card.paid { background: linear-gradient(160deg, #fff, var(--sos-50)); border-color: #ffd9cc; }
.mode-card .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.mode-card.free .tag { background: var(--brand); color: #fff; }
.mode-card.paid .tag { background: var(--sos); color: #fff; }
.mode-card h3 { margin: 0 0 6px; font-size: 19px; }
.mode-card p { color: var(--ink-soft); margin: 0; }

/* ==================== 联系我们 ==================== */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.info-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.info-card .ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 13px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.info-card .ic svg { width: 24px; height: 24px; }
.info-card h4 { margin: 2px 0 4px; font-size: 16px; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.info-card a { color: var(--brand); font-weight: 600; }
.qr-box { background: linear-gradient(160deg, #fff, var(--brand-50)); border: 1px solid var(--brand-100); border-radius: var(--r-lg); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.qr-box img { width: 200px; height: 200px; margin: 0 auto 14px; border-radius: 12px; background: #fff; padding: 8px; }
.qr-box h4 { margin: 0 0 4px; color: var(--brand); }
.qr-box p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ==================== 页脚 ==================== */
.footer { background: var(--bg-deep); color: #cdd9e6; }
.footer a { color: #cdd9e6; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 40px; }
.footer .brand-name { color: #fff; font-size: 18px; font-weight: 800; }
.footer .f-about { color: #9fb2c6; font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer h5 { color: #fff; font-size: 15px; margin: 0 0 14px; font-weight: 700; }
.footer ul li { margin-bottom: 9px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; font-size: 13px; color: #8ea3b8; }
.footer-bottom .links a { margin-right: 18px; }
.footer-bottom .beian { color: #8ea3b8; }
.footer-bottom .beian:hover { color: #fff; }

/* ==================== 图片占位提示（交付后替换为真实图） ==================== */
.img-ph { position: relative; background: repeating-linear-gradient(45deg, var(--brand-50), var(--brand-50) 14px, #e4eef9 14px, #e4eef9 28px); display: flex; align-items: center; justify-content: center; color: var(--brand); font-weight: 700; text-align: center; min-height: 200px; border-radius: var(--r); }
.img-ph span { background: rgba(255,255,255,.85); padding: 10px 16px; border-radius: 999px; font-size: 13px; border: 1px dashed var(--brand-100); }

/* ==================== 响应式 ==================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 56px 0 60px; }
  .hero-copy h1 { font-size: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .media { order: 0; }
  .ecosystem { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .mode { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .hero-copy h1 { font-size: 28px; }
  .grid-2, .grid-3, .grid-4, .ecosystem { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .slide img { height: 240px; }
  .section-head { margin-bottom: 32px; }
}
