/* ============================================================
   招生首页（index.html · 招生首页模块化重设计）
   字体只允许 assets/fonts/font.css 声明的企业MiSans（400/500/600/700，无系统回退链；失败走可访问性兜底）。
   全宽背景模块 = 浏览器全宽 cover 背景图 + 渐变遮罩 + 1200-1280px 内容容器（无左右白边）。
   色值经 CSS 变量承载（.dark 纯光背景默认浅色文字随模块状态覆盖）。
   ============================================================ */
:root {
  --ink-950: #0a1424;      /* 深底 */
  --ink-900: #101e33;
  --ink-800: #1b2c47;
  --ink-700: #2c405e;
  --line: #e5e9f0;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #16233a;
  --muted: #5d6b82;
  --brand: #1d6df0;        /* Technical Blue */
  --brand-strong: #1657c4;
  --brand-soft: #e8f0fe;
  --brand-y: #ffc400;      /* 行动黄：登录入口主按钮（首屏 CTA / 顶部导航登录） */
  --brand-y-strong: #edb300;
  --ok: #16a34a;
  --warn-bg: #fdf6e7;
  --warn: #9a6b00;
  --hero-overlay: linear-gradient(97deg, rgba(7, 15, 29, .93) 0%, rgba(9, 20, 38, .82) 46%, rgba(12, 26, 48, .55) 78%, rgba(14, 30, 55, .42) 100%);
  --nav-h: 64px;
  --wrap: 1240px;
  --font-sans: "企业MiSans";
  --font-serif: "企业MiSans";
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.rm, html.rm * { scroll-behavior: auto !important; }
html.rm .fade-up { animation: none !important; opacity: 1 !important; transform: none !important; }
body { font-family: var(--font-sans); font-weight: 400; color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--card); padding: 8px 14px; border-radius: 0 0 8px 0; font-size: 14px; }
.skip-link:focus { left: 0; color: var(--brand-strong); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
section { position: relative; }

/* ================= 顶部导航（白字浮动于深色首屏上，滚动后加深） ================= */
.topnav { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--nav-h); display: flex; align-items: center; gap: 22px; padding: 0 clamp(16px, 3.6vw, 40px); color: #fff; background: linear-gradient(rgba(6, 13, 26, .55), rgba(6, 13, 26, 0)); transition: background .25s, box-shadow .25s; }
.topnav.on { background: rgba(8, 16, 30, .94); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.topnav .brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.topnav .brand a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.logo-chip { flex: none; display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 5px 11px; line-height: 0; }
.logo-chip img { height: 30px; width: auto; }
.brand-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy .b1 { font-size: 16px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.brand-copy .b2 { font-size: 12px; opacity: .72; white-space: nowrap; }
.nav-items { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.nav-items a { color: #fff; text-decoration: none; opacity: .85; padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.nav-items a:hover, .nav-items a:focus-visible { opacity: 1; background: rgba(255, 255, 255, .1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .4px; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn.brand-b { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(29, 109, 240, .3); }
.btn.brand-b:hover { background: var(--brand-strong); }
.btn.brand-y { background: var(--brand-y); color: var(--text); box-shadow: 0 8px 20px rgba(255, 196, 0, .3); }
.btn.brand-y:hover { background: var(--brand-y-strong); }
.btn.ghost-w { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .32); }
.btn.ghost-w:hover { background: rgba(255, 255, 255, .2); }
.btn.ghost { background: transparent; color: var(--brand-strong); border: 1px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }

/* ================= 首屏（全宽图 + 遮罩 + 左文右班期卡） ================= */
.hero { min-height: max(100vh, 640px); background-color: var(--ink-900); display: flex; align-items: center; background-position: center; background-size: cover; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero .wrap { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 72px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; letter-spacing: 2px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 5vw, 60px); font-weight: 700; line-height: 1.14; letter-spacing: 1px; white-space: pre-line; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero .lead { margin-top: 18px; font-size: clamp(15px, 1.6vw, 18px); opacity: .9; max-width: 640px; }
.hero .formula { margin-top: 20px; font-family: var(--font-serif); font-weight: 700; font-size: clamp(15px, 1.7vw, 19px); letter-spacing: .5px; }
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-side { display: flex; justify-content: flex-end; }
.session-card { width: min(100%, 360px); background: rgba(13, 24, 44, .88); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); border-radius: 16px; padding: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, .32); }
.session-card h2 { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.session-card h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 4px rgba(62, 207, 110, .2); flex: none; }
.session-card h2.wait::before { background: #f6c445; box-shadow: 0 0 0 4px rgba(246, 196, 69, .2); }
.session-card .ss-title { margin-top: 12px; font-size: 20px; font-weight: 700; }.session-card dl { margin-top: 10px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.session-card dt { opacity: .6; }
.session-card dd { text-align: right; }
.session-card .price-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .2); display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; opacity: .82; }
.session-card .price-row b { font-size: 21px; color: #fff; opacity: 1; }
.session-card .price-row .mem { display: block; font-size: 12.5px; opacity: .75; }
.session-card .cta-wrap { margin-top: 14px; }
.session-card .btn { width: 100%; }
.session-card .note { margin-top: 10px; font-size: 12px; text-align: center; opacity: .62; }
.session-card.waiting { background: rgba(13, 24, 44, .9); }

/* ================= 通用模块壳 ================= */
.sec { padding: clamp(56px, 7.5vw, 92px) 0; }
.sec.paper { background: var(--card); }
.sec.soft { background: var(--bg); }
.sec.ink { background: var(--ink-900); color: #fff; background-position: center; background-size: cover; }
.sec.ink::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 13, 26, .82), rgba(8, 16, 30, .66)); }
.sec.ink > .wrap { position: relative; z-index: 1; }
.sec-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head.ctr { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 3px; color: var(--brand); text-transform: uppercase; }
.sec.ink .kicker { color: #8fb6ff; }
.sec-title { margin-top: 10px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.25; letter-spacing: .5px; }
.sec-sub { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.sec.ink .sec-sub { color: rgba(255, 255, 255, .78); }

/* ================= 适合谁（3 卡） ================= */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.acard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 10px 26px rgba(15, 30, 60, .05); }
.acard h3 { font-size: 17px; font-weight: 700; color: var(--ink-800); }
.acard h3::before { content: ""; display: block; width: 30px; height: 4px; border-radius: 2px; background: var(--brand); margin-bottom: 12px; }
.acard p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ================= AI 落地路径（四步） ================= */
.pathgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 22px); }
.step { position: relative; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 20px 18px; }
.step .no { font-family: var(--font-serif); font-weight: 700; font-size: 34px; line-height: 1; color: rgba(255, 255, 255, .28); }
.step .nm { margin-top: 12px; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.step .dsc { margin-top: 8px; font-size: 13.5px; opacity: .8; min-height: 60px; }
.step .out { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .22); font-size: 12.5px; color: #9cc0ff; }
.arrow { display: none; }

/* ================= 课程与 49 天陪跑（3 块含输出/节奏提示） ================= */
.cur3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ccard { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 24px; }
.ccard .t { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.ccard .d { margin-top: 10px; font-size: 14px; opacity: .82; }
.ccard .ph { margin-top: 16px; font-size: 12px; opacity: .6; letter-spacing: 1px; }
.note-tip { margin-top: 22px; display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); padding: 10px 16px; border-radius: 10px; }

/* ================= 真实活动回顾（图文墙） ================= */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gitem { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gitem img { width: 100%; height: 180px; object-fit: cover; background: var(--ink-800); }
.gitem figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); }

/* ================= 企业案例 / 学员评价 / 资质荣誉 ================= */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.case-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 26px rgba(15, 30, 60, .05); }
.case-card .cc-title { font-size: 17px; font-weight: 700; }
.case-card .cc-sum { font-size: 14px; color: var(--muted); flex: 1; }
.case-card .cc-res { font-size: 13.5px; padding: 10px 12px; background: var(--brand-soft); color: var(--brand-strong); border-radius: 10px; }
.case-card img { width: 100%; max-height: 190px; object-fit: cover; border-radius: 10px; background: var(--ink-800); }
.testi { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; box-shadow: 0 10px 26px rgba(15, 30, 60, .05); display: flex; flex-direction: column; gap: 14px; }
.tcard .qt { font-size: 30px; line-height: 0; color: var(--brand); opacity: .5; }
.tcard .ct { font-size: 14.5px; color: var(--text); flex: 1; }
.tcard .who { display: flex; align-items: center; gap: 10px; }
.tcard .who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--ink-800); }
.tcard .who .nm { font-size: 14px; font-weight: 700; }
.tcard .who .rl { font-size: 12.5px; color: var(--muted); }
.cred { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cred-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.cred-card img { margin: 0 auto; height: 150px; object-fit: contain; background: var(--bg); border-radius: 8px; }
.cred-card .nm { margin-top: 10px; font-size: 14.5px; font-weight: 700; }
.cred-card .ds { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* ================= 常见问题 ================= */
.faqs { max-width: 860px; margin: 0 auto; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 18px; font-size: 15px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 20px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 18px 16px; font-size: 14px; color: var(--muted); }

/* ================= 报名 CTA 带（固定于联系区前） ================= */
.cta-band { background: var(--ink-900); background-size: cover; background-position: center; color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(29, 109, 240, .18), rgba(6, 13, 26, .75)); }
.cta-band .wrap { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; letter-spacing: 1px; }
.cta-band p { margin-top: 10px; opacity: .8; font-size: 15px; }
.cta-band .cta-btns { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ================= 底部联系与关注 ================= */
.footer { background: var(--ink-950); color: #fff; padding: clamp(40px, 5vw, 64px) 0 26px; }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.f-col h4 { font-size: 13px; letter-spacing: 3px; opacity: .6; font-weight: 400; margin-bottom: 14px; }
.f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.f-logo .logo-chip img { height: 34px; }
.f-logo .fc1 { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.qr-row { display: flex; gap: 18px; flex-wrap: wrap; }
.qr-card { text-align: center; }
.qr-card img { width: 108px; height: 108px; border-radius: 10px; background: #fff; padding: 8px; object-fit: contain; }
.qr-card .qn { margin-top: 8px; font-size: 13px; opacity: .85; }
.qr-card .qscan { font-size: 12px; opacity: .55; }
.contact-list { list-style: none; display: grid; gap: 12px; font-size: 14px; }
.contact-list a { text-decoration: none; opacity: .9; }
.contact-list a:hover { color: #8fb6ff; }
.contact-list .k { opacity: .55; margin-right: 10px; font-size: 12.5px; letter-spacing: 1px; }
.copyright { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: 12.5px; opacity: .55; }

/* ================= 模块就绪淡入：背景随首帧即现，内容块 200ms 淡入上浮 =================
   （不做门禁/假进度条；二次渲染(缓存→接口刷新)动画轻微重放，不影响可读性） */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
#homeBody .sec > .wrap, #homeBody .hero > .wrap, #homeBody .cta-band > .wrap,
.footer .cols { animation: riseIn .2s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  #homeBody .sec > .wrap, #homeBody .hero > .wrap, #homeBody .cta-band > .wrap,
  .footer .cols { animation: none; }
}

/* ================= 响应式（768-900 单栏降级；表格不出现） ================= */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-side { justify-content: stretch; }
  .session-card { width: 100%; max-width: 560px; }
  .pathgrid { grid-template-columns: repeat(2, 1fr); }
  .nav-items .lnk { display: none; } /* 窄屏只留登录与 CTA，锚点导航折进体验降级：模块顺序仍完整 */
}
@media (max-width: 640px) {
  .pathgrid { grid-template-columns: 1fr; }
  .brand-copy .b2 { display: none; }
  .nav-login { display: none; }
  .hero { min-height: 100svh; }
}
