/* ========== AI场景挖掘自测系统 ========== */
:root {
  --bg: #070b18;
  --bg2: #0b1124;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #eef2ff;
  --muted: #93a0c0;
  --dim: #6b7796;
  --i1: #6366f1;
  --i2: #a855f7;
  --i3: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --sky: #38bdf8;
  --violet: #a78bfa;
  --slate: #94a3b8;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.7;
}

body { min-height: 100vh; overflow-x: hidden; }

/* ---------- 背景 ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% -10%, rgba(99,102,241,0.18), transparent 60%),
              radial-gradient(90% 70% at 100% 100%, rgba(34,211,238,0.10), transparent 60%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.b1 { width: 46vw; height: 46vw; background: #4f46e5; top: -14vw; left: -10vw; animation: drift 22s ease-in-out infinite; }
.b2 { width: 38vw; height: 38vw; background: #9333ea; top: 26vh; right: -14vw; animation: drift 27s ease-in-out infinite reverse; }
.b3 { width: 34vw; height: 34vw; background: #0891b2; bottom: -12vw; left: 22vw; animation: drift 31s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, -3vh) scale(1.12); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
}

/* ---------- 布局 ---------- */
#app { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.foot {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 20px 30px; color: var(--dim); font-size: 12.5px; letter-spacing: 0.04em;
}
.foot i { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); display: block; }
.foot b { color: var(--muted); font-weight: 600; }

/* ---------- 封面 ---------- */
.hero { padding: 13vh 0 6vh; text-align: center; animation: fadeUp 0.7s ease both; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card);
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(30px, 7.4vw, 52px);
  line-height: 1.24; font-weight: 800; letter-spacing: -0.01em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--i3), var(--i2) 55%, var(--i1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { margin: 18px auto 0; max-width: 520px; color: var(--muted); font-size: 15.5px; }
.hero-stats { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-stat {
  border: 1px solid var(--line); background: var(--card); border-radius: 14px;
  padding: 12px 16px; min-width: 96px; backdrop-filter: blur(12px);
}
.hero-stat b { display: block; font-size: 21px; font-weight: 800;
  background: linear-gradient(120deg, #fff, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat span { font-size: 11.5px; color: var(--dim); letter-spacing: 0.06em; }
.hero-note { margin-top: 26px; color: var(--dim); font-size: 12.5px; }

/* ---------- 按钮 ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  border-radius: 14px; padding: 16px 30px; color: #fff; letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--i1), var(--i2) 62%, #c026d3);
  box-shadow: 0 16px 36px -14px rgba(139, 92, 246, 0.75);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -14px rgba(139, 92, 246, 0.9); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn[disabled] { opacity: 0.32; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.lg { padding: 18px 44px; font-size: 16.5px; margin-top: 34px; }
.btn.ghost {
  background: var(--card-strong); border: 1px solid var(--line-strong);
  box-shadow: none; color: var(--text); font-weight: 600;
}
.btn.ghost:hover { box-shadow: none; background: rgba(255,255,255,0.12); }
.btn-row { display: flex; gap: 12px; margin-top: 26px; }
.btn-row .btn { flex: 1; }
.btn-row .btn.back { flex: 0 0 96px; }

/* ---------- 进度 ---------- */
.topbar { position: sticky; top: 0; z-index: 5; padding: 16px 0 12px;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(7,11,24,0)); }
.topbar .meta { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--dim); letter-spacing: 0.08em; margin-bottom: 9px; }
.topbar .meta b { color: var(--muted); font-weight: 600; }
.track { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.09); overflow: hidden; }
.track > i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--i3), var(--i2), var(--i1));
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------- 卡片与题目 ---------- */
.screen { animation: fadeUp 0.42s ease both; padding-top: 12px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.q-head { margin: 22px 0 22px; }
.q-step { font-size: 12px; letter-spacing: 0.16em; color: var(--i3); font-weight: 700; }
.q-head h2 { margin: 10px 0 0; font-size: clamp(21px, 5vw, 27px); font-weight: 800; line-height: 1.4; }
.q-head p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }

