/* ==========================================================================
   泰山·企业AI成熟度诊断 —— 共用样式
   移动端竖屏优先；桌面预览时自动套手机外框。
   ========================================================================== */

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

/* hidden 属性必须能盖住组件自身的 display 声明（如 .session-bar{display:flex}） */
[hidden] { display: none !important; }

:root {
  --ink: #0A1428;
  --ink-2: #12203C;
  --gold: #E3B664;
  --gold-2: #F3D9A4;
  --gold-deep: #C2913C;
  --text: #141C2B;
  --text-2: #5A6B85;
  --text-3: #93A1B8;
  --line: #E7EBF2;
  --danger: #E5484D;
  --ok: #3FA96A;
  --card: #FFFFFF;
  --radius: 28px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
          "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
}

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ============ 手机外框（桌面预览用） ============ */

.phone { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--ink); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column; }

.island {
  display: none;
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 106px; height: 28px; background: #05070C; border-radius: 20px; z-index: 60;
}

@media (min-width: 520px) and (min-height: 760px) {
  body { background: radial-gradient(120% 90% at 50% 0%, #1B2B4A 0%, #080F1E 60%, #05090F 100%); }
  .phone {
    width: 390px; height: 872px; border-radius: 52px;
    border: 1px solid rgba(227, 182, 100, .22);
    box-shadow: 0 0 0 11px #0d1526, 0 0 0 12px #2A3550,
                0 40px 90px -20px rgba(0, 0, 0, .85),
                0 0 70px -18px rgba(227, 182, 100, .35);
  }
  .island { display: block; }
  /* 让开灵动岛，避免压住品牌标识 */
  .brand { padding-top: calc(env(safe-area-inset-top) + 44px); }
}

/* ============ 夜空与山景 ============ */

.hero {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 55% at 78% 8%, rgba(227, 182, 100, .20) 0%, rgba(227, 182, 100, 0) 62%),
    radial-gradient(70% 50% at 12% 22%, rgba(58, 110, 220, .30) 0%, rgba(58, 110, 220, 0) 65%),
    linear-gradient(178deg, #12233F 0%, #0D1A31 42%, #0A1428 100%);
}

.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .85;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 14%, rgba(255, 255, 255, .75), transparent),
    radial-gradient(1.2px 1.2px at 72% 9%, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1.6px 1.6px at 88% 26%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1.1px 1.1px at 40% 6%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.3px 1.3px at 8% 32%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.1px 1.1px at 58% 20%, rgba(255, 255, 255, .4), transparent);
  animation: twinkle 5.5s ease-in-out infinite;
}

@keyframes twinkle { 0%, 100% { opacity: .85 } 50% { opacity: .35 } }

.top {
  position: relative; z-index: 2; flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
}

.mountains {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 92px;
  display: block; pointer-events: none;
}

.glow-moon {
  position: absolute; top: 40px; right: 50px; width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%,
    rgba(255, 250, 238, .95) 0%, rgba(243, 217, 164, .72) 40%,
    rgba(227, 182, 100, .16) 68%, rgba(227, 182, 100, 0) 74%);
  filter: blur(1.5px);
  animation: moonFloat 7s ease-in-out infinite;
}

@keyframes moonFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* ============ 品牌区 ============ */

.brand {
  position: relative; z-index: 2;
  padding: calc(env(safe-area-inset-top) + 26px) 30px 0;
  text-align: center; color: #fff;
}

.logo {
  width: 60px; height: 60px; margin: 0 auto 11px; border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(227, 182, 100, .45);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}

.logo svg { width: 36px; height: 36px; display: block; }

