:root {
  --brand: #FF5A1F;
  --brand-2: #FFB03A;
  --brand-deep: #D6420F;
  --brand-soft: #FFE7D3;
  --bg: #FFF5EC;
  --card: #FFFFFF;
  --text: #2A211C;
  --muted: #8B786D;
  --line: rgba(42, 33, 28, 0.08);
  --ok: #12B76A;
  --warn: #F79009;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(160, 70, 20, 0.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: #E9E6F3;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

/* 锁住整页：不允许双指缩放、下拉回弹把页面整体拖走 */
body {
  display: flex; justify-content: center;
  position: fixed; inset: 0; overflow: hidden;
  touch-action: manipulation;
}

.shell {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 520px) {
  .shell { box-shadow: 0 0 60px rgba(40, 25, 100, 0.14); }
}

.screen { display: flex; flex-direction: column; height: 100%; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 通用 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #FF8A24, #E8481A);
  cursor: pointer;
  width: 100%;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; }
.btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(255, 90, 31, .25);
}
.btn-sm { padding: 8px 14px; font-size: 14px; width: auto; font-weight: 500; }
.link { color: var(--brand); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  white-space: nowrap;
}
.pill.gray { background: #F1F0F6; color: var(--muted); }
.pill.ok { background: rgba(18, 183, 106, .1); color: var(--ok); }

/* ---------- 登录 ---------- */
.login {
  position: relative;
  overflow: hidden;
  padding: 56px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100%;
  background: radial-gradient(120% 60% at 50% 0%, #FFE8D6 0%, var(--bg) 62%);
}
.login-deco {
  position: absolute; right: -14px; bottom: 76px; width: 104px;
  opacity: .22; pointer-events: none;
}
.login > *:not(.login-deco) { position: relative; z-index: 1; }
.logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-deep));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 10px 24px rgba(214, 66, 15, .28);
}
.login h1 { font-size: 22px; margin: 0; letter-spacing: .5px; }
.login .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.login-brand { margin-top: 6px; }
.field {
  display: flex; align-items: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 14px;
  height: 52px;
}
.field input {
  flex: 1;
  border: 0; outline: 0;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.field input::placeholder { color: #A7A4B8; }
.field .code-btn {
  border: 0; background: none; color: var(--brand);
  font-size: 14px; font-weight: 600; font-family: inherit;
  padding: 6px 0 6px 12px; cursor: pointer; white-space: nowrap;
}
.field .code-btn[disabled] { color: #B3B0C2; }
.err { color: #D92D20; font-size: 13px; min-height: 18px; }

/* ---------- 顶部栏 ---------- */
.nav {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px;
  background: var(--bg);
}
.nav .back {
  width: 32px; height: 32px; border: 0; background: none;
  color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.nav .title { font-size: 17px; font-weight: 600; }
.nav .sub { font-size: 12px; color: var(--muted); }

/* ---------- 我的培训 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin: 4px 16px 14px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #FF9A2E, #D6420F 68%);
  box-shadow: 0 10px 26px rgba(190, 55, 10, .28);
}
.hero::before {
  content: ''; position: absolute; right: -46px; top: -66px;
  width: 186px; height: 186px; border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.hero::after {
  content: ''; position: absolute; left: -34px; bottom: -78px;
  width: 148px; height: 148px; border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}
.hero-girl {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 108px;
  height: 82px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, .93);
  padding: 3px;
  box-shadow: 0 8px 18px rgba(120, 40, 0, .20);
  pointer-events: none;
}
.hero .org { font-size: 12px; opacity: .82; }
.hero .name { font-size: 20px; font-weight: 600; margin-top: 2px; }
.tabs { display: flex; gap: 8px; padding: 0 16px 14px; }
.tab {
  border: 0; background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 14px; font-family: inherit; cursor: pointer;
}
.tab.on { background: var(--brand); color: #fff; }

.course-list { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.course {
  position: relative;
  background: #fff; border-radius: 18px; padding: 16px 16px 16px 70px;
  box-shadow: 0 6px 18px rgba(160, 70, 20, .08), 0 1px 2px rgba(160, 70, 20, .05);
  display: flex; flex-direction: column; gap: 12px;
}
.course::before {
  content: ''; position: absolute; left: 16px; top: 17px;
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(135deg, #FF9A2E, #E8481A);
  box-shadow: 0 6px 14px rgba(232, 72, 26, .34);
}
.course::after {
  content: '舞'; position: absolute; left: 16px; top: 17px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
}
.course .cname { font-size: 16px; font-weight: 600; line-height: 1.45; }
.course-top { display: flex; align-items: flex-start; gap: 8px; }
.course-top .cname { flex: 1; min-width: 0; }
.lv {
  flex: 0 0 auto; font-size: 11px; line-height: 1; margin-top: 2px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 176, 58, .16); color: #B4630A;
  border: 1px solid rgba(255, 176, 58, .32);
}
.lv-adv { background: rgba(214, 66, 15, .1); color: var(--brand-deep); border-color: rgba(214, 66, 15, .24); }
.prog .prog-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.prog .bar { height: 6px; border-radius: 999px; background: #F6EFE9; overflow: hidden; }
.prog .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .4s ease; }

.sci-note {
  display: flex; align-items: center; gap: 10px;
  margin: 0 16px 18px; padding: 10px 14px;
  background: linear-gradient(135deg, #FFF6EE, #FFF1E4);
  border: 1px dashed rgba(255, 90, 31, .25);
  border-radius: 14px;
}
.sci-note img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.sci-note b { display: block; font-size: 12.5px; color: var(--brand-deep); }
.sci-note span { font-size: 11px; color: var(--muted); }
.course .cmeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course.off { opacity: .55; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #C9C6D6; display: inline-block; margin-right: 5px; }
.dot.live { background: var(--warn); }

.tabbar {
  display: flex; border-top: 1px solid var(--line); background: #fff;
  padding: 8px 0 10px;
}
.tabbar .item {
  flex: 1; text-align: center; font-size: 11px; color: #9C99AB;
}
.tabbar .item.on { color: var(--brand); font-weight: 600; }
.tabbar .item.on .ico { transform: translateY(-1px); }
.tabbar .ico { font-size: 19px; display: block; line-height: 1.3; }
.tabbar .ico svg { width: 22px; height: 22px; display: block; margin: 0 auto; }

/* ---------- 任务说明 ---------- */
.sheet-mask {
  position: absolute; inset: 0; background: rgba(62, 34, 14, .42);
  display: flex; align-items: flex-end; z-index: 30;
}
.sheet {
  width: 100%; max-height: 96%; background: #fff;
  border-radius: 20px 20px 0 0; padding: 18px 20px 22px;
  display: flex; flex-direction: column;
}
.sheet .close { align-self: flex-end; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
.sheet-photo {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 14px;
  margin: 4px 0 16px; background: #FFF7F0;
}
.kit {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-bottom: 14px;
  background: #FFF4E8; border: 1px solid rgba(214, 66, 15, .18);
  border-radius: 12px;
}
.kit img { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; }
.kit b { display: block; font-size: 13px; color: var(--brand-deep); }
.kit span { font-size: 11.5px; color: var(--muted); }
.sheet h2 { font-size: 19px; margin: 0 0 10px; }
.sheet .body { overflow-y: auto; flex: 1; font-size: 14.5px; color: #3B3948; }
.sheet .body p { margin: 0 0 12px; }
.sheet .body ul { margin: 0 0 12px; padding-left: 20px; }
.sheet .body li { margin-bottom: 7px; }
.sheet .body h3 { font-size: 15px; margin: 14px 0 8px; color: var(--brand-deep); }
.dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0 14px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #DAD6E8; }
.dots i.on { width: 16px; background: var(--brand); }
.sheet-nav { display: flex; gap: 10px; align-items: center; }
.sheet-nav .btn { flex: 1; }
.sheet-nav .btn-ghost { flex: 0 0 92px; font-size: 15px; padding: 13px 8px; }

/* ---------- 对话 ---------- */
.chat-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line);
}
.chat-nav .title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.chat-actions .mini {
  border: 1px solid rgba(255, 90, 31, .28); color: var(--brand);
  background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-family: inherit; cursor: pointer;
}
.chat-actions .mini.end { border-color: rgba(217, 45, 32, .25); color: #D92D20; }
.chat-actions .mini.off { color: #A7A4B8; border-color: rgba(167, 164, 184, .35); }

.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 14px; background: #FDF6F0; overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; max-width: 84%; }
.msg.ai { align-self: flex-start; align-items: flex-start; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.bubble {
  padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.6;
  word-break: break-word; white-space: pre-wrap;
}
.msg.ai .bubble { background: #fff; border-top-left-radius: 4px; box-shadow: 0 2px 8px rgba(40, 25, 100, .05); }
.msg.user .bubble { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; border-top-right-radius: 4px; }
.msg .meta { font-size: 11px; color: #A7A4B8; margin-top: 5px; }
.msg .meta .speak { margin-left: 10px; color: var(--brand); cursor: pointer; }
.msg .meta .speak:active { opacity: .6; }
.msg .tools { display: flex; gap: 12px; font-size: 11.5px; color: var(--brand); margin-top: 4px; }
.msg .tools span { cursor: pointer; }
.msg .tools span:active { opacity: .55; }
.msg .tools span.muted { color: #A7A4B8; cursor: default; }

.voice {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(40, 25, 100, .05);
  min-width: 130px; cursor: pointer;
  border: 0; font-family: inherit;
}
.msg.user .voice { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.voice .bars { display: flex; align-items: center; gap: 2px; height: 18px; }
.voice .bars i { width: 2px; background: currentColor; border-radius: 2px; opacity: .85; }
.voice .dur { font-size: 12px; opacity: .9; }
.voice.playing .bars i { animation: wave .7s infinite ease-in-out alternate; }
.voice.pending { opacity: .6; }
.voice.playing .bars i:nth-child(2n) { animation-delay: .15s; }
.voice.playing .bars i:nth-child(3n) { animation-delay: .3s; }
@keyframes wave { from { transform: scaleY(.4); } to { transform: scaleY(1.4); } }

.typing { display: flex; align-items: center; gap: 4px; padding: 14px 16px; }
.typing .tt { font-size: 12.5px; color: #8E8AA3; margin-right: 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #BDB8D0; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.composer { background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(6px + env(safe-area-inset-bottom)); }
.composer .line { display: flex; align-items: center; gap: 8px; }
.composer input[type="text"] {
  flex: 1; height: 42px; border-radius: 999px; border: 0; background: #F3F2F8;
  padding: 0 16px; font-size: 15px; font-family: inherit; outline: none; color: var(--text); min-width: 0;
}
.mic {
  width: 44px; height: 44px; border-radius: 50%; border: 0; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; font-size: 19px; cursor: pointer;
}
.mic.rec { background: #D92D20; animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,45,32,.45); } 100% { box-shadow: 0 0 0 14px rgba(217,45,32,0); } }
.send {
  height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.notice { font-size: 11px; color: #A7A4B8; }
.notice-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 4px 2px; }
.notice-line .end-link {
  border: 0; background: none; color: #D92D20; font-size: 11.5px;
  font-family: inherit; padding: 3px 2px; cursor: pointer; white-space: nowrap;
}

.rec-bar {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%);
  background: rgba(28, 27, 36, .88); color: #fff; border-radius: 14px;
  padding: 14px 22px; text-align: center; font-size: 13px; z-index: 20;
  display: none;
}
.rec-bar.on { display: block; }
.rec-bar .big { font-size: 22px; font-weight: 600; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.rec-bar #recCancel {
  margin-top: 10px; border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .1);
  color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 12.5px;
  font-family: inherit; cursor: pointer;
}

/* 发完语音 15 秒内可撤回重录 */
.undo-bar {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(118px + env(safe-area-inset-bottom));
  background: #fff; color: var(--brand-deep); border: 1px solid #F3D9C9;
  border-radius: 999px; padding: 8px 15px; font-size: 12.5px; font-family: inherit;
  box-shadow: 0 6px 18px rgba(214, 66, 15, .18); z-index: 19; cursor: pointer;
  white-space: nowrap;
}

/* 语音还没合成好时的占位：只做呼吸感，不写"合成中" */
.voice.pending { opacity: .55; }
.voice.pending .bars i { animation: vb 1s infinite ease-in-out; }
@keyframes vb { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }

/* ---------- 报告 ---------- */
.report-head {
  padding: 18px 20px 22px;
  background: linear-gradient(135deg, #FF5A1F, #C93A0E);
  color: #fff;
}
.report-head .label { font-size: 12px; opacity: .75; }
.score-line { display: flex; align-items: flex-end; gap: 10px; margin-top: 2px; }
.score-big { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.score-total { font-size: 13px; opacity: .75; padding-bottom: 6px; }
.grade {
  margin-left: auto; align-self: center;
  background: rgba(255,255,255,.16); border-radius: 999px; padding: 5px 14px; font-size: 13px;
}
.speech-card {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
}
.speech-card .sp-top { display: flex; justify-content: space-between; font-size: 12.5px; opacity: .85; }
.speech-card .sp-rate { font-size: 26px; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.speech-card .sp-rate span { font-size: 12px; font-weight: 400; opacity: .7; margin-left: 4px; }
.speech-card .sp-tip { font-size: 12px; line-height: 1.5; opacity: .8; margin-top: 4px; }
.report-body { padding: 16px 14px 28px; display: flex; flex-direction: column; gap: 14px; }
.sec-title { font-size: 15px; font-weight: 600; margin: 2px 2px 0; }
.radar-wrap { position: relative; overflow: hidden; background: #fff; border-radius: 16px; padding: 8px 10px 4px; box-shadow: var(--shadow); }
.radar-wrap svg { position: relative; width: 100%; height: auto; display: block; }
.radar-photo {
  position: absolute; left: 6px; bottom: 6px;
  width: 104px; height: 104px; object-fit: cover;
  border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(190, 55, 10, .18);
  pointer-events: none;
}

/* 报告顶部情绪卡：低分鼓励 / 高分表扬 */
.encourage-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 16px;
  background: linear-gradient(135deg, #FFEBD6, #FFD4B2);
  border: 1px solid rgba(214, 66, 15, .3);
  box-shadow: 0 8px 18px rgba(190, 55, 10, .14);
}
.encourage-card .ec-img {
  width: 78px; height: 78px; border-radius: 14px; object-fit: cover; flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(160, 70, 20, .14);
}
.encourage-card .ec-title { font-size: 15px; font-weight: 700; color: var(--brand-deep); }
.encourage-card .ec-tip { font-size: 12.5px; line-height: 1.55; color: #7A5B49; margin-top: 4px; }

/* 最弱象限提示 */
.focus-card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow);
}
.focus-card .focus-deco {
  position: absolute; right: -8px; bottom: -12px; width: 108px;
  opacity: .4; pointer-events: none;
}
.focus-card .fc-label {
  position: relative; display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; color: var(--brand-deep); background: var(--brand-soft);
}
.focus-card .fc-line { position: relative; display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.focus-card .fc-line b { font-size: 16px; }
.focus-card .fc-sc { font-size: 14px; font-weight: 700; }
.focus-card .fc-sc.low { color: #D92D20; }
.focus-card p { position: relative; max-width: 74%; margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: #5A5566; }
.focus-card .fc-top {
  position: relative; display: inline-block; margin-top: 9px; padding: 6px 10px;
  font-size: 12px; color: #0B7A4B; background: rgba(18, 183, 106, .09); border-radius: 8px;
}

.dim { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; }
.dim .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dim .nm { font-size: 15px; font-weight: 600; }
.dim .sc { font-size: 15px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.dim .sc.low { color: #D92D20; }
.dim .sc.mid { color: var(--warn); }
.dim .sc.na { color: #A7A4B8; font-weight: 500; font-size: 13px; }
.dim ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.dim li { font-size: 13.5px; color: #4A4759; padding-left: 20px; position: relative; }
.dim li::before {
  content: "○"; position: absolute; left: 0; top: 0; color: #C6C2D6; font-size: 12px;
}
.dim li.hit::before { content: "●"; color: var(--ok); }
.dim li.pen { color: #D92D20; }
.dim li.pen::before { content: "×"; color: #D92D20; }
.dim .quote { display: block; margin-top: 4px; padding: 7px 10px; background: #FFF6EF; border-radius: 8px; color: #6E6C7E; font-size: 12.5px; }
.dim .dim-comment { margin-top: 7px; font-size: 12.5px; line-height: 1.55; color: #6E6C7E; background: #FFF8F2; border-left: 3px solid rgba(255, 90, 31, .35); border-radius: 0 8px 8px 0; padding: 7px 10px; }

.bullets { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px; }
.bullets h4 { margin: 0 0 10px; font-size: 14.5px; }
.bullets ol { margin: 0; padding-left: 20px; }
.bullets li { margin-bottom: 10px; font-size: 14px; color: #3B3948; }
.bullets li span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.footer-actions { display: flex; gap: 10px; padding: 0 14px 30px; }

/* ---------- 后台 ---------- */
.admin { padding: 20px; max-width: 1080px; margin: 0 auto; }
.admin h1 { font-size: 20px; margin: 0 0 4px; }
.admin .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
table.tbl th, table.tbl td { padding: 11px 12px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
table.tbl th { background: #FAF9FE; color: var(--muted); font-weight: 500; font-size: 12.5px; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr.click { cursor: pointer; }
table.tbl tr.click:hover { background: #FAF9FE; }
.tag-status { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #F1F0F6; color: var(--muted); }
.tag-status.done { background: rgba(18,183,106,.1); color: var(--ok); }
.qr-box { background: #fff; border-radius: 12px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.qr-box canvas, .qr-box img { display: block; margin: 0 auto 10px; }
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,15,45,.5); display: none;
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-mask.on { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 760px; max-height: 86vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal header button { border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.modal .content { padding: 16px 20px 24px; overflow-y: auto; }
.dialog-line { margin-bottom: 10px; font-size: 14px; }
.dialog-line b { color: var(--brand-deep); }

@media print {
  body { background: #fff; display: block; position: static; overflow: visible; }
  .shell { position: static; max-width: none; height: auto; overflow: visible; box-shadow: none; }
  .screen { height: auto; }
  .scroll { overflow: visible; }
  .report-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .footer-actions, .nav, .chat-nav { display: none !important; }
  .report-body { padding: 12px 0; }
  .card, .dim, .bullets, .radar-wrap { box-shadow: none; border: 1px solid #E5E3EE; break-inside: avoid; }
}
