/* 通达校友汇官网 · 静态样式
   纯 CSS，无框架依赖，利于首屏渲染与搜索引擎抓取 */

:root {
  --brand: #1a56db;
  --brand-dark: #1442ac;
  --brand-light: #eff5ff;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-sub: #5b6472;
  --text-mute: #8a93a0;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(26, 86, 219, 0.07);
  --max: 1180px;

  /* 字号只有 4 级：1=页面主标题 2=区块标题 3=正文/卡片标题 4=辅助说明
     卡片标题与正文同为 3 级，靠 font-weight 与颜色区分，不再靠字号 */
  --fs-1: 38px;
  --fs-2: 28px;
  --fs-3: 16px;
  --fs-4: 14px;
}

/* 手机端：4 级整体下调，层级关系不变 */
@media (max-width: 900px) {
  :root {
    --fs-1: 26px;
    --fs-2: 20px;
    --fs-3: 16px;
    --fs-4: 14px;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 说明：关键属性采用「静态值 + var()」双写，老内核（不支持 CSS 变量的 UC / 安卓 4.x）
   会取前一行的静态值，不至于整页掉色、掉背景 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  color: var(--text);
  background: #ffffff;
  background: var(--bg);
  line-height: 1.75;
  font-size: var(--fs-3);
  -webkit-font-smoothing: antialiased;
}

a { color: #1a56db; color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: #1442ac; color: var(--brand-dark); }
img { max-width: 100%; display: block; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: -webkit-sticky; /* iOS Safari 旧版需前缀 */
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); /* Safari / iOS 全系需前缀 */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e9ef;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-3); color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #3b82f6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-3); font-weight: 700; letter-spacing: -1px;
}
.logo-sub { font-size: var(--fs-4); color: var(--text-mute); font-weight: 400; margin-left: 2px; }

.menu { display: flex; gap: 30px; align-items: center; }
/* padding 撑到 ~36px，兼顾桌面点击与移动端手指 */
.menu a { color: #5b6472; color: var(--text-sub); font-size: var(--fs-3); padding: 10px 0; position: relative; }
.menu a:hover { color: var(--brand); }
.menu a.active { color: var(--brand); font-weight: 600; }
.menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 40px; height: 36px; cursor: pointer; color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #f2f7ff 0%, #ffffff 55%, #fffaf0 100%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: var(--fs-1); line-height: 1.3; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { margin-top: 18px; font-size: var(--fs-3); color: var(--text-sub); max-width: 30em; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.badges { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  font-size: var(--fs-4); color: var(--brand-dark); background: var(--brand-light);
  border: 1px solid #dbe7ff; padding: 5px 12px; border-radius: 999px;
}

