:root {
  --bg: #fbf7f4;
  --bg2: #ffffff;
  --ink: #221a18;
  --ink2: #4a3e3a;
  --muted: #8a7d78;
  --line: #ebe2dc;
  --brand: #6b2b34;
  --brand-d: #4e1d24;
  --brand-l: #c98d92;
  --accent: #c9793f;
  --green: #16a34a;
  --red: #e5484d;
  --card: #ffffff;
  --shadow: 0 2px 8px rgba(46,72,63,.06), 0 12px 32px rgba(46,72,63,.07);
  --shadow-sm: 0 1px 3px rgba(46,72,63,.07);
  --r: 18px;
}

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

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

body { overflow-x: hidden; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 720px; margin: 0 auto; padding: 0 20px; }

button { font-family: inherit; cursor: pointer; border: none; }

/* ───── 顶栏 ───── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; position: sticky; top: 0; z-index: 30;
  background: rgba(250,247,242,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(232,226,216,.8);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, #8e3a42 100%);
  color: #fff; font-size: 15px; box-shadow: 0 4px 12px rgba(107,43,52,.32);
}
.brand-txt { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; margin-top: -3px; }
.toplink {
  font-size: 13px; color: var(--ink2); text-decoration: none;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}

/* ───── Hero ───── */
.hero { padding: 30px 0 8px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -60px -40px auto -40px; height: 320px;
  background: radial-gradient(circle at 50% 0%, rgba(127,179,163,.22), transparent 68%);
  pointer-events: none; z-index: -1;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--brand-d); font-weight: 500;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(107,43,52,.08);
  border: 1px solid rgba(107,43,52,.14);
}
h1.hero-title {
  font-size: 34px; line-height: 1.28; letter-spacing: -.6px; font-weight: 700;
  margin: 18px 0 14px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(115deg, #b8552a 5%, #d9812f 55%, #c9793f 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 15px; color: var(--muted); margin: 0 auto 26px; max-width: 400px; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; max-width: 330px; height: 54px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, #8e3a42 100%);
  color: #fff; font-size: 17px; font-weight: 600; letter-spacing: .3px;
  box-shadow: 0 10px 26px rgba(107,43,52,.34);
  transition: transform .16s ease, box-shadow .16s ease;
}
.cta:active { transform: scale(.975); box-shadow: 0 6px 16px rgba(107,43,52,.3); }
.cta:disabled {
  background: #ece6da; color: #a9a294; box-shadow: none;
  transform: none; cursor: not-allowed;
}
.cta.ghost {
  background: #fff; color: var(--brand-d); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.cta-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ───── 指标条 ───── */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 28px 0 6px;
}
.metric {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 6px; text-align: center; box-shadow: var(--shadow-sm);
}
.metric b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.metric span { font-size: 11px; color: var(--muted); }

/* ───── 区块 ───── */
.section { margin-top: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
h2.sec-title { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -.3px; }
.sec-note { font-size: 12px; color: var(--muted); }

.dims { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dim {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; box-shadow: var(--shadow-sm);
}
.dim-i { font-size: 17px; }
.dim-n { font-size: 14px; font-weight: 600; margin: 6px 0 2px; }
.dim-d { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* 交付物预览 */
.deliver { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.deliver-row { display: flex; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.deliver-row:last-child { border-bottom: none; }
.deliver-i {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(107,43,52,.09); font-size: 16px;
}
.deliver-t { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.deliver-d { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 13px 15px; box-shadow: var(--shadow-sm);
}
.faq summary { font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 17px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { font-size: 13px; color: var(--ink2); margin: 9px 0 0; line-height: 1.7; }

.footer { text-align: center; padding: 40px 20px 34px; color: var(--muted); font-size: 11.5px; line-height: 1.9; }
.footer a { color: var(--muted); }

/* ───── 弹窗 ───── */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(27,33,30,.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.modal-mask.on { display: flex; }
.modal {
  width: 100%; max-width: 340px; background: #fff; border-radius: 22px;
  padding: 26px 22px 20px; text-align: center;
  box-shadow: 0 24px 60px rgba(27,33,30,.22);
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(107,43,52,.09); color: var(--brand);
}
.modal h3 { font-size: 19px; margin: 0 0 5px; letter-spacing: -.3px; }
.modal p.sub { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.code-input {
  width: 100%; height: 58px; border-radius: 13px; text-align: center;
  border: 1.5px solid var(--line); background: #fdfbf7; font-size: 23px;
  font-weight: 700; letter-spacing: 6px; text-indent: 6px; color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; outline: none;
  transition: border-color .15s, background .15s;
}
.code-input:focus { border-color: var(--brand); background: #fff; }
.code-input::placeholder { letter-spacing: 1px; font-size: 14px; font-weight: 400; color: #b6b0a4; }
.code-hint { font-size: 11.5px; color: var(--muted); margin: 8px 0 16px; text-align: left; background: #f8f5ee; border-radius: 10px; padding: 10px 12px; line-height: 1.7; }
.modal-btns { display: flex; gap: 10px; }
.btn-half {
  flex: 1; height: 46px; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: #f0ece3; color: var(--ink2);
}
.btn-half.primary { background: linear-gradient(135deg, var(--brand), #8e3a42); color: #fff; box-shadow: 0 8px 18px rgba(107,43,52,.3); }
.btn-half.primary:disabled { opacity: .45; box-shadow: none; }
.modal-err { color: var(--red); font-size: 12.5px; margin: -6px 0 12px; min-height: 18px; }

/* ───── 答题 ───── */
.quiz-head { position: sticky; top: 0; z-index: 20; background: rgba(250,247,242,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.quiz-head-in { max-width: 560px; margin: 0 auto; padding: 12px 20px 10px; }
.quiz-top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.qbtn { width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink2); font-size: 14px; }
.qbtn:disabled { opacity: .35; }
.qcount { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand-d); }
.progress { height: 4px; border-radius: 999px; background: #ebe2dc; overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #c98d92); transition: width .3s cubic-bezier(.4, 0, .2, 1); }

.qbody { padding: 22px 0 130px; }
.qtag {
  display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--brand-d);
  background: rgba(107,43,52,.09); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.qtag.obj { color: #b45309; background: rgba(245, 158, 11, .12); }
.qtitle { font-size: 22px; font-weight: 700; line-height: 1.42; letter-spacing: -.4px; margin: 0 0 10px; }
.qscene {
  font-size: 13.5px; color: var(--muted); background: #fff; border-left: 3px solid var(--brand-l);
  border-radius: 0 10px 10px 0; padding: 10px 13px; margin: 0 0 20px; line-height: 1.7;
}
.opts { display: grid; gap: 9px; }
.opt {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 14px 15px; border-radius: 14px; background: #fff;
  border: 1.5px solid var(--line); font-size: 14.5px; color: var(--ink); line-height: 1.5;
  transition: border-color .14s, background .14s, transform .1s;
  box-shadow: var(--shadow-sm);
}
.opt:active { transform: scale(.99); }
.opt .k {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: #f0ece3; color: var(--muted); font-size: 12px; font-weight: 700;
  transition: background .14s, color .14s;
}
.opt.sel { border-color: var(--brand); background: #faf5f3; }
.opt.sel .k { background: var(--brand); color: #fff; }
.opt.sel .t { color: var(--brand-d); font-weight: 600; }

.quiz-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: linear-gradient(to top, var(--bg) 62%, rgba(250,247,242,0));
  padding: 16px 20px 22px;
}
.quiz-foot-in { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }
.quiz-foot .cta { max-width: none; height: 50px; font-size: 16px; }
.quiz-foot .cta:disabled {
  opacity: 1; background: #ece6da; color: #a9a294; box-shadow: none;
}

/* 过渡 */
.transition {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center;
  background: linear-gradient(160deg, #6b2b34, #7d3038); color: #fff; text-align: center;
}
.transition.on { display: grid; }
.transition .sp {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 18px;
  border: 3px solid rgba(255, 255, 255, .28); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.transition b { display: block; font-size: 17px; letter-spacing: .3px; }
.transition span { font-size: 12.5px; opacity: .82; }

/* ───── 报告 ───── */
.rep-hero {
  background: linear-gradient(165deg, #6b2b34 0%, #8e3a42 55%, #7d3038 100%);
  color: #fff; padding: 34px 0 62px; position: relative; overflow: hidden;
}
.rep-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 18% 22%, rgba(255,255,255,.16), transparent 26%),
                    radial-gradient(circle at 84% 12%, rgba(255,255,255,.13), transparent 22%);
}
.rep-hero-in { position: relative; z-index: 1; text-align: center; }
.rep-hero h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.4px; }
.rep-hero .cap { font-size: 12px; opacity: .8; letter-spacing: .6px; }

.pull { margin-top: -44px; position: relative; z-index: 2; }
.card {
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  padding: 22px 20px; margin-bottom: 14px;
}
.card.tight { padding: 18px 18px; }

.gauge-wrap { text-align: center; }
.gauge { position: relative; width: 148px; height: 148px; margin: 0 auto 14px; }
.gauge svg { transform: rotate(-90deg); }
.gauge .val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; letter-spacing: -1px; color: var(--brand-d);
  line-height: 1;
}
.gauge .val small { font-size: 15px; font-weight: 600; margin-left: 2px; position: relative; top: -3px; }
.gauge-cap { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.type-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; background: rgba(107,43,52,.09);
  color: var(--brand-d); letter-spacing: -.2px;
}
.type-id { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.summary { font-size: 14.5px; line-height: 1.85; color: var(--ink2); margin-top: 16px; text-align: left; }

.sec-label { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.sec-label i {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(107,43,52,.09); font-style: normal; font-size: 15px;
}
.sec-label h3 { font-size: 16.5px; margin: 0; letter-spacing: -.2px; font-weight: 700; }
.sec-desc { font-size: 12px; color: var(--muted); margin: 8px 0 14px 39px; }

.radar { width: 100%; max-width: 330px; margin: 0 auto; display: block; }

/* 维度列表 */
.dimrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.dimrow:last-child { border-bottom: none; }
.dimrow .nm { flex: 0 0 78px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dimrow .bar { flex: 1; min-width: 0; height: 7px; border-radius: 999px; background: #ede8de; overflow: hidden; }
.dimrow .bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #c98d92); }
.dimrow .sc { flex: 0 0 26px; text-align: right; font-size: 13px; font-weight: 700; color: var(--brand-d); font-variant-numeric: tabular-nums; }

.dimcard { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.dimcard:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.dimcard-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dimcard-h b { font-size: 14.5px; }
.dimcard-h .s { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand-d); }
.dimcard .tagline { font-size: 11px; color: #fff; background: var(--brand); border-radius: 6px; padding: 2px 7px; font-weight: 600; }
.dimcard .tagline.mid { background: #a04a52; }
.dimcard .tagline.low { background: #b8b2a6; }
.dimcard p { font-size: 13.5px; line-height: 1.78; color: var(--ink2); margin: 0; }

/* 客观题 */
.obj-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: flex-start; }
.obj-item:last-child { border-bottom: none; }
.obj-mark { flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
.obj-mark.ok { background: rgba(22, 163, 74, .12); color: var(--green); }
.obj-mark.no { background: rgba(229, 72, 77, .1); color: var(--red); }
.obj-t { flex: 1; }
.obj-t b { font-weight: 600; }
.obj-t span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; line-height: 1.6; }

.quote-box {
  border-left: 3px solid var(--brand); background: #f8f5ee; border-radius: 0 12px 12px 0;
  padding: 14px 16px; font-size: 14.5px; line-height: 1.8; color: var(--brand-d); font-weight: 600;
}
.feat { margin: 6px 0 0; padding-left: 18px; }
.feat li { font-size: 13.5px; line-height: 1.8; color: var(--ink2); margin-bottom: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.chip { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(107,43,52,.08); color: var(--brand-d); font-weight: 500; }
.trap { background: #fffaf5; border: 1px solid #ffe8d6; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.75; color: #8a4b16; margin-top: 8px; }
.advice-num { display: flex; gap: 10px; margin-top: 10px; }
.advice-num .n { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.advice-num p { font-size: 13.5px; line-height: 1.78; margin: 0; color: var(--ink2); }

.sub-h { font-size: 13px; font-weight: 700; margin: 18px 0 8px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.sub-h::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--brand); }

.similar { display: flex; gap: 13px; align-items: flex-start; }
.similar .av {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, #f7eef0, #ecd7d5); font-size: 18px;
}
.similar .nm { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.similar .nt { font-size: 13px; color: var(--ink2); line-height: 1.72; }

.career { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.career:last-child { border-bottom: none; }
.career .rk { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: #f0ece3; color: var(--brand-d); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.career .bd { flex: 1; }
.career .tt { display: flex; align-items: center; gap: 8px; }
.career .tt b { font-size: 14.5px; }
.career .fit { font-size: 10.5px; font-weight: 700; color: var(--green); background: rgba(22, 163, 74, .1); padding: 2px 7px; border-radius: 6px; }
.career .dm { font-size: 10.5px; color: var(--muted); }
.career .wy { font-size: 12.5px; color: var(--ink2); margin: 4px 0 2px; line-height: 1.65; }
.career .st { font-size: 12px; color: var(--brand-d); }

.caution-item { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.caution-item:last-child { border-bottom: none; }
.caution-item .i { flex: 0 0 auto; font-size: 13px; }
.caution-item b { font-weight: 600; }
.caution-item span { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; line-height: 1.6; }

.plan-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.plan-item:last-child { border-bottom: none; }
.plan-item .dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-top: 8px; }
.plan-item b { font-size: 13.5px; font-weight: 600; display: block; line-height: 1.65; }
.plan-item span { font-size: 11.5px; color: var(--muted); }

.rep-foot { text-align: center; padding: 8px 0 40px; }
.rep-foot .disc { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 18px; }

.fade { animation: fadeUp .5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cta-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, rgba(250,247,242,0));
}
.cta-sticky .in { max-width: 560px; margin: 0 auto; }

/* 音频题播放器 */
.audiobox { margin: 4px 0 20px; display: flex; flex-direction: column; gap: 9px; }
.audiobtn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; border-radius: 13px; border: 1.5px solid var(--line);
  background: var(--bg2); font-size: 15px; font-weight: 500; color: var(--ink2);
  font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s;
}
.audiobtn.primary { border-color: var(--brand); color: var(--brand-d); font-weight: 600; }
.audiobtn.playing { background: #f7eef0; opacity: .7; }
.audiobtn:active { transform: scale(.985); }
.audiomark { font-size: 17px; line-height: 1; }
.audiohint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 2px; }
