/* AI4GAP 公众号 H5 · 共用样式 */
@import url("./assets/icon.css");

:root {
  --pri: #2358E7;
  --pri-deep: #1B3FA8;
  --pri-soft: rgba(35, 88, 231, 0.08);
  --acc: #0FB5A0;
  --acc-soft: rgba(15, 181, 160, 0.1);
  --warn: #E8890C;
  --warn-soft: rgba(232, 137, 12, 0.1);
  --dan: #E04B4B;
  --ink: #10172A;
  --ink2: #5A6478;
  --ink3: #9099AC;
  --line: #EBEEF5;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --radius: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── 布局 ─────────────────────────── */
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.sec { margin-top: 26px; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 30px 0 12px;
}
.sec-title { font-size: 17px; font-weight: 650; letter-spacing: 0.3px; }
.sec-sub { font-size: 12px; color: var(--ink3); }

.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-top { display: flex; align-items: flex-start; }
.gap-s { gap: 6px; }
.gap-m { gap: 10px; }
.gap-l { gap: 14px; }
.flex1 { flex: 1; min-width: 0; }

/* ── 卡片 ─────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card-flat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero {
  background: linear-gradient(140deg, #1B3FA8 0%, #2358E7 55%, #4C86FF 100%);
  border-radius: 18px;
  padding: 24px 20px;
  color: #fff;
  box-shadow: 0 10px 28px rgba(35, 88, 231, 0.2);
}
.hero-sm {
  background: linear-gradient(140deg, #1B3FA8 0%, #2358E7 55%, #4C86FF 100%);
  border-radius: var(--radius);
  padding: 18px 16px;
  color: #fff;
}

/* ── 文本 ─────────────────────────── */
.t-hero { font-size: 27px; font-weight: 700; letter-spacing: 0.5px; line-height: 1.35; }
.t-xl { font-size: 20px; font-weight: 650; line-height: 1.45; }
.t-lg { font-size: 17px; font-weight: 600; line-height: 1.5; }
.t-md { font-size: 15px; font-weight: 550; }
.t-sm { font-size: 13.5px; }
.t-xs { font-size: 12.5px; }
.t-mini { font-size: 11.5px; }
.c-ink { color: var(--ink); }
.c-ink2 { color: var(--ink2); }
.c-ink3 { color: var(--ink3); }
.c-pri { color: var(--pri); }
.c-acc { color: var(--acc); }
.c-warn { color: var(--warn); }
.c-dan { color: var(--dan); }
.bold { font-weight: 650; }
.muted { opacity: 0.88; }
.mono-num { font-variant-numeric: tabular-nums; }

/* ── 标签 ─────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 8px; border-radius: 5px;
  font-size: 11px; font-weight: 550; line-height: 1;
  background: #F0F3F9; color: var(--ink2);
}
.tag-pri { background: var(--pri-soft); color: var(--pri); }
.tag-acc { background: var(--acc-soft); color: #0A9A88; }
.tag-warn { background: var(--warn-soft); color: #C77405; }
.tag-dan { background: rgba(224, 75, 75, 0.1); color: #D33F3F; }
.tag-line { background: transparent; border: 1px solid #DFE4EE; color: var(--ink2); }

/* ── 按钮 ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 11px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.5px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.985); }
.btn-pri { background: var(--pri); color: #fff; box-shadow: 0 6px 16px rgba(35, 88, 231, 0.22); }
.btn-light { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.34); }
.btn-ghost { background: #fff; color: var(--pri); border-color: #C9D6F7; }
.btn-weak { background: #F0F3F9; color: var(--ink2); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 34px; font-size: 13px; padding: 0 14px; border-radius: 9px; }

/* ── 指标 ─────────────────────────── */
.kpi-row { display: flex; gap: 8px; }
.kpi {
  flex: 1; background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px; padding: 12px 6px; text-align: center;
}
.kpi-v { font-size: 21px; font-weight: 700; }
.kpi-k { font-size: 11px; opacity: 0.82; margin-top: 2px; }

.stat-grid { display: flex; gap: 8px; }
.stat {
  flex: 1; background: #F7F9FD; border-radius: 11px;
  padding: 12px 8px; text-align: center;
}
.stat-v { font-size: 18px; font-weight: 700; color: var(--pri); }
.stat-k { font-size: 11px; color: var(--ink3); margin-top: 2px; }

/* ── 进度 ─────────────────────────── */
.bar-track { height: 6px; border-radius: 3px; background: #EDF0F6; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2358E7, #4C86FF); }

/* ── 宫格 ─────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; padding: 14px 13px;
}
.tile-ico {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.tile-t { font-size: 14px; font-weight: 600; }
.tile-d { font-size: 11.5px; color: var(--ink3); margin-top: 4px; line-height: 1.55; }

/* ── 流水线 ─────────────────────────── */
.flow-node {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.flow-line { width: 2px; flex: 1; background: #E4E8F1; margin: 4px 0; min-height: 20px; }

/* ── 列表 ─────────────────────────── */
.list-row {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 10px;
}
.list-ico {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
}

/* ── 表单 ─────────────────────────── */
.field {
  background: var(--surface); border: 1px solid #E4E8F1;
  border-radius: 12px; padding: 13px 14px; margin-bottom: 12px;
}
.field-label { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 8px; }
.req::after { content: " *"; color: var(--dan); }
.field input, .field textarea, .field select {
  width: 100%; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--ink); font-family: inherit;
  padding: 0; min-height: 22px;
}
.field input::placeholder, .field textarea::placeholder { color: #B4BCCB; }
.field textarea { resize: none; line-height: 1.6; }
.field-select {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--ink); min-height: 22px;
}
.field-select.ph { color: #B4BCCB; }

.chip {
  height: 32px; padding: 0 14px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 500;
  background: #fff; color: var(--ink2); border: 1px solid #E4E8F1;
  cursor: pointer; transition: all 0.14s ease;
}
.chip-on { background: var(--pri); color: #fff; border-color: var(--pri); }

/* ── FAQ ─────────────────────────── */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-h { padding: 14px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.faq-q { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.55; }
.faq-b { padding: 0 14px 14px; font-size: 13px; color: var(--ink2); line-height: 1.75; }

/* ── 适配边界 ─────────────────────────── */
.fit-good { background: rgba(15, 181, 160, 0.06); border: 1px solid rgba(15, 181, 160, 0.2); border-radius: 12px; padding: 14px; }
.fit-bad { background: rgba(224, 75, 75, 0.045); border: 1px solid rgba(224, 75, 75, 0.16); border-radius: 12px; padding: 14px; }
.fit-li { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; }
.fit-li-t { flex: 1; font-size: 12.5px; line-height: 1.6; color: var(--ink2); }

/* ── 页头 ─────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 250, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 640px; margin: 0 auto; padding: 11px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-logo { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, #1B3FA8, #2358E7 60%, #4C86FF);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(35, 88, 231, 0.24);
}
.brand-name { font-size: 14.5px; font-weight: 700; letter-spacing: 0.5px; }
.brand-sub { font-size: 11px; color: var(--ink3); }

/* ── 底部 ─────────────────────────── */
.footer {
  margin-top: 36px; padding: 24px 16px 36px;
  text-align: center; border-top: 1px solid var(--line);
}
.footer-note { font-size: 11.5px; color: var(--ink3); line-height: 1.75; }

/* ── 悬浮申请条 ─────────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
}
.sticky-cta-in {
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}
.sticky-space { height: 82px; }

/* ── 提示条 ─────────────────────────── */
.notice {
  background: #FFFBF4; border: 1px solid #F7E4C4;
  border-radius: 12px; padding: 13px 14px;
  display: flex; align-items: flex-start; gap: 10px;
}
.notice-text { flex: 1; font-size: 11.5px; line-height: 1.75; color: #8A6A2F; }
