/* ============================================================
   天予泓源 · 对外官网样式
   ------------------------------------------------------------
   设计基线：主色 #1A6BB5 / 深色 #14568F，正文 ≥16px，触控目标 ≥44px，行高 1.6。
   为什么官网字号比一般网站大一号：
     官网的读者是保险客户（中老年居多），而且常常是在手机上、
     接到我们的电话之后上来核实 —— 看不清楚就等于没有。
   ------------------------------------------------------------
   零依赖：不引外部字体、不引 CDN、不用框架。
   理由：① 国内访问稳（无墙、无第三方抖动）② 首屏秒开 ③ 部署最简
   ============================================================ */

:root {
  --brand:        #1A6BB5;   /* 主色：保险行业的稳重深蓝 */
  --brand-dark:   #14568F;
  --brand-deep:   #0F3A5F;   /* 标题深色 */
  --brand-light:  #E8F1FA;

  --text:         #1f2937;
  --text-sub:     #6b7280;
  --text-invert:  #ffffff;

  --bg-page:      #f3f4f6;
  --bg-card:      #ffffff;
  --border:       #e5e7eb;

  --warn-bg:      #FDF6EC;
  --warn-border:  #F0C36D;
  --warn-text:    #8A5A00;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 32px rgba(15,58,95,.10);

  --wrap: 1120px;      /* 内容最大宽度 */
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 无障碍：只给读屏看 ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}

/* 品牌标：盾牌 + 对勾（与内部业务系统同一图形语言） */
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand-deep); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; color: var(--brand); flex-shrink: 0; }
.brand__name { font-size: 20px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.1; }
.brand__sub  { font-size: 12.5px; color: var(--text-sub); letter-spacing: .5px; line-height: 1.2; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--text); font-size: 15.5px; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* 电话按钮 —— 全站最重要的动作，做成醒目的实体按钮 */
.tel-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  background: var(--brand); color: #fff !important;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 15.5px;
  white-space: nowrap;
}
.tel-btn:hover { background: var(--brand-dark); text-decoration: none; }
.tel-btn svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; color: var(--text);
}

/* ============================================================
   首屏
   ============================================================ */
