:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --text: #2a2622;
  --muted: #7a7168;
  --line: #e6dfd4;
  --accent: #e2572b;
  --accent-ink: #ffffff;
  --accent-soft: #fde9e1;
  --leaf: #3f8f5a;
  --leaf-soft: #e3f2e8;
  --warn: #b7791f;
  --warn-soft: #fbf0d9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --surface: #211e1b;
    --surface-2: #2a2622;
    --text: #efe9e2;
    --muted: #a39a90;
    --line: #38322d;
    --accent: #f0703f;
    --accent-soft: #3a2419;
    --leaf: #6cc28a;
    --leaf-soft: #1f3327;
    --warn: #e0b45c;
    --warn-soft: #3a2f1a;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
a { color: var(--accent); }
button, input, textarea { font: inherit; color: inherit; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  min-height: 48px; text-decoration: none; transition: transform .08s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.block { width: 100%; }

/* 落地页 */
.hero { padding: 48px 0 24px; }
.hero .tag { display: inline-block; font-size: 13px; color: var(--accent); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; letter-spacing: -.01em; }
.hero p { margin: 0; color: var(--muted); }
.steps { display: grid; gap: 10px; margin: 24px 0; }
.step { display: flex; gap: 12px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.step b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-size: 14px; }
.step div { font-size: 15px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); }
.field { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
.field:focus, .composer textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.err { color: var(--accent); font-size: 14px; min-height: 22px; margin: 8px 0 0; }
.foot { margin: 28px 0 40px; font-size: 13px; color: var(--muted); text-align: center; }

/* 访谈 */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0 8px;
  border-bottom: 1px solid var(--line); }
.topbar .row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.progress { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s; }
.chat { padding: 16px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; white-space: pre-wrap; word-break: break-word; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--accent); color: var(--accent-ink); border-top-right-radius: 4px; align-self: flex-end; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }

