/* ============================================================
   智慧考务 · 小程序风格设计系统
   主色：微信绿 #07C160
   ============================================================ */

:root {
  --brand: #07c160;
  --brand-dark: #06ad56;
  --brand-light: #e8f8ef;
  --brand-soft: #f2fbf6;

  --danger: #fa5151;
  --danger-light: #fff0f0;
  --warn: #ff9c19;
  --warn-light: #fff7e8;
  --info: #3f7ef7;
  --info-light: #eef4ff;

  --text: #191919;
  --text-sub: #576b95;
  --text-gray: #888888;
  --text-light: #b2b2b2;

  --bg: #ededed;
  --card: #ffffff;
  --line: #ebedf0;
  --line-strong: #e0e2e6;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  --nav-h: 52px;
  --tab-h: 54px;

  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: #dcdcdc;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 手机外框（桌面端） ---------- */
.phone {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 500px) {
  body {
    padding: 0;
  }
  .phone {
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.18);
  }
}

/* ---------- 顶部导航（小程序风格） ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}
.nav-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav-back {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.nav-back:active {
  background: #f2f2f2;
}
/* 胶囊按钮 */
.capsule {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  height: 30px;
  border: 1px solid #ececec;
  border-radius: 15px;
  background: #f7f7f7;
  overflow: hidden;
}
.capsule span {
  width: 42px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
}
.capsule span:first-child {
  border-right: 1px solid #ececec;
}

/* ---------- 内容区 ---------- */
.page {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
.page.has-tab {
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
}
.page.has-footer {
  padding-bottom: 96px;
}

.wrap {
  padding: 12px;
}

/* ---------- 底部 TabBar ---------- */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex;
  background: #fafafa;
  border-top: 1px solid var(--line);
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #8a8a8a;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.tabbar .tab .ico {
  font-size: 20px;
  line-height: 1;
  filter: grayscale(1) opacity(0.55);
  transition: all 0.15s;
}
.tabbar .tab.active {
  color: var(--brand);
}
.tabbar .tab.active .ico {
  filter: none;
  transform: translateY(-1px);
}

/* 底部固定操作条 */
.footer-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.card.tight {
  padding: 12px;
}
.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-title {
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand);
}
.card-sub {
  font-size: 12.5px;
  color: var(--text-gray);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-weight: 500;
  font-family: inherit;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.btn:active {
  transform: scale(0.985);
  filter: brightness(0.94);
}
.btn.block {
  width: 100%;
  flex: 1;
}
.btn.ghost {
  background: #f2f2f2;
  color: var(--text);
}
.btn.outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn.danger {
  background: var(--danger);
}
.btn.white {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn.sm {
  height: 32px;
  font-size: 13px;
  padding: 0 12px;
  border-radius: 6px;
}
.btn.xs {
  height: 28px;
  font-size: 12.5px;
  padding: 0 11px;
  border-radius: 6px;
}
.btn.lg {
  height: 48px;
  font-size: 16.5px;
  border-radius: 10px;
}
.btn[disabled],
.btn.disabled {
  background: #d8d8d8 !important;
  color: #fff !important;
  border-color: transparent !important;
  cursor: not-allowed;
  transform: none;
}

/* ---------- 表单 ---------- */
.field {
  margin-bottom: 14px;
}
.field:last-child {
  margin-bottom: 0;
}
.label {
  display: block;
  font-size: 13.5px;
  color: var(--text-gray);
  margin-bottom: 6px;
}
.label b {
  color: var(--text);
  font-weight: 500;
}
.input,
.select,
.textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #f7f7f7;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  outline: none;
  transition: all 0.15s;
}
.input:focus,
.select:focus,
.textarea:focus {
  background: #fff;
  border-color: var(--brand);
}
.textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4.5L6 8.5L10 4.5' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* 开关 */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.switch-row:last-child {
  border-bottom: none;
}
.switch-row .sr-txt {
  flex: 1;
  min-width: 0;
}
.switch-row .sr-name {
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.switch-row .sr-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1.45;
}
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #dcdcdc;
  cursor: pointer;
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.switch.on {
  background: var(--brand);
}
.switch.on::after {
  transform: translateX(20px);
}