.hero {
  /* background-color 是渐变的兑底：
     ① 不支持渐变的旧浏览器不至于变成白底白字
     ② 对比度检查器（getComputedStyle 读不到 background-image）能拿到真实底色 */
  background-color: #14568F;
  background-image: linear-gradient(155deg, #14568F 0%, #1A6BB5 52%, #2E86D6 100%);
  color: #fff;
  padding: 72px 0 84px;
  position: relative; overflow: hidden;
}
/* 淡装饰：一排弧线，暗示"保障/守护"，不抢内容 */
.hero::after {
  content: ""; position: absolute; right: -160px; top: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 60px rgba(255,255,255,.04);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; }
.hero__eyebrow {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  font-size: 14px; letter-spacing: .5px;
}
.hero__title {
  margin: 0 0 18px; font-size: 44px; line-height: 1.3;
  font-weight: 700; letter-spacing: 1px;
}
.hero__title em { font-style: normal; display: block; }
.hero__lead { margin: 0 0 30px; font-size: 18px; line-height: 1.85; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: var(--radius-sm);
  font-size: 16.5px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn--primary { background: #fff; color: var(--brand-dark) !important; }
.btn--primary:hover { background: #EAF3FB; text-decoration: none; }
.btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.14); text-decoration: none; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 40px;
  margin-top: 46px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero__fact b { display: block; font-size: 26px; letter-spacing: .5px; }
.hero__fact span { font-size: 14.5px; opacity: .85; }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 68px 0; }
.section--white { background: var(--bg-card); }
.section--tight { padding: 52px 0; }

.section__head { max-width: 720px; margin-bottom: 38px; }
.section__label {
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  color: var(--brand); text-transform: uppercase; margin-bottom: 10px;
}
.section__title {
  margin: 0 0 14px; font-size: 30px; line-height: 1.4;
  color: var(--brand-deep); font-weight: 700; letter-spacing: .5px;
}
.section__desc { margin: 0; font-size: 17px; color: var(--text-sub); line-height: 1.85; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 10px; font-size: 18.5px; color: var(--brand-deep); }
.card p  { margin: 0; font-size: 15.5px; color: var(--text-sub); line-height: 1.8; }

.card__icon {
  width: 46px; height: 46px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--brand-light); color: var(--brand);
}
.card__icon svg { width: 24px; height: 24px; }

/* 「我们能做什么 / 不做什么」两栏对照 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split__col {
  border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); background: var(--bg-card);
}
.split__col--ok  { border-left: 4px solid var(--brand); }
.split__col--no  { border-left: 4px solid #D9534F; background: #FFFCFC; }
.split__head { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--brand-deep); }
.split__col--no .split__head { color: #B23B36; }
.split ul { margin: 0; padding-left: 20px; }
.split li { font-size: 15.5px; line-height: 1.95; color: var(--text); }

/* ---------- 续期时间线 ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; }
.tl-step { position: relative; padding: 0 18px; }
.tl-step::before {
  content: ""; position: absolute; left: 0; top: 11px; right: 0;
  height: 2px; background: var(--brand-light);
}
.tl-step:first-child::before { left: 50%; }
.tl-step:last-child::before  { right: 50%; }
.tl-dot {
  position: relative; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  margin: 0 auto 14px;
}
.tl-step--final .tl-dot { border-color: #D9534F; }
.tl-step h4 { margin: 0 0 6px; font-size: 16px; text-align: center; color: var(--brand-deep); }
.tl-step p  { margin: 0; font-size: 14.5px; text-align: center; color: var(--text-sub); line-height: 1.7; }

/* ---------- 提示条 ---------- */
.notice {
  border-radius: var(--radius); padding: 22px 24px;
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  color: var(--warn-text); font-size: 15.5px; line-height: 1.85;
}
.notice strong { color: #6B4400; }
.notice--info {
  background: var(--brand-light); border-color: #BBD8EE; color: #10456F;
}
.notice--info strong { color: #0F3A5F; }
.notice + .notice { margin-top: 14px; }
.notice ul { margin: 10px 0 0; padding-left: 20px; }
.notice li { margin-bottom: 4px; }

/* ---------- 联系区 ---------- */
.contact {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px;
  align-items: stretch;
}
.contact__main {
  background-color: #14568F;
  background-image: linear-gradient(150deg, #14568F, #1A6BB5);
  color: #fff; border-radius: var(--radius-lg); padding: 40px 36px;
}
.contact__main h3 { margin: 0 0 12px; font-size: 24px; }
.contact__main p  { margin: 0 0 26px; font-size: 16px; opacity: .92; line-height: 1.85; }
.contact__tel {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 32px; font-weight: 700; letter-spacing: 1px;
  color: #fff !important; margin-bottom: 8px;
}
.contact__tel:hover { text-decoration: none; opacity: .9; }
.contact__tel svg { width: 28px; height: 28px; }
.contact__hours { font-size: 14.5px; opacity: .85; }

.contact__side {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
}
.contact__side dl { margin: 0; }
.contact__side dt {
  font-size: 14px; color: var(--text-sub); letter-spacing: .5px;
  margin-top: 18px;
}
.contact__side dt:first-child { margin-top: 0; }
.contact__side dd { margin: 4px 0 0; font-size: 16.5px; font-weight: 600; color: var(--brand-deep); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: #17222E; color: #B9C4CF;
  padding: 48px 0 32px; font-size: 14.5px; line-height: 1.9;
}
.site-footer a { color: #C9D6E2; }
.site-footer__top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px;
  padding-bottom: 28px; border-bottom: 1px solid #2C3A48;
}
.site-footer h4 { margin: 0 0 12px; font-size: 15.5px; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 12px; }
.site-footer__brand .brand__mark { color: #6FB0E4; }
.site-footer__brand .brand__name { font-size: 18px; }
/* 技术服务方署名（在页脚最底，比免责文字稍亮，看得出是可点的） */
.site-footer__credit { margin-top: 16px; }
.site-footer__credit a {
  color: #A9CCEA;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(169, 204, 234, .45);
}
.site-footer__credit a:hover { color: #fff; text-decoration-color: #fff; }

.site-footer__legal {
  margin-top: 24px; font-size: 13.5px; color: #8A98A6; line-height: 1.9;
}
.site-footer__legal p { margin: 0 0 8px; }

/* ============================================================
   子页（合规与信息披露）
   ============================================================ */
.page-hero {
  background-color: #14568F;
  background-image: linear-gradient(150deg, #14568F, #1A6BB5);
  color: #fff; padding: 52px 0 46px;
}
.page-hero h1 { margin: 0 0 12px; font-size: 34px; letter-spacing: 1px; }
.page-hero p  { margin: 0; font-size: 16.5px; opacity: .92; max-width: 720px; }
.crumb { font-size: 14px; opacity: .8; margin-bottom: 14px; }
.crumb a { color: #fff; }

.doc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 34px; }
.doc h2 {
  font-size: 21px; color: var(--brand-deep); margin: 34px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { font-size: 16px; line-height: 1.95; color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.doc th, .doc td {
  border: 1px solid var(--border); padding: 11px 14px;
  font-size: 15.5px; text-align: left; vertical-align: top;
}
.doc th { background: #F7F9FB; color: var(--brand-deep); font-weight: 700; white-space: nowrap; }

/* 待补充的字段 —— 必须一眼看得见，不能悄悄混过去 */
.tbd {
  background: #FFF3CD; border-bottom: 1px dashed #C79A00;
  padding: 1px 6px; border-radius: 4px; color: #7A5B00; font-weight: 600;
}

.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.toc a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: 14.5px;
}
.toc a:hover { text-decoration: none; background: #D6E7F6; }

/* ============================================================
   响应式：手机端（主战场 —— 客户多在手机上打开）
   ============================================================ */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px; box-shadow: var(--shadow);
  }
  .site-nav.is-open a {
    padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16.5px;
  }
  .site-nav.is-open .tel-btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .hero { padding: 48px 0 56px; }
  .hero__title { font-size: 32px; }
  .hero__lead  { font-size: 16.5px; }
  .hero__facts { gap: 26px; margin-top: 34px; }
  .hero__fact b { font-size: 22px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .section { padding: 46px 0; }
  .section__title { font-size: 25px; }

  .grid--2, .split { grid-template-columns: 1fr; }

  /* 时间线在手机上改为竖排，避免四列被挤扁 */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .tl-step { display: flex; gap: 14px; padding: 0 0 22px; }
  .tl-step::before { left: 11px; top: 24px; bottom: 0; right: auto; width: 2px; height: auto; }
  .tl-step:first-child::before { left: 11px; }
  .tl-step:last-child::before  { right: auto; bottom: 0; }
  .tl-step:last-child { padding-bottom: 0; }
  .tl-step:last-child::before { display: none; }
  .tl-dot { margin: 0; flex-shrink: 0; }
  .tl-step h4, .tl-step p { text-align: left; }

  .contact__main { padding: 30px 24px; }
  .contact__tel { font-size: 27px; }
  .doc { padding: 24px 20px; }
  .page-hero h1 { font-size: 26px; }

  /* 表格：窄屏必须允许表头换行。
     实测（390px）：th 的 white-space:nowrap 会把「经营保险代理业务许可证编号」
     这一格撑成 362px，把整页顶出视口（内容宽 404 > 390）—— 手机上横向滚动。 */
  .doc table { table-layout: fixed; }
  .doc th { white-space: normal; width: 40%; }
  .doc th, .doc td { word-break: break-word; padding: 10px 12px; font-size: 15px; }

  /* 触控目标：手机端把「独立成项的可点目标」撑到 44px（铁律二十一）。
     只针对导航/目录/页脚/表格里的链接 —— 段落正文里的行内引用链接不撑，
     否则会破坏排版（WCAG 对行内文本链接本身就有豁免）。 */
  .site-footer li a,
  .toc a,
  .crumb a,
  .doc td a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .site-footer li { margin-bottom: 0; }
  .toc { gap: 8px; }

  /* 页脚的「技术支持」也是可点目标，给它足够的触控高度 */
  .site-footer__credit a { display: inline-block; padding: 12px 0; }
}

/* 打印（客户可能把合规页打出来存档） */
@media print {
  .site-header, .site-footer, .hero__actions, .toc { display: none; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}
