/* =====================================================================
   失业地图 · 设计系统落地（沿用 design-taste-frontend 的 token 与类名）
   - 单一系统：沿用 kit 的 --p-* token 与 .wrap/.hero/.card/.btn/.grid 等类名
   - 此处只覆写调色板（更克制、可信的数据站点配色）+ 补齐数据应用专属组件
   - 单一强调色、单一圆角族、单一按钮/卡片风格（skill rule 1）
   ===================================================================== */

:root {
  /* 调色板：界面 90–95% 中性，单一强调色（可信蓝，非 violet） */
  --p-bg: #f5f7fa;
  --p-surface: #ffffff;
  --p-ink: #161b24;
  --p-muted: #5b6573;
  --p-line: #e5e9f0;
  --line-strong: #c9d1de;
  --p-accent: #2563eb;
  --p-accent-ink: #ffffff;
  --p-action: #2563eb;
  --p-action-ink: #ffffff;
  --p-accent-soft: #eaf1fe;
  --p-danger: #dc2626;
  --p-good: #0f9d6b;

  /* 图表调色板（避开 violet，统一蓝/青/琥珀/玫红/石蓝） */
  --c1: #2563eb;
  --c2: #0ea5e9;
  --c3: #0f9d6b;
  --c4: #f59e0b;
  --c5: #e11d48;
  --c6: #475569;
  --c7: #0891b2;

  --maxw: 1240px;
}

/* 让 .wrap 用我们的更紧凑容器宽度 */
.wrap { --container: var(--maxw); }

html { scroll-behavior: smooth; }
body { background: var(--p-bg); color: var(--p-ink); }

/* 链接：统一一种 look */
a { color: var(--p-action); }
.link { color: var(--p-action); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* =====================================================================
   导航
   ===================================================================== */
.nav { background: var(--p-surface); border-bottom: 1px solid var(--p-line); }
.nav__logo { font-weight: 700; font-size: 20px; color: var(--p-ink); text-decoration: none; letter-spacing: -0.01em; }
.nav__logo b { color: var(--p-accent); }
.nav__link { color: var(--p-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__link:hover { color: var(--p-accent); }
.nav__actions .btn { margin-left: 12px; }

/* 手机菜单（自建，不依赖 kit JS） */
.nav__menu-sheet { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__menu-sheet.open {
    display: block; position: fixed; inset: var(--nav) 0 0 0; z-index: 9;
    background: var(--p-surface); padding: 24px; border-top: 1px solid var(--p-line);
  }
  .nav__menu-sheet a { display: block; padding: 14px 4px; font-size: 17px; color: var(--p-ink); text-decoration: none; border-bottom: 1px solid var(--p-line); }
  .nav__menu-sheet .btn { margin: 18px 0 0; width: 100%; text-align: center; }
}
@media (min-width: 861px) { .nav__toggle { display: none; } }

/* =====================================================================
   区块通用
   ===================================================================== */
.section { padding-top: var(--padt); padding-bottom: var(--padb); }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head .lede { color: var(--p-muted); margin: 10px 0 0; max-width: 64ch; font-size: var(--t-lead); }
.band { background: var(--p-surface); border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }

/* =====================================================================
   Hero（type-led，扁平装饰，无照片/无 shader 效果）
   ===================================================================== */
.hero { position: relative; overflow: hidden; padding-top: 84px; padding-bottom: var(--hpadb); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--p-accent-soft) 0%, rgba(234,241,254,0) 55%),
    radial-gradient(90% 70% at -5% 110%, #eafaf3 0%, rgba(234,250,243,0) 50%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero--split .hero-text { align-items: start; }
.hero--split .hero-copy { padding-top: 6px; }
/* 移动端：hero 两列占满整行，避免半宽（edge-right / hero-lines） */
@media (max-width: 1023px) {
  .hero--split .hero-copy, .hero--split .hero-visual { grid-column: 1 / -1; }
}
.hero-copy h1 { margin: 0 0 14px; max-width: 18ch; }
.hero-copy .t-lead { margin: 0; max-width: 52ch; color: var(--p-muted); }
.hero-facts { margin-top: 28px; }
.hero-facts dt { color: var(--p-muted); }
.hero-facts dd { font-size: var(--t-stat); font-weight: 700; color: var(--p-ink); }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); font-weight: 600;
  color: var(--p-accent); background: var(--p-accent-soft); border: 1px solid #d4e2fd;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* 入场（一次性，尊重 reduce-motion） */
.hero[data-enter] .hero-copy > * { opacity: 0; transform: translateY(14px); }
.hero.is-in .hero-copy > * { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero.is-in .hero-copy > *:nth-child(2) { transition-delay: .06s; }
.hero.is-in .hero-copy > *:nth-child(3) { transition-delay: .12s; }
.hero.is-in .hero-copy > *:nth-child(4) { transition-delay: .18s; }
.hero.is-in .hero-copy > *:nth-child(5) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .hero[data-enter] .hero-copy > * { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* =====================================================================
   卡片 / 悬停微动（卡片抬升 2px，按钮按下）
   ===================================================================== */
.card { background: var(--p-surface); border: 1px solid var(--p-line); }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20,27,36,.08); }
.card { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }

.grid > .card.span-6, .grid > .card.span-12 { grid-column: auto / span 6; }
.grid > .card.span-12 { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .grid > .card.span-6 { grid-column: 1 / -1; }
}

/* =====================================================================
   KPI 条
   ===================================================================== */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--card-gap); }
