/* 高远智教 · 方向罗盘 —— Claude 版样式（方案 §8 视觉规范） */
:root {
  --blue: #2F6BFF;
  --blue-700: #1A47C8;
  --blue-300: #8FB0FF;
  --navy: #0B1B3F;
  --navy-2: #0E275E;
  --sky: #F2F6FF;
  --sky-2: #E4ECFF;
  --orange: #FF8A3D;
  --orange-700: #E8661C;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #8A97AE;
  --line: #E1E8F5;
  --danger: #E5484D;
  --shadow-sm: 0 2px 10px rgba(17, 45, 120, .06);
  --shadow: 0 8px 28px rgba(17, 45, 120, .10);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --app-height: 100vh;
  --visual-bottom: 0px;
}
@supports (height: 100svh) { :root { --app-height: 100svh; } }
@supports (height: 100dvh) { :root { --app-height: 100dvh; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  min-height: var(--app-height);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(47, 107, 255, .42), transparent 60%),
    radial-gradient(900px 560px at 110% 110%, rgba(47, 107, 255, .28), transparent 60%),
    linear-gradient(180deg, #081430, #0B1B3F) fixed;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.app {
  position: relative;
  max-width: 480px;
  min-height: var(--app-height);
  margin: 0 auto;
  background: var(--sky);
  overflow-x: hidden;
  overflow-x: clip;
}
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 90px rgba(0, 0, 0, .45); } }
.app.wide { max-width: 1240px; background: #F4F7FD; }

/* 整屏只做淡入：带 transform 的祖先会让内部 position:fixed（底部按钮）失效 */
.enter { animation: none; }
.slide { animation: slide .38s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 通用 ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 0 20px;
  border-radius: 999px; font-size: 17px; font-weight: 700; letter-spacing: .5px;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: linear-gradient(135deg, #5A8BFF, #2F6BFF 45%, #1A47C8); color: #fff; box-shadow: 0 10px 24px rgba(47, 107, 255, .35); }
.btn-cta { background: linear-gradient(135deg, #FFA562, #FF8A3D 50%, #EE6E22); color: #fff; box-shadow: 0 10px 24px rgba(255, 138, 61, .38); }
.btn-light { background: #fff; color: var(--navy); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.btn-outline { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px #C9D8FF; }
.btn-text { min-height: 44px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.btn[disabled] { opacity: .4; pointer-events: none; box-shadow: none; }
.btn-sm { min-height: 40px; font-size: 14px; padding: 0 16px; width: auto; }
.linkbtn { color: var(--blue); font-weight: 600; font-size: inherit; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); transition: background .2s; }
.icon-btn:hover { background: rgba(47, 107, 255, .08); }
.icon-btn svg { width: 24px; height: 24px; }
.fine { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 10px; }
.fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 14px; font-weight: 600; }
.chip-warn { background: #FFF1E6; color: #B4531B; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--sky-2); color: var(--blue-700); }
.tag-orange { background: #FFF1E6; color: #B4531B; }
.tag-gray { background: #EEF1F6; color: var(--text-2); }

.brandbar { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; position: relative; }
.brandbar .logo { width: 32px; height: 32px; flex-shrink: 0; }
.brandbar .sep, .brandbar .product { opacity: .65; font-weight: 500; }

/* ---------- 首页 ---------- */
.home { padding-bottom: 150px; }
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 18px 22px 84px; border-radius: 0 0 32px 32px;
  background: linear-gradient(180deg, #071330 0%, #0E275E 58%, #1A47C8 100%);
}
.home-hero .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero .ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; }
.compass-wrap { width: 200px; height: 200px; margin: 22px auto 10px; position: relative; }
.compass { width: 100%; height: 100%; overflow: visible; }
.compass .c-ring { transform-origin: 110px 110px; animation: spin 80s linear infinite; }
.compass .c-needle { transform-origin: 110px 110px; animation: needle 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes needle { 0%, 100% { transform: rotate(28deg); } 30% { transform: rotate(12deg); } 60% { transform: rotate(36deg); } }
.home-title { position: relative; font-size: 34px; line-height: 1.25; font-weight: 800; text-align: center; letter-spacing: 1px; }
.home-sub { position: relative; text-align: center; opacity: .8; margin-top: 10px; font-size: 15px; }
.home-sub span { opacity: .5; margin: 0 6px; }
.home-count { position: relative; display: table; margin: 16px auto 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; }
.home-count b { font-variant-numeric: tabular-nums; }
.home-body { position: relative; margin-top: -50px; padding: 0 16px; }
.features { background: #fff; border-radius: 22px; padding: 4px 18px; box-shadow: var(--shadow); }
.feature { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 16px; color: var(--navy); }
.feature p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.preview { margin-top: 14px; padding: 22px 18px; border-radius: 22px; display: flex; gap: 14px; align-items: center; background: linear-gradient(140deg, #fff 30%, #E3ECFF); box-shadow: var(--shadow-sm); overflow: hidden; }
.preview-text { flex: 1; }
.preview-text h2 { font-size: 18px; color: var(--navy); line-height: 1.4; }
.preview-text p { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.preview-card { width: 44%; border-radius: 12px; transform: rotate(4deg); box-shadow: 0 18px 36px rgba(11, 27, 63, .35); aspect-ratio: 3 / 4; background: #0E275E; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 18px 0 6px; text-align: center; font-size: 13px; color: var(--text-2); }
.facts b { display: block; font-size: 22px; line-height: 1.3; color: var(--navy); font-variant-numeric: tabular-nums; }
.basis { margin-top: 14px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.7; }

.dock {
  position: fixed; left: 50%; bottom: var(--visual-bottom); transform: translateX(-50%); z-index: 6;
  width: 100%; max-width: 480px; padding: 22px 18px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, rgba(242, 246, 255, 0), var(--sky) 34%);
}
.dock .btn-text { margin-top: 2px; }

/* ---------- 模块过渡 / 生成中 ---------- */
.dark {
  min-height: var(--app-height); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 400px at 85% 10%, rgba(79, 134, 255, .35), transparent 60%), linear-gradient(180deg, #071330, #0E275E 68%, #1A47C8);
}
.dark .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro { display: flex; flex-direction: column; height: var(--app-height); min-height: 0; padding: 10px 24px calc(20px + var(--safe-b)); }
.intro .icon-btn { color: #fff; position: relative; }
.intro .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.intro-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 16px 0 24px; overscroll-behavior: contain; }
.intro-copy { margin-block: auto; flex-shrink: 0; }
.intro-no { font-size: 92px; font-weight: 800; line-height: 1; letter-spacing: -2px; color: #fff; }
.intro-no span { font-size: 22px; letter-spacing: 0; color: var(--blue-300); margin-left: 6px; }
.intro-dots { display: flex; gap: 6px; margin: 22px 0 18px; }
.intro-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.intro-dots i.on { background: #fff; }
.intro h2 { font-size: 30px; line-height: 1.3; }
.intro p { font-size: 16px; opacity: .82; margin-top: 10px; }
.intro .basis-line { font-size: 13px; opacity: .6; margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.intro .basis-line::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.intro .btn, .intro > .icon-btn { position: relative; flex-shrink: 0; }

.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.loading .compass-wrap { width: 220px; height: 220px; margin: 0 0 30px; }
.loading .c-needle { animation: seek 2.4s cubic-bezier(.3, .1, .2, 1) both; }
@keyframes seek { 0% { transform: rotate(-160deg); } 45% { transform: rotate(80deg); } 70% { transform: rotate(18deg); } 85% { transform: rotate(38deg); } 100% { transform: rotate(30deg); } }
.loading h2 { font-size: 22px; position: relative; }
.loading p { position: relative; margin-top: 10px; opacity: .7; font-size: 14px; min-height: 22px; transition: opacity .2s; }

/* ---------- 答题 ---------- */
.quiz { height: var(--app-height); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.quiz > .q-head, .quiz > .progress { flex-shrink: 0; }
.q-head { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; padding: 10px 12px 10px; background: var(--sky); }
.q-mod { justify-self: center; font-size: 14px; font-weight: 600; color: var(--text-2); background: #fff; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.q-mod b { color: var(--blue); margin-right: 6px; }
.q-count { text-align: right; padding-right: 8px; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.q-count b { color: var(--navy); }
.progress { height: 4px; margin: 0 20px; border-radius: 4px; background: var(--sky-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7FA6FF, #2F6BFF); transition: width .35s ease; }
.q-body { flex: 1; min-height: 0; padding: 24px 20px 16px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.intro.slide, .q-body.slide { animation: none; }
.q-stem { font-size: 14px; color: var(--text-2); }
.q-title { font-size: 23px; line-height: 1.45; font-weight: 800; color: var(--navy); margin-top: 10px; }
.q-note { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.opts { display: grid; gap: 10px; margin-top: 26px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 58px; padding: 12px 18px; text-align: left;
  background: #fff; border-radius: 16px; font-size: 16px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-sm), inset 0 0 0 1.5px transparent;
  transition: background .18s, color .18s, box-shadow .18s, transform .12s;
}
.opt:hover { box-shadow: var(--shadow-sm), inset 0 0 0 1.5px #C9D8FF; }
.opt:active { transform: scale(.985); }
.opt.sel { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(47, 107, 255, .3); }
.opt-label { flex: 1; }
.lv { display: flex; align-items: flex-end; gap: 3px; width: 31px; height: 20px; flex-shrink: 0; }
.lv i { width: 4px; border-radius: 2px; background: #DCE5FA; }
.lv i:nth-child(1) { height: 5px; } .lv i:nth-child(2) { height: 8px; } .lv i:nth-child(3) { height: 11px; } .lv i:nth-child(4) { height: 15px; } .lv i:nth-child(5) { height: 19px; }
.lv i.on { background: var(--blue); }
.opt.sel .lv i { background: rgba(255, 255, 255, .3); }
.opt.sel .lv i.on { background: #fff; }
.opt kbd { display: none; font: inherit; font-size: 12px; line-height: 20px; color: var(--text-3); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
@media (hover: hover) and (pointer: fine) { .opt kbd { display: inline-block; } }
.opt.sel kbd { color: #fff; border-color: rgba(255, 255, 255, .4); }
.mark { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px #C9D6F2; display: grid; place-items: center; }
.mark.sq { border-radius: 7px; }
.mark svg { width: 14px; height: 14px; opacity: 0; }
.opt.sel .mark { background: #fff; box-shadow: none; color: var(--blue); }
.opt.sel .mark svg { opacity: 1; }
.q-text textarea {
  width: 100%; min-height: 120px; margin-top: 24px; padding: 14px 16px; resize: none;
  border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--line);
  font: inherit; font-size: 16px; color: var(--text);
}
.q-text textarea:focus { outline: none; box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--blue); }
.q-text .counter { text-align: right; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.q-foot { display: flex; flex-shrink: 0; gap: 10px; align-items: center; position: relative; z-index: 2; padding: 12px 20px calc(14px + var(--safe-b)); background: var(--sky); box-shadow: 0 -8px 20px rgba(17, 45, 120, .04); }
.q-foot .btn { flex: 1; }
.q-foot .btn-text { flex: 0 0 auto; width: auto; padding: 0 12px; }
.q-hint { font-size: 12px; color: var(--text-3); text-align: center; width: 100%; }
.q-sel { font-size: 13px; color: var(--text-3); white-space: nowrap; }

/* ---------- 结果 ---------- */
.result { padding-bottom: 120px; }
.result.unlocked { padding-bottom: 28px; }
.r-hero { color: #fff; padding: 8px 18px 26px; border-radius: 0 0 30px 30px; background: linear-gradient(180deg, #071330, #0E275E 55%, #163FA8); }
.r-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
.r-top .btn-chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.r-kicker { font-size: 14px; opacity: .7; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.r-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #5CE1A6; box-shadow: 0 0 0 4px rgba(92, 225, 166, .2); }
.card-frame { border-radius: 18px; overflow: hidden; box-shadow: 0 26px 54px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); background: #0E275E; aspect-ratio: 3 / 4; }
.card-img { display: block; width: 100%; height: 100%; -webkit-touch-callout: default; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.card-actions .btn { min-height: 50px; font-size: 16px; }
.nick-btn { display: block; margin: 12px auto 0; font-size: 13px; color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 3px; }
.r-body { padding: 18px 14px 0; display: grid; gap: 14px; }
.panel { background: #fff; border-radius: 22px; padding: 20px 18px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 22px; line-height: 1.35; color: var(--navy); margin: 4px 0 8px; }
.panel h3 { font-size: 17px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.panel p { color: var(--text-2); font-size: 15px; }
.panel .sub-title { font-size: 13px; color: var(--text-3); margin: 16px 0 8px; font-weight: 600; }
.panel .note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sky); font-size: 14px; }
.persona-head { display: flex; align-items: center; gap: 14px; }
.persona-head .emblem { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; }
.persona-head .emblem canvas { width: 34px; height: 34px; }
.code { font-weight: 800; color: var(--blue); letter-spacing: 2px; }
.dirs { display: grid; gap: 8px; }
.dir { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sky); font-weight: 700; color: var(--navy); }
.dir b { font-size: 12px; color: var(--blue); font-weight: 800; }
.next-line { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--navy); font-weight: 600; }
.next-line svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.notice { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.quad { margin-top: 14px; }
.quad svg { display: block; width: 100%; height: auto; }
.panel-focus { background: linear-gradient(165deg, #FFF6EE, #fff 55%); box-shadow: var(--shadow-sm), inset 0 0 0 1px #FFE2CC; }
.panel-focus .eyebrow { color: var(--orange-700); }
.help { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #FFEFE3; color: #8A4515; font-size: 14px; line-height: 1.6; }
.help b { color: #B4531B; }

.locked { position: relative; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.locked-bg { position: absolute; inset: 0; padding: 22px 18px; filter: blur(4px); opacity: .5; pointer-events: none; }
.locked-bg .fake { height: 12px; border-radius: 6px; background: var(--sky-2); margin: 12px 0; }
.locked-content { position: relative; padding: 24px 20px 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .5), #fff 38%); }
.lock-badge { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #FFA562, #EE6E22); box-shadow: 0 10px 20px rgba(255, 138, 61, .35); }
.lock-badge svg { width: 24px; height: 24px; }
.locked h2 { font-size: 21px; color: var(--navy); margin-top: 14px; }
.locked .lead-in { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.locked ul { list-style: none; margin: 14px 0 18px; display: grid; gap: 9px; }
.locked li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.locked li svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.cta-bar { position: fixed; left: 50%; bottom: var(--visual-bottom); transform: translateX(-50%); z-index: 6; width: 100%; max-width: 480px; padding: 10px 14px calc(12px + var(--safe-b)); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -8px 28px rgba(17, 45, 120, .10); }
.cta-bar .btn { font-size: 16px; }
.cta-bar .fine { margin-top: 6px; }

.bars { display: grid; gap: 11px; margin: 14px 0 4px; }
.bar { display: grid; grid-template-columns: 82px 1fr 32px; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.bar-track { height: 10px; border-radius: 6px; background: var(--sky-2); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 6px; background: #A9C1F7; transform-origin: left; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar.hl .bar-label { color: var(--navy); font-weight: 700; }
.bar.hl .bar-track i { background: linear-gradient(90deg, #7FA6FF, #2F6BFF); }
.bar.warn .bar-track i { background: linear-gradient(90deg, #FFC08F, #FF8A3D); }
.bar-val { text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.report-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 0; }
.report-head h2 { font-size: 20px; color: var(--navy); }
.no { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.tips { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.tips li { padding: 10px 12px; border-radius: 12px; background: var(--sky); font-size: 14px; color: var(--text-2); }
.tips li b { color: var(--navy); margin-right: 6px; }
.paths { display: grid; gap: 10px; margin-top: 12px; }
.path { padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.path h4 { font-size: 16px; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.path p { font-size: 14px; margin-top: 4px; }
.timeline { list-style: none; margin-top: 14px; position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--sky-2); }
.timeline li { position: relative; padding-left: 36px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--blue); }
.timeline .when { font-size: 12px; font-weight: 700; color: var(--blue); }
.timeline .what { font-size: 15px; color: var(--navy); font-weight: 600; }

.success { position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 22px 20px; background: linear-gradient(135deg, #3F78FF, #1A47C8); box-shadow: 0 16px 34px rgba(26, 71, 200, .3); }
.success h2 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.success h2 svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fff; color: var(--blue); }
.success p { margin-top: 8px; opacity: .88; font-size: 15px; }
.wecom { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .12); }
.wecom-qr { width: 84px; height: 84px; flex-shrink: 0; border-radius: 12px; background: #fff; color: var(--text-3); font-size: 11px; line-height: 1.4; display: grid; place-items: center; text-align: center; padding: 6px; box-shadow: inset 0 0 0 2px #D6E0F5; }
.wecom p { margin: 0; font-size: 14px; }

.r-foot { padding: 18px 10px 6px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.8; }
.r-foot a { color: var(--text-2); }

/* ---------- 弹层 ---------- */
.backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(7, 19, 48, .55); animation: fade .2s both; }
.sheet {
  position: fixed; left: 50%; bottom: var(--visual-bottom); z-index: 21; transform: translateX(-50%);
  width: 100%; max-width: 480px; max-height: calc(var(--app-height) * .92); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 26px 26px 0 0; padding: 24px 20px calc(20px + var(--safe-b));
  animation: up .32s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: #D8E0EE; margin: -12px auto 14px; }
.sheet-close { position: absolute; top: 14px; right: 12px; }
.sheet h2 { font-size: 21px; color: var(--navy); padding-right: 40px; line-height: 1.35; }
.sheet .sheet-sub { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.field { display: block; margin-top: 18px; border: 0; min-width: 0; }
.field legend { width: 100%; padding: 0; }
.field > span, .field .lg { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; padding: 0; }
.field em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-3); }
.field input[type=text], .field input[type=tel] {
  width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 14px;
  background: var(--sky); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: 16px; color: var(--text);
}
.field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); }
.field.invalid input { box-shadow: inset 0 0 0 1.5px var(--danger); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: .15s; }
.seg input:checked + span { color: var(--blue); background: #EEF3FF; box-shadow: inset 0 0 0 1.5px var(--blue); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--text-2); line-height: 1.55; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--blue); }
.err { display: block; color: var(--danger); font-size: 12px; margin-top: 6px; }
.err:empty { display: none; }
.sheet form .btn { margin-top: 20px; }

.overlay { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(4, 10, 28, .88); animation: fade .2s both; color: #fff; text-align: center; }
.overlay img { max-height: 70vh; width: auto; max-width: 100%; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.overlay p { font-size: 15px; opacity: .85; }
.overlay .row { display: flex; gap: 10px; width: 100%; max-width: 360px; }
.overlay .row .btn { flex: 1; min-height: 46px; font-size: 15px; }

.toast { position: fixed; left: 50%; bottom: 120px; z-index: 40; transform: translate(-50%, 10px); max-width: 90vw; padding: 10px 18px; border-radius: 999px; background: rgba(11, 27, 63, .92); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 说明页 ---------- */
.doc { padding: 0 14px 40px; }
.doc-head { display: flex; align-items: center; gap: 6px; padding: 10px 0 6px; }
.doc-head h1 { font-size: 18px; color: var(--navy); }
.doc .panel { margin-top: 12px; }
.doc .panel h2 { font-size: 18px; }
.doc .panel p, .doc .panel li { font-size: 14px; color: var(--text-2); }
.doc .panel ul { padding-left: 18px; display: grid; gap: 6px; margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.doc th, .doc td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--navy); white-space: nowrap; }

/* ---------- 演示面板 ---------- */
.demo { position: fixed; right: 16px; bottom: 132px; z-index: 19; }
@media (min-width: 900px) { .demo { right: 28px; bottom: 28px; } }
.demo-fab { width: 56px; height: 56px; border-radius: 50%; background: #0B1B3F; color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 12px 28px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .15); }
.demo-panel { position: absolute; right: 0; bottom: 66px; width: 272px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: slide .2s both; }
.demo-panel[hidden] { display: none; }
.demo-panel h4 { font-size: 13px; color: var(--text-3); margin: 2px 4px 8px; }
.demo-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; transition: background .15s; }
.demo-item:hover { background: var(--sky); }
.demo-item b { display: block; color: var(--navy); font-size: 15px; }
.demo-item span { font-size: 12px; color: var(--text-2); }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.demo-row button, .demo-row a { font-size: 13px; font-weight: 600; padding: 8px; border-radius: 10px; background: var(--sky); color: var(--navy); text-align: center; }

/* ---------- 顾问工作台 ---------- */
.adv { padding: 0 20px 40px; color: var(--text); }
.adv-top { display: flex; align-items: center; gap: 12px; padding: 16px 0; flex-wrap: wrap; }
.adv-top .brandbar { color: var(--navy); }
.adv-top .spacer { flex: 1; }
.adv-top .btn { width: auto; }
.adv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.kpi span { font-size: 13px; color: var(--text-3); }
.kpi b { display: block; font-size: 28px; line-height: 1.25; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12px; color: var(--text-3); }
.adv-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.adv-card { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.adv-card h3 { font-size: 15px; color: var(--navy); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.adv-card h3 small { font-weight: 400; font-size: 12px; color: var(--text-3); }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 64px 1fr 92px; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.funnel-row .f-bar { height: 26px; border-radius: 8px; background: linear-gradient(90deg, #2F6BFF, #7FA6FF); min-width: 6px; }
.funnel-row b { color: var(--navy); font-variant-numeric: tabular-nums; }
.funnel-row em { font-style: normal; color: var(--text-3); font-size: 12px; margin-left: 4px; }
.local-funnel { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.dist { display: grid; gap: 9px; }
.dist-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 4px 10px; font-size: 13px; color: var(--text-2); }
.dist-row .d-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dist-row .d-val { text-align: right; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.dist-row .d-track { grid-column: 1 / -1; height: 8px; border-radius: 5px; background: var(--sky-2); overflow: hidden; }
.dist-row .d-track i { display: block; height: 100%; border-radius: 5px; background: var(--blue); }
.dist-row.c1 .d-track i { background: #FF8A3D; } .dist-row.c2 .d-track i { background: #7FA6FF; } .dist-row.c3 .d-track i { background: #9AA7C2; }
.adv-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 12px; margin-top: 12px; align-items: start; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--sky); }
.tabs button.on { background: var(--navy); color: #fff; }
.lead-list { display: grid; gap: 6px; margin-top: 12px; max-height: 720px; overflow-y: auto; padding-right: 2px; }
.lead-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; transition: background .15s; }
.lead-row:hover { background: var(--sky); }
.lead-row.on { background: #EAF0FF; box-shadow: inset 0 0 0 1.5px #C9D8FF; }
.lr-main b { display: block; font-size: 14px; color: var(--navy); }
.lr-main span { display: block; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-side { text-align: right; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.lr-side b { display: block; font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.grade { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.g-A { background: #FFE9DA; color: #D9601A; }
.g-B { background: #E3ECFF; color: var(--blue-700); }
.g-C { background: #EEF1F6; color: #6B778C; }
.more { margin-top: 8px; width: 100%; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--sky); }
.ld { position: sticky; top: 12px; }
.ld-head { display: flex; gap: 12px; align-items: center; }
.ld-head .grade { width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
.ld-head h3 { font-size: 18px; margin: 0; display: block; }
.ld-head h3 small { font-size: 13px; color: var(--text-2); font-weight: 500; margin-left: 6px; }
.ld-head p { font-size: 12px; color: var(--text-3); }
.ld-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.opener { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #0E275E, #1A47C8); color: #fff; }
.opener .eyebrow { color: #A9C1FF; display: flex; justify-content: space-between; align-items: center; }
.opener .eyebrow button { color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.opener blockquote { margin-top: 6px; font-size: 15px; line-height: 1.7; }
.ld-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ld-grid div { padding: 10px 12px; border-radius: 12px; background: var(--sky); min-width: 0; }
.ld-grid dt { font-size: 12px; color: var(--text-3); }
.ld-grid dd { font-size: 14px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.ld-sec { margin-top: 16px; }
.ld-sec h4 { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.ld-sec p { font-size: 14px; color: var(--text); }
.ld-sec .q { padding: 10px 12px; border-radius: 12px; background: #FFF6EE; color: #8A4515; }
.ld-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ld .bars { margin: 6px 0 0; gap: 7px; }
.ld .bar { grid-template-columns: 58px 1fr 28px; font-size: 12px; }
.ld .bar-track { height: 8px; }
.empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 14px; }

@media (max-width: 1000px) {
  .adv-kpis { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .adv-grid .adv-card:first-child { grid-column: 1 / -1; }
  .adv-main { grid-template-columns: 1fr; }
  .ld { position: static; }
}
@media (max-width: 600px) {
  .adv { padding: 0 12px 30px; }
  .adv-grid { grid-template-columns: 1fr; }
  .ld-grid { grid-template-columns: 1fr 1fr; }
  .ld-two { grid-template-columns: 1fr; }
  .kpi b { font-size: 22px; }
}

.official-logo{object-fit:contain;background:#fff;border-radius:12px;padding:3px}.storage-status{font-size:12px;line-height:1.4;min-height:2.8em;display:flex;align-items:center;justify-content:center;text-align:center;margin:0 0 12px;color:#a6dccb}