.card {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius);
  padding: 20px; backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.field input {
  width: 100%; padding: 15px 16px; font: inherit; color: var(--text);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 13px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus { outline: none; border-color: var(--i2); background: rgba(255,255,255,0.09); }
.field input::placeholder { color: #55618099; }
textarea.pain {
  width: 100%; min-height: 92px; resize: vertical; padding: 15px 16px; font: inherit;
  color: var(--text); background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  border-radius: 13px;
}
textarea.pain:focus { outline: none; border-color: var(--i2); }

.qblock { margin-bottom: 20px; }
.qblock:last-child { margin-bottom: 0; }
.qblock > h3 { margin: 0 0 11px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.qblock > h3 .num {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 7px; font-size: 11.5px;
  display: grid; place-items: center; color: #c7d2fe;
  background: rgba(99,102,241,0.2); border: 1px solid rgba(129,140,248,0.35); font-weight: 700;
}

.opts { display: grid; gap: 9px; }
.opts.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 460px) { .opts.two { grid-template-columns: 1fr; } }

.opt {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 15px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  transition: all 0.18s ease; font-size: 14.5px; line-height: 1.45;
}
.opt:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.065); }
.opt .tick {
  flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.28); position: relative; transition: all 0.18s;
}
.opt.multi .tick { border-radius: 6px; }
.opt .tick::after {
  content: ''; position: absolute; inset: 4px; border-radius: inherit;
  background: #fff; transform: scale(0); transition: transform 0.18s;
}
.opt.on { border-color: rgba(168,85,247,0.75); background: rgba(139,92,246,0.16);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.3) inset; }
.opt.on .tick { border-color: var(--i2); background: linear-gradient(130deg, var(--i2), var(--i1)); }
.opt.on .tick::after { transform: scale(1); }
.opt .sub { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.opt .txt { flex: 1; }
.opt.disabled { opacity: 0.4; pointer-events: none; }

.hint { margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.err { margin-top: 14px; color: #fda4af; font-size: 13.5px; }

.chip-note {
  display: inline-block; margin-top: 4px; padding: 3px 9px; border-radius: 7px;
  font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,0.06);
}

/* 环节卡（多选） */
.link-card { align-items: flex-start; }
.link-card .name { font-weight: 700; font-size: 15px; }
.link-card .mods { display: block; font-size: 12px; color: var(--dim); margin-top: 4px; line-height: 1.6; }

/* ---------- 加载 ---------- */
.loading { padding: 20vh 0; text-align: center; animation: fadeUp 0.4s ease both; }
.loading .ring {
  width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--i2);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--muted); font-size: 14.5px; }

/* ---------- 报告 ---------- */
.rpt-hero { padding: 30px 0 6px; text-align: center; animation: fadeUp 0.5s ease both; }
.rpt-hero .badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px;
  letter-spacing: 0.14em; color: #a5b4fc; border: 1px solid rgba(129,140,248,0.4);
  background: rgba(99,102,241,0.13);
}
.rpt-hero h2 { margin: 16px 0 6px; font-size: clamp(24px, 6vw, 34px); font-weight: 800; }
.rpt-hero .who { color: var(--muted); font-size: 14px; }

.sec { margin-top: 26px; animation: fadeUp 0.5s ease both; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px;
  letter-spacing: 0.16em; color: var(--dim); font-weight: 700; }
.sec-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.portrait { font-size: 15.5px; line-height: 1.85; }
.portrait .hl { color: #fff; font-weight: 700; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.metric { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px; text-align: center; }
.metric b { display: block; font-size: 24px; font-weight: 800; }
.metric span { font-size: 11.5px; color: var(--dim); letter-spacing: 0.05em; }

/* 四象限 */
.quad-wrap { display: grid; grid-template-columns: 1fr; gap: 14px; }
.quad { position: relative; width: 100%; aspect-ratio: 1 / 0.86; }
.quad svg { width: 100%; height: 100%; overflow: visible; }
.quad-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ql { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); border-radius: 11px; padding: 9px 11px; }
.ql i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 3px; margin-top: 6px; }
.ql b { color: var(--text); display: block; font-size: 13px; }

/* 场景卡片 */
.scn { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 20px; backdrop-filter: blur(14px); position: relative; overflow: hidden; }
.scn + .scn { margin-top: 13px; }
.scn::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--i3), var(--i2)); }
.scn .rank { position: absolute; right: 16px; top: 14px; font-size: 40px; font-weight: 800;
  color: rgba(255,255,255,0.055); line-height: 1; }