/* 分段选择 */
.segment {
  display: flex;
  background: #f2f2f2;
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}
.segment .seg {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 13.5px;
  color: var(--text-gray);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.segment .seg.active {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: 11.5px;
  line-height: 1;
  background: #f2f2f2;
  color: var(--text-gray);
  white-space: nowrap;
}
.tag.green {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.tag.red {
  background: var(--danger-light);
  color: var(--danger);
}
.tag.orange {
  background: var(--warn-light);
  color: #c87600;
}
.tag.blue {
  background: var(--info-light);
  color: var(--info);
}
.tag.plain {
  background: #fff;
  border: 1px solid var(--line-strong);
}

/* ---------- 统计数字 ---------- */
.stats {
  display: grid;
  gap: 10px;
}
.stats.c2 {
  grid-template-columns: repeat(2, 1fr);
}
.stats.c3 {
  grid-template-columns: repeat(3, 1fr);
}
.stats.c4 {
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .v {
  font-size: 21px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.stat .v.dark {
  color: var(--text);
}
.stat .v.blue {
  color: var(--info);
}
.stat .v.orange {
  color: var(--warn);
}
.stat .k {
  font-size: 11.5px;
  color: var(--text-gray);
  margin-top: 2px;
}

/* 大数字看板 */
.hero {
  background: linear-gradient(135deg, #07c160 0%, #05a04f 100%);
  border-radius: var(--radius);
  padding: 18px 16px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.28);
  margin-bottom: 12px;
}
.hero .h-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hero .h-label {
  font-size: 13px;
  opacity: 0.9;
}
.hero .h-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.hero .h-value small {
  font-size: 15px;
  font-weight: 600;
  margin-left: 2px;
}
.hero .h-desc {
  font-size: 12px;
  opacity: 0.88;
  margin-top: 6px;
  line-height: 1.5;
}
.hero .h-badge {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11.5px;
  white-space: nowrap;
}
.hero .h-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  margin-top: 12px;
  overflow: hidden;
}
.hero .h-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #fff;
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 列表项 ---------- */
.list {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}
.item:last-child {
  border-bottom: none;
}
.item:active {
  background: #fafafa;
}
.item .ico-box {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--brand-light);
}
.item .body {
  flex: 1;
  min-width: 0;
}
.item .t {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item .d {
  font-size: 12.5px;
  color: var(--text-gray);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.item .arrow {
  flex: 0 0 auto;
  color: var(--text-light);
  font-size: 17px;
}

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
}
.empty .e-ico {
  font-size: 46px;
  opacity: 0.45;
  margin-bottom: 10px;
  line-height: 1;
}
.empty .e-t {
  font-size: 14.5px;
  color: var(--text-gray);
  margin-bottom: 4px;
}
.empty .e-d {
  font-size: 12.5px;
}

/* ---------- 弹层 ---------- */
.mask {
  position: absolute;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.mask.show {
  opacity: 1;
  pointer-events: auto;
}
.mask.center {
  align-items: center;
  padding: 24px;
}
.sheet {
  width: 100%;
  max-height: 86%;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mask.show .sheet {
  transform: translateY(0);
}
.sheet-hd {
  flex: 0 0 auto;
  padding: 16px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.sheet-hd .st {
  font-size: 16px;
  font-weight: 600;
}
.sheet-bd {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.sheet-ft {
  flex: 0 0 auto;
  padding: 12px 16px calc(16px + var(--safe-b));
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.dialog {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 0;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.22s;
}
.mask.show .dialog {
  transform: scale(1);
}
.dialog .dl-t {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.dialog .dl-c {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 18px;
}
.dialog .dl-f {
  display: flex;
  border-top: 1px solid var(--line);
  margin: 0 -18px;
}
.dialog .dl-f .btn-flat {
  flex: 1;
  height: 48px;
  border: none;
  background: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-gray);
  cursor: pointer;
}
.dialog .dl-f .btn-flat + .btn-flat {
  border-left: 1px solid var(--line);
}
.dialog .dl-f .btn-flat.primary {
  color: var(--brand);
  font-weight: 600;
}

/* Toast */
.toast {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1000;
  max-width: 75%;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  line-height: 1.5;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- 进度条 ---------- */
.pbar {
  height: 6px;
  border-radius: 3px;
  background: #f0f0f0;
  overflow: hidden;
}
.pbar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
  transition: width 0.4s;
}

/* ---------- 排行榜 ---------- */
.rank-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.rank-item:last-child {
  border-bottom: none;
}
.rank-item.me {
  background: var(--brand-soft);
}
.rank-no {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  background: #f0f0f0;
  color: var(--text-gray);
  font-variant-numeric: tabular-nums;
}
.rank-no.n1 {
  background: linear-gradient(135deg, #ffd75e, #ffb300);
  color: #fff;
}
.rank-no.n2 {
  background: linear-gradient(135deg, #d8e2ee, #b0bec5);
  color: #fff;
}
.rank-no.n3 {
  background: linear-gradient(135deg, #f0b98a, #d98a4d);
  color: #fff;
}
.rank-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
}
.rank-body {
  flex: 1;
  min-width: 0;
}
.rank-body .rn {
  font-size: 14.5px;
  font-weight: 500;
}
.rank-body .rd {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 1px;
}
.rank-score {
  flex: 0 0 auto;
  text-align: right;
}
.rank-score .rs {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.rank-score .rs.fail {
  color: var(--danger);
}
.rank-score .rk {
  font-size: 11px;
  color: var(--text-light);
}

/* ---------- 答题卡 ---------- */
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.sheet-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 500;
  background: #f5f5f5;
  color: var(--text-gray);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-variant-numeric: tabular-nums;
}
.sheet-cell.done {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: #bfe9d1;
}
.sheet-cell.cur {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.18);
}
.sheet-cell.wrong {
  background: var(--danger-light);
  color: var(--danger);
  border-color: #ffd0d0;
}

/* ---------- 题目 ---------- */
.q-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}
.q-type {
  flex: 0 0 auto;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 20px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}
.q-stem {
  font-size: 16px;
  line-height: 1.62;
  font-weight: 500;
  flex: 1;
}
.opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.opt:active {
  transform: scale(0.995);
}
.opt.picked {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.opt.right {
  border-color: var(--brand);
  background: var(--brand-light);
}
.opt.wrong {
  border-color: var(--danger);
  background: var(--danger-light);
}
.opt .key {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  background: #f2f2f2;
  color: var(--text-gray);
}
.opt.picked .key {
  background: var(--brand);
  color: #fff;
}
.opt.right .key {
  background: var(--brand);
  color: #fff;
}
.opt.wrong .key {
  background: var(--danger);
  color: #fff;
}
.opt .txt {
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
  padding-top: 1px;
  word-break: break-word;
}

.analysis {
  background: #f8f9fa;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.65;
  color: #555;
  margin-top: 4px;
}
.analysis .at {
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 3px;
  display: block;
}

/* 考试顶部计时 */
.timer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.timer.warn {
  background: var(--danger-light);
  color: var(--danger);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* 答题进度条 */
.progress-line {
  position: sticky;
  top: var(--nav-h);
  z-index: 80;
  height: 3px;
  background: #e8e8e8;
}
.progress-line i {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width 0.3s;
}

/* 防作弊警告层 */
.violation-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--warn-light);
  color: #a35b00;
  font-size: 12.5px;
  border-bottom: 1px solid #ffe6bf;
}

/* ---------- 微信登录 ---------- */
.login-hero {
  padding: 46px 24px 28px;
  text-align: center;
  background: linear-gradient(180deg, #e9f9f0 0%, var(--bg) 100%);
}
.login-logo {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, #07c160, #04a04e);
  box-shadow: 0 8px 22px rgba(7, 193, 96, 0.32);
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.login-sub {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 6px;
}
.role-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.role-card {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.18s;
}
.role-card:active {
  transform: scale(0.98);
}
.role-card.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.16);
}
.role-card .r-ico {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}
.role-card .r-t {
  font-size: 14.5px;
  font-weight: 600;
}
.role-card .r-d {
  font-size: 11.5px;
  color: var(--text-gray);
  margin-top: 3px;
  line-height: 1.4;
}

.wx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.wx-btn:active {
  transform: scale(0.985);
  filter: brightness(0.94);
}
.wx-btn .wx-ico {
  font-size: 19px;
  line-height: 1;
}
.login-tip {
  font-size: 11.5px;
  color: var(--text-light);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

/* 头像圆形 */
.avatar {
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 工具条 */
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 13px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 500;
}

/* 文件拖拽区 */
.dropzone {
  border: 1.5px dashed #c8ccd4;
  border-radius: var(--radius);
  background: #fafbfc;
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
}
.dropzone:hover,
.dropzone.over {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.dropzone .dz-ico {
  font-size: 34px;
  opacity: 0.6;
  margin-bottom: 8px;
}
.dropzone .dz-t {
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 4px;
}
.dropzone .dz-d {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.55;
}

/* 图片预览 */
.preview-img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

/* 分隔说明 */
.note {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  padding: 10px 2px 0;
}
.note.warn {
  color: #b8760a;
}

/* 表格 */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  padding: 9px 8px;
  background: #f7f8fa;
  color: var(--text-gray);
  font-weight: 500;
  white-space: nowrap;
}
.tbl td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tr:last-child td {
  border-bottom: none;
}
.scroll-x {
  overflow-x: auto;
}

/* 工具类 */
.hide {
  display: none !important;
}
.mt8 {
  margin-top: 8px;
}
.mt12 {
  margin-top: 12px;
}
.mt16 {
  margin-top: 16px;
}
.mb8 {
  margin-bottom: 8px;
}
.mb12 {
  margin-bottom: 12px;
}
.flex {
  display: flex;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-center {
  display: flex;
  align-items: center;
}
.gap6 {
  gap: 6px;
}
.gap10 {
  gap: 10px;
}
.flex-1 {
  flex: 1;
}
.min0 {
  min-width: 0;
}
.tc {
  text-align: center;
}
.tr {
  text-align: right;
}
.fs12 {
  font-size: 12px;
}
.fs13 {
  font-size: 13px;
}
.c-gray {
  color: var(--text-gray);
}
.c-light {
  color: var(--text-light);
}
.c-brand {
  color: var(--brand);
}
.c-danger {
  color: var(--danger);
}
.bold {
  font-weight: 600;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}

/* 滚动条美化 */
.page::-webkit-scrollbar,
.sheet-bd::-webkit-scrollbar {
  width: 4px;
}
.page::-webkit-scrollbar-thumb,
.sheet-bd::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

/* 动画 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spin {
  animation: spin 0.9s linear infinite;
  display: inline-block;
}

@keyframes pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.pop {
  animation: pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

/* ============================================================
   雅思 / 托福专项组件
   ============================================================ */

/* ---------- 标签补充 ---------- */
.tag.purple {
  background: #f3efff;
  color: #6a4fd0;
}

/* ---------- 分段控件（雅思 / 托福切换） ---------- */
.seg {
  display: flex;
  gap: 6px;
  background: #f2f3f5;
  border-radius: var(--radius-sm);
  padding: 4px;
}
.seg-item {
  flex: 1;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.16s;
  user-select: none;
}
.seg-item.active {
  background: #fff;
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ---------- 目标分选择 ---------- */
.score-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.score-chips .chip {
  min-width: 54px;
  justify-content: center;
}

/* ---------- 成绩数字 ---------- */
.score-num {
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}
.score-unit {
  font-size: 12px;
  font-weight: 500;
  margin-left: 3px;
  opacity: 0.7;
}
.score-big {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.score-big .score-num {
  font-size: 38px;
}
.score-big .score-unit {
  font-size: 14px;
}

/* 达标状态色 */
.ok-text {
  color: var(--brand-dark);
}
.fail-text {
  color: var(--danger);
}

/* ---------- 四科成绩矩阵 ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.skill-cell {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s;
}
.skill-cell:active {
  background: #f2f3f5;
}
.skill-cell.empty {
  opacity: 0.55;
}
.skill-cell .sc-ico {
  font-size: 17px;
  line-height: 1.2;
}
.skill-cell .sc-name {
  font-size: 11.5px;
  color: var(--text-gray);
  margin-top: 2px;
}
.skill-cell .sc-score {
  font-size: 19px;
  font-weight: 700;
  margin-top: 5px;
  color: var(--text);
}
.skill-cell .sc-score.none {
  color: var(--text-light);
  font-size: 15px;
}
.skill-cell .sc-delta {
  font-size: 11px;
  margin-top: 2px;
}

/* ---------- 听力音频播放器 ---------- */
.audio-box {
  background: linear-gradient(135deg, #eef4ff 0%, #f5f8ff 100%);
  border: 1px solid #dde7fb;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.audio-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.audio-head .ah-t {
  font-size: 13.5px;
  font-weight: 600;
  color: #2c4a8a;
  flex: 1;
}
.audio-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audio-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  border: none;
  background: var(--info);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.16s;
}
.audio-btn:active {
  transform: scale(0.97);
}
.audio-btn.ghost {
  background: #fff;
  color: var(--info);
  border: 1px solid #cdddfb;
}
.audio-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.audio-rate {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.audio-rate span {
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #fff;
  color: var(--text-gray);
  border: 1px solid #dde7fb;
  cursor: pointer;
}
.audio-rate span.on {
  background: var(--info);
  color: #fff;
  border-color: var(--info);
}
.audio-hint {
  font-size: 11.5px;
  color: #7b8db3;
  margin-top: 8px;
  line-height: 1.5;
}
.audio-wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
  margin-left: 4px;
}
.audio-wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--info);
  opacity: 0.35;
  height: 5px;
}
.audio-wave.on i {
  animation: wave 0.9s ease-in-out infinite;
}
.audio-wave i:nth-child(2) { animation-delay: 0.1s; }
.audio-wave i:nth-child(3) { animation-delay: 0.2s; }
.audio-wave i:nth-child(4) { animation-delay: 0.3s; }
.audio-wave i:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave {
  0%, 100% { height: 5px; opacity: 0.35; }
  50% { height: 16px; opacity: 1; }
}

/* ---------- 阅读文章 ---------- */
.passage {
  background: #fffdf7;
  border: 1px solid #f0e6cd;
  border-radius: var(--radius);
  padding: 14px 15px;
  margin-bottom: 12px;
}
.passage-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a6d1f;
  margin-bottom: 9px;
}
.passage-bd {
  font-size: 13.5px;
  line-height: 1.75;
  color: #3a3730;
  font-family: Georgia, "Times New Roman", serif;
  max-height: 300px;
  overflow-y: auto;
}
.passage-bd p {
  margin-bottom: 9px;
}
.passage-bd p:last-child {
  margin-bottom: 0;
}
.passage-bd .p-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.passage-more {
  font-size: 12px;
  color: #b08a2a;
  text-align: center;
  margin-top: 8px;
  cursor: pointer;
}

/* 题目分组标题 */
.group-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px;
  padding-left: 2px;
}
.group-hd .gh-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.group-hd .gh-t {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}

/* ---------- 口语录音 ---------- */
.rec-box {
  background: #faf7ff;
  border: 1px solid #e8dffa;
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
}
.rec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c8c8c8;
}
.rec-dot.on {
  background: var(--danger);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}
.rec-time {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #5a4a8a;
}
.rec-limit {
  font-size: 12px;
  color: var(--text-gray);
  margin-left: auto;
}
.rec-ctrl {
  display: flex;
  gap: 9px;
  align-items: center;
}
.rec-btn {
  height: 40px;
  flex: 1;
  border-radius: 20px;
  border: none;
  background: #6a4fd0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.16s;
}
.rec-btn:active {
  transform: scale(0.98);
}
.rec-btn.stop {
  background: var(--danger);
}
.rec-btn.ghost {
  background: #fff;
  color: #6a4fd0;
  border: 1px solid #d8ccf5;
  flex: 0 0 auto;
  padding: 0 16px;
}
.rec-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.rec-play {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2d8f5;
}
.rec-play audio {
  flex: 1;
  height: 34px;
}
.rec-note {
  font-size: 11.5px;
  color: #8a7ab0;
  margin-top: 8px;
  line-height: 1.5;
}
.rec-fallback {
  font-size: 12px;
  color: #a08a3a;
  background: var(--warn-light);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 9px;
  line-height: 1.5;
}

/* ---------- 写作字数统计 ---------- */
.wordcount {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-gray);
}
.wordcount .wc-num {
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--brand-dark);
}
.wordcount .wc-num.below {
  color: var(--warn);
}
.wordcount .wc-bar {
  flex: 1;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}
.wordcount .wc-bar i {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width 0.25s;
}
.wordcount .wc-bar i.below {
  background: var(--warn);
}

/* ---------- 维度评分（老师批阅） ---------- */
.rubric-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rubric-row:last-child {
  border-bottom: none;
}
.rubric-hd {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 3px;
}
.rubric-hd .rb-n {
  font-size: 13.5px;
  font-weight: 600;
}
.rubric-hd .rb-e {
  font-size: 11px;
  color: var(--text-light);
}
.rubric-hd .rb-v {
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}
.rubric-desc {
  font-size: 11.5px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 9px;
}
.rubric-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rubric-scale span {
  min-width: 38px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f5f6f7;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-gray);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.14s;
}
.rubric-scale span.on {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 700;
}

/* 成绩单里的维度明细 */
.rubric-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 9px;
}
.rubric-mini .rm {
  background: #fafbfc;
  border-radius: 6px;
  padding: 7px 9px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.rubric-mini .rm-l {
  font-size: 11.5px;
  color: var(--text-gray);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rubric-mini .rm-v {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

/* ---------- 目标分进度 ---------- */
.goal-bar {
  margin-top: 10px;
}
.goal-bar .gb-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-gray);
  margin-bottom: 5px;
}
.goal-bar .gb-track {
  height: 7px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.goal-bar .gb-track i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #5ac8a0, var(--brand));
  transition: width 0.5s;
}
.goal-bar .gb-track i.miss {
  background: linear-gradient(90deg, #ffc46b, var(--warn));
}

/* ---------- 科目标签行 ---------- */
.skill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 窄屏适配 */
@media (max-width: 340px) {
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rubric-mini {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   首屏占位：接了后端之后，页面要等一次网络往返才能拿到最新数据。
   不加这个会先白屏一下，体验像是卡住了。
   ============================================================ */
.boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 120px 24px 40px;
  color: #b2b2b2;
}
.boot .dot {
  width: 26px;
  height: 26px;
  border: 2.5px solid #e6e6e6;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.boot .txt {
  font-size: 13px;
  letter-spacing: 0.4px;
}

/* ============================================================
   微信内置浏览器适配（js/wechat.js）

   微信里用户最容易得出「打不开」的结论，所以这一层要显眼但别挡路：
   提示条用提醒色（warn）插在导航栏**上方**（是 .phone flex 布局的一部分，
   自己占高度，不会盖住任何内容），面板用底部弹出，错误页占满全屏。
   ============================================================ */

/* ---------- 顶部提示条 ---------- */
.wx-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--warn-light);
  border-bottom: 1px solid #ffe2b8;
  font-size: 12.5px;
  line-height: 1.4;
  color: #8a5a00;
}
.wx-bar-ico {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wx-bar-txt {
  flex: 1 1 auto;
  min-width: 0;
}
.wx-bar-txt b {
  color: #7a4e00;
}
.wx-bar-btn {
  flex: 0 0 auto;
  border: 0;
  background: var(--warn);
  color: #fff;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: inherit;
  white-space: nowrap;
}
.wx-bar-btn:active {
  opacity: 0.85;
}
.wx-bar-x {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #c09248;
  font-size: 13px;
  padding: 4px 2px 4px 4px;
  font-family: inherit;
  line-height: 1;
}

/* ---------- 「在浏览器中打开」面板 ---------- */
.wx-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.wx-mask.show {
  display: flex;
}
.wx-sheet {
  width: 100%;
  max-width: 430px;
  box-sizing: border-box;
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 18px calc(18px + var(--safe-b));
  box-shadow: var(--shadow-lg);
  animation: wx-rise 0.22s ease-out;
}
@keyframes wx-rise {
  from { transform: translateY(16px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}
.wx-sheet-t {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}
.wx-sheet-why {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 12px;
}
.wx-steps {
  margin: 0 0 14px 18px;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
}
.wx-steps b {
  color: var(--brand);
}
.wx-linkrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wx-link {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 64px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-sub);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  word-break: break-all;
  -webkit-user-select: text;
  user-select: text;
}
.wx-copy {
  flex: 0 0 auto;
  white-space: nowrap;
}
.wx-tip {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}
.wx-close {
  margin-top: 14px;
}

/* ---------- 白屏兜底页 ---------- */
.wx-fatal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: var(--bg);
  overflow-y: auto;
  padding: 28px 18px calc(28px + var(--safe-b));
  box-sizing: border-box;
}
.wx-fatal-card {
  max-width: 430px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
.wx-fatal-ico {
  font-size: 34px;
  text-align: center;
  margin-bottom: 10px;
}
.wx-fatal-t {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}
.wx-fatal-d {
  font-size: 13.5px;
  color: var(--text-gray);
  line-height: 1.65;
  margin-bottom: 10px;
}
.wx-fatal-msg {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--danger);
  background: var(--danger-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 14px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 140px;
  overflow: auto;
}