.brand h1 {
  margin: 0; font-family: var(--serif);
  font-size: 25px; font-weight: 600; letter-spacing: .12em;
  background: linear-gradient(180deg, #FFFFFF 20%, #F3D9A4 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.brand .en {
  margin-top: 7px; font-size: 9.5px; letter-spacing: .34em;
  color: rgba(227, 182, 100, .85); text-transform: uppercase;
}

.brand .rule {
  width: 44px; height: 1px; margin: 11px auto 0;
  background: linear-gradient(90deg, transparent, rgba(227, 182, 100, .75), transparent);
}

/* 紧凑版品牌（注册页顶部） */
.nav {
  position: relative; z-index: 2;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 12px;
  display: flex; align-items: center; gap: 12px; color: #fff;
}
.nav .back {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; padding: 0;
}
.nav .back svg { width: 17px; height: 17px; }
.nav .nav-logo {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 34px;
  border: 1px solid rgba(227, 182, 100, .45);
  background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  display: flex; align-items: center; justify-content: center;
}
.nav .nav-logo svg { width: 21px; height: 21px; }
.nav .nav-title { font-family: var(--serif); font-size: 17px; letter-spacing: .1em; }
.nav .nav-sub { font-size: 10px; color: rgba(227, 182, 100, .8); letter-spacing: .2em; margin-top: 2px; }

@media (min-width: 520px) and (min-height: 760px) {
  .nav { padding-top: calc(env(safe-area-inset-top) + 34px); }
}

/* ============ 面板 ============ */

.panel {
  position: relative; z-index: 3; margin-top: auto;
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 26px 26px calc(env(safe-area-inset-bottom) + 18px);
  box-shadow: 0 -14px 40px -12px rgba(4, 10, 22, .55);
  animation: rise .55s cubic-bezier(.22, .9, .3, 1) both;
}

/* 注册页：面板占满剩余高度并可滚动 */
.panel.scroll {
  flex: 1; min-height: 0; margin-top: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@keyframes rise { from { transform: translateY(38px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.panel-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.panel-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--text-3); }
.panel-head .link { font-size: 12.5px; color: var(--text-3); text-decoration: none; padding-bottom: 2px; }
.panel-head .link b { color: var(--gold-deep); font-weight: 600; }

/* ============ 输入 ============ */

.fgroup { margin-bottom: 4px; }

.field {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 2px 2px 2px 0;
  transition: border-color .2s;
}
.field.focus { border-bottom-color: var(--gold); }
.fgroup.bad .field { border-bottom-color: var(--danger); }

.field .ico { width: 19px; height: 19px; flex: 0 0 19px; color: var(--text-3); transition: color .2s; }
.field.focus .ico { color: var(--gold-deep); }
.fgroup.bad .field .ico { color: var(--danger); }

.field .prefix { font-size: 15px; color: var(--text-2); font-weight: 500; white-space: nowrap; }

.field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 16px; color: var(--text);
  padding: 15px 0; letter-spacing: .02em;
}
.field input::placeholder { color: #B6C0D0; font-size: 14px; letter-spacing: 0; }
.field input[type=password] { letter-spacing: .16em; font-size: 17px; }
.field input[type=password]::placeholder { letter-spacing: 0; font-size: 14px; }

/* 选择器行（所属行业 / 企业规模） */
.field.pick { cursor: pointer; }
.field.pick .value { flex: 1; font-size: 16px; padding: 15px 0; color: var(--text); }
.field.pick .value.empty { color: #B6C0D0; font-size: 14px; }
.field.pick .chev { width: 16px; height: 16px; color: var(--text-3); flex: 0 0 16px; }

.eye, .send {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--text-3);
  cursor: pointer; display: flex; align-items: center;
}
.eye { padding: 8px 0 8px 8px; }
.eye svg { width: 18px; height: 18px; }
.send {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--gold-deep);
  padding: 8px 2px 8px 12px; white-space: nowrap; border-left: 1px solid var(--line);
}
.send:disabled { color: #C3CBD8; cursor: default; }

.forgot { display: block; width: max-content; margin: 14px 0 0 auto; font-size: 12.5px; color: var(--text-3); text-decoration: none; }

/* 字段错误提示 */
.msg {
  display: none; font-size: 11.5px; line-height: 1.5;
  color: var(--danger); padding: 6px 2px 0;
}
.fgroup.bad .msg { display: block; }

/* ============ 密码强度 ============ */

.strength { display: flex; gap: 4px; margin: 9px 2px 0; }
.strength i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .25s; }
.strength.s1 i:nth-child(1) { background: #E5484D; }
.strength.s2 i:nth-child(-n+2) { background: #E8A33D; }
.strength.s3 i:nth-child(-n+3) { background: #3FA96A; }
.strength-text { font-size: 11px; color: var(--text-3); margin: 6px 2px 0; }

/* ============ 协议 ============ */

.agree {
  display: flex; align-items: flex-start; gap: 9px; margin: 22px 2px 16px;
  font-size: 12px; line-height: 1.55; color: var(--text-2); cursor: pointer;
}
.agree .box {
  flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; border-radius: 5px;
  border: 1.5px solid #CBD4E1; background: #fff;
  display: flex; align-items: center; justify-content: center; transition: all .18s;
}
.agree .box svg { width: 11px; height: 11px; color: #fff; opacity: 0; transform: scale(.5); transition: all .18s; }
.agree.on .box { background: linear-gradient(140deg, var(--gold), var(--gold-deep)); border-color: var(--gold-deep); }
.agree.on .box svg { opacity: 1; transform: scale(1); }
.agree a { color: var(--gold-deep); text-decoration: none; font-weight: 500; }
.agree.shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }

@keyframes shake {
  10%, 90% { transform: translateX(-2px) } 20%, 80% { transform: translateX(4px) }
  30%, 50%, 70% { transform: translateX(-6px) } 40%, 60% { transform: translateX(6px) }
}

/* ============ 按钮 ============ */

.submit {
  position: relative; width: 100%; height: 52px; border: 0; border-radius: 15px;
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: .06em;
  color: #2A1E06; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #F6E0B0 0%, #E3B664 46%, #C2913C 100%);
  box-shadow: 0 10px 22px -8px rgba(194, 145, 60, .72);
  transition: transform .16s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit:active { transform: translateY(1px) scale(.985); }
.submit:disabled { background: #EDF0F5; color: #AEB8C7; box-shadow: none; cursor: default; }
.submit:disabled:active { transform: none; }
.submit .spin {
  width: 17px; height: 17px; border-radius: 50%; display: none;
  border: 2px solid rgba(42, 30, 6, .28); border-top-color: #2A1E06;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.submit.loading .spin { display: block; }
.submit.loading .label { opacity: .75; }
.submit.done { background: linear-gradient(135deg, #8FD6A8, #3FA96A); color: #fff; }

/* ============ 其他登录方式 / 页脚 ============ */

.alt { margin-top: 26px; }
.alt .split { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 11.5px; letter-spacing: .04em; }
.alt .split::before, .alt .split::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alt .ways { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.way {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s;
}
.way:active { transform: scale(.94); background: #F7F8FB; }
.way svg { width: 23px; height: 23px; }
.way.wechat { border-color: #D6EBDD; }

.foot { margin-top: 22px; text-align: center; font-size: 10.5px; color: #AEB8C7; line-height: 1.7; }
.foot .dot { margin: 0 5px; opacity: .5; }

/* ============ 底部选择器 ============ */

.mask {
  position: absolute; inset: 0; z-index: 70; background: rgba(6, 12, 24, .48);
  opacity: 0; pointer-events: none; transition: opacity .26s; backdrop-filter: blur(2px);
}
.mask.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 75;
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 8px 0 calc(env(safe-area-inset-bottom) + 8px);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.22, .9, .3, 1);
  max-height: 72%; display: flex; flex-direction: column;
  box-shadow: 0 -12px 36px -12px rgba(4, 10, 22, .5);
}
.sheet.on { transform: translateY(0); }
.sheet-bar { width: 36px; height: 4px; border-radius: 3px; background: #E2E7F0; margin: 6px auto 4px; }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 12px; border-bottom: 1px solid var(--line);
}
.sheet-head b { font-size: 15px; font-weight: 600; }
.sheet-head button {
  border: 0; background: transparent; font-family: inherit;
  font-size: 13px; color: var(--text-3); cursor: pointer; padding: 4px;
}
.sheet-body { overflow-y: auto; padding: 4px 0; }
.opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; font-size: 15px; color: var(--text); cursor: pointer;
}
.opt:active { background: #F7F8FB; }
.opt.on { color: var(--gold-deep); font-weight: 600; }
.opt svg { width: 16px; height: 16px; opacity: 0; }
.opt.on svg { opacity: 1; }

/* ============ Toast ============ */

.toast {
  position: absolute; left: 50%; bottom: 96px; z-index: 80;
  transform: translate(-50%, 14px); max-width: 80%;
  background: rgba(16, 24, 40, .94); color: #fff;
  font-size: 13px; line-height: 1.5; text-align: center;
  padding: 11px 18px; border-radius: 12px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none; transition: all .26s cubic-bezier(.22, .9, .3, 1);
  backdrop-filter: blur(8px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============ 成功层 ============ */

.success {
  position: absolute; inset: 0; z-index: 90; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(178deg, #12233F, #0A1428); color: #fff;
  text-align: center; padding: 30px;
}
.success.on { display: flex; animation: fade .3s both; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.success .tick {
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(140deg, #F6E0B0, #C2913C);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px rgba(227, 182, 100, .12), 0 16px 40px -12px rgba(227, 182, 100, .7);
  animation: pop .45s cubic-bezier(.22, 1.2, .36, 1) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.success .tick svg { width: 36px; height: 36px; color: #3A2A08; }
.success h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: .05em; }
.success p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .6); line-height: 1.6; }
.success .who {
  margin-top: 2px; font-size: 12.5px; color: var(--gold-2);
  background: rgba(227, 182, 100, .1); border: 1px solid rgba(227, 182, 100, .25);
  padding: 8px 16px; border-radius: 10px; line-height: 1.6;
}
.success .acts { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.success .acts button {
  font-size: 12.5px; font-family: inherit; padding: 9px 20px; border-radius: 10px;
  background: transparent; border: 1px solid rgba(227, 182, 100, .4);
  color: var(--gold); cursor: pointer;
}

/* ==========================================================================
   答题页
   ========================================================================== */

.quiz { position: relative; z-index: 3; flex: 1; min-height: 0; display: flex; flex-direction: column;
        background: var(--card); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
        box-shadow: 0 -14px 40px -12px rgba(4, 10, 22, .55); }

.quiz-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.quiz-head .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.quiz-head .dim-tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--gold-deep);
  background: rgba(227, 182, 100, .12); border: 1px solid rgba(227, 182, 100, .3);
  padding: 4px 10px; border-radius: 20px;
}
.quiz-head .counter { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.quiz-head .counter b { color: var(--text); font-size: 15px; font-weight: 600; }
.close-x {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--text-3); cursor: pointer; padding: 0;
}
.close-x svg { width: 14px; height: 14px; }

.progress-track { height: 4px; border-radius: 3px; background: #EDF0F5; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transition: width .35s cubic-bezier(.22, .9, .3, 1);
}

.quiz-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 22px; }
.q-text { margin: 0 0 20px; font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: .01em; }
.q-text .q-no { color: var(--gold-deep); margin-right: 6px; font-variant-numeric: tabular-nums; }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 11px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 14px 15px; font-family: inherit; font-size: 14.5px; line-height: 1.5; color: var(--text);
  cursor: pointer; transition: all .18s;
}
.choice:active { transform: scale(.99); }
.choice .mark {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  border: 1.5px solid #CBD4E1; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; transition: all .18s;
}
.choice.on { border-color: var(--gold-deep); background: rgba(227, 182, 100, .07); }
.choice.on .mark { background: linear-gradient(140deg, var(--gold), var(--gold-deep)); border-color: var(--gold-deep); color: #fff; }

.quiz-foot {
  flex: 0 0 auto; display: flex; gap: 10px; padding: 14px 22px calc(env(safe-area-inset-bottom) + 14px);
  border-top: 1px solid var(--line); background: #fff;
}
.btn-ghost {
  flex: 0 0 auto; height: 48px; padding: 0 22px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-family: inherit; font-size: 15px; cursor: pointer;
}
.btn-ghost:disabled { color: #C3CBD8; cursor: default; }
.quiz-foot .submit { height: 48px; flex: 1; }

/* ==========================================================================
   报告页
   ========================================================================== */

.report-page { position: relative; z-index: 3; flex: 1; min-height: 0; overflow-y: auto;
               -webkit-overflow-scrolling: touch; background: #F4F6FA; }

.rp-head {
  background: linear-gradient(165deg, #12233F 0%, #0D1A31 60%, #0A1428 100%);
  padding: calc(env(safe-area-inset-top) + 22px) 22px 26px; color: #fff;
}
.rp-head .logo-chip {
  display: inline-flex; align-items: center; background: #fff; border-radius: 9px;
  padding: 7px 10px; margin-bottom: 16px;
}
.rp-head .logo-chip img { height: 19px; display: block; }
.rp-head h1 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.rp-head .meta { margin-top: 7px; font-size: 11.5px; color: rgba(255, 255, 255, .55); line-height: 1.7; }

.rp-body { padding: 18px 16px calc(env(safe-area-inset-bottom) + 30px); }

.card {
  background: #fff; border-radius: 18px; padding: 20px 18px; margin-bottom: 14px;
  box-shadow: 0 4px 18px -10px rgba(20, 32, 60, .22);
}
.card > h2 {
  margin: 0 0 14px; font-size: 15px; font-weight: 600; letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
}
.card > h2::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--gold-deep); }

.score-hero { text-align: center; padding: 26px 18px 22px; }
.score-num {
  font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(160deg, #E3B664, #C2913C);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.score-num small { font-size: 17px; font-weight: 500; margin-left: 3px; }
.score-label { margin-top: 6px; font-size: 11.5px; color: var(--text-3); letter-spacing: .1em; }
.level-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 13px;
  background: linear-gradient(135deg, #12233F, #1D3357); color: #F3D9A4;
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
}
.level-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.score-desc { margin: 13px auto 0; max-width: 300px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }

.radar-wrap { display: flex; justify-content: center; padding: 4px 0 6px; }
.radar-wrap svg { width: 100%; max-width: 320px; height: auto; }

.dim-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.dim-row { display: flex; align-items: center; gap: 11px; background: #fff; padding: 12px 13px; }
.dim-row .no { flex: 0 0 auto; font-size: 13px; color: var(--text-3); width: 17px; }
.dim-row .nm { flex: 1; min-width: 0; font-size: 13.5px; }
.dim-row .wt { flex: 0 0 auto; font-size: 11px; color: var(--text-3); }
.dim-row .sc { flex: 0 0 auto; width: 40px; text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dim-row .st { flex: 0 0 auto; width: 62px; text-align: right; font-size: 11px; color: var(--text-3); }
.dim-bar { flex: 0 0 48px; height: 4px; border-radius: 3px; background: #EDF0F5; overflow: hidden; }
.dim-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }

.one-line { font-size: 14px; line-height: 1.8; color: var(--text); }
.one-line b { color: var(--gold-deep); font-weight: 600; }

.kv-card { border-radius: 14px; padding: 15px 15px 14px; margin-bottom: 10px; border: 1px solid var(--line); }
.kv-card:last-child { margin-bottom: 0; }
.kv-card.good { background: #F6FAF7; border-color: #DFEDE3; }
.kv-card.bad { background: #FEF8F6; border-color: #F7E3DD; }
.kv-card .ttl { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.kv-card .ttl b { font-size: 14px; font-weight: 600; }
.kv-card .ttl .s { margin-left: auto; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kv-card.good .ttl .s { color: var(--ok); }
.kv-card.bad .ttl .s { color: var(--danger); }
.kv-card .intro { font-size: 13px; line-height: 1.7; color: var(--text-2); margin-bottom: 9px; }
.kv-card ul { margin: 0; padding-left: 17px; }
.kv-card li { font-size: 12.5px; line-height: 1.85; color: var(--text-2); }
.kv-card .impact, .kv-card .advice { margin-top: 11px; font-size: 12.5px; line-height: 1.7; }
.kv-card .impact b, .kv-card .advice b { display: block; margin-bottom: 3px; font-size: 11.5px; letter-spacing: .04em; }
.kv-card .impact b { color: var(--danger); }
.kv-card .advice b { color: var(--ok); }

.bp-item { padding: 14px 0; border-top: 1px dashed var(--line); }
.bp-item:first-of-type { border-top: 0; padding-top: 0; }
.bp-item h4 { margin: 0 0 7px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.bp-item p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
.bp-chain {
  background: #F7F8FB; border-radius: 12px; padding: 14px; margin-bottom: 14px;
  font-size: 12.5px; line-height: 1.8; color: var(--text-2);
}

.opp { border: 1px solid var(--line); border-radius: 14px; padding: 15px; margin-bottom: 10px; }
.opp:last-child { margin-bottom: 0; }
.opp .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.opp .rank {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 700;
  background: linear-gradient(140deg, var(--gold), var(--gold-deep)); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.opp .hd b { font-size: 14px; }
.opp .hd .dim { margin-left: auto; font-size: 11px; color: var(--text-3); }
.opp .sum { font-size: 12.5px; line-height: 1.7; color: var(--text-2); margin-bottom: 9px; }
.opp ul { margin: 0; padding-left: 17px; }
.opp li { font-size: 12.5px; line-height: 1.8; color: var(--text-2); }

.plan { padding: 14px 0; border-top: 1px dashed var(--line); }
.plan:first-of-type { border-top: 0; padding-top: 0; }
.plan h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; }
.plan ul { margin: 0 0 9px; padding-left: 17px; }
.plan li { font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
.plan .acc { font-size: 12px; line-height: 1.7; color: var(--ok); background: #F6FAF7; border-radius: 9px; padding: 10px 12px; }

.roadmap { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.rm-row { background: #fff; padding: 12px 13px; }
.rm-row .p { font-size: 12px; font-weight: 600; color: var(--gold-deep); margin-bottom: 4px; }
.rm-row .f { font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.rm-row .d { margin-top: 5px; font-size: 11px; color: var(--text-3); }

.goal-box { background: linear-gradient(150deg, #12233F, #1D3357); border-radius: 14px; padding: 17px; color: #fff; }
.goal-box .t { font-size: 12px; color: rgba(255, 255, 255, .6); letter-spacing: .06em; margin-bottom: 9px; }
.goal-box .v { font-size: 25px; font-weight: 700; color: #F3D9A4; font-variant-numeric: tabular-nums; }
.goal-box .v span { font-size: 13px; color: rgba(255, 255, 255, .4); font-weight: 400; margin: 0 7px; }
.goal-box .n { margin-top: 11px; font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, .75); }

.rp-actions { display: flex; gap: 10px; margin-top: 4px; }
.rp-actions button {
  flex: 1; height: 46px; border-radius: 13px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.rp-actions .primary { border: 0; background: linear-gradient(135deg, #F6E0B0, #C2913C); color: #2A1E06; }
.rp-actions .ghost { border: 1px solid var(--line); background: #fff; color: var(--text-2); }

/* ==========================================================================
   授权同意页
   ========================================================================== */

.consent-page { position: relative; z-index: 3; flex: 1; min-height: 0; overflow-y: auto; background: #F4F6FA; }
.consent-body { padding: 18px 16px calc(env(safe-area-inset-bottom) + 26px); }
.app-card { text-align: center; padding: 26px 18px 22px; }
.app-card .avatar {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 14px;
  background: linear-gradient(140deg, #EEF2F9, #DCE4F0);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #4A5D7E;
}
.app-card h1 { margin: 0; font-size: 18px; font-weight: 600; }
.app-card .sub { margin-top: 7px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.scope-list { margin-top: 4px; }
.scope-item {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-top: 1px dashed var(--line);
}
.scope-item:first-child { border-top: 0; }
.scope-item .ck {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  background: #EAF3EC; color: var(--ok); display: flex; align-items: center; justify-content: center;
}
.scope-item .ck svg { width: 12px; height: 12px; }
.scope-item .tx b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.scope-item .tx span { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.consent-user {
  display: flex; align-items: center; gap: 10px; background: #F7F8FB; border-radius: 12px;
  padding: 12px 14px; font-size: 12.5px; color: var(--text-2); margin-bottom: 14px;
}
.consent-actions { display: flex; gap: 10px; margin-top: 18px; }
.consent-actions button { flex: 1; height: 50px; border-radius: 14px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.consent-actions .deny { flex: 0 0 38%; border: 1px solid var(--line); background: #fff; color: var(--text-2); }
.consent-actions .allow { border: 0; background: linear-gradient(135deg, #F6E0B0, #C2913C); color: #2A1E06; }

/* ==========================================================================
   品牌 Logo（浅底承载，深色背景上不直接使用红标）
   ========================================================================== */

.brand-logo { display: block; height: 22px; margin: 0 auto 18px; }
.panel-head + .brand-logo, .brand-logo + .panel-head { margin-top: 0; }
.logo-holder { display: flex; justify-content: center; margin-bottom: 18px; }
.logo-holder img { height: 26px; display: block; }

/* ==========================================================================
   打印（导出 PDF）
   ========================================================================== */

@media print {
  body { background: #fff; display: block; overflow: visible; }
  .phone { width: auto; height: auto; border: 0; box-shadow: none; border-radius: 0; }
  .island, .rp-actions, .toast, .close-x { display: none !important; }
  .screen { height: auto; display: block; }
  .report-page { overflow: visible; }
  .rp-head { background: #12233F !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #E7EBF2; }
}

/* ==========================================================================
   品牌：Taishan XD 红色字标一律置于浅色承载片上（深色底上不裸放红标）
   ========================================================================== */

.brand-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px; padding: 9px 13px; margin: 0 auto 13px;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .7);
}
.brand-chip img { height: 19px; display: block; }

/* 导航条里的紧凑版 */
.nav .nav-logo {
  width: auto; height: 30px; padding: 0 10px; border-radius: 9px; flex: 0 0 auto;
  background: #fff; border: 0;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .6);
}
.nav .nav-logo img { height: 15px; display: block; }