.scn .tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 7px; border: 1px solid; font-weight: 600; }
.scn h4 { margin: 0 0 12px; font-size: 18.5px; font-weight: 800; line-height: 1.45; padding-right: 44px; }
.scn dl { margin: 0; display: grid; gap: 11px; }
.scn dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; }
@media (max-width: 460px) { .scn dl > div { grid-template-columns: 1fr; gap: 3px; } }
.scn dt { font-size: 12px; color: var(--dim); letter-spacing: 0.04em; }
.scn dd { margin: 0; font-size: 14.5px; line-height: 1.7; color: #dbe3f7; }
.scn dd.bench { color: #fcd34d; }
.scn dd.step { color: #fff; font-weight: 600; }

/* 全景图 */
.mapblock { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.mapblock + .mapblock { margin-top: 12px; }
.maphead { display: flex; align-items: center; gap: 11px; padding: 16px 18px; cursor: pointer; }
.maphead .nm { font-weight: 700; font-size: 15.5px; flex: 1; }
.maphead .cnt { font-size: 12px; color: var(--dim); }
.maphead .arw { color: var(--dim); transition: transform 0.25s; font-size: 12px; }
.mapblock.open .maphead .arw { transform: rotate(90deg); }
.mapbody { display: none; padding: 0 18px 16px; }
.mapblock.open .mapbody { display: block; }
.modrow { border-top: 1px solid var(--line); padding: 13px 0 4px; }
.modrow .mname { font-size: 12.5px; color: var(--i3); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 8px; }
.modrow .mname.hl { color: #fcd34d; }
.mitem { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14px; }
.mitem i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; margin-top: 9px; background: var(--dim); }
.mitem.rec i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.mitem .mi-n { color: #e2e8f8; }
.mitem.rec .mi-n { color: #fff; font-weight: 700; }
.mitem .mi-g { display: block; font-size: 12.5px; color: var(--dim); margin-top: 1px; }
.mitem .mi-badge { font-size: 10.5px; color: var(--green); border: 1px solid rgba(52,211,153,0.4);
  border-radius: 5px; padding: 0 5px; margin-left: 6px; vertical-align: 1.5px; }

/* 提示 / 就绪度 / 行动 */
.warn { border: 1px solid rgba(251,191,36,0.3); background: rgba(251,191,36,0.07);
  border-radius: 15px; padding: 16px 18px; }
.warn + .warn { margin-top: 11px; }
.warn h5 { margin: 0 0 7px; font-size: 15px; font-weight: 700; color: #fcd34d; }
.warn p { margin: 0; font-size: 14px; color: #e7dcc2; }
.warn ul { margin: 9px 0 0; padding-left: 19px; font-size: 13.5px; color: #d9cfb8; }
.warn li { margin-bottom: 4px; }

.ready { display: flex; gap: 16px; align-items: flex-start; }
.ready .lv { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 25px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--i1), var(--i2)); }
.ready h5 { margin: 0 0 6px; font-size: 16.5px; }
.ready p { margin: 0; font-size: 14.5px; color: #d7deef; }
.ready .cond { margin-top: 9px; font-size: 12.5px; color: var(--dim); }

.acts { display: grid; gap: 11px; }
.act { border: 1px solid var(--line); background: var(--card); border-radius: 15px; padding: 16px 18px; }
.act .st { font-size: 11.5px; letter-spacing: 0.14em; color: var(--i3); font-weight: 700; }
.act h5 { margin: 7px 0 7px; font-size: 16px; }
.act p { margin: 0; font-size: 14px; color: #ccd5ea; line-height: 1.72; }

.closing { margin-top: 30px; text-align: center; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); padding: 24px 20px; }
.closing p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.closing b { color: #fff; }

/* 进入 313 实操 */
.practice-cta { margin-top: 18px; text-align: center; border: 1px solid rgba(52,211,153,0.35);
  border-radius: var(--radius); background: linear-gradient(160deg, rgba(52,211,153,0.10), rgba(56,189,248,0.06));
  padding: 22px 20px 20px; }
.practice-cta .btn.practice { margin-top: 0; width: 100%;
  background: linear-gradient(120deg, #059669, #10b981 55%, #22d3ee);
  box-shadow: 0 16px 36px -14px rgba(16,185,129,0.75); }
.practice-cta .btn.practice:hover { box-shadow: 0 22px 44px -14px rgba(16,185,129,0.9); }
.practice-cta p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.lnk { color: #a5b4fc; text-decoration: none; border-bottom: 1px dashed rgba(165,180,252,0.5); }
.lnk:hover { color: #fff; border-bottom-color: #fff; }

@media print {
  .aurora, .foot, .btn-row, .topbar, .practice-cta { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .scn, .act, .mapblock, .metric, .closing { border-color: #ddd; background: #fff; box-shadow: none; }
  .scn h4, .rpt-hero h2, .portrait .hl, .mitem .mi-n, .ready h5 { color: #111; }
  .scn dd, .act p, .portrait { color: #333; }
  .mapbody { display: block !important; }
}
