/* ============================================================
   提示词闯关 · AI大师傅课堂版 ×「四色提示词」UI 设计系统
   ------------------------------------------------------------
   1. 品牌框架：保留 AI大师傅 官网深海蓝 #102e50 与科技蓝 #0052cc、
      顶部品牌导航、页脚及企业内训实景图。
   2. 教学视觉系统（四色提示词）：
      将课上四个核心问题映射为四种高辨识度语义色，贯穿
      首页四问胶囊 → 提示词解剖台 → 闯关练习 → 四维实验评分报告：
        ① 做什么   → 皇家蓝 --q1 (#0052cc)
        ② 给谁用   → 紫罗兰 --q2 (#7c3aed)
        ③ 有什么   → 琥珀橙 --q3 (#d97706)
        ④ 要什么样 → 翡翠绿 --q4 (#059669)
   ============================================================ */

:root {
  /* AI大师傅品牌色与墨色层级 */
  --navy: #102e50;
  --navy-deep: #0b213a;
  --blue: #0052cc;
  --blue-hover: #00439e;
  --blue-soft: #eaf2ff;
  --blue-line: #b8d3ff;
  --ink: #172b44;
  --gray: #46596e;
  --muted: #64778d;
  --line: #dfe7ef;
  --line-strong: #c8d6e5;
  --ice: #f4f7fb;
  --sky: #edf4fc;
  --paper: #ffffff;

  /* 四个问题语义色 */
  --q1: #0052cc; --q1-soft: #eaf2ff; --q1-ink: #003e99;
  --q2: #7c3aed; --q2-soft: #f3ecff; --q2-ink: #5b21b6;
  --q3: #d97706; --q3-soft: #fef6e6; --q3-ink: #92400e;
  --q4: #059669; --q4-soft: #e6f7f0; --q4-ink: #065f46;

  /* 反馈状态色（答错用温和琥珀提示，避免挫败感） */
  --ok: #059669; --ok-bg: #eafaf3; --ok-line: #a7e3cb; --ok-ink: #065f46;
  --try: #d97706; --try-bg: #fff8eb; --try-line: #f5d393; --try-ink: #7c4000;
  --bad: #c9372c; --bad-bg: #fff1ef; --bad-line: #f3bbb5;

  /* 圆角与阴影 */
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --sh-sm: 0 1px 2px rgba(16, 46, 80, .04), 0 4px 14px rgba(16, 46, 80, .05);
  --sh-md: 0 4px 12px rgba(16, 46, 80, .06), 0 16px 36px rgba(16, 46, 80, .09);
  --sh-blue: 0 8px 20px rgba(0, 82, 204, .24);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font: 16px/1.72 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#app { flex: 1; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, strong { color: var(--navy); }
h1, h2, h3 { line-height: 1.32; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgb(0 82 204 / 10%); }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { border: 0; background: none; }
:focus-visible { outline: 3px solid #008ac1; outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
p { overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- SVG 图标 ---------- */
.ic { height: 1em; width: 1em; flex: none; display: inline-block; vertical-align: -.14em; }
.ic.acc, .sum-ic, .text-link { color: var(--blue); }
.ic.mut { color: var(--muted); }
.ic.ok { color: var(--ok); }
.ic.bad { color: var(--bad); }

/* ============================================================
   品牌顶栏 & 页脚（AI大师傅）
   ============================================================ */
.site-width, .brand-inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.brand-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand-logo { display: block; flex: none; width: 186px; line-height: 0; }
.brand-logo img { width: 100%; }
.site-links, .game-links, .brand-footer nav { display: flex; align-items: center; gap: 8px; }
.game-links { margin-left: auto; order: 1; }
.site-links { order: 2; border-left: 1px solid var(--line); padding-left: 20px; gap: 16px; }
.game-links a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px;
  border-radius: 999px; white-space: nowrap; font-size: 14px; color: var(--gray); font-weight: 650;
  transition: background .15s, color .15s;
}
.game-links a:hover { color: var(--blue); background: var(--sky); }
.game-links a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.site-links a {
  display: inline-flex; align-items: center; min-height: 38px; white-space: nowrap;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.site-links a:hover, .crumb a:hover { color: var(--blue); }

.brand-footer { background: var(--navy); color: #d5e3f4; padding: 28px 0; margin-top: 24px; }
.brand-footer .site-width { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-footer strong { color: #fff; font-size: 15px; }
.brand-footer nav { gap: 22px; }
.brand-footer a { font-size: 13px; color: #c4d7ee; }
.brand-footer a:hover { color: #fff; text-decoration: underline; }

/* 面包屑 */
.crumb, .wrap { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.crumb {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 13.5px; font-weight: 600; padding-top: 20px;
}
.crumb a {
  color: var(--blue); display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); font-size: 13px;
}
.crumb a:hover { background: #dbe9ff; }
.wrap { margin-top: 14px; padding-bottom: 36px; }

/* ============================================================
   首页 · Hero 区
   ============================================================ */
#app:has(.course-hero) { background: linear-gradient(180deg, #ffffff 0%, var(--ice) 520px); }
.course-hero {
  position: relative; overflow: hidden;
  padding: 44px 0 42px;
  background:
    radial-gradient(640px 320px at 12% 0%, rgba(0, 82, 204, .08), transparent 65%),
    radial-gradient(560px 320px at 90% 100%, rgba(124, 58, 237, .07), transparent 65%),
    linear-gradient(120deg, #f8fbff 0%, #eef5fd 100%);
  border-bottom: 1px solid var(--line);
}
.hero-columns {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 52px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-size: 12.5px; font-weight: 750; letter-spacing: .06em;
  margin-bottom: 8px; text-transform: uppercase;
}
.hero-copy .eyebrow {
  padding: 4px 12px; border-radius: 999px;
  background: rgba(0, 82, 204, .09); border: 1px solid rgba(0, 82, 204, .18);
}
.hero-copy .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}
.hero-copy h1 {
  font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -.03em; line-height: 1.22;
  margin: 10px 0 14px; font-weight: 850;
}
.hero-copy h1 span {
  display: block; margin-top: 2px;
  background: linear-gradient(92deg, var(--blue) 0%, #4f46e5 55%, var(--q2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: var(--gray); font-size: 15.5px; max-width: 540px; line-height: 1.8; }

/* 四个核心问题胶囊 */
.q-chips {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.q-chips li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 7px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(16, 46, 80, .04);
  font-size: 13.5px; font-weight: 700; color: var(--navy);
}
.q-chips li b {
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; color: #fff; background: var(--qc, var(--blue));
}
.q-chips .q1 { --qc: var(--q1); }
.q-chips .q2 { --qc: var(--q2); }
.q-chips .q3 { --qc: var(--q3); }
.q-chips .q4 { --qc: var(--q4); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* 进度环 + 统计栏 */
.hero-facts {
  display: flex; align-items: center; gap: 36px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid #d6e2ef;
}
.hero-facts > div, .hero-facts .fact-progress > div { display: grid; gap: 2px; }
.hero-facts .fact-progress { display: flex; align-items: center; gap: 12px; }
.mini-ring {
  --p: 0; width: 44px; height: 44px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--blue) calc(var(--p) * 1%), #dce7f5 0);
}
.mini-ring::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #f3f8fe;
}
.mini-ring::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--blue);
}
.hero-facts strong { font-size: 22px; font-weight: 800; line-height: 1.2; }
.hero-facts small { font-size: 13.5px; font-weight: 600; color: var(--gray); }
.hero-facts span { color: var(--muted); font-size: 12.5px; }

/* ============================================================
   首页 · Hero 区（直奔主题：四个问题 + 练习前后对比）
   ============================================================ */
.home-content { padding: 38px 0 28px; }
.anatomy-legend {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.anatomy-legend li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(16, 46, 80, .09);
  box-shadow: 0 2px 8px rgba(16, 46, 80, .04);
}
.anatomy-legend li b {
  width: 24px; height: 24px; flex: none; border-radius: 7px;
  display: grid; place-items: center; margin-top: 1px;
  font-size: 12.5px; font-weight: 800; color: #fff; background: var(--qc);
}
.anatomy-legend li span { display: grid; gap: 1px; font-size: 12.5px; color: var(--gray); line-height: 1.45; }
.anatomy-legend li strong { font-size: 14px; color: var(--qink, var(--navy)); }
.anatomy-legend .q1 { --qc: var(--q1); --qbg: var(--q1-soft); --qink: var(--q1-ink); }
.anatomy-legend .q2 { --qc: var(--q2); --qbg: var(--q2-soft); --qink: var(--q2-ink); }
.anatomy-legend .q3 { --qc: var(--q3); --qbg: var(--q3-soft); --qink: var(--q3-ink); }
.anatomy-legend .q4 { --qc: var(--q4); --qbg: var(--q4-soft); --qink: var(--q4-ink); }

/* 右侧：练习前 vs 练习后 对比展示台 */
.hero-showcase {
  display: flex; flex-direction: column;
}
.showcase-before {
  padding: 15px 18px; border-radius: 15px;
  background: #fff; border: 1px solid #f1c7c3; border-left: 4px solid var(--bad);
  box-shadow: var(--sh-sm);
}
.sb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; color: var(--bad);
  margin-bottom: 6px;
}
.sb-tag::before {
  content: "✕"; width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; color: #fff; background: var(--bad);
}
.showcase-before p {
  font-size: 16.5px; font-weight: 750; color: var(--navy); margin-bottom: 3px;
}
.showcase-before small {
  display: block; font-size: 12.5px; color: var(--muted);
}
.showcase-arrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  align-self: center; margin: 10px 0; padding: 5px 14px; border-radius: 999px;
  background: var(--blue-soft); border: 1px solid var(--blue-line);
  color: var(--blue); font-size: 12.5px; font-weight: 750;
}
.showcase-arrow .ic { width: 14px; height: 14px; }

/* 深色提示词示例窗口 */
.prompt-demo {
  border-radius: 16px; overflow: hidden;
  background: #0f213c; color: #eef4ff;
  border: 1px solid #1e3a63;
  box-shadow: 0 18px 40px rgba(16, 46, 80, .20);
}
.pd-bar {
  display: flex; align-items: center; gap: 6px; padding: 11px 16px;
  background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.pd-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.pd-bar i:nth-child(2) { background: #fbbf24; }
.pd-bar i:nth-child(3) { background: #34d399; }
.pd-bar span { margin-left: 8px; font-size: 12.5px; font-weight: 650; color: #b5caea; letter-spacing: .02em; }
.pd-text { padding: 18px 20px 10px; font-size: 15.5px; line-height: 2.15; color: #e6effc; }
.hl {
  padding: 3px 7px 3px 5px; border-radius: 6px; font-weight: 650;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl::before {
  content: attr(data-n);
  display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 5px;
  border-radius: 4px; font-size: 11px; font-weight: 800; color: #fff; vertical-align: 1px; line-height: 1;
}
.hl.q1 { background: rgba(56, 139, 253, .28); color: #dcebff; box-shadow: inset 0 -2px 0 #60a5fa; }
.hl.q1::before { background: var(--q1); }
.hl.q2 { background: rgba(167, 139, 250, .26); color: #ede5ff; box-shadow: inset 0 -2px 0 #c084fc; }
.hl.q2::before { background: var(--q2); }
.hl.q3 { background: rgba(251, 191, 36, .24); color: #fff1c7; box-shadow: inset 0 -2px 0 #fbbf24; }
.hl.q3::before { background: var(--q3); }
.hl.q4 { background: rgba(52, 211, 153, .24); color: #d6faec; box-shadow: inset 0 -2px 0 #34d399; }
.hl.q4::before { background: var(--q4); }
.prompt-demo figcaption {
  padding: 4px 20px 15px; font-size: 12.5px; color: #9ab2d4;
}

/* ============================================================
   首页 · 三阶六关闯关地图（Phase Grid）
   ============================================================ */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 18px;
}
.section-head h2, .sec-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 850; }
.section-head > p { color: var(--gray); font-size: 14px; }
.section-head .eyebrow { margin-bottom: 4px; }

.phase-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.phase {
  display: flex; flex-direction: column;
  padding: 18px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.phase.phase-done { border-color: var(--ok-line); background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%); }
.phase-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--line-strong);
}
.phase-no {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 850; letter-spacing: .03em;
  background: var(--navy); color: #fff;
}
.phase:nth-child(2) .phase-no { background: var(--blue); }
.phase:nth-child(3) .phase-no { background: var(--q4); }
.phase-head > div { display: grid; gap: 1px; min-width: 0; flex: 1; }
.phase-head b { font-size: 16.5px; color: var(--navy); }
.phase-head > div span { font-size: 12.5px; color: var(--muted); }
.phase-head em {
  font-style: normal; font-size: 12px; font-weight: 750;
  padding: 3px 9px; border-radius: 999px;
  background: var(--ice); color: var(--gray);
}
.phase-done .phase-head em { background: var(--ok-bg); color: var(--ok-ink); }

.phase-levels {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; flex: 1;
}
.phase-levels > li { display: flex; }

.level-card {
  width: 100%; display: flex; align-items: flex-start; gap: 13px;
  padding: 16px; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--line);
  text-align: left; transition: transform .15s ease, box-shadow .2s, border-color .2s;
}
.level-card:not(.locked):hover {
  border-color: #79a8e8; box-shadow: var(--sh-md); transform: translateY(-2px);
}
.level-card:not(.locked):active { transform: scale(.985); }

.node {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; position: relative;
  background: var(--blue-soft); color: var(--blue);
}
.node .ic { width: 22px; height: 22px; }

.level-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.level-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.level-no { font-size: 12px; font-weight: 750; color: var(--muted); }
.level-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
}
.level-status .ic { width: 12px; height: 12px; }
.level-copy strong { font-size: 16.5px; font-weight: 800; line-height: 1.4; color: var(--navy); }
.level-sub { font-size: 13px; color: var(--gray); line-height: 1.5; }

.level-go {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 8px; padding: 6px 12px; border-radius: 8px;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: var(--sh-blue);
}
.level-go .ic { width: 14px; height: 14px; }
.level-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.level-badge .ic { width: 14px; height: 14px; color: var(--q3); }

/* 关卡状态：当前 / 已完成 / 未解锁 */
.level-card.current {
  border-color: var(--blue);
  background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(0, 82, 204, .12);
}
.level-card.current .node {
  background: linear-gradient(140deg, #2678ff, var(--blue)); color: #fff;
  box-shadow: 0 6px 14px rgba(0, 82, 204, .28);
}
.level-card.done { border-color: #b7e4cf; }
.level-card.done .node { background: var(--ok-bg); color: var(--ok); }
.level-card.done .level-status { background: var(--ok-bg); color: var(--ok-ink); }
.level-card.done .level-badge { color: var(--ok-ink); }
.level-card.done .level-badge .ic { color: var(--ok); }

.level-card.locked {
  background: #f8fafc; border: 1.5px dashed var(--line-strong);
  cursor: not-allowed; opacity: .82;
}
.level-card.locked .node { background: #eaeff5; color: #7b8ea3; }
.level-card.locked .level-status { background: #eaeff5; color: var(--muted); }
.level-card.locked strong { color: var(--gray); }

/* ============================================================
   随身工具 · 纪念卡入口 · 讲师提示
   ============================================================ */
.sec-title { margin: 36px 0 14px; }
.tool-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; box-shadow: var(--sh-sm);
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.tool-card:hover { border-color: #80ade8; box-shadow: var(--sh-md); transform: translateY(-1px); }
.tool-card .ico {
  grid-row: span 2; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--q3-soft); color: var(--q3-ink);
}
.tool-card + .tool-card .ico { background: var(--q2-soft); color: var(--q2-ink); }
.tool-card .ico .ic { width: 23px; height: 23px; color: inherit; }
.tool-card h3 { font-size: 17.5px; font-weight: 800; }
.tool-card p { color: var(--gray); font-size: 13.5px; margin-top: 2px; }

.ico, .lesson-icon, .medal, .seal {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 12px; background: var(--blue-soft); color: var(--blue);
}
.ico { width: 42px; height: 42px; }
.ico .ic, .lesson-icon .ic { height: 24px; width: 24px; }

.certificate-link {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 22px; margin: 16px 0; font-weight: 750; color: var(--navy);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, var(--q1), var(--q2), var(--q3), var(--q4)) border-box;
  border: 1.5px solid transparent !important;
  box-shadow: var(--sh-sm);
  transition: transform .15s, box-shadow .2s;
}
.certificate-link:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.certificate-link .ic:first-child {
  width: 38px; height: 38px; padding: 8px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue);
}
.certificate-link .ic:last-child { margin-left: auto; }

/* ============================================================
   通用卡片 · 按钮 · 折叠框
   ============================================================ */
.card, .cert {
  padding: 24px 26px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: #fff;
  box-shadow: var(--sh-sm); margin: 14px 0;
}
.card h2, .lesson-heading h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 850; }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 .ic { width: 20px; height: 20px; }
.card h4 { margin: 16px 0 6px; font-size: 14.5px; font-weight: 750; color: var(--navy); }
.card > p, .card li { color: var(--gray); }
.card > .eyebrow { color: var(--blue); }
.card > .btn:not(:first-child) { margin-top: 14px; }
.card ul, .card ol { margin: 12px 0; padding-left: 22px; }
li + li { margin-top: 5px; }
.sub, .fine, .sample-label, .footer-note { color: var(--muted); font-size: 13px; }
.fine, .footer-note { margin-top: 10px; }

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  text-align: center; min-height: 48px; padding: 11px 20px;
  border: 1.5px solid transparent; border-radius: 12px;
  font-size: 15px; font-weight: 700; line-height: 1.4;
  transition: transform .15s ease, background .18s, border-color .18s, box-shadow .18s;
}
.btn:active { transform: scale(.98); }
.btn.primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: var(--sh-blue); }
.btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn.ghost { background: #fff; color: var(--blue); border-color: #b4cae3; }
.btn.ghost:hover { background: var(--sky); border-color: #84aee0; }
.btn.danger { background: #fff; color: var(--bad); border-color: #e4b4af; }
.btn .ic { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn-row .btn { flex: 1 1 150px; }

.text-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; }
.text-link:hover { text-decoration: underline; }

details.card { padding-block: 12px; }
details.card[open] { padding-bottom: 22px; }
summary {
  display: flex; align-items: center; position: relative; min-height: 44px;
  gap: 8px; padding: 7px 28px 7px 0; line-height: 1.55;
  font-weight: 750; color: var(--navy); list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid #65809e; border-bottom: 2px solid #65809e;
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
details[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
details[open] > summary { margin-bottom: 8px; }
summary small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.sum-ic {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.sum-ic .ic { width: 17px; height: 17px; }

.teacher { background: #f9fbfe; }
.teacher p + p, .reset-box p + p { margin-top: 8px; }
.reset-box {
  max-width: 620px; margin: 18px auto 0; padding-top: 6px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.reset-box .btn { min-height: 40px; margin: 8px 6px 0 0; font-size: 13px; }
.save-status, .footer-note { text-align: center; }
.save-status {
  display: flex; width: max-content; max-width: 100%; margin: 26px auto 6px;
  align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px;
  font-size: 12.5px; color: var(--gray); background: #fff; border: 1px solid var(--line);
}
.save-status .ic { width: 14px; height: 14px; }
.save-status.warn { color: var(--bad); border-color: var(--bad-line); background: var(--bad-bg); }
.footer-note { margin: 4px auto 0; line-height: 1.65; }

/* ============================================================
   关卡内页 · 标题 · 三步进度条 · 任务材料卡
   ============================================================ */
.lesson-heading { display: flex; align-items: center; gap: 16px; padding: 6px 0 18px; }
.lesson-heading .eyebrow { margin-bottom: 3px; }
.lesson-heading p:last-child { color: var(--gray); font-size: 14.5px; margin-top: 3px; }
.lesson-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(140deg, #2678ff, var(--blue)); color: #fff;
  box-shadow: var(--sh-blue);
}
.lesson-icon .ic { width: 28px; height: 28px; }

/* 三步连线进度条 */
.steps {
  display: flex; align-items: center; margin-bottom: 16px;
  padding: 11px 16px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.steps span {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.steps span:last-child { flex: 0 0 auto; }
.steps span:not(:last-child)::after {
  content: ""; flex: 1; height: 2px; min-width: 12px; margin: 0 10px;
  border-radius: 2px; background: var(--line);
}
.steps i {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-style: normal; font-size: 12.5px; font-weight: 800;
  background: var(--ice); color: var(--muted); border: 1px solid var(--line-strong);
}
.steps i .ic { width: 14px; height: 14px; }
.steps .active { color: var(--navy); }
.steps .active i {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.steps .done { color: var(--ok-ink); }
.steps .done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .done::after { background: var(--ok-line) !important; }

/* 任务材料卡（案头便签风格） */
.scene {
  background: #fffcf5; border: 1.5px dashed #e6c67c; box-shadow: none;
}
.scene summary .ic { color: var(--q3); }
.scene .unknown {
  padding: 10px 13px; margin-top: 10px; border-radius: 10px;
  background: var(--q3-soft); border-left: 3px solid var(--q3);
  color: var(--q3-ink); font-size: 14px;
}

/* 第4关：七要素对照桥 */
.bridge { border-color: #c5d9f5; background: #f5f9ff; }
.bridge-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0; border-top: 1px dashed #d1e1f6; font-size: 14px;
}
.bridge-row:first-of-type { border-top: 0; }
.bridge-row b { flex: 0 0 66px; color: var(--blue); font-weight: 750; }

/* ============================================================
   关卡练习控件：对比卡 · 单选 · 分类 · 找错 · 写作
   ============================================================ */
.comparison, .exp-dimensions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.comparison { margin: 16px 0; }
.comparison > div {
  padding: 15px 17px; border-radius: 14px;
  background: #fff6f5; border: 1px solid #f3c6c2; color: var(--ink);
}
.comparison > div:last-child {
  background: #f1fbf6; border-color: #b2e2cb;
}
.compare-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; color: var(--bad); margin-bottom: 8px;
}
.compare-label::before {
  content: "✕"; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; color: #fff; background: var(--bad);
}
.compare-label.better { color: var(--ok-ink); }
.compare-label.better::before { content: "✓"; background: var(--ok); }

/* 单选题（A/B/C 编号） */
.choice-list { display: grid; gap: 10px; margin-top: 14px; counter-reset: opt; }
.choice-btn {
  counter-increment: opt;
  width: 100%; min-height: 54px; padding: 13px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1.5px solid #cbd7e6; border-radius: 12px;
  text-align: left; font-size: 15.5px; line-height: 1.6;
  transition: border-color .15s, background .15s, transform .12s;
}
.choice-btn::before {
  content: counter(opt, upper-alpha);
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center; margin-top: 1px;
  font-size: 13px; font-weight: 800; background: var(--ice); color: var(--gray);
}
.choice-btn:hover { border-color: #84aee0; background: #f8fbff; }
.choice-btn:active { transform: scale(.99); }
.choice-btn.correct { border-color: var(--ok); background: var(--ok-bg); color: var(--ok-ink); }
.choice-btn.correct::before { content: "✓"; background: var(--ok); color: #fff; }
.choice-btn.wrong { border-color: var(--try); background: var(--try-bg); color: var(--try-ink); }
.choice-btn.wrong::before { content: "!"; background: var(--try); color: #fff; }

/* 分类题（第2关） */
.sort-list, .claim-list { display: grid; gap: 10px; margin-bottom: 16px; }
.sort-row {
  display: grid; grid-template-columns: 1fr 164px; align-items: center; gap: 14px;
  padding: 12px 15px; border-radius: 12px;
  background: var(--ice); border: 1px solid var(--line);
}
.sort-row label { font-size: 15px; color: var(--ink); font-weight: 550; }
select {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; padding: 10px 34px 10px 12px;
  border: 1.5px solid #b6c7d9; border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346596e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 15px;
  color: var(--ink); font: 650 15px/1.4 var(--font); cursor: pointer;
}
select:has(option[value="known"]:checked) { border-color: var(--q4); background-color: var(--q4-soft); color: var(--q4-ink); }
select:has(option[value="unknown"]:checked) { border-color: var(--q3); background-color: var(--q3-soft); color: var(--q3-ink); }
select:has(option[value="irrelevant"]:checked) { border-color: #94a3b8; background-color: #f1f5f9; color: #475569; }

/* 多选复选框（第5关找错 & 第3步自检） */
.check-label {
  width: 100%; min-height: 50px; padding: 13px 15px; margin: 8px 0;
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1.5px solid #cbd7e6; border-radius: 12px;
  text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.check-label:hover { border-color: #84aee0; background: #f8fbff; }
.check-label input {
  flex: none; width: 20px; height: 20px; margin-top: 3px;
  accent-color: var(--blue); cursor: pointer;
}
.check-label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

/* 第5关：AI 教学示例气泡 */
.sample-label {
  display: inline-block; margin: 6px 0 10px; padding: 3px 10px;
  border-radius: 999px; background: var(--q3-soft); color: var(--q3-ink);
  font-size: 12px; font-weight: 700;
}
.output {
  position: relative; margin: 0 0 18px 46px; padding: 15px 18px;
  background: var(--ice); border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px; color: var(--ink);
}
.output::before {
  content: "AI"; position: absolute; left: -46px; top: 0;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 850; color: #fff; background: var(--navy);
}

/* 自由写作输入框 & 草稿预览 */
.field { margin: 18px 0; }
.field label { display: block; color: var(--navy); font-size: 15px; font-weight: 750; margin-bottom: 7px; }
.field textarea, .field input {
  display: block; width: 100%; min-width: 0; padding: 12px 14px;
  border: 1.5px solid #b6c7d9; border-radius: 12px;
  background: #fff; color: var(--ink); font: 16px/1.65 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 98px; }
.field textarea:focus, .field input:focus, select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 82, 204, .12);
}
.field textarea[aria-invalid="true"] { border-color: var(--try); box-shadow: 0 0 0 4px rgba(217, 119, 6, .14); }

.draft-preview {
  padding: 14px 16px; margin: 6px 0 16px;
  background: var(--ice); border: 1px solid var(--line);
  border-left: 4px solid var(--blue); border-radius: 10px; color: var(--ink);
}

/* 提示折叠盒 */
.hint-box {
  padding: 2px 14px; margin-top: 12px;
  border-radius: 12px; background: var(--ice); border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.hint-box[open] { background: #fff; padding-bottom: 14px; }
.hint-box summary { color: var(--blue); font-size: 14.5px; }
.hint-box p { font-size: 14px; }
.hint-box .btn { margin-block: 8px; }

/* 反馈横幅 */
.feedback {
  display: none; position: relative;
  padding: 13px 16px 13px 46px; margin-top: 14px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: 14.5px; line-height: 1.65; scroll-margin: 90px;
}
.feedback.show { display: block; }
.feedback::before {
  position: absolute; left: 14px; top: 13px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 850; color: #fff;
}
.feedback.ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); }
.feedback.ok::before { content: "✓"; background: var(--ok); }
.feedback.no { border-color: var(--try-line); background: var(--try-bg); color: var(--try-ink); }
.feedback.no::before { content: "!"; background: var(--try); }

/* 提示词思路核对信号 */
.signal-intro { padding: 13px 15px; margin: 12px 0; border-radius: 12px; background: var(--sky); font-size: 14px; }
.signal { padding: 15px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; overflow-wrap: anywhere; }
.signal p { color: var(--gray); font-size: 14px; margin-top: 6px; }
.signal-tag {
  font-size: 12px; font-weight: 650; color: var(--blue);
  background: var(--blue-soft); padding: 2px 8px; border-radius: 999px; margin-left: 8px;
}

/* ============================================================
   我的 AI 实验 · 四色环形分 & 四维报告
   ============================================================ */
.exp-task-nav { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 14px; }
.exp-task-nav .eyebrow { flex:1 1 180px; min-width:0; margin:0; overflow-wrap:anywhere; }
.exp-task-select select { width:100%; min-width:0; max-width:100%; text-overflow:ellipsis; }
.exp-score-head {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: 18px 0 16px; padding: 20px 22px;
  border-radius: 16px; background: linear-gradient(120deg, #f3f8ff 0%, #f9f6ff 100%);
  border: 1px solid #d5e3f7;
}
.exp-ring {
  --p: 0; width: 108px; height: 108px; border-radius: 50%; flex: none;
  position: relative; display: grid; place-items: center;
  background: conic-gradient(
    var(--q1) 0 calc(var(--p) * .25%),
    var(--q2) 0 calc(var(--p) * .50%),
    var(--q3) 0 calc(var(--p) * .75%),
    var(--q4) 0 calc(var(--p) * 1%),
    #dce6f4 0
  );
}
.exp-ring::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff;
}
.exp-total {
  position: relative; display: flex; flex-direction: column; align-items: center;
  color: var(--navy); font-size: 32px; font-weight: 850; line-height: 1;
}
.exp-total small { margin-top: 5px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.exp-score-copy { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; flex: 1; }
.exp-score-label { font-size: 16px; font-weight: 800; color: var(--navy); }
.exp-score-note { font-size: 13.5px; color: var(--gray); }
.exp-delta {
  display: inline-flex; padding: 3px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 750; background: var(--blue-soft); color: var(--blue);
}
.exp-delta.up { background: var(--ok-bg); color: var(--ok-ink); }
.exp-delta.down { background: var(--bad-bg); color: var(--bad); }

.exp-dimension {
  --c: var(--q1); --cs: var(--q1-soft); --ci: var(--q1-ink);
  position: relative; overflow: hidden;
  padding: 16px 16px 16px 20px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff; overflow-wrap: anywhere;
}
.exp-dimension:nth-child(2) { --c: var(--q2); --cs: var(--q2-soft); --ci: var(--q2-ink); }
.exp-dimension:nth-child(3) { --c: var(--q3); --cs: var(--q3-soft); --ci: var(--q3-ink); }
.exp-dimension:nth-child(4) { --c: var(--q4); --cs: var(--q4-soft); --ci: var(--q4-ink); }
.exp-dimension::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c);
}
.exp-dimension-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.exp-dimension-head span { color: var(--ci); font-size: 14px; font-weight: 800; }
.exp-bar {
  height: 6px; margin: 8px 0 10px; border-radius: 999px;
  background: #edf1f7; overflow: hidden;
}
.exp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.exp-evidence {
  margin: 8px 0 !important; padding: 7px 11px; border-radius: 8px;
  background: var(--cs); color: var(--ink) !important; font-size: 13.5px;
}
.exp-dimension p { color: var(--gray); font-size: 14px; }
.exp-history { overflow-wrap: anywhere; }

/* ============================================================
   单关完成卡 & 六关纪念卡
   ============================================================ */
.completion, .cert { text-align: center; }
.completion { padding: 34px 24px 28px; }
.medal, .seal {
  display: flex; width: 84px; height: 84px; border-radius: 50%; margin: 4px auto 14px;
  background: linear-gradient(140deg, #2678ff, var(--blue) 60%, var(--navy));
  color: #fff; box-shadow: 0 0 0 8px var(--blue-soft), var(--sh-blue);
}
.medal .ic, .seal .ic { width: 38px; height: 38px; }
.medal:has(.ic.mut) { background: var(--ice); box-shadow: none; }
.medal-track {
  display: flex; justify-content: center; gap: 6px; margin: 4px auto 14px;
}
.medal-track i {
  width: 22px; height: 6px; border-radius: 999px; background: #dce6f2;
}
.medal-track i.on { background: var(--ok); }

.cert {
  position: relative; overflow: hidden;
  border: 1.5px solid #9abbe6; padding: 38px 26px 32px;
  box-shadow: var(--sh-md);
}
.cert::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--q1), var(--q2), var(--q3), var(--q4));
}
.cert-name {
  display: inline-block; min-width: 200px; margin: 14px auto 6px; padding: 0 16px 6px;
  color: var(--blue); font-size: 30px; font-weight: 850;
  border-bottom: 2px solid var(--navy);
}
.cert-meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.badges span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--blue); background: var(--sky); font-size: 13px; font-weight: 700;
  padding: 9px 8px; border-radius: 10px;
}

/* Toast */
.toast {
  position: fixed; bottom: 30px; z-index: 60; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); padding: 10px 18px;
  border-radius: 10px; color: #fff; background: var(--navy);
  box-shadow: var(--sh-md); opacity: 0; pointer-events: none; transition: opacity .18s;
}
.toast.show { opacity: 1; }

/* ============================================================
   互动教学增强组件（AI追问模拟器 · 结构起手式 · 实时排雷与指示灯 · 双模式生成台）
   ============================================================ */
.hero-guide-tip {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; padding: 11px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .88); border: 1px dashed #a8c7f0;
  font-size: 13.5px; color: var(--gray); line-height: 1.55;
}
.hero-guide-tip .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--q3); }
.hero-guide-tip strong { color: var(--navy); }

/* 第2关：AI 引导追问体验台 */
.ai-guide-box {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border: 1.5px solid #bed6f7;
}
.ag-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.ag-copy-btn { min-height: 38px; padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.ag-chat {
  display: grid; gap: 10px; margin: 14px 0;
  padding: 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.ag-turn { display: none; gap: 10px; }
.ag-turn.show { display: grid; }
.ag-bubble {
  padding: 11px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.6;
}
.ag-bubble.user {
  background: var(--blue-soft); border: 1px solid #c8dfff; color: var(--navy);
  margin-left: 24px; border-top-right-radius: 4px;
}
.ag-bubble.ai {
  background: var(--q2-soft); border: 1px solid #dfd0fc; color: var(--ink);
  margin-right: 24px; border-top-left-radius: 4px;
}
.ag-who {
  display: block; font-size: 11.5px; font-weight: 750; color: var(--muted); margin-bottom: 3px;
}
.ag-bubble.ai .ag-who { color: var(--q2-ink); }
.ag-bubble.user .ag-who { color: var(--q1-ink); }
.ag-done {
  padding: 10px 13px; border-radius: 10px;
  background: var(--ok-bg); border: 1px solid var(--ok-line);
  color: var(--ok-ink); font-size: 13.5px; font-weight: 700; text-align: center;
}
.ag-actions { display: flex; justify-content: center; margin-top: 8px; }

/* 结构起手式积木 & 第4关一键拼装栏 */
.scaffold-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; margin: 12px 0 4px; border-radius: 14px;
  background: linear-gradient(120deg, #eef5ff 0%, #f7f3ff 100%);
  border: 1px solid #c6daf7;
}
.scaffold-copy { display: grid; gap: 2px; flex: 1 1 240px; }
.scaffold-copy strong { font-size: 14.5px; color: var(--navy); }
.scaffold-copy span { font-size: 13px; color: var(--gray); }
.scaffold-bar .btn { min-height: 40px; padding: 8px 14px; font-size: 13.5px; }

.starter-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 8px;
}
.starter-label { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--blue-soft); border: 1px solid #bfd7fa;
  color: var(--q1-ink); font-size: 12.5px; font-weight: 700;
  transition: background .15s, transform .12s;
}
.chip-btn:hover { background: #dbeaff; }
.chip-btn:active { transform: scale(.97); }

/* 实时教练面板（精确化排雷 + 四色结构指示灯） */
.live-coach {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: #f9fbfe; border: 1px solid var(--line);
}
.lc-vague {
  display: grid; gap: 3px; padding: 10px 13px; border-radius: 10px;
  font-size: 13.5px; margin-bottom: 12px;
}
.lc-vague span { font-weight: 800; }
.lc-vague p { margin: 0; font-size: 13px; color: inherit; opacity: .9; }
.lc-vague.idle { background: #fff; border: 1px dashed var(--line-strong); color: var(--muted); }
.lc-vague.warn { background: var(--try-bg); border: 1px solid var(--try-line); color: var(--try-ink); }
.lc-vague.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); }

.lc-lights {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px;
}
.lc-lights.single { grid-template-columns: 1fr; }
.lc-light {
  --c: var(--q1); --cs: var(--q1-soft); --ci: var(--q1-ink);
  padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  border-left: 3.5px solid #cbd5e1;
  transition: border-color .2s, background .2s;
}
.lc-light.q2 { --c: var(--q2); --cs: var(--q2-soft); --ci: var(--q2-ink); }
.lc-light.q3 { --c: var(--q3); --cs: var(--q3-soft); --ci: var(--q3-ink); }
.lc-light.q4 { --c: var(--q4); --cs: var(--q4-soft); --ci: var(--q4-ink); }
.lc-light.focus { border-color: #cbd5e1; }
.lc-light.on { border-left-color: var(--c); background: var(--cs); }
.lc-light-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; }
.lc-light-top b { font-size: 13px; color: var(--navy); }
.lc-light.on .lc-light-top b { color: var(--ci); }
.lc-light-top span {
  font-size: 11px; font-weight: 750; padding: 1px 7px; border-radius: 999px;
  background: var(--ice); color: var(--muted);
}
.lc-light.on .lc-light-top span { background: rgba(255, 255, 255, .85); color: var(--ci); }
.lc-light p { margin: 0; font-size: 12px; color: var(--gray); line-height: 1.45; overflow-wrap: anywhere; }

/* 第6关：双模式提示词生成台 */
.dual-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  margin-top: 18px;
}
.dual-card {
  display: flex; flex-direction: column;
  padding: 16px; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--line);
}
.dual-card.mode-a { border-color: #b7d2fb; background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 45%); }
.dual-card.mode-b { border-color: #d8c4fb; background: linear-gradient(180deg, #faf6ff 0%, #ffffff 45%); }
.dual-head h4 { margin: 6px 0 3px; font-size: 16px; color: var(--navy); }
.dual-head p { margin: 0; font-size: 12.5px; color: var(--gray); }
.dual-tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
}
.dual-tag.q1 { background: var(--q1-soft); color: var(--q1-ink); }
.dual-tag.q2 { background: var(--q2-soft); color: var(--q2-ink); }
.dual-pre {
  flex: 1; margin: 12px 0 4px; padding: 12px; border-radius: 10px;
  background: #0f213c; color: #e6effc;
  font: 13px/1.65 var(--font); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ============================================================
   响应式适配（平板 / 手机）
   ============================================================ */
@media (max-width: 960px) {
  .hero-columns, .prompt-anatomy { grid-template-columns: 1fr; gap: 26px; }
  .phase-grid { grid-template-columns: 1fr; gap: 14px; }
  .phase-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-inner { gap: 18px; }
  .brand-logo { width: 160px; }
  .site-links { padding-left: 14px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 700px) {
  .site-width, .brand-inner, .wrap, .crumb { width: calc(100% - 32px); }
  .brand-header { position: static; }
  .brand-inner { flex-wrap: wrap; min-height: 0; gap: 0; }
  .brand-logo { width: 148px; margin: 10px 0; }
  .site-links { order: 1; margin-left: auto; padding: 0; gap: 12px; border: 0; }
  .site-links a { font-size: 12px; }
  .game-links {
    flex: 1 0 100%; order: 2; border-top: 1px solid var(--line);
    padding: 4px 0; gap: 6px; justify-content: space-between;
  }
  .game-links a { flex: 1; justify-content: center; min-height: 36px; font-size: 13px; padding: 4px 8px; }
  .course-hero { padding: 26px 0; }
  .hero-copy h1 { margin: 8px 0 12px; font-size: 32px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { margin-top: 18px; }
  .hero-facts { gap: 28px; margin-top: 18px; padding-top: 14px; }
  .classroom-photo img { aspect-ratio: 2.2; object-position: 50% 56%; }
  .classroom-photo figcaption { padding: 10px 14px; }
  .classroom-photo figcaption strong { font-size: 13.5px; }
  .home-content { padding: 26px 0 22px; }
  .prompt-anatomy { padding: 20px 18px; margin-bottom: 28px; gap: 18px; }
  .pd-text { padding: 14px 15px 8px; font-size: 14.5px; line-height: 2.05; }
  .prompt-demo figcaption { padding: 4px 15px 12px; }
  .phase-levels { grid-template-columns: 1fr; }
  .brand-footer .site-width { align-items: flex-start; flex-direction: column; }
  .brand-footer nav { gap: 18px; }
  .card, .cert { padding: 18px 17px; }
  .crumb { padding-top: 14px; }
  .wrap { margin-top: 12px; }
  .card h3 { font-size: 18px; }
}

@media (max-width: 520px) {
  .q-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-row, .comparison, .exp-dimensions, .anatomy-legend, .lc-lights, .dual-cards { grid-template-columns: 1fr; }
  .tool-row { gap: 10px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-actions .btn { padding: 10px 8px; font-size: 14px; }
  .sort-row { grid-template-columns: 1fr; gap: 8px; }
  .btn-row .btn { min-width: 0; flex-basis: 112px; padding: 10px 12px; font-size: 14px; }
  .steps { padding: 10px 12px; }
  .steps span { font-size: 12.5px; gap: 5px; }
  .steps span:not(:last-child)::after { margin: 0 6px; min-width: 8px; }
  .lesson-heading { gap: 12px; }
  .lesson-icon { width: 48px; height: 48px; border-radius: 13px; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp-score-head { padding: 16px; gap: 16px; }
  .exp-ring { width: 92px; height: 92px; }
  .exp-total { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .brand-header, .brand-footer, .crumb, .btn-row, .page-start, .footer-note, .save-status { display: none; }
  body { background: #fff; }
  .cert { box-shadow: none; margin-top: 0; }
}
