/* S26 UI 补丁 · 20261112
   依赖：modules.css（组件库）+ skin-s26.css（令牌）→ 本文件最后加载
   范围：A 主容器 B hero 双栏 C 深色分区 D 章节节奏 E 章节配图 F 卡片 G 页头/页脚 H 移动端 I skip-link
   ------------------------------------------------------------------ */

/* A. 主容器：site.css 的 main{max-width:1140;padding:24} 会把 hero 挤成窄条，这里放开 */
main{max-width:none!important;margin:0!important;padding:0!important}
main>.wrap{max-width:var(--container,1140px)}
body{padding-top:0}

/* B. 首屏 hero：满幅深蓝 + 文案/图双栏 */
main .hero{position:relative;padding:56px 0 64px;overflow:hidden}
main .hero::after{content:"";position:absolute;inset:auto 0 0 0;height:1px;background:rgba(255,255,255,.10)}
main .hero .wrap{max-width:1140px}
main .hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px;align-items:center}
main .hero-copy{min-width:0}
main .hero-copy h1{font-size:clamp(30px,3.4vw,46px);line-height:1.12;letter-spacing:-.02em;color:#fff;margin:0 0 18px;max-width:22ch}
main .hero-copy .band{margin:0 0 10px}
main .hero-copy .band .kicker{color:var(--gold-300,#fcd34d);font-weight:600;letter-spacing:.14em;text-transform:uppercase;font-size:12px}
main .hero-copy .band .m-secnum{color:rgba(255,255,255,.55);font-variant-numeric:tabular-nums;font-size:12px}
main .hero-copy h2{display:none}          /* 首段 h2 与 h1 语义重复，hero 里只留 h1 */
main .hero-copy .lead{color:var(--navy-100,#d6e6f5);font-size:17px;line-height:1.62;max-width:44ch;margin:0}
main .hero-copy p{color:var(--navy-100,#d6e6f5)}
main .hero-copy .pillrow{margin-top:24px}

main .hero-media{margin:0;position:relative;border-radius:14px;overflow:hidden;
  box-shadow:0 18px 44px rgba(3,20,36,.42);background:#0a2135;aspect-ratio:4/3}
main .hero-media img{display:block;width:100%;height:100%;object-fit:cover}
main .hero-media::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(160deg,rgba(6,36,60,0) 40%,rgba(6,36,60,.34) 100%)}

/* C. 深色分区：只保留 hero 那一段；其余分区回落浅色，避免“整页压在深蓝底上” */
main .mod.dark:not(.hero){background:#fff;color:inherit}
main .mod.dark:not(.hero) h2,main .mod.dark:not(.hero) h3,main .mod.dark:not(.hero) h4{color:var(--navy-700,#0f4c81)}
main .mod.dark:not(.hero) p,main .mod.dark:not(.hero) li{color:#44576e}

/* D. 章节节奏 */
main .mod{padding:60px 0}
main .mod.alt{background:var(--navy-50,#f0f4f8)}
main .mod+.mod{border-top:0}
main .mod .mod-head{max-width:820px}
main .mod-head h2{font-size:clamp(24px,2.6vw,32px);line-height:1.2;letter-spacing:-.01em;margin:0 0 12px;color:var(--navy-700,#0f4c81)}
main .mod .lead{color:#42566d;font-size:16.5px;line-height:1.68;max-width:74ch}
main .mod .band{margin-bottom:10px}
main .mod .band .kicker{color:var(--gold-ink,#92400e);font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
main .mod .band .m-secnum{color:#8b9bad;font-size:11.5px;font-variant-numeric:tabular-nums}

/* E. 章节配图 */
main .sec-media{margin:28px 0 4px;border-radius:12px;overflow:hidden;background:#e8eef5;max-width:760px}
main .sec-media img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
main .sec-media figcaption{font-size:12.5px;color:#6b7c8f;padding:10px 2px 0;line-height:1.5}

/* F. 卡片 */
main .card{background:#fff;border:1px solid var(--border,#cfdcea);border-radius:12px;padding:22px 22px 20px;
  box-shadow:0 2px 10px rgba(6,36,60,.05);transition:box-shadow .18s,transform .18s}
main .card:hover{box-shadow:0 10px 26px rgba(6,36,60,.10);transform:translateY(-2px)}
main .card h3{font-size:18px;color:var(--navy-700,#0f4c81);margin:0 0 8px}
main .card p{margin:0;color:#4b5f74;font-size:14.5px;line-height:1.6}
main .grid{gap:18px}

/* G. 页头/页脚 */
.site-header{position:sticky;top:0;z-index:60;backdrop-filter:saturate(160%) blur(8px)}
.site-header .wrap{max-width:1180px}
.site-header .main-nav a{color:#e8eef5;font-size:14px;padding:8px 2px;text-decoration:none}
.site-header .main-nav a:hover{color:var(--gold-300,#fcd34d)}
.site-header .brand-mark{width:26px;height:26px;opacity:.9}
.site-footer{padding:56px 0 28px}
.site-footer .wrap{max-width:1140px}

/* H. 移动端 */
@media (max-width:900px){
  main .hero{padding:34px 0 40px}
  main .hero-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  main .hero-copy h1{font-size:clamp(26px,7vw,34px);max-width:100%}
  main .hero-copy .lead{font-size:15px;max-width:100%}
  main .hero-media{aspect-ratio:16/9;order:-1}     /* 手机端先图后文 */
  main .mod{padding:40px 0}
  main .mod .lead{font-size:15px}
  main .sec-media{max-width:100%;margin:20px 0 0}
  .site-header .wrap{flex-wrap:wrap;gap:10px}
}
@media (max-width:560px){
  main .hero-copy h1{font-size:25px;line-height:1.18}
  main .card{padding:18px}
  main .grid{grid-template-columns:1fr}
}

/* I. 跳转链接：默认不可见，仅键盘聚焦时出现（原来常驻页首，像一条黑条） */
.skip-link{position:absolute;left:-9999px;top:0}
.skip-link:focus{left:12px;top:12px;z-index:100;padding:10px 16px;background:#06243c;color:#fff;border-radius:8px;text-decoration:none}

/* 通用：长串无空格文本不撑破版心 */
main p,main li,main td{overflow-wrap:break-word}
main table{max-width:100%}
/* J. 正文行宽：tokens.css 的 p{max-width:72ch} 在 Segoe 下只有 ~400px，
   导致每段左侧一条窄柱、右侧大片留白 —— 分区内改为按版心宽度换行 */
main p,main li,main td,main dd{max-width:none}
main .mod .lead,main .mod-head p,main .mod>p,main .mod .wrap>p{max-width:780px}
main .hero .lead{max-width:560px}

/* K. hero 文案对比度：藏蓝底上的灰蓝 9 行文案几乎糊掉 */
main .hero .hero-copy .lead,main .hero .hero-copy p{color:#e6eff8!important}
main .hero .hero-copy .lead{font-size:17.5px;line-height:1.7}
main .hero .hero-copy .band .kicker{color:#fcd34d}
main .hero .hero-copy .band .m-secnum{color:rgba(230,239,248,.62)}

/* L. hero 首屏 CTA 行 */
main .hero .hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
main .hero .hero-cta .btn{min-height:46px;display:inline-flex;align-items:center;padding:0 22px}
main .hero .hero-cta .btn-line{border:1px solid rgba(230,239,248,.55);color:#e6eff8;background:transparent}

/* M. 章节大间距收敛：72px 上下叠加过度留白 */
main .mod{padding:52px 0}
main .mod .grid{margin-top:22px}
/* N. 浅底分区正文加深，灰蓝 #5a7691 在 #f1f5f9 上仅约 4.3:1 */
main .mod:not(.hero) p,main .mod:not(.hero) li{color:#334155}

/* O. 版心填满：正文 880、章节图 900，卡片自动分栏避免落单 */
main .mod .lead,main .mod>p,main .mod .wrap>p{max-width:880px}
main .mod .sec-media{width:100%;max-width:900px}
main .mod .grid:has(.card){grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
main .mod .card p{max-width:none}

/* P. 统一版心：分区内容 940 居中，正文/图/卡片同宽，避免右侧大留白与参差右边缘 */
main .mod:not(.hero) .wrap{max-width:988px}
main .mod:not(.hero) p,main .mod:not(.hero) .lead,main .mod:not(.hero) .sec-media,main .mod:not(.hero) .grid,main .mod:not(.hero) .mod-head{max-width:100%}

main .mod .grid:has(.card){grid-template-columns:repeat(auto-fit,minmax(205px,1fr))}

/* Q. hero 与分区左边缘对齐（同为 940 版心），消除首屏与正文的 69px 错位 */
main .hero .wrap{max-width:988px}

/* R. 移动端汉堡键：原 navy-700 压在藏蓝页头上几乎不可见 */
@media (max-width:900px){
  .site-header .menu-toggle{width:44px;height:44px;border-radius:8px;border:1px solid rgba(255,255,255,.35)}
  .site-header .menu-toggle::before{background:#fff;box-shadow:0 -7px 0 #fff,0 7px 0 #fff}
}