.kpi { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--r-lg); padding: 22px 20px; text-align: center; }
.kpi-num { font-size: var(--t-stat); font-weight: 700; color: var(--p-accent); line-height: 1; }
.kpi-label { color: var(--p-muted); font-size: var(--t-small); margin-top: 8px; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* =====================================================================
   图表
   ===================================================================== */
.chart h3 { margin: 0 0 14px; font-size: var(--t-card); }
.echart { width: 100%; height: 300px; }
.chart.wide .echart { height: 320px; }
@media (max-width: 860px) { .grid > .chart { grid-column: 1 / -1; } }

/* =====================================================================
   表单（kit 表单配方：标签在上、错误在字段下、单一状态行）
   ===================================================================== */
.report-card { max-width: 640px; margin: 0 auto; }
#report-form .field { margin-bottom: 18px; }
#report-form label.q { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
#report-form .choice { display: flex; flex-wrap: wrap; gap: 16px; }
#report-form .choice label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
#report-form select, #report-form input[type="number"] {
  width: 100%; max-width: 360px; padding: 11px 12px; font-size: 15px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; color: var(--p-ink);
}
#report-form select:focus, #report-form input:focus { outline: 2px solid var(--p-accent-soft); border-color: var(--p-accent); }
#report-form [aria-invalid="true"] { border-color: var(--p-danger) !important; }
.field__error { color: var(--p-danger); font-size: 13px; margin-top: 6px; min-height: 1px; }
.form__status { font-size: 14px; margin: 12px 0 0; min-height: 20px; }
.form__status[data-tone="err"] { color: var(--p-danger); }
.form__status[data-tone="ok"] { color: var(--p-good); }
.consent { font-size: 13px; color: var(--p-muted); display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 18px; }
.consent input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 本机回访卡片 */
.mine-card { border-color: var(--p-accent); background: var(--p-accent-soft); }
.mine-card ul { margin: 10px 0 0; padding-left: 18px; }
.mine-tip { color: var(--p-muted); font-size: 13px; margin: 10px 0 0; }

/* =====================================================================
   资讯 / 数据解读卡
   ===================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); }
.news-grid > * { grid-column: auto / span 1; }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; padding: 22px; }
.news-card .tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--p-accent); background: var(--p-accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.news-card h3 { margin: 0 0 8px; font-size: var(--t-card); line-height: 1.3; }
.news-card p { color: var(--p-muted); font-size: 14px; margin: 0 0 14px; flex: 1; }
.news-card .more { font-weight: 600; }

/* 数据解读：官方数据卡（清晰标注来源与口径） */
.stat-card { padding: 22px; }
.stat-card .big { font-size: 28px; font-weight: 700; color: var(--p-ink); line-height: 1; }
.stat-card .big small { font-size: 15px; color: var(--p-muted); font-weight: 500; }
.stat-card .label { color: var(--p-muted); font-size: 14px; margin-top: 8px; }
.stat-card .src { color: var(--p-muted); font-size: 12px; margin-top: 12px; border-top: 1px dashed var(--p-line); padding-top: 10px; }

/* FAQ 风格解读（无手风琴，直接展开） */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--r-lg); padding: 18px 20px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; }
.faq p { color: var(--p-muted); font-size: 15px; margin: 10px 0 0; }

/* =====================================================================
   页脚
   ===================================================================== */
.closing { background: var(--p-surface); border-top: 1px solid var(--p-line); padding: 56px 0 40px; }
.closing .brand-x { font-weight: 700; font-size: 20px; }
.closing .brand-x b { color: var(--p-accent); }
.closing .legal { color: var(--p-muted); font-size: 13px; margin-top: 14px; line-height: 1.7; }
.closing .legal a { color: var(--p-muted); text-decoration: underline; }
.closing .cols { display: flex; flex-wrap: wrap; gap: 40px; }
.closing .cols > div { min-width: 140px; }
.closing .cols h3 { font-size: 14px; margin: 0 0 10px; }
.closing .cols a { display: flex; align-items: center; min-height: 44px; color: var(--p-muted); text-decoration: none; font-size: 14px; padding: 2px 0; }
.closing .cols a:hover { color: var(--p-accent); }

/* 通用工具 */
.hidden { display: none !important; }
.measure { max-width: 62ch; }
.center { text-align: center; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; left: -9999px; }
@media (max-width: 640px) { .btn-row .btn { width: 100%; justify-content: center; } }