.phone {
  /* width 用百分比 + max-width：极窄屏（折叠屏外屏 280px）不会撑破容器 */
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  background: #fff; border: 10px solid #1f2937; border-radius: 34px;
  box-shadow: 0 24px 60px rgba(20, 40, 90, .18); overflow: hidden;
}
.phone-bar { background: #1f2937; color: #fff; font-size: 12px; padding: 7px 14px; display: flex; justify-content: space-between; }
.phone-body { padding: 16px; background: var(--bg-soft); min-height: 380px; }
.p-card { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.p-card.t { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-sub); }
.p-ttl { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.p-meta { font-size: 12px; color: var(--text-mute); }
.p-ev { height: 74px; border-radius: 8px; background: linear-gradient(120deg, #dbe7ff, #eef4ff); display: flex; align-items: flex-end; padding: 8px; font-size: 12px; color: var(--brand-dark); font-weight: 600; }
.p-row { display: flex; gap: 8px; }
.p-row .p-card { flex: 1; text-align: center; font-size: 12px; color: var(--text-sub); margin-bottom: 0; }
.p-row .p-card b { display: block; font-size: 17px; color: var(--brand); }

/* ---------- 通用区块 ---------- */
section { padding: 68px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2 { font-size: var(--fs-2); font-weight: 800; letter-spacing: -.3px; }
.sec-head p { margin-top: 12px; color: var(--text-sub); font-size: var(--fs-3); }
.eyebrow { display: inline-block; font-size: var(--fs-4); color: var(--brand); background: var(--brand-light); border: 1px solid #dbe7ff; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }

/* 卡片网格 */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdefc; }
.card h3 { font-size: var(--fs-3); margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--text-sub); font-size: var(--fs-3); }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.card ul { margin-top: 12px; padding-left: 18px; color: var(--text-sub); font-size: var(--fs-4); }
.card ul li { margin-bottom: 5px; }

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats div b { display: block; font-size: var(--fs-1); color: var(--brand); font-weight: 800; line-height: 1.2; }
.stats div span { font-size: var(--fs-4); color: var(--text-sub); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; font-size: var(--fs-3); font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: #c7d9fb; }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand-dark); }

/* 列表式功能行 */
.feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature {
  display: flex; gap: 18px; padding: 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.feature .num {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: var(--fs-3);
}
.feature h3 { font-size: var(--fs-3); margin-bottom: 6px; }
.feature p { color: var(--text-sub); font-size: var(--fs-4); }

/* 流程步骤 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px 20px;
}
.step::before {
  content: ""; position: absolute; top: 26px; right: -16px; width: 16px; height: 1px;
  background: var(--line); z-index: 1;
}
.step:last-child::before { display: none; }
.step .n {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand);
  color: #fff; font-size: var(--fs-4); font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: var(--fs-3); margin-bottom: 8px; font-weight: 700; }
.step p { font-size: var(--fs-4); color: var(--text-sub); }
.step .who { margin-top: 10px; font-size: var(--fs-4); color: var(--text-mute); }

/* ===== 流程图 A：交错时间轴 ===== */
.tflow { position: relative; max-width: 1000px; margin: 0 auto; padding: 6px 0 4px; }
.tflow::before {
  content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, #c7d9fb 0%, #dbe7ff 45%, #e6e9ef 100%);
}
.tf-item { position: relative; width: 50%; padding: 0 36px 24px 0; text-align: right; }
.tf-item:nth-child(even) { margin-left: 50%; padding: 0 0 24px 36px; text-align: left; }
.tf-dot {
  position: absolute; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); color: var(--brand);
  font-size: var(--fs-4); font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px rgba(26, 86, 219, .08);
}
.tf-item:nth-child(odd) .tf-dot { right: -18px; }
.tf-item:nth-child(even) .tf-dot { left: -18px; }
.tf-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfdefc; }
.tf-phase {
  display: inline-block; font-size: var(--fs-4); color: var(--brand); background: var(--brand-light);
  border: 1px solid #dbe7ff; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.tf-card h4 { font-size: var(--fs-3); font-weight: 700; margin-bottom: 6px; }
.tf-card p { font-size: var(--fs-4); color: var(--text-sub); }
.tf-tags { list-style: none; padding: 0; margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tf-tags li {
  font-size: var(--fs-4); color: var(--text-mute); background: var(--bg-soft);
  border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px;
}

/* ===== 流程图 B：一次报名，三处复用 ===== */
.flowmap {
  display: grid; grid-template-columns: 1fr 52px 1.3fr 52px 1fr;
  align-items: center; gap: 0; max-width: 1060px; margin: 0 auto;
}
.fm-node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow);
}
.fm-node.src { border-color: #c7d9fb; background: linear-gradient(160deg, #f4f8ff, #ffffff); }
.fm-node.out { border-color: #cfe9d8; background: linear-gradient(160deg, #f3fbf6, #ffffff); }
.fm-k { font-size: var(--fs-3); font-weight: 700; margin-bottom: 8px; }
.fm-node p { font-size: var(--fs-4); color: var(--text-sub); }
.fm-branches { display: grid; gap: 12px; }
.fm-br {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1px solid #dbe7ff; border-radius: 10px;
  background: linear-gradient(100deg, #f6f9ff 0%, #ffffff 70%);
}
.fm-br .no {
  flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-light);
  color: var(--brand); font-size: var(--fs-4); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.fm-br b { font-size: var(--fs-3); }
.fm-br span { font-size: var(--fs-4); color: var(--text-sub); margin-left: auto; text-align: right; }
.fm-arrow { display: flex; align-items: center; justify-content: center; height: 100%; }
.fm-arrow svg { width: 52px; height: 24px; stroke: #9fb6e8; fill: none; stroke-width: 2; }
.fm-arrow .mob { display: none; }

@media (max-width: 900px) {
  .tflow::before { left: 17px; }
  .tf-item, .tf-item:nth-child(even), .tf-item:nth-child(odd) {
    width: 100%; margin-left: 0; padding: 0 0 22px 50px; text-align: left;
  }
  .tf-item:nth-child(odd) .tf-dot, .tf-item:nth-child(even) .tf-dot { left: 0; right: auto; }
  .flowmap { grid-template-columns: 1fr; gap: 0; }
  .fm-arrow { height: 40px; }
  .fm-arrow .pc { display: none; }
  .fm-arrow .mob { display: block; margin: 0 auto; transform: rotate(90deg); }
  .fm-node, .fm-br { margin: 0; }
  .fm-br span { text-align: left; }
}
@media (max-width: 640px) {
  .fm-br { flex-wrap: wrap; }
  .fm-br span { margin-left: 0; width: 100%; }
}

/* 痛点 → 做法 两栏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.panel.problem { background: #fffaf3; border-color: #f6e6c9; }
.panel h3 { font-size: var(--fs-3); margin-bottom: 14px; font-weight: 700; }
.panel.problem h3 { color: #8a5a12; }
.panel ul { list-style: none; padding: 0; }
.panel li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: var(--fs-4); color: var(--text-sub); }
.panel li::before {
  content: ""; position: absolute; left: 6px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.panel.problem li::before { background: #d99a2b; }

/* 系统界面截图 */
.shot {
  margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  font-size: var(--fs-4); color: var(--text-mute); padding: 11px 16px;
  border-top: 1px solid var(--line); background: var(--bg-soft);
}
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.shot-grid .shot { margin: 0; }

@media (max-width: 900px) {
  .shot-grid { grid-template-columns: 1fr; }
  .shot img { border-radius: 0; }
}

/* 关键点清单 */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-3); }
.checklist li:last-child { border-bottom: none; }
.checklist .k { flex: none; width: 5.5em; color: var(--brand); font-weight: 600; }

/* 突出模块（住宿/交通/座位） */
.spot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.spot-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.spot-card h3 { font-size: var(--fs-3); margin-bottom: 10px; font-weight: 700; }
.spot-card .sub { font-size: var(--fs-4); color: var(--text-mute); margin-bottom: 16px; }
.spot-card ol { padding-left: 20px; color: var(--text-sub); font-size: var(--fs-4); }
.spot-card ol li { margin-bottom: 7px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .split, .spot { grid-template-columns: 1fr; }
}

/* 面包屑 */
.crumb { font-size: var(--fs-4); color: var(--text-mute); padding: 18px 0 0; }
.crumb a { color: var(--text-mute); }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 6px; }
.page-head { background: linear-gradient(160deg, #f2f7ff, #ffffff); border-bottom: 1px solid var(--line); padding: 30px 0 46px; }
.page-head h1 { font-size: var(--fs-1); font-weight: 800; margin-top: 10px; }
.page-head p { color: var(--text-sub); margin-top: 10px; max-width: 42em; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-3); min-width: 520px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; width: 180px; color: var(--text); }
tr:last-child td, tr:last-child th { border-bottom: none; }

/* 联系我们 */
.contact-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.contact-item .k { font-size: var(--fs-4); color: var(--text-mute); }
.contact-item .v { font-size: var(--fs-3); font-weight: 700; color: var(--brand); margin-top: 8px; word-break: break-all; }
.contact-item .n { font-size: var(--fs-4); color: var(--text-sub); margin-top: 6px; }

.note { background: #fffdf5; border: 1px solid #f3e3bd; border-radius: var(--radius); padding: 18px 22px; font-size: var(--fs-4); color: #7a5c1e; }
.note b { color: #6b4d12; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--brand), #2563eb 70%, #3b82f6); color: #fff; text-align: center; padding: 62px 24px; }
.cta h2 { font-size: var(--fs-2); font-weight: 800; }
.cta p { margin: 12px 0 26px; opacity: .92; }
.cta .btn-primary { background: #fff; color: var(--brand); }
.cta .btn-primary:hover { background: #f1f5ff; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { background: #101827; color: #c3cad6; padding: 48px 0 28px; font-size: var(--fs-4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: var(--fs-3); margin-bottom: 14px; font-weight: 600; }
/* inline-block + padding：页脚电话/邮箱/链接的点击区从 ~20px 提到 ~32px */
.site-footer a { color: #c3cad6; display: inline-block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #1f2a3c; margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #8b95a5; font-size: var(--fs-4);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: var(--fs-2); }
  .g4, .stats { grid-template-columns: repeat(2, 1fr); }
  .g3, .feature-row, .contact-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 52px 0; }
  .sec-head h2 { font-size: var(--fs-2); }
}
@media (max-width: 640px) {
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .menu a.active::after { display: none; }
  .nav-toggle { display: block; }
  .g2, .g4, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .phone { width: 100%; max-width: 260px; }

  /* 表格不再横向滚动：每行改为一张小卡片，手机上不用左右拖 */
  .table-wrap { overflow: visible; border: none; background: transparent; }
  table { min-width: 0; display: block; }
  table tr {
    display: block; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; margin-bottom: 10px; padding: 12px 14px;
  }
  table th {
    display: block; width: auto; background: transparent; padding: 0 0 2px;
    border-bottom: none; font-size: var(--fs-4); color: var(--text-mute); font-weight: 600;
  }
  table td { display: block; padding: 0; border-bottom: none; font-size: var(--fs-3); }

  /* 页脚与面包屑链接加大点击区域，手机上更好点 */
  .site-footer li { padding: 4px 0; }
  .site-footer li a { display: inline-block; padding: 6px 0; }
  .crumb { padding-top: 14px; }
  .crumb a { display: inline-block; padding: 6px 0; }
}

/* iPhone 刘海屏 / 圆角屏安全区：左右内容不被裁切 */
@supports (padding: env(safe-area-inset-left)) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}
/* iOS 11.0–11.2 只认 constant()（该版本不支持 max()），单独兜底 */
@supports (padding: constant(safe-area-inset-left)) {
  .wrap {
    padding-left: calc(24px + constant(safe-area-inset-left));
    padding-right: calc(24px + constant(safe-area-inset-right));
  }
}

/* ---------- 触屏点击区：正文内联链接补到 ≥24px（WCAG 2.5.8） ----------
   padding 3px 后约 25-27px，仍小于行高 28px，不会撑开段落行距 */
@media (max-width: 900px) {
  p > a, li > a, td > a { display: inline-block; padding: 3px 0; }
  .crumb a { display: inline-block; padding: 6px 0; }
  /* 电话 / 邮箱链接（表格、联系卡片内的也要够大好点） */
  a[href^="tel:"], a[href^="mailto:"] { display: inline-block; padding: 4px 0; }
}

/* ---------- 老内核兜底：不支持 flex gap 的浏览器（Chrome <84 / iOS Safari <14.1 / 旧 X5） ----------
   仅对 flex 容器生效，grid 容器不加 margin（否则间距会叠加） */
@supports not (gap: 1px) {
  .logo > * + * { margin-left: 10px; }
  .menu > * + * { margin-left: 30px; }
  .hero-actions > * { margin: 0 14px 10px 0; }
  .badges > * { margin: 0 10px 8px 0; }
  .tf-tags > * { margin: 0 6px 6px 0; }
  .p-row > * + * { margin-left: 8px; }
  .checklist li > * + * { margin-left: 12px; }
  .footer-bottom > * { margin: 0 14px 8px 0; }
}
@media (max-width: 640px) {
  @supports not (gap: 1px) {
    .menu > * + * { margin-left: 0; } /* 竖排菜单不需要横向间距 */
  }
}

/* ---------- 无障碍：尊重系统「减少动态效果」设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==================================================================
   手机端版式重构
   背景：原站是 PC 骨架的响应式收缩，手机上表现为「页面极长（产品页 16.9 屏）
   + 满屏白卡片 + 字号层级 17 级」，观感凌乱。这里做三件事：
   P0 版式收敛：节奏统一、卡片降噪（去掉碎片化的白方块）
   P1 可用性：长区块折叠 + 底部常驻操作条
   P2 首屏减负：手机上不再展示手机模型（用户自己就在手机上看）
   ================================================================== */

/* 折叠区块：HTML 不加任何标记时全部展开；只有 JS 在手机端加上 .collapsed 才收起。
   JS 失效 = 全部展开，优雅降级；内容始终在 DOM 中，不影响搜索引擎抓取。 */
.mobile-cta { display: none; }

@media (max-width: 900px) {
  /* ---- P0 节奏统一：区块间距只留一档，卡片间距只留一档 ---- */
  .wrap { padding: 0 18px; }
  section { padding: 48px 0; }
  .grid, .feature-row, .contact-box, .split, .spot, .shot-grid, .steps, .footer-grid { gap: 16px; }
  .sec-head { margin-bottom: 28px; }
  .cta { padding: 48px 20px; }

  /* ---- P0 卡片降噪：不再是一堆带边框的白方块，改为左侧引导线的连续内容流 ---- */
  .card, .feature, .panel, .spot-card, .step, .tf-card, .fm-node {
    border: 1px solid #eef1f6;
    border-left: 3px solid var(--brand);
    border-radius: 8px;
    padding: 16px 16px 16px 14px;
    box-shadow: none;
  }
  .card:hover, .tf-card:hover { transform: none; box-shadow: none; border-color: #eef1f6; border-left-color: var(--brand); }
  .panel.problem { border-left-color: #d99a2b; background: #fffaf3; }
  .fm-node.out { border-left-color: #639922; }
  .fm-node { box-shadow: none; }
  .card .ico { width: 36px; height: 36px; margin-bottom: 10px; }
  .card .ico svg { width: 20px; height: 20px; }
  .feature { align-items: flex-start; }
  .feature .num { width: 32px; height: 32px; }

  /* ---- P2 首屏减负：手机模型在手机上隐藏，首屏只剩一句价值主张 + 两个按钮 ---- */
  .hero .phone { display: none; }
  .hero { padding: 40px 0 36px; }
  .hero-actions { margin-top: 22px; }
  .badges { margin-top: 18px; }

  /* ---- P1 长区块折叠：标题常驻可点，长内容收起，一屏能看到本页全部章节 ---- */
  .foldable { padding: 0; border-bottom: 1px solid var(--line); }
  .foldable:last-of-type { border-bottom: none; }
  .foldable > .wrap { padding-top: 0; padding-bottom: 0; }
  .foldable .sec-head {
    text-align: left; max-width: none; margin: 0; cursor: pointer;
    position: relative; padding: 14px 38px 14px 0;
  }
  .foldable .sec-head .eyebrow { margin-bottom: 4px; }
  .foldable .sec-head h2 { font-size: var(--fs-2); font-weight: 700; line-height: 1.35; }
  .foldable .sec-head p { margin-top: 4px; font-size: var(--fs-4); }
  .foldable .sec-head::after {
    content: "+"; position: absolute; right: 0; top: 50%; margin-top: -13px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--brand-light); color: var(--brand);
    font-size: 18px; font-weight: 400; line-height: 24px; text-align: center;
  }
  /* 收起状态：隐藏区块正文，只留标题行 */
  .foldable.collapsed .sec-head p { display: none; }
  .foldable.collapsed > .wrap > *:not(.sec-head) { display: none; }
  /* 展开状态 */
  .foldable:not(.collapsed) { padding: 20px 0 26px; }
  .foldable:not(.collapsed) .sec-head h2 { color: var(--brand); }
  .foldable:not(.collapsed) .sec-head::after { content: "\2212"; }
  /* 展开的内容与上文之间留出间距 */
  .foldable:not(.collapsed) .sec-head { margin-bottom: 18px; }

  /* ---- P1 底部常驻操作条：任何滚动位置都能联系 ---- */
  body { padding-bottom: 60px; }
  .mobile-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    padding: 8px 12px;
  }
  .mobile-cta a {
    flex: 1; text-align: center; padding: 11px 0; border-radius: 8px;
    font-size: var(--fs-3); font-weight: 600;
  }
  .mobile-cta .mc-primary { background: var(--brand); color: #fff; }
  .mobile-cta .mc-ghost { background: var(--brand-light); color: var(--brand-dark); border: 1px solid #c7d9fb; }
}

/* iPhone 底部横条（Home Indicator）不遮挡操作条 */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 900px) {
    .mobile-cta { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  }
}
