/* 伴城入学 · 随迁子女入学政策助手 — Apple.com 风格 */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","PingFang SC","Helvetica Neue",Helvetica,Arial,sans-serif;
  color:#1d1d1f;background:#fff;-webkit-font-smoothing:antialiased;line-height:1.47;letter-spacing:-.01em;
}
a{color:#0066cc;text-decoration:none}
a:hover{text-decoration:underline}

/* ---------- 顶部毛玻璃导航 ---------- */
.nav{position:fixed;top:0;left:0;right:0;height:48px;display:flex;align-items:center;
  justify-content:center;gap:32px;z-index:9999;font-size:14px;
  background:rgba(255,255,255,.72);backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid rgba(0,0,0,.08)}
.nav .brand{font-weight:600;letter-spacing:-.01em}
.nav a{color:#1d1d1f;opacity:.82;font-size:14px}
.nav a:hover{opacity:1;text-decoration:none}
@media(max-width:720px){.nav{gap:16px;font-size:12px}.nav a{font-size:12px}}

/* ---------- 分区通用 ---------- */
section{padding:92px 22px;text-align:center}
.wrap{max-width:980px;margin:0 auto}
.bg-gray{background:#f5f5f7}
.bg-dark{background:#000;color:#f5f5f7}
.eyebrow{font-size:21px;font-weight:600;color:#6e6e73;margin-bottom:8px;letter-spacing:0}
h1{font-size:clamp(40px,7vw,80px);font-weight:600;letter-spacing:-.015em;line-height:1.05}
h2{font-size:clamp(30px,5vw,52px);font-weight:600;letter-spacing:-.012em;line-height:1.08}
h3{font-size:clamp(22px,3vw,32px);font-weight:600;letter-spacing:-.01em}
.sub{font-size:clamp(18px,2.2vw,26px);color:#6e6e73;font-weight:400;line-height:1.4;
  margin:16px auto 0;max-width:700px}
.bg-dark .sub{color:#a1a1a6}

/* ---------- 按钮 ---------- */
.btns{margin-top:30px;display:flex;gap:24px;justify-content:center;align-items:center;flex-wrap:wrap}
.pill{background:#0071e3;color:#fff;border:none;border-radius:980px;padding:13px 26px;
  font-size:17px;cursor:pointer;font-family:inherit;letter-spacing:-.01em}
.pill:hover{background:#0077ed;text-decoration:none}
.link{color:#0066cc;font-size:17px}
.link:hover{text-decoration:underline}
.pill-ghost{background:#fff;color:#0071e3;border:1px solid #d2d2d7;border-radius:980px;padding:12px 24px;font-size:17px;cursor:pointer;font-family:inherit;letter-spacing:-.01em}
.pill-ghost:hover{background:#f5f5f7;border-color:#b8b8bd}
.ask-label{font-size:15px;font-weight:500;color:#1d1d1f;margin-bottom:12px}

/* ---------- 首屏 ---------- */
.hero{display:flex;flex-direction:column;align-items:center;
  padding:126px 22px 54px;background:radial-gradient(130% 90% at 50% 0%,#fbfbfd 0%,#fff 58%)}
.door{margin:38px auto 0;width:84px;height:108px}

/* ---------- 引擎卡片 ---------- */
.engine{max-width:720px;margin:44px auto 0;background:#fff;border-radius:24px;
  box-shadow:0 4px 30px rgba(0,0,0,.08);padding:34px 30px;text-align:left}
.row{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:center;margin-bottom:8px}
.fld{display:flex;flex-direction:column;gap:6px;text-align:left}
.fld label{font-size:13px;color:#6e6e73}
select,.toggle{font-family:inherit}
select{appearance:none;-webkit-appearance:none;background:#f5f5f7;border:none;border-radius:12px;
  padding:11px 38px 11px 16px;font-size:16px;color:#1d1d1f;cursor:pointer;min-width:170px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%236e6e73' stroke-width='1.6' fill='none'/></svg>");
  background-repeat:no-repeat;background-position:right 14px center}
.toggles{display:flex;flex-wrap:wrap;gap:10px 20px;margin:18px 0 4px}
.toggle{display:flex;align-items:center;gap:9px;font-size:15px;color:#1d1d1f;cursor:pointer}
.toggle input{width:18px;height:18px;accent-color:#0071e3}
.muted{font-size:14px;color:#86868b}

/* 结果卡 */
.result{margin-top:22px;border-top:1px solid #ededf0;padding-top:22px}
.result .city-meta{font-size:13px;color:#86868b;margin-bottom:14px}
.field-row{display:flex;gap:13px;padding:11px 0;border-top:1px solid #f0f0f2}
.field-row:first-of-type{border-top:none}
.field-row .ic{flex:0 0 22px;color:#86868b;font-size:20px;line-height:1.3}
.field-row .k{font-size:13px;color:#86868b}
.field-row .v{font-size:15px;line-height:1.5}
.verdict-h{font-size:22px;font-weight:600;letter-spacing:-.01em;margin:2px 0 8px}
.badge{display:inline-block;font-size:13px;font-weight:500;padding:5px 14px;border-radius:980px;margin-bottom:12px}
.b-red{background:#fde8e8;color:#bf2c2c}
.b-amber{background:#fdf0db;color:#9a6212}
.b-blue{background:#e6f0fb;color:#0a5bb5}
.b-green{background:#e3f5ec;color:#1a7a4d}
.verdict-d{font-size:16px;line-height:1.6;color:#1d1d1f}
.checklist{margin-top:16px}
.checklist .ci{display:flex;gap:10px;font-size:15px;padding:6px 0;color:#1d1d1f}
.checklist .ci i{color:#0071e3;font-size:18px}
.src{margin-top:18px;padding-top:14px;border-top:1px solid #f0f0f2;font-size:13px;color:#86868b}

/* AI 助手区 */
.ai-block{margin-top:22px;border-top:1px solid #ededf0;padding-top:20px}
.ai-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.ghost{background:#f5f5f7;border:none;border-radius:980px;padding:10px 18px;font-size:15px;color:#0066cc;cursor:pointer;font-family:inherit}
.ghost:hover{background:#ececef}
.ai-ask{display:flex;gap:10px}
.ai-ask input{flex:1;background:#f5f5f7;border:none;border-radius:12px;padding:12px 16px;font-size:15px;font-family:inherit;color:#1d1d1f}
.ai-ask input:focus{outline:2px solid #0071e3}
.pill-sm{background:#0071e3;color:#fff;border:none;border-radius:980px;padding:0 22px;font-size:15px;cursor:pointer;font-family:inherit;white-space:nowrap}
.pill-sm:hover{background:#0077ed}
.ai-out{margin-top:16px;font-size:15px;line-height:1.75;color:#1d1d1f}
.ai-out:empty{display:none}
.ai-out .tag{display:block;font-size:12px;color:#86868b;margin-bottom:8px}
.ai-loading{color:#86868b;font-size:14px}
.ai-out b{font-weight:600}
.md-h{font-weight:600;margin:12px 0 4px;color:#1d1d1f}
.md-li{margin:4px 0}

/* ===== Hero 视觉 ===== */
.hero-art{margin:26px auto 0;width:min(500px,80%);height:auto;display:block}

/* ===== 数据 band ===== */
.stats-band{padding:40px 22px 64px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;text-align:center}
@media(max-width:760px){.stats{grid-template-columns:1fr;gap:30px}}
.stat .num{font-size:clamp(40px,5.5vw,64px);font-weight:600;letter-spacing:-.02em;color:#1d1d1f}
.stat .num .u{font-size:.42em;font-weight:500;color:#6e6e73;margin-left:4px;letter-spacing:0}
.stat .lab{font-size:15px;color:#6e6e73;margin-top:8px;line-height:1.4}

/* ===== 选购式配置器 ===== */
.config{max-width:1000px;margin:42px auto 0;display:grid;grid-template-columns:0.88fr 1.12fr;gap:34px;text-align:left;align-items:start}
@media(max-width:860px){.config{grid-template-columns:1fr;gap:24px}}
.opt-group{margin-bottom:24px}
.opt-label{font-size:17px;font-weight:600;letter-spacing:-.01em;margin-bottom:12px}
.opt-label .step{font-size:12px;color:#86868b;font-weight:400;margin-right:9px}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tiles-stage{grid-template-columns:repeat(2,1fr)}
.tiles-cond{grid-template-columns:1fr}
@media(max-width:520px){.tiles{grid-template-columns:repeat(2,1fr)}}
.tile{background:#fff;border:1px solid #e6e6ea;border-radius:12px;padding:11px 8px;cursor:pointer;text-align:center;transition:border-color .15s,box-shadow .15s;font-family:inherit}
.tile:hover{border-color:#b8b8bd}
.tile.sel{border-color:#0071e3;border-width:1.5px;box-shadow:0 0 0 3px rgba(0,113,227,.12)}
.tile .t-name{font-size:15px;font-weight:500;color:#1d1d1f}
.tile .t-sub{font-size:11px;color:#86868b;margin-top:2px}
.tiles-stage .tile{padding:14px 12px}
.tiles-stage .tile .t-name{font-size:16px}
.tile.cond{display:flex;align-items:center;gap:12px;text-align:left;padding:14px 16px}
.tile.cond span:last-child{font-size:15px;color:#1d1d1f}
.tile.cond .ck{flex:0 0 20px;width:20px;height:20px;border-radius:50%;border:2px solid #c7c7cc;background-position:center;background-repeat:no-repeat}
.tile.cond.sel .ck{border-color:#0071e3;background-color:#0071e3;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 18 18'><path d='M4 9.5l3.2 3.2L14 6' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>")}

/* ===== 结果摘要卡（sticky）===== */
.config-summary{position:sticky;top:66px}
@media(max-width:860px){.config-summary{position:static}}
.summary-card{background:#fff;border-radius:20px;box-shadow:0 4px 30px rgba(0,0,0,.08);padding:26px 26px}
.city-meta{font-size:13px;color:#86868b;margin-bottom:14px}

/* ===== 阶梯序号 ===== */
.tier-no{flex:0 0 38px;width:38px;height:38px;border-radius:50%;color:#fff;font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;margin-top:2px}

/* ---------- 阶梯 ---------- */
.ladder{max-width:840px;margin:54px auto 0;display:flex;flex-direction:column;gap:16px;text-align:left}
.tier{background:#fff;border-radius:20px;padding:24px 28px;display:flex;gap:22px;align-items:flex-start;
  box-shadow:0 2px 18px rgba(0,0,0,.05)}
.tier .dot{flex:0 0 14px;width:14px;height:14px;border-radius:50%;margin-top:7px}
.tier h4{font-size:21px;font-weight:600;letter-spacing:-.01em;margin-bottom:4px}
.tier p{font-size:16px;color:#6e6e73;line-height:1.5}
.tier .cities{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
.tier .cpill{font-size:14px;background:#f5f5f7;border-radius:980px;padding:5px 14px;color:#1d1d1f}

/* ---------- 白话卡 ---------- */
.cards{max-width:980px;margin:48px auto 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;text-align:left}
.card{background:#fff;border-radius:20px;padding:26px 26px;box-shadow:0 2px 18px rgba(0,0,0,.05)}
.bg-gray .card{background:#fff}
.card .term{font-size:13px;color:#0071e3;font-weight:500;margin-bottom:8px}
.card h4{font-size:20px;font-weight:600;margin-bottom:8px;letter-spacing:-.01em}
.card p{font-size:16px;color:#494950;line-height:1.6}
.ai-note{margin-top:30px;font-size:14px;color:#86868b}

/* ---------- 来源 / 页脚 ---------- */
.sources{max-width:840px;margin:36px auto 0;text-align:left;font-size:14px;color:#494950;line-height:1.9}
.footer{background:#f5f5f7;color:#86868b;font-size:12px;line-height:1.6;padding:36px 22px;text-align:left}
.footer .wrap{max-width:980px}
.footer b{color:#6e6e73;font-weight:600}
.footer hr{border:none;border-top:1px solid #d2d2d7;margin:18px 0}