.dock { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.opt { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px;
  cursor: pointer; font-size: 15px; text-align: left; min-height: 42px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.opt-hint { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px;
  background: var(--surface); min-height: 46px; max-height: 120px; font-size: 16px; }
.composer .btn { padding: 0 18px; min-height: 46px; }

/* 等待 */
.waiting { text-align: center; padding: 64px 0; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--surface-2);
  border-top-color: var(--accent); margin: 0 auto 20px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.wait-steps { text-align: left; display: inline-flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.wait-steps li { list-style: none; color: var(--muted); }
.wait-steps li.on { color: var(--text); font-weight: 600; }
.wait-steps li.ok { color: var(--leaf); }

/* 报告 */
.r-head { padding: 36px 0 12px; }
.r-head .tag { font-size: 13px; color: var(--muted); }
.r-head h1 { font-size: 26px; line-height: 1.35; margin: 6px 0 12px; }
.r-sec { margin: 26px 0; }
.r-sec > h2 { font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.r-sec > h2 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.dir { margin-bottom: 14px; }
.dir-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dir h3 { margin: 0; font-size: 18px; }
.badge { flex: none; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.rec { background: var(--accent); color: var(--accent-ink); }
.badge.low { background: var(--leaf-soft); color: var(--leaf); }
.badge.mid { background: var(--warn-soft); color: var(--warn); }
.badge.high { background: var(--accent-soft); color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.dir p { margin: 8px 0; }
.label { font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.first { background: var(--leaf-soft); color: var(--text); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.first b { color: var(--leaf); }
ul.plain { margin: 0; padding-left: 20px; }
ul.plain li { margin: 3px 0; }
.case { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; margin: 8px 0; background: var(--bg); }
.case .t { font-weight: 600; font-size: 15px; }
.case .p { font-size: 14px; color: var(--muted); margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case .n { font-size: 14px; margin: 6px 0 2px; }
.case .f { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.case .go { color: var(--accent); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); text-decoration: none; color: var(--text); }
a.chip { color: var(--accent); background: var(--accent-soft); }
.timeline { display: grid; gap: 10px; }
.tl { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.tl:nth-child(2) { border-color: var(--warn); } .tl:nth-child(3) { border-color: var(--leaf); }
.tl b { display: block; margin-bottom: 4px; }
.week { list-style: none; margin: 0; padding: 0; }
.week li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.week li:last-child { border-bottom: 0; }
.week input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--leaf); flex: none; }
.week .d { font-size: 13px; color: var(--muted); width: 46px; flex: none; padding-top: 2px; }
.week .m { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.week li.done .x { text-decoration: line-through; color: var(--muted); }
.cta { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 20px; }
.cta h3 { margin: 0 0 6px; }
.cta p { margin: 0 0 14px; opacity: .92; }
.cta .btn { background: #fff; color: var(--accent); }
.invite { border: 2px dashed var(--accent); border-radius: var(--radius); padding: 16px; text-align: center; background: var(--surface); }
.invite .code { font: 700 26px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .15em; margin: 8px 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 9px 16px; border-radius: 999px; font-size: 14px; z-index: 50; }

/* 后台 */
.adm table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm th, .adm td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm .scroll { overflow-x: auto; }
.adm .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.adm .num { font-size: 26px; font-weight: 700; }
.adm form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.adm label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.adm input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.adm pre { white-space: pre-wrap; background: var(--surface-2); padding: 10px; border-radius: 10px; font-size: 14px; }

/* 访谈页整屏布局，输入区始终贴底 */
#v-chat:not(.hidden) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#v-chat > .wrap { flex: 1; width: 100%; }
#v-chat > .dock > .wrap { width: 100%; }

/* ---------- 报告 v2 ---------- */
.r-sec > h2 .sub, .r-sec > h2 small.sub { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: auto; }
.toolbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 4px; }
.tool { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 6px;
  font-size: 14px; font-weight: 600; cursor: pointer; min-height: 46px; }
.tool:active { transform: scale(.98); }
.elite { font-size: 11px; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 5px;
  margin-right: 6px; vertical-align: 2px; font-weight: 600; }
.case .s { font-size: 14px; margin: 6px 0; line-height: 1.6; }
.case .n b { color: var(--muted); font-weight: 600; }
a.go { text-decoration: none; }
.plan { padding: 6px 16px; }
.month { padding: 12px 0 4px; }
.month + .month { border-top: 1px solid var(--line); }
.month-head { margin-bottom: 8px; }
.month-head b { font-size: 16px; }
.wk { border-left: 3px solid var(--line); padding: 2px 0 10px 12px; margin: 10px 0; }
.month:nth-child(1) .wk { border-color: var(--accent); }
.month:nth-child(2) .wk { border-color: var(--warn); }
.month:nth-child(3) .wk { border-color: var(--leaf); }
.wk-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wk-no { font-size: 13px; color: var(--muted); flex: none; }
.wk-goal { font-weight: 600; flex: 1; min-width: 60%; }
.wk .m { font-size: 12px; color: var(--muted); }
.acts { list-style: none; margin: 6px 0 0; padding: 0; }
.acts li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 15px; }
.acts input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--leaf); flex: none; }
.acts li.done .x { text-decoration: line-through; color: var(--muted); }
.deliver { font-size: 13px; color: var(--muted); margin-top: 4px; background: var(--surface-2); border-radius: 8px; padding: 6px 10px; }
.deliver b { color: var(--text); font-weight: 600; }
.encourage { margin: 26px 0; font-size: 17px; }

/* 浮层 */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); display: flex;
  align-items: flex-end; justify-content: center; }
.sheet-body { background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-body { border-radius: 18px; } }
.sheet-tip { text-align: center; font-weight: 600; margin: 0 0 12px; }
.sheet-img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.sheet-actions .btn { flex: 1; }
.wx-tip p { margin: 6px 0; }

/* 分享卡片：固定浅色，与系统深浅色无关 */
#card-host { position: fixed; left: -10000px; top: 0; pointer-events: none; }
.share-card { width: 375px; box-sizing: border-box; padding: 26px 24px 22px; background: #ffffff; color: #2a2622;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  border-top: 8px solid #e2572b; }
.sc-top { display: flex; justify-content: space-between; font-size: 12px; color: #9a8f84; letter-spacing: .05em; }
.sc-title { font-size: 24px; font-weight: 800; line-height: 1.35; margin: 12px 0 8px; }
.sc-portrait { font-size: 13px; color: #7a7168; line-height: 1.6; }
.sc-label { font-size: 12px; font-weight: 700; color: #e2572b; margin: 18px 0 8px; letter-spacing: .08em; }
.sc-dir { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.sc-no { flex: none; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%;
  background: #fde9e1; color: #e2572b; font-size: 12px; font-weight: 700; }
.sc-dir b { font-size: 15px; }
.sc-meta { font-size: 12px; color: #9a8f84; }
.sc-first { background: #e3f2e8; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.55; }
.sc-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.sc-list li { margin: 3px 0; }
.sc-foot { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px dashed #e6dfd4;
  font-size: 12px; color: #7a7168; line-height: 1.6; }
.sc-foot b { color: #2a2622; font-size: 14px; }
.sc-code { color: #e2572b; font-weight: 700; letter-spacing: .1em; margin-top: 2px; }

/* 生成长图时：去掉阴影，避免截图发灰 */
body.capturing .card { box-shadow: none; }

/* ---------- 访谈答题卡 v2 ---------- */
#v-chat:not(.hidden) { display: block; min-height: 100vh; min-height: 100dvh; }
.q-top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.q-top-in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dots { display: flex; gap: 5px; flex: 1; justify-content: center; min-width: 160px; }
.dot { width: 24px; height: 6px; border-radius: 4px; background: var(--line); transition: background .3s; }
.dot.done { background: var(--accent); }
.dot.cur { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dot.link { cursor: pointer; }
.q-count { white-space: nowrap; }
.pf-chip { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--accent);
  border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; }

.q-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 320px; min-height: calc(100vh - 56px); }
.q-main { padding: 40px 32px 60px; display: flex; flex-direction: column; align-items: center; }
.q-note { width: 100%; max-width: 600px; display: flex; gap: 8px; align-items: flex-start; color: var(--muted);
  font-size: 15px; margin-bottom: 14px; }
.q-note .av { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
.q-card { width: 100%; max-width: 600px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 30px; box-shadow: var(--shadow); }
.q-no { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .05em; }
.q-text { font-size: 22px; line-height: 1.45; margin: 6px 0 4px; }
.q-hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opt { display: flex; gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 12px 14px; font-size: 15px; cursor: pointer; min-height: 50px; line-height: 1.4; }
.q-opt:hover { border-color: #d8c9b8; }
.q-opt .box, .q-opt .radio { flex: none; width: 18px; height: 18px; border: 1.5px solid #c9c0b4; background: var(--surface); }
.q-opt .box { border-radius: 5px; }
.q-opt .radio { border-radius: 50%; }
.q-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.q-opt.on .box { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft); }
.q-opt.on .radio { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--accent-soft); background: var(--accent); }
.q-other { width: 100%; margin-top: 12px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 11px 14px;
  background: var(--surface); resize: none; font-size: 15px; min-height: 46px; }
.q-other:focus { outline: none; border-style: solid; border-color: var(--accent); }
.q-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.q-nav .btn { min-width: 120px; }
.q-loading { padding: 40px 30px; }

.pf { border-left: 1px solid var(--line); background: var(--surface); }
.pf-body { position: sticky; top: 56px; padding: 26px 22px; }
.pf h3 { margin: 0 0 2px; font-size: 16px; }
.pf-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pf-row .k { color: var(--muted); flex: none; }
.pf-row .v { text-align: right; font-weight: 600; word-break: break-all; }
.pf-row.todo .v { color: #c4bbb0; font-weight: 400; }
.pf-row.cur { background: var(--accent-soft); margin: 0 -10px; padding: 9px 10px; border-radius: 8px; border-bottom-color: transparent; }
.pf-row.cur .v { color: var(--accent); }
.pf-row .edit { border: 0; background: none; color: var(--accent); font-size: 12px; margin-left: 6px; cursor: pointer; padding: 0; }
.pf-close { display: none; margin-top: 14px; }

@media (max-width: 860px) {
  .q-layout { display: block; }
  .q-count { display: none; }
  .pf-chip { display: inline-block; margin-left: auto; }
  .dots { order: 3; flex-basis: 100%; gap: 4px; }
  .dot { flex: 1; width: auto; height: 5px; }
  .q-main { padding: 18px 16px 110px; align-items: stretch; }
  .q-card { border: 0; box-shadow: none; background: transparent; padding: 0; }
  .q-text { font-size: 20px; }
  .q-opts { grid-template-columns: 1fr; gap: 9px; }
  .q-opt { background: var(--surface); }
  .q-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; margin: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line); }
  .q-nav .btn { flex: 1; min-width: 0; }
  .q-loading { background: transparent; }
  .pf { display: none; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .4); border: 0; }
  .pf.open { display: block; }
  .pf-body { position: absolute; left: 0; right: 0; bottom: 0; top: auto; max-height: 80vh; overflow: auto; background: var(--surface);
    border-radius: 18px 18px 0 0; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
  .pf-close { display: block; }
}

/* ---------- 报告 v3：标签页布局 ---------- */
.rp { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.rp-side { display: contents; }
.rp .r-head { padding: 30px 0 4px; }
.rp .r-head h1 { margin-bottom: 8px; }
.portrait { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.portrait.full { display: block; }
.link { border: 0; background: none; color: var(--accent); padding: 4px 0; cursor: pointer; font-size: 14px; }
.today { background: var(--leaf-soft); border-radius: 12px; padding: 12px 14px; margin: 12px 0 4px; font-size: 15px; line-height: 1.6; }
.today b { color: var(--leaf); }

.rp-nav { position: sticky; top: 0; z-index: 8; background: var(--bg); display: flex; margin: 14px -16px 0;
  padding: 0 8px; border-bottom: 1px solid var(--line); }
.rp-nav button { flex: 1; border: 0; background: none; padding: 13px 4px 11px; font-size: 15px; color: var(--muted);
  cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.rp-nav button small { font-size: 11px; margin-left: 3px; opacity: .7; }
.rp-nav button.on { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
.rp-main { padding-top: 14px; min-height: 60vh; }
.rp-panel { display: none; }
.rp-panel.on { display: block; }
.cap-only { display: none; }
.sub-h { font-size: 16px; margin: 0 0 10px; }

/* 方向 */
.dirs { display: grid; gap: 12px; }
.dir { margin: 0; padding: 0; }
.dir-sum { padding: 16px 18px 12px; cursor: pointer; }
.dir-top { align-items: center; }
.dir-top h3 { flex: 1; }
.chev { color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s; display: inline-block; }
.dir.open .chev, .wk.open .chev { transform: rotate(90deg); }
.dir .why { margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir.open .why { display: block; }
.more-link { font-size: 14px; color: var(--accent); display: inline-block; margin-top: 6px; }
.dir.open .more-link { display: none; }
.dir-body { display: none; padding: 0 18px 14px; }
.dir.open .dir-body { display: block; }
.dir-body > p { margin: 6px 0; }
.peek .case { margin-top: 6px; }
.fold { display: block; margin: 8px auto 0; color: var(--muted); }

/* 12 周计划 */
.plan-count { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.pbar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--leaf); transition: width .3s; }
.seg { display: flex; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 8px 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow); }
.chips-seg { overflow-x: auto; scrollbar-width: none; }
.chips-seg button { flex: none; padding: 7px 12px; }
.rp .month { display: none; padding: 0; border: 0; }
.rp .month.on { display: block; }
.rp .month-head { font-size: 14px; margin: 0 2px 10px; }
.rp .wk { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: 12px; padding: 0; margin: 0 0 10px; }
.rp .month .wk { border-color: var(--line); border-left-width: 4px; }
.rp .month .wk.cur { box-shadow: var(--shadow); }
.rp .m1 .wk { border-left-color: var(--accent); }
.rp .m2 .wk { border-left-color: var(--warn); }
.rp .m3 .wk { border-left-color: var(--leaf); }
.rp .wk-top { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; cursor: pointer; }
.rp .wk-no { font-size: 13px; color: var(--muted); }
.rp .wk-no em { font-style: normal; font-size: 11px; color: var(--accent); background: var(--accent-soft);
  border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.wk-meta { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.wk-meta .m { font-size: 12px; }
.rp .wk-goal { grid-column: 1 / -1; font-weight: 600; min-width: 0; }
.wk-body { display: none; padding: 0 14px 12px; }
.wk.open .wk-body { display: block; }
.rp .acts { margin-top: 0; }
.days { margin-top: 8px; }
.days-btn { width: 100%; text-align: left; border: 0; background: var(--leaf-soft); color: var(--leaf); border-radius: 8px;
  padding: 8px 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.days-btn .muted { font-weight: 400; }
.days-body { display: none; padding: 4px 2px 0; }
.days.open .days-body { display: block; }
.days.open .days-btn { border-radius: 8px 8px 0 0; }

/* 案例 / 更多 */
.c-dir { display: inline-block; font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 4px; padding: 0 6px; margin-top: 4px; }
.tool-row { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.tool-row:last-child { border-bottom: 0; }
.tool-row a, .tool-row b { font-weight: 600; text-decoration: none; }
.rp .invite { margin-top: 18px; }
.rp .encourage { margin: 22px 2px; }

/* 电脑：左侧固定目录 + 结论，右侧切换内容 */
@media (min-width: 960px) {
  .rp { max-width: 1180px; display: grid; grid-template-columns: 300px 1fr; gap: 0 40px; padding: 0 28px; align-items: start; }
  .rp-side { display: block; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding-bottom: 24px; }
  .rp .r-head h1 { font-size: 24px; }
  .rp .toolbar { grid-template-columns: repeat(3, 1fr); }
  .rp .tool { font-size: 13px; padding: 8px 4px; min-height: 40px; }
  .rp-nav { position: static; flex-direction: column; margin: 16px 0 0; padding: 0; border: 0; gap: 2px; }
  .rp-nav button { text-align: left; border: 0; border-radius: 10px; padding: 10px 14px; }
  .rp-nav button.on { background: var(--accent-soft); }
  .rp-main { padding-top: 32px; }
  .dirs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
  .dir.open { grid-column: 1 / -1; order: -1; }
  .rp .wk-top { grid-template-columns: 90px 1fr auto; align-items: baseline; }
  .rp .wk-goal { grid-column: 2; grid-row: 1; }
}

/* 长图：单列，全部标签和折叠内容展开 */
body.capturing .rp { display: block; max-width: 680px; }
body.capturing .rp-side { display: block; position: static; max-height: none; overflow: visible; }
body.capturing .rp-panel, body.capturing .rp .month, body.capturing .dir-body,
body.capturing .wk-body, body.capturing .days-body, body.capturing .portrait, body.capturing .dir .why { display: block !important; }
body.capturing .cap-only { display: block; }
body.capturing .rp-panel > h2.cap-only { font-size: 19px; margin: 26px 0 12px; }
body.capturing .rp .month-head b.cap-only { display: inline; }
body.capturing .peek { display: none; }

/* ---------- 关于页：体验海报 ---------- */
.trial-card { display: grid; grid-template-columns: 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.trial-poster { margin: 0; border-radius: 12px; overflow: hidden; background: #0b1a3a; line-height: 0;
  box-shadow: 0 10px 30px rgba(10, 25, 60, .25); }
.trial-poster img { display: block; width: 100%; height: auto; -webkit-touch-callout: default; }
.trial-text { padding: 0 6px 6px; }
.trial-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #b07a00;
  background: #fff4cf; border-radius: 999px; padding: 3px 10px; }
.trial-lead { margin: 10px 0 8px; font-size: 16px; }
.trial-list { margin: 0 0 10px; padding-left: 20px; color: var(--text); }
.trial-list li { margin: 3px 0; }
.trial-how { margin: 10px 0 12px; }
.trial-save { min-height: 42px; padding: 8px 18px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .trial-tag { color: #f5c84b; background: #3a3016; } }
@media (min-width: 640px) {
  .trial-card { grid-template-columns: 260px 1fr; gap: 26px; padding: 18px; align-items: center; }
  .trial-text { padding: 0; }
}
@media (min-width: 640px) {
  .trial-card { grid-template-columns: 280px 1fr; }
  .trial-poster { cursor: zoom-in; transition: transform .2s; }
  .trial-poster:hover { transform: translateY(-2px); }
}
.zoom { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 25, .82); display: flex; align-items: center;
  justify-content: center; padding: 24px; cursor: zoom-out; }
.zoom img { max-height: 100%; max-width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

/* ---------- 访谈模式 ---------- */
.modes { display: grid; gap: 10px; margin: 14px 0 4px; }
.mode { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 14px; padding: 13px 15px; cursor: pointer; }
.mode.on { border-color: var(--accent); background: var(--accent-soft); }
.mode-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mode-top b { font-size: 16px; }
.mode.on .mode-top b { color: var(--accent); }
.mode-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mode-desc { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.mode-tag { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 4px;
  padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.ready-sum { color: var(--text); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 10px 0 18px;
  white-space: pre-wrap; font-size: 15px; }
.ready-sum:empty { display: none; }
.deepen { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px 16px; border: 1.5px dashed var(--line);
  border-radius: 14px; }
.deepen b { font-size: 15px; }
.deepen p { margin: 3px 0 0; }
.deepen .btn { flex: none; min-height: 42px; padding: 8px 18px; }
.ready-nav { justify-content: flex-start; }
@media (max-width: 860px) {
  .deepen { flex-direction: column; align-items: stretch; }
  .q-ready .q-nav { position: static; border: 0; padding: 0; margin-top: 16px; background: none; }
}
.reality { background: var(--warn-soft); border-radius: var(--radius); padding: 14px 16px 12px; margin-bottom: 14px; }
.reality-h { font-weight: 700; color: var(--warn); margin-bottom: 6px; }
.reality li { margin: 5px 0; }
