/* ===== styles.css ===== */
/* 好分数 Windows 版 —— 界面样式 */

:root {
  --bg: #0b0e14;
  --bg-soft: #0e121a;
  --panel: #121722;
  --panel-2: #161c28;
  --panel-3: #1b2230;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf5;
  --text-2: #aab4c5;
  --muted: #7d8798;
  --gold: #f2c14e;
  --gold-strong: #e5a93a;
  --gold-soft: rgba(242, 193, 78, 0.12);
  --red: #ef6b62;
  --green: #4cc38a;
  --blue: #6aa2ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  --titlebar: 52px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); background-clip: content-box; }

.app { height: 100vh; display: flex; flex-direction: column; }

/* ---------------- 标题栏 ---------------- */
.titlebar {
  height: var(--titlebar);
  flex: 0 0 var(--titlebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 160px 0 18px; /* 右侧给系统窗口按钮留位置 */
  background: rgba(11, 14, 20, 0.86);
  border-bottom: 1px solid var(--line);
  -webkit-app-region: drag;
  user-select: none;
}

.titlebar__brand { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffd874, var(--gold-strong));
  color: #2a1d00;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: 0 4px 14px rgba(229, 169, 58, 0.35);
}

.logo-mark--lg { width: 54px; height: 54px; border-radius: 16px; font-size: 26px; }

.titlebar__name { font-weight: 600; letter-spacing: 0.5px; }
.titlebar__tag {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 1px 7px; border-radius: 20px;
}

.titlebar__actions { display: flex; align-items: center; gap: 8px; -webkit-app-region: no-drag; }

.icon-btn {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; color: var(--text-2);
}
.icon-btn:hover { background: var(--panel-3); color: var(--text); }

.badge {
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: var(--gold-soft); color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.28);
}

/* ---------------- 登录 ---------------- */
.login {
  flex: 1; position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
}

.login__glow {
  position: absolute; inset: -20% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(242, 193, 78, 0.14), transparent 70%),
    radial-gradient(50% 50% at 75% 10%, rgba(106, 162, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.login__card {
  position: relative;
  width: 420px;
  padding: 34px 36px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(24, 30, 42, 0.96), rgba(17, 22, 31, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  animation: rise 0.35s ease both;
}

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

.login__head { text-align: center; margin-bottom: 24px; }
.login__head h1 { font-size: 20px; margin: 14px 0 6px; font-weight: 600; }
.login__head p { margin: 0; color: var(--muted); font-size: 13px; }

.form { display: flex; flex-direction: column; gap: 15px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 12.5px; color: var(--text-2); }

.field__input {
  height: 42px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: #0c1017;
  border: 1px solid var(--line-strong);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field__input::placeholder { color: #596273; }
.field__input:focus { border-color: rgba(242, 193, 78, 0.55); box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.1); }

.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; background: #0c1017; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.segmented__item {
  height: 32px; border-radius: 7px; color: var(--text-2); font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.segmented__item:hover { color: var(--text); }
.segmented__item.is-active { background: var(--panel-3); color: var(--gold); font-weight: 600; }

.check { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; }
.check input { accent-color: var(--gold-strong); width: 14px; height: 14px; }

.btn {
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; transition: filter 0.15s, background 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, #ffd269, var(--gold-strong));
  color: #2b1e00; font-weight: 600;
  box-shadow: 0 8px 22px rgba(229, 169, 58, 0.24);
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--primary:disabled { filter: grayscale(0.35) brightness(0.8); cursor: default; }
.btn--block { width: 100%; }
.btn--ghost { background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--text-2); }
.btn--ghost:hover { background: var(--panel-3); color: var(--text); }
.btn--sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }

.btn__spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #2b1e00;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: rgba(239, 107, 98, 0.1);
  border: 1px solid rgba(239, 107, 98, 0.28);
  color: #ffb4ae; font-size: 12.5px;
}
.alert--ok { background: rgba(76, 195, 138, 0.1); border-color: rgba(76, 195, 138, 0.28); color: #a6e8c6; }

.login__foot {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.login__foot .dot { opacity: 0.5; }
.link { color: var(--gold); font-size: 12px; padding: 0; }
.link:hover { text-decoration: underline; }

.login__note { position: relative; margin: 0; font-size: 11.5px; color: #5d6678; }

/* ---------------- 主框架 ---------------- */
.main { flex: 1; display: flex; min-height: 0; }

.sidebar {
  width: 224px; flex: 0 0 224px;
  display: flex; flex-direction: column;
  padding: 14px 12px 16px;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
}

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav__item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav__item:hover { background: var(--panel); color: var(--text); }
.nav__item.is-active { background: var(--gold-soft); color: var(--gold); font-weight: 600; }
.nav__item svg { flex: 0 0 auto; opacity: 0.9; }

.sidebar__user {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px; border-top: 1px solid var(--line);
}
.avatar {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--panel-3); color: var(--gold); font-weight: 600;
}
.sidebar__user-info { min-width: 0; }
.sidebar__user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__user-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ghost-btn {
  margin-top: 4px; height: 32px; border-radius: 8px;
  color: var(--muted); font-size: 12.5px;
}
.ghost-btn:hover { background: var(--panel); color: var(--text-2); }

.sidebar__actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.side-btn {
  height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px;
}
.side-btn--gold {
  background: var(--gold-soft);
  border: 1px solid rgba(242, 193, 78, 0.45);
  color: var(--gold); font-weight: 600;
}
.side-btn--gold:hover { background: rgba(242, 193, 78, 0.2); }
.side-btn--plain {
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.side-btn--plain:hover { background: var(--panel-3); color: var(--text); }

.content { flex: 1; min-width: 0; overflow-y: auto; padding: 26px 32px 48px; }
.pane { max-width: 1080px; margin: 0 auto; }

.pane__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pane__head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 0.2px; }
.pane__sub { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.pane__tools { display: flex; align-items: center; gap: 10px; }

.search {
  width: 240px; height: 36px; padding: 0 12px;
  border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  outline: none; font-size: 13px;
}
.search:focus { border-color: rgba(242, 193, 78, 0.45); }
.search::placeholder { color: #5a6373; }

/* ---------------- 成绩卡片 ---------------- */
.exam-list { display: flex; flex-direction: column; gap: 10px; }

.exam-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: border-color 0.15s, transform 0.12s, background 0.15s;
}
.exam-card:hover { border-color: rgba(242, 193, 78, 0.35); background: var(--panel-2); transform: translateY(-1px); }

.exam-date {
  text-align: center; padding-right: 16px;
  border-right: 1px solid var(--line);
}
.exam-date__day { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.exam-date__ym { font-size: 11px; color: var(--muted); }

.exam-main { min-width: 0; }
.exam-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.chip {
  font-size: 11px; padding: 1px 7px; border-radius: 6px;
  background: var(--panel-3); color: var(--text-2);
}
.chip--gold { background: var(--gold-soft); color: var(--gold); }

.exam-right { display: flex; align-items: center; gap: 22px; }
.exam-score { text-align: right; min-width: 92px; }
.exam-score__value { font-size: 24px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.exam-score__value small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.exam-score__label { font-size: 11px; color: var(--muted); }

.exam-ranks { display: flex; gap: 18px; }
.rank-mini { text-align: center; min-width: 54px; }
.rank-mini b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.rank-mini span { font-size: 11px; color: var(--muted); }

.arrow { color: #4d5566; }

.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty__icon { font-size: 34px; opacity: 0.6; margin-bottom: 8px; }
.empty p { margin: 0 0 4px; color: var(--text-2); }

/* ---------------- 详情 ---------------- */
.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.back-btn {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--text-2);
}
.back-btn:hover { color: var(--text); background: var(--panel-2); }
.detail-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.detail-head .pane__sub { margin-top: 2px; }

.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px;
  padding: 22px 24px; margin-bottom: 14px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(242, 193, 78, 0.14), transparent 55%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
}
.hero__label { font-size: 12px; color: var(--muted); letter-spacing: 0.4px; }
.hero__score { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.hero__score b { font-size: 56px; line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.hero__score span { color: var(--muted); font-size: 14px; }
.hero__tags { display: flex; gap: 8px; flex-wrap: wrap; }

.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: center; }
.rank-box {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.rank-box__value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-box__value small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.rank-box__label { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.rank-box--gold .rank-box__value { color: var(--gold); }

.card {
  padding: 18px 20px; margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.card h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; }
.card__sub { margin: 0 0 14px; color: var(--muted); font-size: 12px; }

.chart-card__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.chart-card canvas { width: 100%; display: block; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 12px;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table .strong { font-weight: 600; }
.table .gold { color: var(--gold); font-weight: 600; }
.table .weak { color: var(--red); }
.table .good { color: var(--green); }
.table--clickable tbody tr { cursor: pointer; }

.subject-name { display: flex; align-items: center; gap: 8px; }
.subject-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.8; }

.bar-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.bar-track { flex: 1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-strong), var(--gold)); }
.bar-fill--low { background: linear-gradient(90deg, #c25049, var(--red)); }

.detail-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* 详情子页 Tab */
.detail-tabs {
  display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap;
}
.detail-tab {
  height: 34px; padding: 0 16px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.detail-tab:hover { color: var(--text); background: var(--panel-2); }
.detail-tab.is-active {
  background: var(--gold-soft); color: var(--gold);
  border-color: rgba(242, 193, 78, 0.45); font-weight: 600;
}

/* 科目 pill 多选 */
.subject-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  height: 32px; padding: 0 14px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line-strong);
  color: var(--text-2); font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.pill:hover { color: var(--text); border-color: rgba(242, 193, 78, 0.4); }
.pill.is-active {
  background: var(--gold-soft); color: var(--gold);
  border-color: rgba(242, 193, 78, 0.5); font-weight: 600;
}
.pill-badge {
  background: rgba(239, 107, 98, 0.18); color: var(--red);
  border-radius: 10px; font-size: 11px; padding: 0 6px; line-height: 16px;
}

/* 表格行高亮（我所在行） */
.row-me { background: rgba(242, 193, 78, 0.07); }
.row-me td { border-bottom-color: rgba(242, 193, 78, 0.12); }

.bar-track--gold { outline: 1px solid rgba(242, 193, 78, 0.35); outline-offset: 1px; border-radius: 5px; }

/* 图片网格与放大 */
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pic-thumb {
  padding: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel-2);
  aspect-ratio: 3 / 4; display: block;
}
.pic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-thumb:hover { border-color: rgba(242, 193, 78, 0.4); }
.img-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(4, 7, 12, 0.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px;
}
.img-overlay img { max-width: 92%; max-height: 86vh; object-fit: contain; border-radius: 8px; }

.plain-list { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 7px; }
.plain-list li { line-height: 1.6; }
.plain-list b { color: var(--text); }

/* ---------------- 设置 ---------------- */
.settings-card { padding: 4px 20px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.row:last-child { border-bottom: 0; }
.row > span { color: var(--text-2); }
.row > b { font-weight: 500; }
.row--action { padding-right: 0; }

/* ---------------- 弹层 ---------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.modal__mask { position: absolute; inset: 0; background: rgba(5, 8, 14, 0.62); backdrop-filter: blur(2px); }
.modal__card {
  position: relative; width: 400px; max-height: 70vh; overflow-y: auto;
  padding: 22px 24px; border-radius: 16px;
  background: linear-gradient(180deg, #1a2130, #141a26);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  animation: rise 0.25s ease both;
}
.modal__card h3 { margin: 0 0 4px; font-size: 16px; }
.modal__foot { display: flex; justify-content: flex-end; margin-top: 16px; }

.modal__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #0c1017; border: 1px solid var(--line-strong); border-radius: 10px; margin-bottom: 12px; }
.modal__tab { height: 30px; border-radius: 7px; color: var(--text-2); font-size: 13px; }
.modal__tab.is-active { background: var(--panel-3); color: var(--gold); font-weight: 600; }

.student-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.student-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  text-align: left; width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.student-item:hover { border-color: rgba(242, 193, 78, 0.4); background: var(--panel-2); }
.student-item.is-current { border-color: rgba(242, 193, 78, 0.55); background: var(--gold-soft); }
.student-item .avatar { flex: 0 0 auto; }
.student-item__name { font-weight: 600; font-size: 14px; }
.student-item__meta { font-size: 12px; color: var(--muted); }
.student-item__tag {
  margin-left: auto; font-size: 11px; color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.35); padding: 1px 8px; border-radius: 20px;
}

/* 本地存档卡片 */
.record-flag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--blue);
}
.est-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-2);
  background: rgba(106, 162, 255, 0.1);
  border: 1px solid rgba(106, 162, 255, 0.3);
  padding: 1px 8px; border-radius: 20px;
}

.account-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.account-item:last-child { border-bottom: 0; }
.account-item__name { font-weight: 600; }
.account-item__meta { color: var(--muted); font-size: 12px; }
.account-item__actions { margin-left: auto; display: flex; gap: 6px; }

/* ---------------- 提示 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translate(-50%, 12px);
  padding: 10px 18px; border-radius: 10px;
  background: #1d2431; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  max-width: 70vw;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 空的提示框不显示（避免残留只有图标的空胶囊） */
.toast:empty,
.toast:not(.is-show) {
  opacity: 0;
  pointer-events: none;
}
.toast:empty::before { content: ''; }

.toast--error { border-color: rgba(239, 107, 98, 0.4); color: #ffb4ae; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; }
  .exam-right { gap: 12px; }
  .exam-ranks { display: none; }
}

/* ---------------- 逐题查看 / 错题展开 / 班级成绩单 ---------------- */

/* 逐题查看卡片：题号 + 分数徽章 + 裁剪图 */
.q-crop-item { display: flex; flex-direction: column; gap: 6px; }
.q-crop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.q-crop-item .pic-thumb { width: 100%; aspect-ratio: auto; min-height: 90px; max-height: 260px; }
.q-crop-item .pic-thumb img { object-fit: contain; background: #fff; }
.score-badge {
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 1px 8px;
}
.score-badge small { color: var(--text-2); font-weight: 400; }
.score-badge.good { color: var(--green); border-color: rgba(76, 195, 138, 0.4); }
.score-badge.weak { color: var(--red); border-color: rgba(239, 107, 98, 0.4); }
.q-noimg {
  border: 1px dashed var(--line); border-radius: 10px; padding: 14px 10px;
  text-align: center; color: var(--text-2); font-size: 12.5px; background: var(--panel-2);
}
.q-noimg b { color: var(--text); }

/* 错题失分明细：可展开行（查看原题） */
.lost-row { cursor: pointer; }
.lost-row:hover td { background: rgba(255, 255, 255, 0.03); }
.lost-detail-row > td { padding: 0 12px 12px; background: rgba(255, 255, 255, 0.02); }
.lost-detail-row .pic-thumb { width: 300px; height: auto; aspect-ratio: auto; }
.lost-detail-row .pic-thumb img { object-fit: contain; background: #fff; }
.lost-link { color: var(--gold); cursor: pointer; font-size: 12px; white-space: nowrap; }
.lost-link:hover { text-decoration: underline; }

/* 班级成绩单开关卡片 */
.class-report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-fill--me { background: linear-gradient(90deg, var(--gold), #ffd98a); }

/* ================= 安卓/移动端适配（Capacitor WebView，宽度 < 768px） ================= */
@media (max-width: 768px) {
  /* ---------- 滚动模式切换：整页自然滚动 ---------- */
  html, body { height: auto !important; overflow: visible !important; }
  body { font-size: 14px; overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  .app:not(.hidden), .main:not(.hidden) { display: block !important; padding: 0 !important; height: auto !important; min-height: 100vh; overflow: visible !important; }
  .main.hidden, .app.hidden { display: none !important; }

  /* 桌面标题栏隐藏 */
  .titlebar { display: none !important; }

  /* ---------- 顶部导航条（fixed，两行：品牌 + 图标导航） ---------- */
  .sidebar {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: auto;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 !important;
    z-index: 100;
    background: rgba(13, 17, 24, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  /* 品牌行 */
  .sidebar::before {
    content: '好分数';
    display: block;
    padding: 9px 14px 7px;
    font-weight: 700;
    font-size: 15px;
    color: var(--gold);
    letter-spacing: 1px;
  }
  /* 隐藏桌面版元素 */
  .sidebar__user, .sidebar__actions, .sidebar__label { display: none !important; }
  /* 导航行：图标 + 小字，等宽分布 */
  .sidebar .nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    padding: 0 4px 6px !important;
  }
  .sidebar .nav__item {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 6px 2px !important;
    font-size: 10.5px !important;
    border-radius: 10px !important;
    min-height: 46px !important;
  }
  .sidebar .nav__item svg { width: 19px; height: 19px; }
  .sidebar .nav__item.is-active { background: var(--gold-soft); color: var(--gold); }

  /* ---------- 主内容区 ---------- */
  .content {
    margin-top: 92px !important;
    padding: 12px 12px 40px !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }
  .pane { overflow: visible !important; height: auto !important; }
  /* 登录视图 */
  .login:not(.hidden) {
    overflow-y: auto !important; height: auto !important; min-height: 100vh;
    padding: 24px 16px !important; display: flex !important;
  }
  .login.hidden { display: none !important; }
  .login input { font-size: 16px !important; min-height: 46px !important; }
  .login__card { max-width: 100% !important; width: 100% !important; }

  /* ---------- 成绩列表卡片 ---------- */
  .exam-card {
    display: block !important;
    padding: 12px 14px !important;
    margin-bottom: 10px !important;
  }
  .exam-card .exam-right { display: none !important; }
  .exam-title { white-space: normal !important; font-size: 15px !important; }
  .exam-meta { flex-wrap: wrap !important; gap: 6px !important; }

  /* ---------- 详情页 hero ---------- */
  .hero { grid-template-columns: 1fr !important; gap: 12px !important; padding: 14px !important; }
  .hero__score b { font-size: 36px !important; }
  .rank-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .rank-box { padding: 10px !important; }
  .rank-box__value { font-size: 18px !important; }
  .rank-box__label { font-size: 10.5px !important; }

  /* ---------- 详情子页 tabs 吸顶 ---------- */
  .detail-tabs {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background: rgba(13, 17, 24, 0.97);
    backdrop-filter: blur(8px);
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px !important;
    padding: 0 12px !important;
    border-bottom: 1px solid var(--line);
  }
  .detail-tab { padding: 10px 12px !important; font-size: 12.5px !important; flex: 0 0 auto !important; min-height: 42px !important; }

  /* ---------- 表格 ---------- */
  .table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; margin: 0 -12px !important; padding: 0 12px !important; }
  .table { font-size: 12px !important; min-width: 460px; }
  .table th, .table td { padding: 7px 7px !important; white-space: nowrap; }

  /* ---------- 卡片 ---------- */
  .card { padding: 12px !important; margin-bottom: 10px !important; border-radius: 12px !important; }
  .card h3 { font-size: 15px !important; }
  .card__sub { font-size: 11px !important; }

  /* ---------- 按钮/表单 ---------- */
  .btn { min-height: 42px !important; padding: 9px 14px !important; font-size: 13.5px !important; }
  .btn--sm { min-height: 36px !important; padding: 7px 11px !important; font-size: 12.5px !important; }
  .btn, .nav__item, .exam-card, .link, .detail-tab, input, select { -webkit-tap-highlight-color: transparent; }
  input, select { min-height: 42px !important; font-size: 14px !important; }

  /* ---------- 弹窗/抽屉（:not(.hidden) 防止覆盖关闭状态） ----------
     移动端改为 absolute + 顶部对齐：键盘弹出时页面可滚动，输入框不被遮挡 */
  .modal:not(.hidden) {
    position: absolute !important;
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .modal.hidden { display: none !important; }
  .modal__box, .modal__card {
    position: relative !important;
    margin: 60px 12px 40px !important;
    max-height: none !important;
    max-width: 100% !important;
    width: auto !important;
    border-radius: 14px !important;
  }
  /* 输入框：大触摸目标，聚焦时高亮 */
  .modal__box input, .modal__card input { min-height: 46px !important; font-size: 16px !important; width: 100% !important; }

  /* ---------- 图表 ---------- */
  .chart-card canvas { max-width: 100% !important; }
  .chart-card__head { flex-wrap: wrap !important; gap: 8px !important; }
  .chart-card__head h3 { font-size: 14px !important; }

  /* ---------- 子页头部 ---------- */
  .pane__head { flex-wrap: wrap !important; gap: 8px !important; }
  .pane__head h2 { font-size: 17px !important; }
  .pane__sub { font-size: 11.5px !important; }}

/* ---------- 超小屏（<380px） ---------- */
@media (max-width: 380px) {
  .rank-grid { grid-template-columns: 1fr 1fr !important; }
  .rank-box__value { font-size: 16px !important; }
  .table { font-size: 11px !important; min-width: 420px; }
  .sidebar .nav__item { font-size: 9.5px !important; }
  .hero__score b { font-size: 30px !important; }
}/* 超小屏（<380px）进一步压缩 */
@media (max-width: 380px) {
  .rank-grid { grid-template-columns: 1fr !important; }
  .table { font-size: 11px !important; }
}

/* ---------------- 图片版 Logo（方案A：图表上升） ---------------- */
.logo-mark.logo-img {
  width: 26px; height: 26px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(229, 169, 58, 0.35);
  flex: 0 0 auto;
}
.logo-mark.logo-img--lg {
  width: 62px; height: 62px;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(229, 169, 58, 0.42);
}


/* ==================== 界面优化 v2 ==================== */

/* 1. 内容区更宽更紧凑：大屏利用空间 */
.content { padding: 22px 34px 52px; }
@media (min-width: 1600px) {
  .content { padding: 26px 48px 56px; max-width: 1560px; margin: 0 auto; width: 100%; }
}

/* 2. 考试列表：卡片更紧凑、信息更清晰 */
.exam-card { padding: 15px 20px; gap: 16px; }
.exam-card:hover {
  border-color: var(--gold-soft, rgba(229, 169, 58, 0.5));
  transform: translateY(-1px);
}
.exam-title { font-size: 15.5px; line-height: 1.4; margin-bottom: 6px; }
.exam-meta { gap: 7px; font-size: 12px; row-gap: 5px; }
.exam-score__value { font-size: 26px; letter-spacing: -0.5px; }
.exam-score__label { font-size: 11px; opacity: 0.65; }
.exam-date { width: 60px; }
.exam-date__day { font-size: 24px; }
.exam-date__ym { font-size: 10.5px; }
.rank-mini b { font-size: 15px; }
.rank-mini span { font-size: 10.5px; opacity: 0.62; }

/* 3. 顶部标题区更紧凑 */
.pane__head { margin-bottom: 16px; align-items: flex-start; }
.pane__head h2 { font-size: 20px; margin-bottom: 3px; }
.pane__sub { font-size: 12px; opacity: 0.7; }
.pane__tools { gap: 8px; }

/* 4. 侧边栏：更紧凑，图标对齐 */
.sidebar { width: 208px; flex: 0 0 208px; padding: 12px 10px 14px; }
.nav__item { padding: 9px 11px; font-size: 13.5px; border-radius: 9px; }
.nav__item svg { width: 17px; height: 17px; }

/* 5. 详情页子标签：更醒目 */
.detail-tabs { gap: 6px; padding: 5px; border-radius: 11px; }
.detail-tabs .pill, .detail-tabs button {
  padding: 7px 15px; font-size: 13px; border-radius: 8px;
}

/* 6. 科目进阶卡片：让空状态更有引导性 */
#subPapers .card, #subAnalyze .card, #subCuoti .card {
  padding: 17px 20px;
}
#subPapers .class-report-head h3 { font-size: 15px; }
#subPapers .card__sub { font-size: 12px; line-height: 1.55; opacity: 0.72; }

/* 7. 表格更紧凑 */
.table th { font-size: 11.5px; padding: 9px 11px; }
.table td { padding: 9px 11px; font-size: 13px; }
.table tbody tr:nth-child(even) { background: rgba(255,255,255,0.016); }
.table tbody tr:hover { background: rgba(229,169,58,0.06); }

/* 8. 成绩条更明显 */
.bar-track, .bar-fill { height: 6px; border-radius: 3px; }

/* 9. 卡片间距统一 */
.pane > .card + .card, #subPapers > .card + .card { margin-top: 12px; }

/* 10. 滚动条美化 */
.content::-webkit-scrollbar { width: 9px; }
.content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.13); border-radius: 5px;
}
.content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
.content::-webkit-scrollbar-track { background: transparent; }

/* 11. 登录页优化 */
.login__card { padding: 34px 36px; max-width: 400px; }
.login__head h1 { font-size: 23px; }
@media (min-height: 900px) {
  .login__card { padding: 40px 42px; }
}

/* 12. 移动端保持可用 */
@media (max-width: 768px) {
  .content { padding: 14px 14px 80px !important; }
  .exam-card { grid-template-columns: 52px minmax(0,1fr); gap: 12px; padding: 13px 14px; }
  .exam-right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .exam-score__value { font-size: 21px; }
  .table th, .table td { padding: 8px 9px; font-size: 12px; }
  .pane__head { flex-direction: column; gap: 10px; align-items: stretch; }
  .pane__tools { width: 100%; }
}


/* ---- 成绩概览条（列表页顶部）---- */
.exam-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ov-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  position: relative;
  overflow: hidden;
}
.ov-card--gold {
  border-color: rgba(229, 169, 58, 0.38);
  background: linear-gradient(135deg, rgba(229,169,58,0.11), var(--panel));
}
.ov-label {
  font-size: 11.5px;
  opacity: 0.62;
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.ov-value {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.6px;
}
.ov-value small { font-size: 13px; opacity: 0.55; font-weight: 600; margin-left: 2px; }
.ov-sub { font-size: 11.5px; opacity: 0.6; margin-top: 6px; line-height: 1.45; }
.ov-trend-up { color: #4ade80; }
.ov-trend-down { color: #f87171; }
.ov-spark {
  display: flex; align-items: flex-end; gap: 3px;
  height: 34px; margin-top: 10px;
}
.ov-spark i {
  flex: 1; background: rgba(229,169,58,0.32);
  border-radius: 2px 2px 0 0; min-height: 3px;
  transition: background 0.2s;
}
.ov-spark i.on { background: var(--gold, #e5a93a); }
@media (max-width: 768px) {
  .exam-overview { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .ov-value { font-size: 20px; }
  .ov-card { padding: 12px 13px; }
}


/* ==================== 重新排版 v3 ==================== */

/* ---- 1. 三栏自适应：侧栏 | 主内容 | 右侧信息区（大屏） ---- */
.app { display: flex; flex-direction: column; height: 100vh; }
.main { flex: 1; display: flex; min-height: 0; overflow: hidden; }

/* 内容区更宽 + 居中 */
.content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 40px 64px;
}
/* 限宽改到具体页面上，不动通用 div */

/* ---- 2. 页头重排：标题左、工具右、下方分割线 ---- */
.pane__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pane__head h2 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.3px;
  margin: 0 0 5px;
}
.pane__sub { margin: 0; font-size: 12.5px; opacity: 0.62; }
.pane__tools { display: flex; gap: 9px; align-items: center; flex-shrink: 0; }
.pane__tools .search { height: 36px; border-radius: 9px; padding: 0 13px; font-size: 13px; }

/* ---- 3. 概览条：4 卡等宽，更紧凑 ---- */
.exam-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}
@media (max-width: 1100px) { .exam-overview { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.ov-card {
  padding: 14px 16px;
  border-radius: 12px;
  min-height: 92px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ov-label { font-size: 11px; opacity: 0.55; margin-bottom: 4px; letter-spacing: 0.4px; text-transform: uppercase; }
.ov-value { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.8px; }
.ov-value small { font-size: 12.5px; opacity: 0.5; font-weight: 600; }
.ov-sub { font-size: 11px; opacity: 0.58; margin-top: 7px; line-height: 1.4; }
.ov-spark { height: 30px; margin-top: 8px; }

/* ---- 4. 考试卡片：左右分区更清晰 ---- */
.exam-list { display: flex; flex-direction: column; gap: 10px; }
.exam-card {
  grid-template-columns: 56px minmax(0, 1fr) 260px;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
}
.exam-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
}
.exam-date__day { font-size: 23px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.exam-date__ym { font-size: 10px; opacity: 0.5; margin-top: 2px; }
.exam-main { min-width: 0; }
.exam-title {
  font-size: 14.5px; font-weight: 700; line-height: 1.35;
  margin: 0 0 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.exam-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; }
.exam-right {
  display: flex; align-items: center; gap: 20px;
  justify-content: flex-end;
}
.exam-score { text-align: right; }
.exam-score__value { font-size: 25px; font-weight: 800; letter-spacing: -0.7px; line-height: 1; }
.exam-score__value small { font-size: 12px; opacity: 0.45; font-weight: 600; }
.exam-score__label { font-size: 10.5px; opacity: 0.5; margin-top: 4px; }
.exam-ranks { display: flex; gap: 18px; }
.rank-mini { text-align: center; min-width: 44px; }
.rank-mini b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1; }
.rank-mini span { display: block; font-size: 10px; opacity: 0.5; margin-top: 4px; white-space: nowrap; }

/* ---- 5. 卡片统一 ---- */
.card {
  border-radius: 12px;
  padding: 18px 20px;
}
.card h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.card__sub { font-size: 12px; opacity: 0.6; line-height: 1.55; margin: 0 0 12px; }

/* ---- 6. 详情页 hero 重排 ---- */
.detail-hero, .hero {
  border-radius: 14px;
  overflow: hidden;
}
.detail-tabs {
  display: flex; gap: 5px; padding: 5px;
  border-radius: 11px; margin: 16px 0 14px;
  background: var(--panel); border: 1px solid var(--line);
  overflow-x: auto;
}
.detail-tabs::-webkit-scrollbar { height: 0; }
.detail-tabs .pill, .detail-tabs button {
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  border-radius: 8px; white-space: nowrap; border: 0;
  background: transparent; color: inherit; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.detail-tabs .pill.is-active, .detail-tabs button.is-active {
  background: var(--gold, #e5a93a); color: #1a1408;
}

/* ---- 7. 表格：更紧凑、表头固定 ---- */
.table-wrap { border-radius: 10px; overflow: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-2);
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  opacity: 0.75; padding: 10px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.table tbody td { padding: 10px 12px; font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(229,169,58,0.055); }

/* ---- 8. 空状态 / 加载态：居中卡片，更友好 ---- */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 20px; text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px dashed var(--line); border-radius: 14px;
  margin: 8px 0;
}
.empty__icon { font-size: 34px; opacity: 0.4; margin-bottom: 12px; }
.empty p { font-size: 14px; font-weight: 600; margin: 0 0 6px; opacity: 0.85; }
.empty span { font-size: 12px; opacity: 0.5; }

/* 加载态：带脉冲动画 */
.loading-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 52px 20px; text-align: center;
}
.loading-state__spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(229,169,58,0.25);
  border-top-color: var(--gold, #e5a93a);
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { font-size: 13px; opacity: 0.7; margin: 0; }
.loading-state span { font-size: 11.5px; opacity: 0.45; margin-top: 6px; display: block; }

/* ---- 9. 侧边栏精修 ---- */
.sidebar {
  width: 200px; flex: 0 0 200px;
  padding: 14px 10px 12px;
  gap: 2px;
}
.sidebar .nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; font-size: 13px; font-weight: 500;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.nav__item:hover { background: rgba(255,255,255,0.045); }
.nav__item.is-active {
  background: rgba(229,169,58,0.14);
  color: var(--gold, #e5a93a);
  font-weight: 650;
}
.nav__item.is-active svg { stroke: var(--gold, #e5a93a); }

/* 侧栏底部用户区 */
.sidebar__user, .user-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---- 10. 按钮统一 ---- */
.btn {
  border-radius: 9px; font-size: 13px; font-weight: 600;
  padding: 9px 16px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.985); }
.btn--sm { padding: 7px 13px; font-size: 12.5px; }
.btn--ghost { border: 1px solid var(--line); background: transparent; }
.btn--ghost:hover { border-color: rgba(229,169,58,0.45); background: rgba(229,169,58,0.06); }

/* ---- 11. 顶部标题栏 ---- */
.titlebar {
  height: 52px; padding: 0 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.titlebar__brand { display: flex; align-items: center; gap: 9px; }
.titlebar__name { font-size: 14.5px; font-weight: 750; letter-spacing: -0.2px; }
.titlebar__tag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 5px;
  background: rgba(255,255,255,0.07); opacity: 0.7;
}

/* ---- 12. 移动端 ---- */
@media (max-width: 900px) {
  .exam-card { grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 13px 14px; }
  .exam-right {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 11px; margin-top: 4px;
    border-top: 1px solid var(--line);
  }
  .exam-overview { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 16px 14px 80px; }
  .pane__head { flex-direction: column; align-items: stretch; gap: 11px; }
  .pane__tools { width: 100%; }
  .pane__tools .search { flex: 1; }
}


/* ---- 薄弱题排行 ---- */
.diff-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.2px;
}
#weakQuestionsCard .rank-box { padding: 12px 14px; }
#weakQuestionsCard .rank-box__value { font-size: 24px; }
#weakQuestionsCard .rank-box__label { font-size: 10.5px; line-height: 1.35; }
#weakQuestionsCard table .num.weak { color: #f87171; }
#weakQuestionsCard table .num.good { color: #4ade80; }
#weakQuestionsCard thead th { font-size: 10.5px; }


/* ==================== 开关（Switch） ==================== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.13);
  border-radius: 24px;
  transition: background 0.22s;
}
.switch__slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.switch input:checked + .switch__slider {
  background: var(--gold, #e5a93a);
}
.switch input:checked + .switch__slider::before {
  transform: translateX(20px);
}

/* ==================== 设置页重排版 ==================== */
#paneSettings { max-width: 720px; }
#paneSettings .settings-card { margin-bottom: 12px; }
#paneSettings .settings-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
#paneSettings .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.035);
}
#paneSettings .row:last-child { border-bottom: 0; }
#paneSettings .row > span:first-child { opacity: 0.62; flex: 0 0 auto; }
#paneSettings .row b { font-weight: 650; text-align: right; word-break: break-all; }
#paneSettings .row--action > div { flex: 1; min-width: 0; }

/* ==================== 刮刮乐 ==================== */
.scratch-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: scratchFadeIn 0.25s ease;
}
@keyframes scratchFadeIn { from { opacity: 0; } to { opacity: 1; } }
.scratch-modal.hidden { display: none; }
.scratch-modal:not(.hidden),
.scratch-modal:not(.hidden) .scratch-card { opacity: 1 !important; }
.scratch-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 14, 0.78);
  backdrop-filter: blur(6px);
}
.scratch-card {
  position: relative;
  width: min(440px, 100%);
  background: linear-gradient(165deg, #1b2230, #12171f 60%);
  border: 1px solid rgba(229, 169, 58, 0.32);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.62), 0 0 0 1px rgba(229,169,58,0.08) inset;
  animation: scratchPop 0.32s cubic-bezier(0.2, 1.1, 0.4, 1);
}
@keyframes scratchPop {
  from { transform: scale(0.9) translateY(14px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.scratch-card__head { text-align: center; margin-bottom: 16px; }
.scratch-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.6px;
  color: #1a1408;
  background: linear-gradient(135deg, #f5c563, #e5a93a);
  margin-bottom: 9px;
}
.scratch-card__head h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 5px;
  letter-spacing: -0.3px;
}
.scratch-card__sub {
  font-size: 12px;
  opacity: 0.6;
  margin: 0;
}

/* 刮开舞台 */
.scratch-stage {
  position: relative;
  height: 172px;
  border-radius: 13px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(229,169,58,0.14), rgba(255,255,255,0.025) 65%);
  border: 1px solid var(--line);
}
.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  user-select: none;
}
.scratch-score {
  font-size: 46px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--gold, #e5a93a);
  text-shadow: 0 3px 22px rgba(229,169,58,0.42);
}
.scratch-manfen { font-size: 12.5px; opacity: 0.55; font-weight: 600; }
.scratch-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 10px;
  padding: 0 14px;
}
.scratch-subjects .sp {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.07);
  opacity: 0.85;
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.4s;
}
.scratch-canvas:active { cursor: grabbing; }
.scratch-canvas.is-clear { opacity: 0; pointer-events: none; }
.scratch-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  opacity: 0.5;
  pointer-events: none;
  animation: scratchPulse 1.8s ease-in-out infinite;
}
@keyframes scratchPulse { 0%,100% { opacity: 0.38; } 50% { opacity: 0.72; } }

.scratch-card__foot {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 15px;
}
.btn--gold {
  background: linear-gradient(135deg, #f5c563, #e5a93a);
  color: #1a1408;
  border: 0;
  font-weight: 750;
}
.btn--gold:hover { filter: brightness(1.07); }

@media (max-width: 600px) {
  .scratch-score { font-size: 38px; }
  .scratch-stage { height: 152px; }
  .scratch-card { padding: 18px 16px 14px; }
}


/* 揭晓动画：分数从模糊放大清晰 */
@keyframes scratchReveal {
  0%   { opacity: 0; filter: blur(7px); transform: scale(0.86); }
  60%  { opacity: 1; filter: blur(0.6px); transform: scale(1.04); }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
/* 未揭晓时占位符也不该被选中复制 */
.scratch-reveal { -webkit-user-select: none; user-select: none; }
.scratch-score { transition: filter 0.28s, opacity 0.28s; }


/* ==================== 答题卡批改批注 ==================== */
.ap-mark-wrap {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: visible;
  line-height: 0;
}
.ap-mark-wrap .pic-thumb {
  display: block;
  border-radius: 6px;
  overflow: hidden;
}
.ap-mark-wrap > .pic-thumb img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.ap-mark-chip {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #12171f;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.ap-mark-score {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #0d1117;
  line-height: 1.5;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.ap-mark-seal {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34,197,94,0.14);
  border: 1px solid rgba(34,197,94,0.55);
  line-height: 1.5;
  z-index: 3;
}
.ap-mark-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-size: 12px;
}
.ap-mark-summary .ap-s { opacity: 0.8; }
.ap-mark-summary .ap-s b { font-weight: 800; font-size: 13.5px; }
.ap-mark-summary .ap-good b { color: #4ade80; }
.ap-mark-summary .ap-bad b { color: #f87171; }


/* 答题卡批注：图片按整容器宽度显示，批注框才看得清 */
.ap-mark-wrap.ap-wide {
  width: 100% !important;
  display: block !important;
}
.ap-mark-wrap.ap-wide img {
  width: 100% !important;
  height: auto !important;
  display: block;
}
.ap-mark-wrap.ap-wide canvas.ap-mark-canvas {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* 答题卡区块：单列大图 */
#subQuestions .pic-grid:has(.ap-mark-wrap) {
  grid-template-columns: 1fr;
}


/* ==================== 全站排版 v4 ==================== */

/* ---- 班级名单：多列网格 ---- */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  align-items: start;
}
.school-class-card { margin: 0 !important; }
.school-class-card h3 {
  font-size: 13.5px;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.school-class-card .table tbody td { padding: 6px 10px; font-size: 12.5px; }
.school-class-card .table thead th { padding: 7px 10px; font-size: 10.5px; }
@media (max-width: 900px) {
  .school-grid { grid-template-columns: 1fr; }
}

/* ---- 全局：统一卡片间距与圆角 ---- */
.content > *, .pane > * { margin-bottom: 0; }
.pane .card + .card { margin-top: 11px; }
.card {
  border-radius: 12px;
  padding: 17px 19px;
}
.card h3 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
}
.card__sub {
  font-size: 11.5px;
  line-height: 1.6;
  opacity: 0.58;
  margin: 4px 0 0;
}

/* ---- 页头：更紧凑 ---- */
.pane__head { padding-bottom: 13px; margin-bottom: 15px; }
.pane__head h2 { font-size: 20px; letter-spacing: -0.4px; }
.pane__sub { font-size: 12px; }

/* ---- 表格：全站统一 ---- */
.table { font-variant-numeric: tabular-nums; }
.table th { font-size: 11px; letter-spacing: 0.25px; }
.table td { font-size: 12.5px; }
.table tbody tr:last-child td { border-bottom: 0; }

/* ---- 数值强调 ---- */
.table .num.strong, .table td.strong { font-weight: 750; letter-spacing: -0.2px; }
.table .num.gold { color: var(--gold, #e5a93a); font-weight: 800; }

/* ---- 标签页：更整 ---- */
.detail-tabs { margin: 14px 0 13px; }
.detail-tabs button, .detail-tabs .pill {
  font-size: 12.5px; padding: 7px 15px;
}

/* ---- 趋势图卡片 ---- */
.chart-card__head, .class-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

/* ---- 空状态统一 ---- */
.empty { padding: 46px 20px; border-radius: 12px; }
.empty__icon { font-size: 30px; }

/* ---- 侧栏：分组感 ---- */
.sidebar .nav__item { font-size: 13px; }
.sidebar__user { padding-top: 10px; }

/* ---- 登录页 ---- */
.login__card { border-radius: 16px; }

/* ---- 窄屏表格横向滚动 ---- */
@media (max-width: 760px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card { padding: 14px 14px; }
  .pane__head h2 { font-size: 18px; }
}


/* ---- 多选班级对比 ---- */
.cls-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
}
.cls-multi .cls-pick { padding: 5px 11px; font-size: 12px; }
.cls-compare h4 {
  font-size: 13.5px;
  font-weight: 700;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .cls-multi { gap: 4px; padding: 7px 8px; }
  .cls-multi .cls-pick { padding: 4px 8px; font-size: 11.5px; }
}


/* ==================== 性能优化（混合方案） ==================== */

/* 长表格：屏幕外行跳过渲染计算，大幅降低滚动卡顿 */
.table-wrap.perf-long tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: auto 34px;
}
.table-wrap.perf-long {
  contain: layout style paint;
}

/* 渲染中的骨架提示 */
.render-chunk-hint {
  padding: 8px 12px;
  font-size: 11.5px;
  opacity: 0.55;
  text-align: center;
  border-top: 1px solid var(--line);
}

/* 减少动画绘制开销：滚动时暂停非必要动画 */
.scrolling .card { animation: none !important; }

/* 图片懒加载占位 */
img[loading="lazy"] {
  background: rgba(255,255,255,0.03);
  min-height: 40px;
}

/* 关闭高开销效果（低端设备） */
body.perf-lite .scratch-card { animation: none !important; }
body.perf-lite .exam-card { animation: none !important; }

/* ==================== 答题卡：官方原图 + 官方批注 ==================== */
/* 通用 .pic-thumb 是 3:4 竖版缩略图，会裁掉宽幅答题卡；这里必须完整展示宽高比。 */
.answer-sheet-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.answer-sheet-page { margin: 0; min-width: 0; }
.answer-sheet-page .answer-sheet-thumb {
  position: relative;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}
.answer-sheet-page .answer-sheet-thumb img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  background: #fff;
  border-radius: 9px;
}
.answer-sheet-marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  border-radius: 9px;
}
.answer-sheet-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.answer-sheet-card.is-marks-off .answer-sheet-summary,
.answer-sheet-card.is-marks-off .answer-sheet-marks { display: none !important; }
.answer-sheet-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 22px;
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(224, 0, 0, 0.16);
  border-radius: 8px;
  background: #fff8f8;
  color: #d40000;
  font-size: 12.5px;
  line-height: 1.55;
}
.answer-sheet-summary__col { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.answer-sheet-summary b { font-variant-numeric: tabular-nums; }
.answer-sheet-summary__legend { color: #c00000; }
.ap-red { color: #e50000; font-weight: 700; }
.ap-blue { color: #4671d5; font-weight: 700; }
.answer-sheet-page figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-2);
}
.answer-sheet-head { align-items: flex-start; }
.answer-sheet-head .card__sub { margin-top: 3px; }
@media (max-width: 768px) {
  .answer-sheet-list { gap: 10px; }
  .answer-sheet-page .answer-sheet-thumb { border-radius: 8px; }
  .answer-sheet-summary { font-size: 11.5px; gap: 1px 12px; padding: 8px 9px; }
  .answer-sheet-actions { justify-content: flex-start; }
}

/* 官方答题卡全屏查看器 */
.answer-viewer {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(4, 7, 12, 0.96);
  display: flex; flex-direction: column;
}
/* 移动端顶栏 z-index=100，图片查看器必须盖住顶栏 */
.img-overlay { z-index: 120 !important; }
.answer-viewer__bar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
  color: #fff; font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.answer-viewer__close {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff; border-radius: 8px;
  padding: 5px 14px; font-size: 12.5px; cursor: pointer;
}
.answer-viewer__stage {
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px 16px 76px;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}
.answer-viewer__frame {
  position: relative;
  display: block;
  margin: 0 auto;
  line-height: 0;
}
.answer-viewer__img {
  display: block;
  margin: 0 auto;
  max-width: none;
  height: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
}
.answer-viewer__marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  border-radius: 4px;
}
.answer-viewer__tools {
  position: fixed; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 5px 7px;
  border-radius: 10px;
  background: rgba(12, 17, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.answer-viewer__tools button {
  width: 32px; height: 30px;
  border: 0; border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.answer-viewer__pct {
  min-width: 48px; text-align: center;
  color: #fff; font-size: 12px; font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
  .answer-viewer__bar { padding: 8px 12px; font-size: 12px; }
  .answer-viewer__stage { padding: 10px 10px 70px; }
}

/* ==================== 单科进步 / 退步榜（单科趋势页） ==================== */
.subj-delta-card { margin-bottom: 12px; }
.subj-delta-card .chart-card__head { margin-bottom: 2px; }
.subj-delta-card .card__sub { margin: 2px 0 0; }

.subj-delta__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin: 6px 0 9px; color: var(--text-2); font-size: 12px;
}
.subj-delta__meta b { color: var(--text); font-weight: 600; }
.subj-delta__meta-arrow { color: var(--gold); font-weight: 700; }
.subj-delta__meta-dot { color: var(--text-2); opacity: 0.55; }

.subj-delta__subjects {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-bottom: 2px;
}
.subj-delta__subject { min-width: 48px; }

.subj-delta__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  margin: 9px 0 7px;
}
.subj-delta__tabs { width: 230px; max-width: 100%; }
.subj-delta__tabs .segmented__item { height: 30px; font-size: 12.5px; }
.subj-delta__count {
  display: inline-block; min-width: 17px; padding: 0 4px; margin-left: 3px;
  border-radius: 6px; background: rgba(255,255,255,0.055);
  color: var(--text-2); font-size: 10.5px; line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.subj-delta__tabs .is-active .subj-delta__count { color: var(--gold); background: rgba(242,193,78,0.10); }

.subj-delta__table-wrap { margin-top: 2px; }
.subj-delta__table { font-size: 12.5px; }
.subj-delta__table th { white-space: nowrap; }
.subj-delta__table td { padding-top: 7px; padding-bottom: 7px; }
.subj-delta__table .num { font-variant-numeric: tabular-nums; }
.subj-delta__rank { font-weight: 700; font-variant-numeric: tabular-nums; }
.subj-delta__class {
  display: inline-block; min-width: 24px; padding: 1px 5px;
  border-radius: 5px; background: rgba(255,255,255,0.045);
  color: var(--text-2); font-size: 11px; text-align: center;
}
.subj-delta__me { background: rgba(242,193,78,0.075); }
.subj-delta__me-tag {
  display: inline-block; margin-left: 3px; padding: 0 4px;
  border: 1px solid rgba(242,193,78,0.35); border-radius: 4px;
  color: var(--gold); font-size: 10px; line-height: 15px;
}

.subj-delta__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-top: 9px;
  color: var(--text-2); font-size: 11.5px;
}
.subj-delta__foot .btn { height: 28px; }

.subj-delta__empty, .subj-delta__loading {
  margin: 10px 0 2px; padding: 14px 12px;
  border: 1px dashed var(--line); border-radius: 8px;
  color: var(--text-2); font-size: 12px; text-align: center;
}
.subj-delta__loading { border-style: solid; background: rgba(255,255,255,0.02); }

.subj-delta__notice {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0 2px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255,255,255,0.025);
}
.subj-delta__notice b { display: block; color: var(--text); font-size: 12.5px; margin-bottom: 3px; }
.subj-delta__notice p { margin: 0; color: var(--text-2); font-size: 11.5px; line-height: 1.55; }
.subj-delta__notice--action { justify-content: space-between; }
.subj-delta__notice--action .btn { flex: none; height: 32px; }
.subj-delta__notice-copy { min-width: 0; }
.subj-delta__hint { margin: 7px 0 0; }

@media (max-width: 620px) {
  .subj-delta__bar { align-items: stretch; }
  .subj-delta__tabs { width: 100%; }
  .subj-delta__bar > .muted { font-size: 11px; }
  .subj-delta__table { min-width: 0; width: 100%; }
  .subj-delta__table th:nth-child(2),
  .subj-delta__table td:nth-child(2) { display: none; }
  .subj-delta__notice--action { flex-direction: column; align-items: stretch; }
  .subj-delta__notice--action .btn { width: 100%; }
}



/* ===== animations-v5.css ===== */
/* ==========================================================================
   仪式感 UI v5 —— 精致动画系统
   设计语言：深空 + 鎏金，入场编排 / 数据揭晓 / 数字滚动 / 光晕呼吸
   ========================================================================== */

/* ---------- 动画变量 ---------- */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 520ms;
}

/* ==========================================================================
   1. 全局入场编排
   ========================================================================== */

/* 页面切换：淡入 + 轻微上浮 */
.pane { /* 动画由 v6 接管 */ }


/* 卡片逐个入场（配合 JS 设置 --i 变量） */



/* ==========================================================================
   2. 数字滚动揭晓（成绩亮起）
   ========================================================================== */

/* 分数卡：金箔扫光 */
.score-hero,
.ov-value {
  position: relative;
  overflow: hidden;
}

.score-hero::after,
.ov-value::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 230, 160, 0.5) 48%,
    rgba(255, 245, 210, 0.8) 52%,
    rgba(255, 230, 160, 0.5) 56%,
    transparent 66%
  );
  transform: translateX(-130%);
  animation: goldSweep 1.6s var(--ease-out-expo) 0.45s 1 both;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes goldSweep {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

/* 数字本身：从下往上"顶"出来 */
.num-reveal {
  display: inline-block;
  animation: numRise 640ms var(--ease-out-back) both;
  animation-delay: var(--d, 0.35s);
}

@keyframes numRise {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.86);
    filter: blur(2px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ==========================================================================
   3. 光晕呼吸（重要数据卡）
   ========================================================================== */

.card--gold,
.ov-card--gold,
.score-hero {
  position: relative;
  isolation: isolate;
}

.card--gold::before,
.ov-card--gold::before,
.score-hero::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(242, 193, 78, 0.85),
    rgba(242, 193, 78, 0.15) 35%,
    rgba(242, 193, 78, 0.06) 60%,
    rgba(242, 193, 78, 0.42)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderBreathe 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes borderBreathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* 背后光斑 */
.card--gold::after,
.ov-card--gold::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -80px;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.22), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
  animation: glowDrift 7s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to   { transform: translate(-16px, 20px) scale(1.18); opacity: 1; }
}

/* ==========================================================================
   4. 交互动效（按钮 / 卡片 / 行）
   ========================================================================== */

/* 按钮：按下回弹 + 悬浮上浮 */
.btn {
  transition:
    transform var(--dur-fast) var(--ease-out-back),
    box-shadow var(--dur-base) var(--ease-out-expo),
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
  will-change: transform;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.975);
  transition-duration: 80ms;
}

/* 主按钮（金色）：悬浮发光 */
.btn--gold,
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--gold::after,
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.28), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-base) ease;
  pointer-events: none;
}

.btn--gold:hover::after,
.btn--primary:hover::after {
  opacity: 1;
}

/* 卡片悬浮 */
.card {
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
  border-color: var(--line-strong);
}

/* 考试卡片：悬浮金色描边 */
.exam-card {
  position: relative;
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo);
}

.exam-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color var(--dur-base) ease;
  pointer-events: none;
}

.exam-card:hover {
  transform: translateY(-3px) scale(1.004);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

.exam-card:hover::after {
  border-color: rgba(242, 193, 78, 0.42);
}

/* 表格行滑入 */
.table tbody tr {
  transition: background-color 140ms ease, transform 140ms ease;
}

.table tbody tr:hover {
  background: rgba(242, 193, 78, 0.055);
}

/* 排行榜前 3 名：奖牌光效 */
.table tbody tr:nth-child(1) .num.gold,
.table tbody tr:nth-child(2) .num.gold,
.table tbody tr:nth-child(3) .num.gold {
  text-shadow: 0 0 12px rgba(242, 193, 78, 0.65);
  animation: medalShine 2.4s ease-in-out infinite;
}

.table tbody tr:nth-child(1) .num.gold { animation-delay: 0s; }
.table tbody tr:nth-child(2) .num.gold { animation-delay: 0.3s; }
.table tbody tr:nth-child(3) .num.gold { animation-delay: 0.6s; }

@keyframes medalShine {
  0%, 100% { text-shadow: 0 0 8px rgba(242, 193, 78, 0.4); }
  50%      { text-shadow: 0 0 18px rgba(242, 193, 78, 0.95), 0 0 30px rgba(242, 193, 78, 0.5); }
}

/* ==========================================================================
   5. 侧边栏导航
   ========================================================================== */

.side-btn {
  position: relative;
  transition:
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out-expo);
  overflow: hidden;
}

.side-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height var(--dur-base) var(--ease-out-expo);
}

.side-btn.is-active::before {
  height: 62%;
}

.side-btn:hover {
  transform: translateX(2px);
}

/* 图标微动 */
.side-btn:hover svg,
.side-btn:hover .side-btn__icon {
  transform: scale(1.12) rotate(-4deg);
  transition: transform var(--dur-base) var(--ease-out-back);
}

/* ==========================================================================
   6. 加载状态（骨架屏 + 呼吸）
   ========================================================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--panel-2) 25%,
    var(--panel-3) 50%,
    var(--panel-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 进度条流光 */
.progress-fill,
.bar-fill {
  position: relative;
  overflow: hidden;
}

.progress-fill::after,
.bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  animation: progressShine 1.8s linear infinite;
}

@keyframes progressShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   7. Toast 通知动效
   ========================================================================== */

.toast {
  animation: toastIn 380ms var(--ease-out-back) both;
}

.toast.is-out {
  animation: toastOut 280ms var(--ease-in-out) both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
}

/* ==========================================================================
   8. 弹窗（仪式感开合）
   ========================================================================== */

.modal:not(.hidden) .modal__panel,
.modal:not(.hidden) .modal__box {
  animation: modalIn 440ms var(--ease-out-expo) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.modal {
  transition: opacity var(--dur-base) ease;
}

/* 遮罩雾化 */
.modal:not(.hidden) {
  backdrop-filter: blur(10px) saturate(0.7);
  -webkit-backdrop-filter: blur(10px) saturate(0.7);
}

/* ==========================================================================
   9. 分数揭晓特效（详情页）
   ========================================================================== */

/* 光环扩散 */
.reveal-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(242, 193, 78, 0.75);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ringExpand 1.15s var(--ease-out-expo) forwards;
}

@keyframes ringExpand {
  0% {
    width: 10px; height: 10px;
    opacity: 0.95;
    border-width: 3px;
  }
  100% {
    width: 420px; height: 420px;
    opacity: 0;
    border-width: 1px;
  }
}

/* 粒子飞散 */
.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  animation: sparkFly 900ms var(--ease-out-expo) forwards;
}

@keyframes sparkFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0.2);
  }
}

/* ==========================================================================
   10. 空状态呼吸
   ========================================================================== */

.empty__icon {
  animation: emptyFloat 3.2s ease-in-out infinite;
}

@keyframes emptyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}

/* ==========================================================================
   11. 响应式 & 降级
   ========================================================================== */

/* 尊重系统"减少动态效果" */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 窄屏：减少动画开销 */
@media (max-width: 720px) {
  .card,
  .exam-card {
    animation-delay: 0ms;
  }
}


/* ===== animations-v5b.css ===== */
/* ==========================================================================
   仪式感 UI v5.1 —— 布局精修 & 视觉层次
   ========================================================================== */

/* ---------- 顶部标题栏：微光滚动 ---------- */
.titlebar {
  position: relative;
  overflow: hidden;
}

.titlebar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(242, 193, 78, 0.6),
    rgba(242, 193, 78, 0.06),
    transparent
  );
  background-size: 200% 100%;
  animation: lineFlow 4s linear infinite;
}

@keyframes lineFlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Hero 分数区放大 ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__score b {
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  background: linear-gradient(160deg, #ffffff 8%, var(--gold) 52%, var(--gold-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(242, 193, 78, 0.34));
}

.hero__label {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 10.5px;
}

/* ---------- 概览卡：数字凸起 ---------- */
.ov-card {
  position: relative;
  transition: transform var(--dur-base) var(--ease-out-expo), box-shadow var(--dur-base) ease;
}

.ov-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.ov-value {
  font-variant-numeric: tabular-nums;
}

/* 走势小柱：逐根生长 */

















.ov-spark i:hover {
  filter: brightness(1.45);
}

.ov-spark i.on {
  box-shadow: 0 0 14px rgba(242, 193, 78, 0.7);
}

/* ---------- 表格：数字等宽 + 斑马纹微对比 ---------- */
.table {
  font-variant-numeric: tabular-nums;
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.014);
}

/* 榜首三行：左侧金线 */
.table tbody tr:nth-child(-n+3) > td:first-child {
  position: relative;
}

.table tbody tr:nth-child(-n+3) > td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  width: 2px;
  height: 64%;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.7;
}

/* ---------- 标签页：滑动的金色指示条 ---------- */
.detail-tabs {
  position: relative;
  gap: 4px;
}

.detail-tabs button,
.detail-tabs .pill {
  position: relative;
  transition:
    color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out-back);
}

.detail-tabs button:hover,
.detail-tabs .pill:hover {
  transform: translateY(-1px);
}

.detail-tabs button.is-active,
.detail-tabs .pill.is-active {
  box-shadow: 0 4px 18px rgba(242, 193, 78, 0.28);
}

/* ---------- 分数条：生长动画 ---------- */
.bar-fill {
  transform-origin: left center;
  animation: barFillGrow 780ms var(--ease-out-expo) both;
  animation-delay: calc(var(--bi, 0) * 60ms);
  border-radius: 99px;
}

@keyframes barFillGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- 骨架屏：加载中的仪式感 ---------- */
.loading-veil {
  position: relative;
}

.loading-veil::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(242, 193, 78, 0.05),
    transparent
  );
  background-size: 200% 100%;
  animation: veilSweep 1.8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes veilSweep {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- 滚动条：细金 ---------- */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(242, 193, 78, 0.28), rgba(242, 193, 78, 0.14));
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(242, 193, 78, 0.55), rgba(242, 193, 78, 0.3));
  background-clip: padding-box;
}

/* ---------- 焦点可见性（无障碍） ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 页面标题：下划线生长 ---------- */
.pane__head h2 {
  position: relative;
  display: inline-block;
}

.pane__head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 620ms var(--ease-out-expo) 180ms both;
}

@keyframes underlineGrow {
  to { transform: scaleX(1); }
}

/* ---------- 榜单卡片：交错浮现（学校页） ---------- */
.school-grid {
  display: grid;
  gap: 14px;
}

.school-class-card {
  transition: transform var(--dur-base) var(--ease-out-expo), border-color var(--dur-base) ease;
}

.school-class-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 193, 78, 0.3);
}

/* ---------- 真题卡片：悬浮上浮 ---------- */
.city-exam-item,
.city-exam-card {
  transition: transform var(--dur-base) var(--ease-out-expo), background-color var(--dur-fast) ease;
}

.city-exam-item:hover,
.city-exam-card:hover {
  transform: translateX(3px);
}

/* ---------- 设置页：开关动效 ---------- */
.switch__slider {
  transition:
    background-color var(--dur-base) var(--ease-out-expo),
    box-shadow var(--dur-base) ease;
}

.switch input:checked + .switch__slider {
  box-shadow: 0 0 16px rgba(242, 193, 78, 0.45);
}

.switch__slider::before {
  transition: transform var(--dur-base) var(--ease-out-back), background-color var(--dur-fast) ease;
}

/* ---------- 刮刮乐：更浓的仪式感 ---------- */
.scratch-card {
  position: relative;
  overflow: hidden;
}

.scratch-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(242, 193, 78, 0.12) 40deg,
    transparent 80deg,
    transparent 180deg,
    rgba(242, 193, 78, 0.09) 220deg,
    transparent 260deg
  );
  animation: auraSpin 9s linear infinite;
  pointer-events: none;
}

@keyframes auraSpin {
  to { transform: rotate(360deg); }
}

.scratch-score {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(242, 193, 78, 0.55);
}

/* ---------- 减少动画时保持可读 ---------- */
@media (prefers-reduced-motion: reduce) {
  .card,
  .exam-card,
  .pane {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero__score b,
  .ov-value b {
    opacity: 1 !important;
  }
}


/* ===== hero-v7.css ===== */
/* ==========================================================================
   Hero 增强 v7 —— 仅作用详情页分数区
   安全策略：只加视觉增强，不改布局结构
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 容器：加深层次 + 光柱
   -------------------------------------------------------------------------- */

#paneDetail .hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  border-color: rgba(242, 193, 78, 0.22);
}

/* 右上角金色光斑（缓慢呼吸） */
#paneDetail .hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.2), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: heroGlow 6.5s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.45; transform: scale(1) translate(0, 0); }
  to   { opacity: 0.95; transform: scale(1.16) translate(-14px, 12px); }
}

/* 斜向流光 */
#paneDetail .hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -60%;
  width: 42%;
  height: 220%;
  background: linear-gradient(
    100deg,
    transparent 32%,
    rgba(242, 193, 78, 0.07) 45%,
    rgba(255, 238, 185, 0.13) 50%,
    rgba(242, 193, 78, 0.07) 55%,
    transparent 68%
  );
  transform: rotate(13deg);
  pointer-events: none;
  z-index: 0;
  animation: heroSweep 8s ease-in-out infinite;
}

@keyframes heroSweep {
  0%, 100% { opacity: 0.3; transform: rotate(13deg) translateX(0); }
  50%      { opacity: 0.85; transform: rotate(13deg) translateX(-46px); }
}

/* 内容层浮在光效之上 */
#paneDetail .hero > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   2. 分数：鎏金渐变 + 发光
   -------------------------------------------------------------------------- */

#paneDetail .hero__label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

#paneDetail .hero__score {
  margin: 4px 0 12px;
}

#paneDetail .hero__score b {
  font-size: 60px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2.5px;
  background: linear-gradient(158deg, #ffffff 6%, #ffe9a8 38%, var(--gold) 70%, #c8912a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  filter: drop-shadow(0 3px 20px rgba(242, 193, 78, 0.4));
  transition: filter 320ms ease;
}

#paneDetail .hero:hover .hero__score b {
  filter: drop-shadow(0 3px 30px rgba(242, 193, 78, 0.62));
}

#paneDetail .hero__score span {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* --------------------------------------------------------------------------
   3. 标签芯片微光
   -------------------------------------------------------------------------- */

#paneDetail .hero__tags .chip {
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

#paneDetail .hero__tags .chip:hover {
  transform: translateY(-1.5px);
}

/* --------------------------------------------------------------------------
   4. 右侧指标卡
   -------------------------------------------------------------------------- */

#paneDetail .hero > div:last-child {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   5. 入场：分数从下方"顶"出来
   -------------------------------------------------------------------------- */

@keyframes heroScoreIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    filter: blur(8px) drop-shadow(0 0 0 rgba(242, 193, 78, 0));
  }
  60% {
    filter: blur(0) drop-shadow(0 3px 26px rgba(242, 193, 78, 0.6));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) drop-shadow(0 3px 20px rgba(242, 193, 78, 0.4));
  }
}

#paneDetail .hero__score b {
  animation: heroScoreIn 760ms cubic-bezier(0.34, 1.36, 0.64, 1) 120ms both;
}

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

#paneDetail .hero__label {
  animation: heroFadeUp 520ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
}

#paneDetail .hero__tags {
  animation: heroFadeUp 560ms cubic-bezier(0.16, 1, 0.3, 1) 320ms both;
}

/* --------------------------------------------------------------------------
   6. 移动端适配（保持原有小屏规则优先）
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  #paneDetail .hero__score b {
    font-size: 38px;
    letter-spacing: -1.5px;
  }
}

/* --------------------------------------------------------------------------
   7. 无障碍
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  #paneDetail .hero::before,
  #paneDetail .hero::after {
    animation: none !important;
  }
  #paneDetail .hero__score b,
  #paneDetail .hero__label,
  #paneDetail .hero__tags {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: drop-shadow(0 3px 20px rgba(242, 193, 78, 0.4)) !important;
  }
}


/* ===== overview-v7.css ===== */
/* ==========================================================================
   概览卡组增强 v7 —— 仅作用 #examOverview
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 卡片：材质 + 层次
   -------------------------------------------------------------------------- */

#examOverview .ov-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

#examOverview .ov-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  border-color: rgba(242, 193, 78, 0.26);
}

/* 金色卡：描边呼吸 */
#examOverview .ov-card--gold {
  border-color: rgba(242, 193, 78, 0.3);
}

#examOverview .ov-card--gold::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.22), transparent 66%);
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
  animation: ovGlow 5.5s ease-in-out infinite alternate;
}

@keyframes ovGlow {
  from { opacity: 0.4; transform: scale(1); }
  to   { opacity: 0.9; transform: scale(1.2) translate(-10px, 8px); }
}

#examOverview .ov-card > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   2. 数值：等宽数字 + 金色渐变
   -------------------------------------------------------------------------- */

#examOverview .ov-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

#examOverview .ov-card:hover .ov-value {
  transform: scale(1.035);
  transform-origin: left center;
}

/* 金色卡数值用渐变 */
#examOverview .ov-card--gold .ov-value {
  background: linear-gradient(155deg, #ffffff 10%, #ffe9a8 44%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(242, 193, 78, 0.34));
}

/* --------------------------------------------------------------------------
   3. 走势小柱：生长 + 悬浮高亮
   -------------------------------------------------------------------------- */

#examOverview .ov-spark i {
  transform-origin: bottom;
  border-radius: 2.5px 2.5px 0 0;
  transition: filter 180ms ease, transform 180ms ease;
}



/* 逐根延迟 */


/* 最新一根：发光 */
#examOverview .ov-spark i.on {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(242, 193, 78, 0.7);
}

/* --------------------------------------------------------------------------
   4. 入场编排
   -------------------------------------------------------------------------- */

#examOverview .ov-card { /* 动画由 JS 驱动 */ }



/* 走势卡（第 2 张）稍微不同：横向展开 */




/* --------------------------------------------------------------------------
   5. 无障碍
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  #examOverview .ov-card--gold::after {
    animation: none !important;
  }
  #examOverview .ov-card--gold .ov-value {
    -webkit-text-fill-color: var(--gold);
  }
}


/* ===== blocks-v7.css ===== */
/* ==========================================================================
   v7 第三批：各科成绩表 / 侧边栏 / 标签页 / 考试卡片
   安全策略：只用 transition 和悬停态，绝不用会卡住 opacity 的 animation
   ========================================================================== */

/* ==========================================================================
   A. 各科成绩表 —— 进度条 + 行动效
   ========================================================================== */

/* ---------- 得分率进度条 ---------- */

#paneDetail .bar-track {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

#paneDetail .bar-fill {
  position: relative;
  border-radius: 3px;
  transition: width 480ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(242, 193, 78, 0.28);
}

/* 金/红色条上的流光 */
#paneDetail .bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 20%,
    rgba(255, 255, 255, 0.34) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: barSheen 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes barSheen {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* 低于 60% 的红色条不闪光（避免吸引过度注意） */
#paneDetail .bar-fill--low::after {
  animation: none;
  opacity: 0;
}

/* 悬停整行时进度条变亮 */
#paneDetail .table tbody tr:hover .bar-fill {
  box-shadow: 0 0 14px rgba(242, 193, 78, 0.5);
}

/* ---------- 科目名 + 圆点 ---------- */

#paneDetail .subject-name {
  font-weight: 550;
  letter-spacing: 0.15px;
}

#paneDetail .subject-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd97a, var(--gold-strong));
  box-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
  transition: transform 240ms cubic-bezier(0.34, 1.5, 0.64, 1), box-shadow 240ms ease;
  flex: none;
}

#paneDetail .table tbody tr:hover .subject-dot {
  transform: scale(1.5);
  box-shadow: 0 0 14px rgba(242, 193, 78, 0.85);
}

/* ---------- 表格行 ---------- */

#paneDetail .table tbody tr {
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

#paneDetail .table tbody tr:hover {
  background: rgba(242, 193, 78, 0.055);
  box-shadow: inset 3px 0 0 rgba(242, 193, 78, 0.7);
}

/* 优势科目：绿色标记左线 */
#paneDetail .table tbody td.strong.good {
  color: var(--green);
}

#paneDetail .table tbody td.strong.weak {
  color: var(--red);
}

/* ---------- 成绩分布图容器 ---------- */

#paneDetail .chart-card canvas {
  transition: filter 320ms ease;
}

#paneDetail .chart-card:hover canvas {
  filter: brightness(1.06);
}

/* ==========================================================================
   B. 侧边栏 —— 导航 + 用户卡
   ========================================================================== */

/* ---------- 导航项 ---------- */

.sidebar .nav__item {
  position: relative;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* 左侧金色指示条 */
.sidebar .nav__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #ffd97a, var(--gold-strong));
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar .nav__item.is-active::before {
  height: 60%;
}

.sidebar .nav__item:hover {
  transform: translateX(2px);
}

/* 图标微动 */
.sidebar .nav__item svg {
  transition: transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 180ms ease;
}

.sidebar .nav__item:hover svg {
  transform: scale(1.15) rotate(-5deg);
}

/* 激活态发光 */
.sidebar .nav__item.is-active {
  box-shadow:
    0 2px 14px rgba(242, 193, 78, 0.12),
    inset 0 0 0 1px rgba(242, 193, 78, 0.16);
}

/* ---------- 侧栏用户卡 ---------- */

.sidebar__user {
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar__user:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 193, 78, 0.32);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.13);
}

.sidebar__user .avatar {
  transition: transform 300ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.sidebar__user:hover .avatar {
  transform: rotate(-6deg) scale(1.06);
}

/* ---------- 侧栏按钮 ---------- */

.side-btn {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.side-btn:hover {
  transform: translateY(-1px);
}

.side-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================================
   C. 标签页 —— 滑动胶囊
   ========================================================================== */

.detail-tabs .pill,
.detail-tabs button {
  position: relative;
  transition:
    color 180ms ease,
    background-color 200ms ease,
    box-shadow 240ms ease,
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-tabs .pill:hover,
.detail-tabs button:hover {
  transform: translateY(-1px);
}

/* 激活态：金渐变 + 微发光 */
.detail-tabs .pill.is-active,
.detail-tabs button.is-active {
  box-shadow:
    0 3px 14px rgba(242, 193, 78, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* 激活态下方小箭头 */
.detail-tabs .pill.is-active::after,
.detail-tabs button.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--gold);
  transform: translateX(-50%);
  opacity: 0.85;
}

/* ==========================================================================
   D. 考试卡片 —— 悬停细节
   ========================================================================== */

.exam-card {
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

/* 左侧金色竖条：悬停时生长 */
.exam-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent 85%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.exam-card:hover::before {
  transform: scaleY(1);
}

.exam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(242, 193, 78, 0.28);
}

/* 日期区：悬停时数值发光 */
.exam-card__day,
.exam-card .date-part {
  transition: color 220ms ease, text-shadow 220ms ease;
}

.exam-card:hover .exam-card__day,
.exam-card:hover .date-part b {
  text-shadow: 0 0 14px rgba(242, 193, 78, 0.55);
}

/* 分数：悬停时轻微放大 */
.exam-card b.score,
.exam-card .exam-card__score {
  transition: transform 260ms cubic-bezier(0.34, 1.4, 0.64, 1);
  display: inline-block;
}

.exam-card:hover b.score,
.exam-card:hover .exam-card__score {
  transform: scale(1.04);
}

/* 右侧箭头：悬停时右移 */
.exam-card .chev,
.exam-card__chev {
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.exam-card:hover .chev,
.exam-card:hover .exam-card__chev {
  transform: translateX(4px);
}

/* ==========================================================================
   无障碍
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  #paneDetail .bar-fill::after,
  .sidebar .nav__item::before,
  .exam-card::before,
  .detail-tabs .pill.is-active::after,
  .detail-tabs button.is-active::after {
    animation: none !important;
    transition: none !important;
  }
  #paneDetail .bar-fill {
    transition: none !important;
  }
}


/* ---------- 班级筛选提示 ---------- */

.cls-filter-tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--gold);
  background: rgba(242, 193, 78, 0.12);
  border: 1px solid rgba(242, 193, 78, 0.26);
  animation: tipFadeIn 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cls-filter-tip b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@keyframes tipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- 筛选后的年段排名卡 ---------- */

.rank-box--filtered {
  border-color: rgba(242, 193, 78, 0.4) !important;
  box-shadow: 0 0 18px rgba(242, 193, 78, 0.16);
  position: relative;
}

.rank-box--filtered::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(242, 193, 78, 0.32);
  pointer-events: none;
  animation: filteredPulse 2.6s ease-in-out infinite;
}

@keyframes filteredPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.9; }
}

.rank-box__hint {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #241c08;
  background: var(--gold);
  vertical-align: middle;
  letter-spacing: 0.2px;
}


/* ===== panels-v7.css ===== */
/* ==========================================================================
   v7 第四批：年段排名 / 答题卡 / 刮刮乐
   安全策略：只用 transition 和悬停态，绝不用会卡住 opacity 的 animation
   ========================================================================== */

/* ==========================================================================
   D. 年段排名面板
   ========================================================================== */

/* ---------- 多选班级芯片 ---------- */

.cls-multi {
  transition: all 240ms ease;
}

.cls-pick {
  position: relative;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 220ms cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 220ms ease;
}

.cls-pick:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* 选中态：金色发光 */
.cls-pick:has(input:checked),
.cls-pick.is-checked {
  border-color: rgba(242, 193, 78, 0.5) !important;
  box-shadow: 0 0 12px rgba(242, 193, 78, 0.18);
}

.cls-pick:has(input:checked):hover {
  box-shadow: 0 4px 18px rgba(242, 193, 78, 0.3);
}

/* 勾选框 */
.cls-pick input[type="checkbox"] {
  accent-color: var(--gold);
  transition: transform 180ms cubic-bezier(0.34, 1.5, 0.64, 1);
  cursor: pointer;
}

.cls-pick input[type="checkbox"]:checked {
  transform: scale(1.12);
}

/* ---------- 年段排名表格 ---------- */

/* 表头吸顶强化 */
.card .table thead th,
.card .table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(26, 33, 45, 0.99), rgba(20, 26, 36, 0.97));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 行悬停：左侧金线 + 背景提亮 */
#gradeRankTbody tr,
.rank-tbody tr {
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease;
  position: relative;
}

#gradeRankTbody tr:hover,
.rank-tbody tr:hover {
  background: rgba(242, 193, 78, 0.06) !important;
  box-shadow: inset 3px 0 0 var(--gold);
}

/* 我的行：金色高亮 + 脉冲边框 */
#gradeRankTbody tr.row-me,
.rank-tbody tr.row-me,
#gradeRankTbody tr:has(.chip--gold) {
  background: rgba(242, 193, 78, 0.075) !important;
  box-shadow: inset 3px 0 0 var(--gold);
}

/* 前三名：奖牌光晕 */
#gradeRankTbody tr:nth-child(1) td:first-child,
#gradeRankTbody tr:nth-child(2) td:first-child,
#gradeRankTbody tr:nth-child(3) td:first-child {
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(242, 193, 78, 0.55);
  transition: text-shadow 300ms ease;
}

#gradeRankTbody tr:nth-child(1):hover td:first-child,
#gradeRankTbody tr:nth-child(2):hover td:first-child,
#gradeRankTbody tr:nth-child(3):hover td:first-child {
  text-shadow: 0 0 20px rgba(242, 193, 78, 0.95);
}

/* 数值列：等宽 */
#gradeRankTbody td,
.rank-tbody td {
  font-variant-numeric: tabular-nums;
}

/* ---------- 统计卡 ---------- */

.ov-card,
.stat-box {
  font-variant-numeric: tabular-nums;
}

/* ---------- 进度条（抓取中） ---------- */

#gradeRankBody .bar-track,
#gradeRankBody [class*="progress"] {
  overflow: hidden;
}

/* ==========================================================================
   E. 答题卡查看器
   ========================================================================== */

/* ---------- 图片容器 ---------- */

.ap-mark-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ap-mark-wrap:hover {
  border-color: rgba(242, 193, 78, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 宽版（批注放大） */
.ap-mark-wrap.ap-wide {
  width: 100%;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
}

/* ---------- 缩略图 ---------- */

.pic-thumb {
  display: block;
  cursor: zoom-in;
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 320ms ease;
}

.ap-mark-wrap:hover .pic-thumb {
  transform: scale(1.012);
  filter: brightness(1.05);
}

/* 放大提示 */
.ap-mark-wrap:hover::after {
  content: '🔍';
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  font-size: 14px;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- 批注画布 ---------- */

.ap-mark-wrap canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  transition: filter 280ms ease;
}

.ap-mark-wrap:hover canvas {
  filter: brightness(1.04) contrast(1.02);
}

/* ---------- 答题卡标签/标题 ---------- */

.card h3:has(+ .ap-mark-wrap),
.card h3:has(+ .answer-block) {
  transition: color 240ms ease;
}

/* ---------- 放大弹窗 ---------- */

.zoom-overlay,
.img-zoom {
  animation: zoomFadeIn 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes zoomFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(12px);
  }
}

.zoom-overlay img,
.img-zoom img {
  animation: zoomImgIn 380ms cubic-bezier(0.34, 1.3, 0.64, 1) both;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  border-radius: 8px;
}

@keyframes zoomImgIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   F. 刮刮乐揭晓
   ========================================================================== */

/* ---------- 弹窗遮罩 ---------- */

#scratchModal:not(.hidden) {
  animation: scratchBackdropIn 320ms ease both;
  backdrop-filter: blur(14px) saturate(0.6);
  -webkit-backdrop-filter: blur(14px) saturate(0.6);
}

@keyframes scratchBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- 卡片：金箔质感 ---------- */

#scratchModal .scratch-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(242, 193, 78, 0.16), transparent 62%),
    linear-gradient(165deg, #1d2433, #12171f 62%, #0d1119);
  border: 1px solid rgba(242, 193, 78, 0.28);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(242, 193, 78, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: scratchCardIn 520ms cubic-bezier(0.34, 1.32, 0.64, 1) both;
}

@keyframes scratchCardIn {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.9);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* 旋转光环（背景氛围） */
#scratchModal .scratch-card::before {
  content: '';
  position: absolute;
  inset: -55%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(242, 193, 78, 0.10) 42deg,
    transparent 84deg,
    transparent 180deg,
    rgba(242, 193, 78, 0.075) 222deg,
    transparent 264deg
  );
  animation: scratchAura 11s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes scratchAura {
  to { transform: rotate(360deg); }
}

/* 顶部金光 */
#scratchModal .scratch-card::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -50%;
  width: 60%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(242, 193, 78, 0.18), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: scratchTopGlow 5s ease-in-out infinite alternate;
}

@keyframes scratchTopGlow {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}

#scratchModal .scratch-card > * {
  position: relative;
  z-index: 1;
}

/* ---------- 揭晓分数：极致发光 ---------- */

#scratchModal .scratch-score {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 900;
  letter-spacing: -2.5px;
  /* 金色渐变文字（不透明，确保可见） */
  background: linear-gradient(160deg, #ffffff 5%, #ffe9a8 36%, var(--gold) 72%, #c8912a);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  filter: drop-shadow(0 0 30px rgba(242, 193, 78, 0.6));
  transition: filter 400ms ease;
}

#scratchModal .scratch-score.is-revealed {
  animation: scratchScorePop 780ms cubic-bezier(0.34, 1.55, 0.64, 1) both;
}

@keyframes scratchScorePop {
  0% {
    opacity: 0;
    transform: scale(0.45);
    filter: blur(20px) drop-shadow(0 0 0 rgba(242, 193, 78, 0));
  }
  58% {
    filter: blur(0) drop-shadow(0 0 52px rgba(242, 193, 78, 0.95));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) drop-shadow(0 0 30px rgba(242, 193, 78, 0.6));
  }
}

/* ---------- 刮层画布 ---------- */

#scratchModal canvas {
  border-radius: 14px;
  cursor: grab;
  transition: box-shadow 300ms ease;
}

#scratchModal canvas:active {
  cursor: grabbing;
}

/* ---------- 操作按钮 ---------- */

#scratchModal .btn {
  transition:
    transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 240ms ease,
    background-color 180ms ease;
}

#scratchModal .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}

/* ---------- 揭晓后粒子 ---------- */

.scratch-petal {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  animation: petalDrop linear forwards;
}

@keyframes petalDrop {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.3);
  }
  15% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translateY(var(--pf, 380px)) translateX(var(--pd, 0)) scale(1.1);
  }
}

/* ---------- 光环扩散 ---------- */

.scratch-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(242, 193, 78, 0.75);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: scratchRing 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scratchRing {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
    border-width: 3px;
  }
  100% {
    width: 520px;
    height: 520px;
    opacity: 0;
    border-width: 1px;
  }
}

/* ==========================================================================
   无障碍
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  #scratchModal .scratch-card,
  #scratchModal .scratch-card::before,
  #scratchModal .scratch-card::after,
  #scratchModal .scratch-score.is-revealed,
  .scratch-petal,
  .scratch-ring,
  .zoom-overlay img,
  .img-zoom img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  #scratchModal .scratch-score {
    -webkit-text-fill-color: var(--gold);
  }
}


/* ===== confirm-v7.css ===== */
/* ==========================================================================
   确认弹窗样式 v7
   ========================================================================== */

.hfs-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px) saturate(0.7);
  -webkit-backdrop-filter: blur(10px) saturate(0.7);
  animation: hfsConfirmFadeIn 220ms ease both;
}

.hfs-confirm-overlay.is-closing {
  animation: hfsConfirmFadeOut 240ms ease both;
}

@keyframes hfsConfirmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hfsConfirmFadeOut {
  to { opacity: 0; }
}

.hfs-confirm-box {
  width: min(400px, calc(100vw - 48px));
  padding: 28px 26px 22px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(242, 193, 78, 0.11), transparent 62%),
    linear-gradient(165deg, #1d2433, #131922 62%, #0e131b);
  border: 1px solid rgba(242, 193, 78, 0.24);
  box-shadow:
    0 26px 74px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(242, 193, 78, 0.1);
  text-align: center;
  animation: hfsConfirmBoxIn 340ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes hfsConfirmBoxIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.93);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hfs-confirm-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(242, 193, 78, 0.5));
}

.hfs-confirm-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

.hfs-confirm-msg {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}

.hfs-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hfs-confirm-btn {
  flex: 1;
  max-width: 150px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition:
    transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 220ms ease,
    background-color 180ms ease;
}

.hfs-confirm-btn:hover {
  transform: translateY(-1.5px);
}

.hfs-confirm-btn:active {
  transform: translateY(0) scale(0.97);
}

.hfs-confirm-btn--cancel {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  color: var(--text-2);
}

.hfs-confirm-btn--cancel:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.hfs-confirm-btn--ok {
  background: linear-gradient(145deg, #ffd97a, var(--gold-strong) 70%, #d19a2e);
  color: #241c08;
  box-shadow: 0 4px 18px rgba(242, 193, 78, 0.3);
}

.hfs-confirm-btn--ok:hover {
  background: linear-gradient(145deg, #ffe49a, #f2c14e 70%, #e0a733);
  box-shadow: 0 8px 26px rgba(242, 193, 78, 0.42);
}

.hfs-confirm-btn--ok.is-danger {
  background: linear-gradient(145deg, #ff8f85, #e05a50 70%, #c2453c);
  color: #fff;
  box-shadow: 0 4px 18px rgba(224, 90, 80, 0.32);
}

.hfs-confirm-btn--ok.is-danger:hover {
  background: linear-gradient(145deg, #ffa199, #e86b61 70%, #cd5249);
  box-shadow: 0 8px 26px rgba(224, 90, 80, 0.44);
}

.hfs-confirm-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ===== aurora-v9.css ===== */
/* ==========================================================================
   全局排版重做 v9 —— Aurora Design System
   设计方向：更精致的间距节奏、更清晰的视觉层次、更流畅的动效
   
   安全策略：
   · 不覆盖布局核心（display/grid/flex 结构）
   · 只调整：间距、圆角、阴影、边框、字号、颜色、过渡
   · 每个区块用高特异度选择器精确控制
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 间距节奏（4px 基准） */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 20px;  --s6: 24px;  --s7: 32px;  --s8: 40px;

  /* 圆角 */
  --r1: 6px;   --r2: 9px;   --r3: 13px;  --r4: 18px;  --r5: 24px;

  /* 阴影层级 */
  --e1: 0 1px 2px rgba(0,0,0,.28);
  --e2: 0 4px 14px rgba(0,0,0,.32);
  --e3: 0 10px 30px rgba(0,0,0,.38);
  --e4: 0 20px 54px rgba(0,0,0,.46);
  --glow: 0 0 28px rgba(242,193,78,.16);

  /* 动效曲线 */
  --ez: cubic-bezier(.16,1,.3,1);
  --ezb: cubic-bezier(.34,1.5,.64,1);
}

/* --------------------------------------------------------------------------
   1. 标题栏 —— 精致化
   -------------------------------------------------------------------------- */

.titlebar {
  height: 54px;
  padding: 0 var(--s6);
  background: linear-gradient(180deg, rgba(22,28,40,.94), rgba(13,17,24,.9));
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,.065);
  box-shadow: 0 1px 0 rgba(0,0,0,.4);
}

.titlebar__brand { gap: var(--s3); }

.logo-mark {
  width: 32px; height: 32px;
  border-radius: var(--r2);
  background: linear-gradient(145deg, #ffe49a, #f2c14e 55%, #c8912a);
  box-shadow:
    0 3px 16px rgba(242,193,78,.34),
    inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform 400ms var(--ezb);
}

.logo-mark:hover { transform: rotate(-9deg) scale(1.08); }

.titlebar__name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .3px;
}

.titlebar__tag {
  font-size: 10px;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: rgba(242,193,78,.11);
  border: 1px solid rgba(242,193,78,.22);
  letter-spacing: .7px;
}

/* --------------------------------------------------------------------------
   2. 侧边栏 —— 更清晰的层次
   -------------------------------------------------------------------------- */

.sidebar {
  padding: var(--s5) var(--s3) var(--s4);
  gap: var(--s1);
  background: linear-gradient(180deg, rgba(18,24,35,.82), rgba(12,16,23,.6));
  border-right: 1px solid rgba(255,255,255,.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav { gap: 3px; margin-top: var(--s3); }

.nav__item {
  padding: 10px var(--s3);
  border-radius: var(--r2);
  font-size: 13px;
  gap: var(--s3);
  letter-spacing: .1px;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 240ms var(--ez);
}

.nav__item::before {
  width: 3px;
  border-radius: 0 3px 3px 0;
  transition: height 320ms var(--ez);
}

.nav__item:hover {
  background: rgba(255,255,255,.042);
  transform: translateX(2px);
}

.nav__item.is-active {
  background: linear-gradient(90deg, rgba(242,193,78,.155), rgba(242,193,78,.04));
  border: 1px solid rgba(242,193,78,.2);
  box-shadow: 0 2px 16px rgba(242,193,78,.1);
  font-weight: 600;
}

.nav__item.is-active::before { height: 58%; }

.nav__item svg {
  transition: transform 320ms var(--ezb), opacity 180ms ease;
}

.nav__item:hover svg { transform: scale(1.15) rotate(-5deg); }

/* 用户卡 */
.sidebar__user {
  padding: var(--s3);
  border-radius: var(--r3);
  gap: var(--s3);
  background: linear-gradient(150deg, rgba(242,193,78,.085), rgba(255,255,255,.012));
  border: 1px solid rgba(242,193,78,.15);
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 280ms var(--ez);
}

.sidebar__user:hover {
  transform: translateY(-1.5px);
  border-color: rgba(242,193,78,.32);
  box-shadow: 0 8px 26px rgba(242,193,78,.14);
}

.avatar {
  width: 36px; height: 36px;
  border-radius: var(--r2);
  font-size: 14.5px;
  font-weight: 700;
  background: linear-gradient(145deg, rgba(242,193,78,.24), rgba(242,193,78,.07));
  border: 1px solid rgba(242,193,78,.24);
  transition: transform 340ms var(--ezb);
}

.sidebar__user:hover .avatar { transform: rotate(-7deg) scale(1.07); }

/* --------------------------------------------------------------------------
   3. 内容区 —— 呼吸感留白
   -------------------------------------------------------------------------- */

.main {
  background:
    radial-gradient(1100px 640px at 10% -10%, rgba(242,193,78,.05), transparent 62%),
    radial-gradient(820px 520px at 94% 6%, rgba(106,162,255,.028), transparent 58%);
}

.panes,
.content {
  padding: var(--s7) var(--s8) var(--s6);
}

.pane__head {
  padding-bottom: var(--s4);
  margin-bottom: var(--s5);
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: var(--s4);
}

.pane__head h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.5px;
  margin: 0;
}

.pane__sub {
  margin: var(--s2) 0 0;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .2px;
}

.pane__tools { gap: var(--s2); }

/* --------------------------------------------------------------------------
   4. 卡片 —— 材质升级
   -------------------------------------------------------------------------- */

.card {
  padding: var(--s5);
  border-radius: var(--r4);
  background: linear-gradient(168deg, rgba(26,33,46,.86), rgba(18,23,34,.78));
  border: 1px solid rgba(255,255,255,.062);
  box-shadow: var(--e2);
  transition:
    transform 300ms var(--ez),
    box-shadow 300ms var(--ez),
    border-color 300ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--e3);
  border-color: rgba(255,255,255,.11);
}

.card > h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .1px;
  margin: 0 0 var(--s3);
}

.card__sub {
  font-size: 11.5px;
  line-height: 1.65;
  margin: 0 0 var(--s3);
}

.card--gold {
  background: linear-gradient(150deg, rgba(48,41,24,.9), rgba(26,23,16,.83));
  border-color: rgba(242,193,78,.24);
}

/* --------------------------------------------------------------------------
   5. 按钮 —— 尺寸与反馈
   -------------------------------------------------------------------------- */

.btn {
  padding: 8.5px var(--s4);
  border-radius: var(--r2);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .1px;
  border: 1px solid rgba(255,255,255,.14);
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 180ms var(--ezb),
    box-shadow 220ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: var(--e2);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(.975);
  box-shadow: none;
}

.btn--sm {
  padding: 5.5px var(--s3);
  font-size: 11.5px;
  border-radius: var(--r1);
}

.btn--primary,
.btn--gold {
  background: linear-gradient(145deg, #ffd97a, #f2c14e 68%, #d19a2e);
  border-color: rgba(255,220,140,.55);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(242,193,78,.24);
}

.btn--primary:hover:not(:disabled),
.btn--gold:hover:not(:disabled) {
  box-shadow: 0 9px 30px rgba(242,193,78,.4);
}

/* --------------------------------------------------------------------------
   6. 表格 —— 行距与对齐
   -------------------------------------------------------------------------- */

.table {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.table thead th {
  padding: 11px var(--s3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .8px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.table tbody td {
  padding: 10px var(--s3);
  border-bottom: 1px solid rgba(255,255,255,.032);
}

.table tbody tr { transition: background-color 150ms ease; }

.table tbody tr:hover td { background: rgba(242,193,78,.048); }

.table-wrap {
  border-radius: var(--r3);
  border: 1px solid rgba(255,255,255,.06);
}

/* --------------------------------------------------------------------------
   7. 芯片 / 徽章
   -------------------------------------------------------------------------- */

.chip {
  padding: 3px var(--s2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .25px;
  border: 1px solid rgba(255,255,255,.09);
  transition: transform 180ms var(--ezb);
}

.chip--gold {
  background: rgba(242,193,78,.12);
  border-color: rgba(242,193,78,.24);
}

/* --------------------------------------------------------------------------
   8. 输入框
   -------------------------------------------------------------------------- */

.field__input,
.search,
.input {
  padding: 9.5px var(--s3);
  border-radius: var(--r2);
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.26);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.field__input:focus,
.search:focus,
.input:focus {
  border-color: rgba(242,193,78,.7);
  background: rgba(0,0,0,.34);
  box-shadow: 0 0 0 3.5px rgba(242,193,78,.12);
  outline: none;
}

/* --------------------------------------------------------------------------
   9. 标签页 —— 胶囊组
   -------------------------------------------------------------------------- */

.detail-tabs {
  padding: 5px;
  border-radius: var(--r3);
  background: rgba(255,255,255,.026);
  border: 1px solid rgba(255,255,255,.06);
  gap: 4px;
}

.detail-tabs .pill,
.detail-tabs button {
  padding: 8px 17px;
  border-radius: var(--r2);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .1px;
  transition:
    color 160ms ease,
    background-color 200ms ease,
    transform 200ms var(--ezb),
    box-shadow 240ms ease;
}

.detail-tabs .pill.is-active,
.detail-tabs button.is-active {
  font-weight: 700;
  box-shadow:
    0 4px 16px rgba(242,193,78,.3),
    inset 0 1px 0 rgba(255,255,255,.3);
}

/* --------------------------------------------------------------------------
   10. 考试卡片
   -------------------------------------------------------------------------- */

.exam-card {
  padding: var(--s4) var(--s5);
  border-radius: var(--r4);
  gap: var(--s4);
  background: linear-gradient(165deg, rgba(25,32,45,.85), rgba(17,22,32,.77));
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--e1);
  transition:
    transform 280ms var(--ez),
    box-shadow 280ms var(--ez),
    border-color 240ms ease;
}

.exam-card:hover {
  transform: translateY(-2.5px);
  box-shadow: var(--e3);
  border-color: rgba(242,193,78,.26);
}

/* --------------------------------------------------------------------------
   11. 空状态 & 加载
   -------------------------------------------------------------------------- */

.empty {
  padding: 56px var(--s5);
  border-radius: var(--r4);
}

.empty__icon {
  font-size: 40px;
  margin-bottom: var(--s3);
  opacity: .55;
}

.empty p {
  font-size: 14.5px;
  font-weight: 550;
  margin: 0 0 var(--s2);
}

.empty span {
  font-size: 12px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. 滚动条
   -------------------------------------------------------------------------- */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(242,193,78,.26), rgba(242,193,78,.12));
  border-radius: 999px;
  border: 2.5px solid transparent;
  background-clip: padding-box;
  transition: background .2s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(242,193,78,.5), rgba(242,193,78,.26));
  background-clip: padding-box;
}

/* --------------------------------------------------------------------------
   13. 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .panes, .content { padding: var(--s5); }
  .pane__head h2 { font-size: 21px; }
}

@media (max-width: 780px) {
  .panes, .content { padding: var(--s4) var(--s3); }
  .card { padding: var(--s4); }
  .exam-card { padding: var(--s3) var(--s4); }
  .pane__head h2 { font-size: 19px; }
  .titlebar { padding: 0 var(--s4); }
}

/* --------------------------------------------------------------------------
   14. 无障碍
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .card, .exam-card, .btn, .nav__item, .sidebar__user, .logo-mark, .avatar {
    transition: none !important;
  }
  .card:hover, .exam-card:hover, .btn:hover, .nav__item:hover {
    transform: none !important;
  }
}

:focus-visible {
  outline: 2px solid rgba(242,193,78,.85);
  outline-offset: 2px;
  border-radius: var(--r1);
}


/* ===== delta-v8.css ===== */
/* ==========================================================================
   进步 / 退步榜样式 v8
   ========================================================================== */

/* ---------- 我的变化卡 ---------- */

.delta-my {
  margin: 10px 0 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(242, 193, 78, 0.12), transparent 62%),
    linear-gradient(160deg, rgba(30, 38, 52, 0.9), rgba(19, 24, 34, 0.82));
  border: 1px solid rgba(242, 193, 78, 0.22);
  position: relative;
  overflow: hidden;
}

.delta-my__label {
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.delta-my__value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}

.delta-my__sub {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- 双栏布局 ---------- */

.delta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .delta-grid { grid-template-columns: 1fr; }
}

.delta-col {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: border-color 260ms ease;
}

.delta-col--up { border-color: rgba(76, 195, 138, 0.2); }
.delta-col--down { border-color: rgba(239, 107, 98, 0.2); }

.delta-col:hover { border-color: var(--line-strong); }
.delta-col--up:hover { border-color: rgba(76, 195, 138, 0.42); }
.delta-col--down:hover { border-color: rgba(239, 107, 98, 0.42); }

.delta-col__title {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.delta-col--up .delta-col__title { color: var(--green); }
.delta-col--down .delta-col__title { color: var(--red); }

/* ---------- 榜单行 ---------- */

.delta-list {
  max-height: 460px;
  overflow-y: auto;
}

.delta-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  transition: background-color 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
  position: relative;
}

.delta-row:last-child { border-bottom: none; }

.delta-row:hover {
  background: rgba(242, 193, 78, 0.055);
  box-shadow: inset 3px 0 0 var(--gold);
}

.delta-row.is-me {
  background: rgba(242, 193, 78, 0.075);
  box-shadow: inset 3px 0 0 var(--gold);
}

/* 奖牌序号 */
.delta-medal {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.delta-medal--1 {
  background: linear-gradient(145deg, #ffe08a, #e5a93a);
  color: #241c08;
  box-shadow: 0 0 12px rgba(242, 193, 78, 0.55);
}

.delta-medal--2 {
  background: linear-gradient(145deg, #e2e8f2, #9aa6b8);
  color: #1a1f28;
  box-shadow: 0 0 10px rgba(200, 210, 225, 0.4);
}

.delta-medal--3 {
  background: linear-gradient(145deg, #e8b98a, #b07a4a);
  color: #241a10;
  box-shadow: 0 0 10px rgba(190, 130, 80, 0.4);
}

.delta-main {
  min-width: 0;
}

.delta-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delta-meta {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.delta-meta b {
  color: var(--text-2);
  font-weight: 700;
}

.delta-values {
  text-align: right;
  flex: none;
}

/* ---------- 变化徽章 ---------- */

.delta-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.delta-badge--up {
  background: rgba(76, 195, 138, 0.14);
  color: var(--green);
  border: 1px solid rgba(76, 195, 138, 0.3);
}

.delta-badge--down {
  background: rgba(239, 107, 98, 0.14);
  color: var(--red);
  border: 1px solid rgba(239, 107, 98, 0.3);
}

.delta-badge--flat {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}

.delta-score {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.delta-text--up { color: var(--green); font-weight: 700; }
.delta-text--down { color: var(--red); font-weight: 700; }

/* ---------- 滚动条 ---------- */

.delta-list::-webkit-scrollbar { width: 8px; }
.delta-list::-webkit-scrollbar-thumb {
  background: rgba(242, 193, 78, 0.22);
  border-radius: 99px;
}
.delta-list::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 193, 78, 0.4);
}


/* ===== polish-v10.css ===== */
/* ==========================================================================
   UI 精修 v10 —— Polish Layer
   目标：提升精致度的细节层
   · 字体渲染优化（抗锯齿、字重过渡）
   · 微交互反馈（悬停、按下、焦点）
   · 视觉节奏（间距、层级、对齐）
   · 数据可视化增强
   · 空状态与加载态
   安全策略：只加视觉细节，不改布局结构
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 字体渲染优化
   -------------------------------------------------------------------------- */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* 数字统一等宽 */
.num,
.ov-value,
.hero__score b,
.exam-card__score,
.rank-box__value,
.delta-badge,
.delta-meta,
.table td.num,
.rank-box__value small {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 中文标点优化 */
.pane__sub,
.card__sub,
.empty span {
  line-height: 1.7;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   2. 滚动容器优化
   -------------------------------------------------------------------------- */

.panes,
.content,
.table-wrap,
.delta-list {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* 横向滚动条更细 */
.table-wrap::-webkit-scrollbar { height: 8px; }

/* --------------------------------------------------------------------------
   3. 卡片细节
   -------------------------------------------------------------------------- */

.card,
.exam-card,
.ov-card {
  position: relative;
}

/* 顶部高光线（模拟材质受光） */
.card::before,
.exam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.11) 30%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.11) 70%,
    transparent
  );
  pointer-events: none;
  border-radius: 1px;
  opacity: 0.7;
  transition: opacity 300ms ease;
}

.card:hover::before,
.exam-card:hover::before {
  opacity: 1;
}

/* 卡片标题：左侧强调 */
.card > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card > h3::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(242, 193, 78, 0.32));
  flex: none;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   4. 按钮精修
   -------------------------------------------------------------------------- */

/* 主按钮：内部高光 */
.btn--gold,
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--gold::after,
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 52%);
  pointer-events: none;
}

/* 幽灵按钮：悬停边框发光 */
.btn--ghost {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 220ms ease,
    transform 180ms var(--ezb);
}

.btn--ghost:hover:not(:disabled) {
  border-color: rgba(242, 193, 78, 0.4);
  box-shadow: 0 0 14px rgba(242, 193, 78, 0.1);
}

/* 禁用态更清晰 */
.btn:disabled {
  opacity: 0.4;
  filter: grayscale(0.4);
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   5. 芯片与徽章
   -------------------------------------------------------------------------- */

.chip {
  transition:
    transform 180ms var(--ezb),
    background-color 160ms ease,
    border-color 160ms ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip--gold {
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.14);
}

/* --------------------------------------------------------------------------
   6. 表格精修
   -------------------------------------------------------------------------- */

.table thead th {
  background: linear-gradient(180deg, rgba(26, 33, 45, 0.99), rgba(20, 26, 36, 0.97));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 首列强调线 */
.table tbody td:first-child {
  position: relative;
}

/* 表格内的 progress 条 */
.table .bar-track {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.table .bar-fill {
  border-radius: 4px;
  transition: width 520ms var(--ez);
  position: relative;
}

/* 分数条渐变色阶 */
.table .bar-fill:not(.bar-fill--low):not(.bar-fill--me) {
  background: linear-gradient(90deg, #d19a2e, var(--gold) 52%, #ffd97a);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.32);
}

.table .bar-fill--low {
  background: linear-gradient(90deg, #b8493f, #ef6b62 72%, #ff8f85);
  box-shadow: 0 0 10px rgba(239, 107, 98, 0.26);
}

.table .bar-fill--me {
  background: linear-gradient(90deg, var(--gold), #ffe49a);
  box-shadow: 0 0 14px rgba(242, 193, 78, 0.5);
}

/* --------------------------------------------------------------------------
   7. 统计卡（rank-box）精修
   -------------------------------------------------------------------------- */

.rank-box {
  transition:
    transform 260ms var(--ez),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.rank-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--e2);
}

.rank-box--gold {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(242, 193, 78, 0.13), transparent 62%),
    linear-gradient(160deg, rgba(44, 38, 22, 0.9), rgba(24, 21, 15, 0.82));
  border-color: rgba(242, 193, 78, 0.28);
}

.rank-box__value {
  letter-spacing: -0.4px;
}

/* --------------------------------------------------------------------------
   8. 侧边栏细节
   -------------------------------------------------------------------------- */

/* 侧栏顶部内发光 */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(242, 193, 78, 0.045), transparent);
  pointer-events: none;
  z-index: 0;
}

.sidebar {
  position: relative;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   9. 标签页细节
   -------------------------------------------------------------------------- */

.detail-tabs {
  position: relative;
}

.detail-tabs .pill,
.detail-tabs button {
  position: relative;
  overflow: hidden;
}

/* 激活态：内部顶部高光 */
.detail-tabs .pill.is-active::before,
.detail-tabs button.is-active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 55%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. 输入框细节
   -------------------------------------------------------------------------- */

.field__input,
.search,
.input {
  transition:
    border-color 180ms ease,
    box-shadow 200ms ease,
    background-color 180ms ease,
    width 300ms var(--ez);
}

/* 搜索框悬停 */
.search:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   11. 空状态与加载
   -------------------------------------------------------------------------- */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 20px;
}

.loading-state__spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid rgba(242, 193, 78, 0.15);
  border-top-color: var(--gold);
  box-shadow: 0 0 18px rgba(242, 193, 78, 0.24);
  animation: spinnerRotate 820ms linear infinite;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

.loading-state p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.loading-state span {
  font-size: 11.5px;
  color: var(--muted);
}

/* 骨架屏 */
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  margin-bottom: 10px;
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   12. Toast 提升
   -------------------------------------------------------------------------- */

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 550;
  box-shadow:
    0 12px 38px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.toast::before {
  content: '✦';
  color: var(--gold);
  font-size: 13px;
  flex: none;
}

.toast[data-type="error"]::before {
  content: '⚠';
  color: var(--red);
}

.toast[data-type="ok"]::before {
  content: '✓';
  color: var(--green);
}

/* --------------------------------------------------------------------------
   13. 滚动渐入（顶部/底部遮罩）
   -------------------------------------------------------------------------- */

.panes::after,
.content::after {
  content: '';
  position: sticky;
  bottom: 0;
  display: block;
  height: 28px;
  margin-top: -28px;
  background: linear-gradient(180deg, transparent, rgba(11, 14, 20, 0.72));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   14. 详情页头部精修
   -------------------------------------------------------------------------- */

.detail-head {
  position: relative;
  padding-bottom: 12px;
}

.detail-head h2 {
  letter-spacing: -0.3px;
  font-weight: 700;
}

.back-btn {
  transition:
    transform 200ms var(--ezb),
    background-color 160ms ease,
    border-color 160ms ease;
}

.back-btn:hover {
  transform: translateX(-3px);
  background: rgba(242, 193, 78, 0.1);
  border-color: rgba(242, 193, 78, 0.3);
}

/* --------------------------------------------------------------------------
   15. 响应式细节
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .card > h3::before { display: none; }
  .card::before, .exam-card::before { left: 8px; right: 8px; }
}

/* --------------------------------------------------------------------------
   16. 无障碍
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .card::before,
  .exam-card::before,
  .loading-state__spinner,
  .skeleton-line {
    animation: none !important;
    transition: none !important;
  }
}


/* ===== study-v11.css ===== */
/* ==========================================================================
   学习助手样式 v11 —— 笔记 / 预测 / 提分建议
   ========================================================================== */

/* ==========================================================================
   A. 考试笔记
   ========================================================================== */

.note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.note-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: 0.2px;
}

.note-updated {
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.note-textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  font-family: inherit;
  resize: vertical;
  transition:
    border-color 180ms ease,
    box-shadow 200ms ease,
    background-color 180ms ease;
}

.note-textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
  line-height: 1.7;
}

.note-textarea:focus {
  outline: none;
  border-color: rgba(242, 193, 78, 0.55);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 3.5px rgba(242, 193, 78, 0.1);
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.note-tag {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.note-tag:hover {
  color: var(--text-2);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.note-tag.is-on {
  background: rgba(242, 193, 78, 0.14);
  border-color: rgba(242, 193, 78, 0.4);
  color: var(--gold);
  font-weight: 600;
}

.note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.note-hint {
  font-size: 11px;
  color: var(--muted);
  transition: color 200ms ease;
}

.note-hint--ok {
  color: var(--green);
}

/* ==========================================================================
   B. 成绩预测
   ========================================================================== */

.pred-main {
  padding: 18px;
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(242, 193, 78, 0.13), transparent 62%),
    linear-gradient(160deg, rgba(44, 38, 22, 0.9), rgba(24, 21, 15, 0.82));
  border: 1px solid rgba(242, 193, 78, 0.24);
  margin-bottom: 14px;
}

.pred-label {
  font-size: 10.5px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.pred-value {
  font-size: 38px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -1.8px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, #ffffff 8%, #ffe9a8 40%, var(--gold) 75%, #c8912a);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  filter: drop-shadow(0 3px 18px rgba(242, 193, 78, 0.4));
}

.pred-value small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 3px;
}

.pred-range {
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.pred-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pred-stat {
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.pred-stat:hover {
  background: rgba(242, 193, 78, 0.05);
  border-color: rgba(242, 193, 78, 0.18);
}

.pred-stat__value {
  font-size: 14.5px;
  font-weight: 750;
  color: var(--text);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.pred-stat__label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.pred-trend--up { color: var(--green); }
.pred-trend--down { color: var(--red); }
.pred-trend--flat { color: var(--muted); }

.pred-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  opacity: 0.8;
}

/* ==========================================================================
   D. 提分建议
   ========================================================================== */

.improve-hero {
  padding: 16px 18px;
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(239, 107, 98, 0.11), transparent 62%),
    linear-gradient(160deg, rgba(40, 26, 26, 0.88), rgba(24, 18, 18, 0.8));
  border: 1px solid rgba(239, 107, 98, 0.22);
  margin-bottom: 16px;
}

.improve-hero__label {
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.improve-hero__value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.improve-hero__sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.improve-hero__sub b {
  color: var(--gold);
  font-weight: 800;
}

.improve-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.improve-row {
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-left: 3px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.improve-row:hover {
  background: rgba(242, 193, 78, 0.04);
  transform: translateX(2px);
}

/* 等级色彩 */
.improve-row--urgent { border-left-color: #e05a50; }
.improve-row--high   { border-left-color: #ef8a3f; }
.improve-row--mid    { border-left-color: var(--gold); }
.improve-row--low    { border-left-color: #7aabd8; }
.improve-row--keep   { border-left-color: var(--green); opacity: 0.72; }

.improve-row__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}

.improve-row__subject {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  flex: none;
}

.improve-row__level {
  font-size: 10px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.2px;
  flex: none;
}

.improve-row--urgent .improve-row__level {
  background: rgba(224, 90, 80, 0.16); color: #e05a50;
}
.improve-row--high .improve-row__level {
  background: rgba(239, 138, 63, 0.16); color: #ef8a3f;
}
.improve-row--mid .improve-row__level {
  background: rgba(242, 193, 78, 0.16); color: var(--gold);
}
.improve-row--low .improve-row__level {
  background: rgba(122, 171, 216, 0.16); color: #7aabd8;
}
.improve-row--keep .improve-row__level {
  background: rgba(76, 195, 138, 0.16); color: var(--green);
}

.improve-row__score {
  margin-left: auto;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.improve-row__score small {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 400;
}

.improve-row__bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
  margin-bottom: 6px;
}

.improve-row__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.improve-row--urgent .improve-row__fill { background: linear-gradient(90deg, #b8493f, #e05a50, #ff8f85); }
.improve-row--high .improve-row__fill   { background: linear-gradient(90deg, #c4712c, #ef8a3f, #ffb87a); }
.improve-row--mid .improve-row__fill    { background: linear-gradient(90deg, #d19a2e, var(--gold), #ffd97a); }
.improve-row--low .improve-row__fill    { background: linear-gradient(90deg, #4a7ba8, #7aabd8, #a8cbe8); }
.improve-row--keep .improve-row__fill   { background: linear-gradient(90deg, #36946a, var(--green), #7ed9a8); }

.improve-row__meta {
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.improve-tip {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(76, 195, 138, 0.07);
  border: 1px solid rgba(76, 195, 138, 0.18);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ==========================================================================
   响应式 & 无障碍
   ========================================================================== */

@media (max-width: 780px) {
  .pred-value { font-size: 30px; }
  .improve-hero__value { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .note-textarea,
  .note-tag,
  .improve-row,
  .improve-row__fill,
  .pred-stat {
    transition: none !important;
  }
  .improve-row:hover { transform: none !important; }
}


/* ===== wrongbook-v11.css ===== */
/* ==========================================================================
   错题本样式 v11
   ========================================================================== */

/* ---------- 统计卡 ---------- */

.wb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.wb-stat {
  padding: 13px 12px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease;
}

.wb-stat:hover {
  transform: translateY(-2px);
}

.wb-stat__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.wb-stat__label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.wb-stat--total { border-color: rgba(255, 255, 255, 0.1); }
.wb-stat--total .wb-stat__value { color: var(--text); }

.wb-stat--todo {
  border-color: rgba(239, 107, 98, 0.22);
  background: rgba(239, 107, 98, 0.055);
}
.wb-stat--todo .wb-stat__value { color: var(--red); }

.wb-stat--reviewing {
  border-color: rgba(242, 193, 78, 0.22);
  background: rgba(242, 193, 78, 0.055);
}
.wb-stat--reviewing .wb-stat__value { color: var(--gold); }

.wb-stat--mastered {
  border-color: rgba(76, 195, 138, 0.22);
  background: rgba(76, 195, 138, 0.055);
}
.wb-stat--mastered .wb-stat__value { color: var(--green); }

/* ---------- 进度条 ---------- */

.wb-progress {
  margin-bottom: 16px;
}

.wb-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 11.5px;
  color: var(--muted);
}

.wb-progress__head b {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wb-progress__track {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24);
}

.wb-progress__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #36946a, var(--green) 62%, #7ed9a8);
  box-shadow: 0 0 12px rgba(76, 195, 138, 0.4);
  transition: width 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 科目分布 ---------- */

.wb-subjects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wb-subject-row {
  display: grid;
  grid-template-columns: 70px 1fr 52px;
  gap: 10px;
  align-items: center;
}

.wb-subject-name {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-subject-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.wb-subject-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-deep, #d19a2e), var(--gold));
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.wb-subject-num {
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 标记按钮 ---------- */

.wb-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.wb-mark:hover {
  transform: translateY(-1px) scale(1.04);
}

.wb-mark:active {
  transform: scale(0.96);
}

.wb-todo {
  background: rgba(239, 107, 98, 0.12);
  border-color: rgba(239, 107, 98, 0.28);
  color: var(--red);
}

.wb-todo:hover {
  background: rgba(239, 107, 98, 0.2);
}

.wb-reviewing {
  background: rgba(242, 193, 78, 0.13);
  border-color: rgba(242, 193, 78, 0.3);
  color: var(--gold);
}

.wb-reviewing:hover {
  background: rgba(242, 193, 78, 0.22);
}

.wb-mastered {
  background: rgba(76, 195, 138, 0.13);
  border-color: rgba(76, 195, 138, 0.3);
  color: var(--green);
}

.wb-mastered:hover {
  background: rgba(76, 195, 138, 0.22);
}

/* 按钮容器 */
.wb-mark-holder {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

/* ---------- 表格中集成 ---------- */

.table td .wb-mark {
  margin-left: auto;
}

/* ---------- 笔记 chip ---------- */

.chip--note {
  background: rgba(106, 162, 255, 0.13);
  border-color: rgba(106, 162, 255, 0.28);
  color: #6aa2ff;
  cursor: help;
}

/* ---------- 无障碍 ---------- */

@media (prefers-reduced-motion: reduce) {
  .wb-stat,
  .wb-mark,
  .wb-progress__fill,
  .wb-subject-fill {
    transition: none !important;
  }
  .wb-stat:hover,
  .wb-mark:hover {
    transform: none !important;
  }
}


/* ===== export-v12.css ===== */
/* ==========================================================================
   导出 UI 样式 v12
   ========================================================================== */

/* ---------- 导出格式选择弹窗 ---------- */

.export-menu {
  width: min(480px, calc(100vw - 40px));
  padding: 26px 24px 20px;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.export-opt {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 220ms ease;
}

.export-opt:hover {
  background: rgba(242, 193, 78, 0.07);
  border-color: rgba(242, 193, 78, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.export-opt:active {
  transform: translateY(0) scale(0.985);
}

.export-opt__icon {
  grid-row: span 2;
  font-size: 26px;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 2px 8px rgba(242, 193, 78, 0.24));
}

.export-opt__name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: 0.2px;
}

.export-opt__desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 导出进度遮罩 ---------- */

.export-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: exportFadeIn 200ms ease both;
}

@keyframes exportFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.export-loading__box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1d2433, #131922);
  border: 1px solid rgba(242, 193, 78, 0.24);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.export-loading__spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(242, 193, 78, 0.16);
  border-top-color: var(--gold);
  animation: spinnerRotate 780ms linear infinite;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

.export-loading__text {
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- 响应式 ---------- */

@media (max-width: 560px) {
  .export-menu {
    padding: 22px 18px 16px;
  }
  .export-opt {
    padding: 11px 13px;
    grid-template-columns: 38px 1fr;
  }
  .export-opt__icon {
    font-size: 22px;
  }
}

/* ---------- 总结导出：板块勾选 ---------- */

.export-summary-menu {
  width: min(720px, calc(100vw - 32px));
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: 22px 22px 16px;
  text-align: left;
  scrollbar-width: thin;
}

.export-summary-menu .hfs-confirm-title {
  text-align: center;
}

.export-summary-menu .hfs-confirm-msg {
  margin-bottom: 10px;
  text-align: center;
}

.export-summary-classbox {
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.export-class-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  flex-wrap: wrap;
}

.export-class-head b {
  font-size: 12px;
  color: var(--text, #edeff4);
}

#exportClassCount {
  margin-left: 8px;
  font-size: 10.5px;
  color: var(--muted, #8b93a3);
}

.export-class-actions {
  display: flex;
  gap: 10px;
}

.export-class-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold, #e5a93a);
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
  opacity: 0.9;
}

.export-class-actions button:hover {
  opacity: 1;
  text-decoration: underline;
}

.export-class-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 92px;
  overflow-y: auto;
  margin-top: 7px;
  scrollbar-width: thin;
}

.export-class-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2, #b9bec8);
  font-size: 10.5px;
  line-height: 1.4;
  cursor: pointer;
}

.export-class-chip input {
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: var(--gold, #e5a93a);
}

.export-class-chip:has(input:checked) {
  color: var(--text, #edeff4);
  border-color: rgba(229, 169, 58, 0.35);
  background: rgba(229, 169, 58, 0.075);
}

.export-summary-subhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 2px 0 6px;
}

.export-summary-subhead b {
  font-size: 11px;
  color: var(--text, #edeff4);
}

.export-summary-subhead span {
  font-size: 10px;
  color: var(--muted, #8b93a3);
}

.export-summary-presets {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
}

.export-summary-presets button {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2, #b9bec8);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.export-summary-presets button:hover {
  border-color: rgba(229, 169, 58, 0.4);
}

.export-summary-presets button.is-active {
  color: var(--gold, #e5a93a);
  border-color: rgba(229, 169, 58, 0.55);
  background: rgba(229, 169, 58, 0.1);
  font-weight: 650;
}

.export-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.export-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name modes" "desc desc";
  gap: 3px 7px;
  min-width: 0;
  padding: 8px 9px 7px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.024);
  transition: border-color 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.export-sec.is-on {
  border-color: rgba(229, 169, 58, 0.28);
  background: rgba(229, 169, 58, 0.05);
}

.export-sec:not(.is-on) {
  opacity: 0.58;
}

.export-sec__pick {
  grid-area: name;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  cursor: pointer;
}

.export-sec__pick input {
  width: 14px;
  height: 14px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--gold, #e5a93a);
}

.export-sec__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
  color: var(--text, #edeff4);
  line-height: 1.35;
}

.export-sec__modes {
  grid-area: modes;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.export-sec__modes button {
  padding: 1px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #8b93a3);
  font: inherit;
  font-size: 9.5px;
  line-height: 1.5;
  cursor: pointer;
}

.export-sec__modes button.is-active {
  background: rgba(229, 169, 58, 0.18);
  color: var(--gold, #e5a93a);
  font-weight: 650;
}

.export-sec__fixed {
  grid-area: modes;
  align-self: center;
  padding-right: 1px;
  font-size: 9.5px;
  color: var(--muted, #8b93a3);
  opacity: 0.65;
}

.export-sec__desc {
  grid-area: desc;
  margin-left: 21px;
  min-width: 0;
  font-style: normal;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted, #8b93a3);
}

.export-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.026);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.export-check:hover {
  border-color: rgba(229, 169, 58, 0.28);
  background: rgba(229, 169, 58, 0.035);
}

.export-check input {
  margin: 1px 0 0;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--gold, #e5a93a);
}

.export-check__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.export-check__body b {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text, #edeff4);
  line-height: 1.35;
}

.export-check__body em {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted, #8b93a3);
}

.export-check--wide {
  margin-top: 8px;
  padding: 10px 12px;
  border-color: rgba(229, 169, 58, 0.22);
  background: rgba(229, 169, 58, 0.045);
}

.export-check--full {
  margin-top: 6px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.018);
}

.export-summary-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 560px) {
  .export-summary-menu {
    width: calc(100vw - 20px);
    max-height: 84vh;
    padding: 18px 14px 12px;
  }
  .export-summary-grid {
    grid-template-columns: 1fr;
  }
  .export-summary-foot .btn {
    flex: 1;
  }
}


/* ===== practice-v13.css ===== */
/* ==========================================================================
   错题实训 / 举一反三 样式 v13
   ========================================================================== */

/* ==========================================================================
   1. 实训卡
   ========================================================================== */

.pt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pt-head__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pt-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(242, 193, 78, 0.13);
  border: 1px solid rgba(242, 193, 78, 0.3);
}

.pt-meta {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 待实训列表 ---------- */

.pt-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pt-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-left: 3px solid rgba(239, 107, 98, 0.5);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.pt-item:hover {
  background: rgba(242, 193, 78, 0.045);
  border-left-color: var(--gold);
  transform: translateX(2px);
}

.pt-item__num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pt-item__main {
  min-width: 0;
}

.pt-item__subject {
  font-size: 11px;
  color: var(--gold);
  font-weight: 650;
  margin-bottom: 2px;
}

.pt-item__q {
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-item__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pt-streak {
  font-size: 10px;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: rgba(76, 195, 138, 0.14);
  color: var(--green);
  font-weight: 650;
  white-space: nowrap;
}

.pt-attempts {
  font-size: 10px;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 实训统计 ---------- */

.pt-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
}

.pt-stat {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.pt-stat b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.pt-stat span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}

/* ==========================================================================
   2. 举一反三
   ========================================================================== */

.sim-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(106, 162, 255, 0.035);
  border: 1px solid rgba(106, 162, 255, 0.12);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-item:hover {
  background: rgba(106, 162, 255, 0.07);
  border-color: rgba(106, 162, 255, 0.3);
  transform: translateX(2px);
}

.sim-item__rank {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(106, 162, 255, 0.14);
  color: #6aa2ff;
  font-size: 10.5px;
  font-weight: 700;
}

.sim-item__main {
  min-width: 0;
}

.sim-item__name {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.sim-item__meta {
  display: flex;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
}

.sim-item__sub {
  color: #6aa2ff;
  font-weight: 600;
}

.sim-item__btn {
  flex: none;
}

/* ==========================================================================
   3. 实训弹窗
   ========================================================================== */

.pt-modal {
  width: min(520px, calc(100vw - 40px));
  padding: 0;
  overflow: hidden;
  animation: ptModalIn 420ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes ptModalIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pt-modal__head {
  padding: 20px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pt-modal__title {
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.pt-modal__progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pt-modal__progress span {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.pt-modal__bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.pt-modal__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-deep, #d19a2e), var(--gold), #ffd97a);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pt-modal__body {
  padding: 22px 24px 24px;
}

.pt-modal__subject {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(242, 193, 78, 0.13);
  border: 1px solid rgba(242, 193, 78, 0.28);
  margin-bottom: 12px;
}

.pt-modal__q {
  font-size: 20px;
  font-weight: 750;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.pt-modal__tip {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.pt-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}

.pt-btn {
  padding: 13px 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 200ms ease,
    background-color 160ms ease;
}

.pt-btn:hover {
  transform: translateY(-2px);
}

.pt-btn:active {
  transform: translateY(0) scale(0.97);
}

.pt-btn--right {
  background: rgba(76, 195, 138, 0.13);
  border-color: rgba(76, 195, 138, 0.32);
  color: var(--green);
}

.pt-btn--right:hover {
  background: rgba(76, 195, 138, 0.22);
  box-shadow: 0 8px 22px rgba(76, 195, 138, 0.2);
}

.pt-btn--partial {
  background: rgba(242, 193, 78, 0.13);
  border-color: rgba(242, 193, 78, 0.32);
  color: var(--gold);
}

.pt-btn--partial:hover {
  background: rgba(242, 193, 78, 0.22);
  box-shadow: 0 8px 22px rgba(242, 193, 78, 0.2);
}

.pt-btn--wrong {
  background: rgba(239, 107, 98, 0.13);
  border-color: rgba(239, 107, 98, 0.32);
  color: var(--red);
}

.pt-btn--wrong:hover {
  background: rgba(239, 107, 98, 0.22);
  box-shadow: 0 8px 22px rgba(239, 107, 98, 0.2);
}

.pt-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- 结算页 ---------- */

.pt-summary {
  text-align: center;
  padding: 10px 0 18px;
}

.pt-summary__big {
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2.5px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, #ffffff 8%, #ffe9a8 38%, var(--gold) 72%, #c8912a);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  filter: drop-shadow(0 3px 22px rgba(242, 193, 78, 0.45));
}

.pt-summary__big small {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.pt-summary__label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-top: 6px;
  text-transform: uppercase;
}

.pt-summary__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.pt-sum-item {
  padding: 13px;
  border-radius: 11px;
  text-align: center;
  border: 1px solid transparent;
}

.pt-sum-item b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.pt-sum-item span {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.8;
}

.pt-sum-item--right {
  background: rgba(76, 195, 138, 0.1);
  border-color: rgba(76, 195, 138, 0.24);
  color: var(--green);
}

.pt-sum-item--partial {
  background: rgba(242, 193, 78, 0.1);
  border-color: rgba(242, 193, 78, 0.24);
  color: var(--gold);
}

.pt-sum-item--wrong {
  background: rgba(239, 107, 98, 0.1);
  border-color: rgba(239, 107, 98, 0.24);
  color: var(--red);
}

.pt-summary__tip {
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}

.pt-summary__tip--ok {
  background: rgba(76, 195, 138, 0.08);
  border-color: rgba(76, 195, 138, 0.2);
  color: var(--green);
}

/* ==========================================================================
   响应式 & 无障碍
   ========================================================================== */

@media (max-width: 560px) {
  .pt-modal__actions {
    grid-template-columns: 1fr;
  }
  .pt-modal__q {
    font-size: 17px;
  }
  .pt-summary__big {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-item,
  .sim-item,
  .pt-btn,
  .pt-modal__fill,
  .pt-modal {
    animation: none !important;
    transition: none !important;
  }
  .pt-item:hover,
  .sim-item:hover,
  .pt-btn:hover {
    transform: none !important;
  }
}


/* ===== polish-v14.css ===== */
/* ==========================================================================
   精美 UI v14 —— 加载态 / 空状态 / 表单控件 / 微交互
   ========================================================================== */

/* ==========================================================================
   1. 加载态 —— 有仪式感的等待
   ========================================================================== */

/* 通用加载容器 */
.loading-state,
.loading-veil-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 24px;
  text-align: center;
}

/* 品牌化加载动画：三重光环 */
.hfs-loader {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
}

.hfs-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  animation: hfsSpin 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.hfs-loader__ring:nth-child(2) {
  inset: 7px;
  border-top-color: rgba(242, 193, 78, 0.6);
  animation-duration: 1.6s;
  animation-direction: reverse;
}

.hfs-loader__ring:nth-child(3) {
  inset: 14px;
  border-top-color: rgba(242, 193, 78, 0.35);
  animation-duration: 2.1s;
}

@keyframes hfsSpin {
  to { transform: rotate(360deg); }
}

/* 中心光点 */
.hfs-loader__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(242, 193, 78, 0.9);
  animation: hfsPulse 1.4s ease-in-out infinite;
}

@keyframes hfsPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.5); opacity: 1; }
}

/* 加载文字 */
.hfs-loading-text {
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-2);
  letter-spacing: 0.3px;
}

.hfs-loading-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: -8px;
  letter-spacing: 0.2px;
}

/* 进度条（无限循环，用于不定进度） */
.hfs-progress {
  width: 180px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
  margin-top: 2px;
}

.hfs-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: hfsProgressSlide 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes hfsProgressSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}

/* 骨架屏表格（加载列表时） */
.hfs-skeleton-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.hfs-skeleton-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: hfsSkeletonFade 2s ease-in-out infinite;
}

.hfs-skeleton-row:nth-child(1) { animation-delay: 0s; }
.hfs-skeleton-row:nth-child(2) { animation-delay: 0.12s; }
.hfs-skeleton-row:nth-child(3) { animation-delay: 0.24s; }
.hfs-skeleton-row:nth-child(4) { animation-delay: 0.36s; }
.hfs-skeleton-row:nth-child(5) { animation-delay: 0.48s; }

@keyframes hfsSkeletonFade {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.85; }
}

.hfs-skeleton-circle {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  flex: none;
}

.hfs-skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hfs-skeleton-line {
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.035) 25%,
    rgba(255,255,255,0.075) 50%,
    rgba(255,255,255,0.035) 75%);
  background-size: 200% 100%;
  animation: hfsShimmer 1.7s linear infinite;
}

.hfs-skeleton-line:nth-child(1) { width: 62%; }
.hfs-skeleton-line:nth-child(2) { width: 38%; height: 8px; }

@keyframes hfsShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   2. 空状态 —— 有温度
   ========================================================================== */

.empty,
.hfs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 62px 24px;
  text-align: center;
}

.empty__icon,
.hfs-empty__icon {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.55;
  filter: grayscale(0.25) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
  animation: hfsEmptyFloat 3.4s ease-in-out infinite;
}

@keyframes hfsEmptyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(2.5deg); }
}

.empty p,
.hfs-empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.1px;
}

.empty span,
.hfs-empty span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
}

/* 空状态行动按钮 */
.hfs-empty__action {
  margin-top: 14px;
}

/* ==========================================================================
   3. 表单控件 —— 下拉框 / 复选 / 开关
   ========================================================================== */

/* 原生 select 美化 */
select,
.select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 32px 8px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background-color: rgba(0, 0, 0, 0.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%238b95a5' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 200ms ease,
    background-color 180ms ease;
  max-width: 100%;
}

select:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(0, 0, 0, 0.34);
}

select:focus {
  outline: none;
  border-color: rgba(242, 193, 78, 0.65);
  box-shadow: 0 0 0 3.5px rgba(242, 193, 78, 0.12);
}

select option {
  background: #161c28;
  color: var(--text);
  padding: 8px;
}

/* 搜索框图标 */
.search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-wrap::before {
  content: '🔍';
  position: absolute;
  left: 11px;
  font-size: 11px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.search-wrap .search,
.search-wrap input {
  padding-left: 30px;
}

/* 开关（增强） */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
  transition:
    background 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms ease;
}

.switch__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.switch input:checked + .switch__slider {
  background: linear-gradient(145deg, #ffd97a, var(--gold-strong));
  box-shadow:
    0 0 16px rgba(242, 193, 78, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.switch input:checked + .switch__slider::before {
  transform: translateX(18px);
  background: #fffdf7;
}

.switch input:focus-visible + .switch__slider {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   4. 设置页行样式
   ========================================================================== */

/* 设置行：图标 + 标签 + 值 */
.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 160ms ease;
}

.set-row:last-child {
  border-bottom: none;
}

.set-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.set-row__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  flex: none;
}

.set-row__label {
  font-size: 13px;
  color: var(--text-2);
  flex: 1;
  min-width: 0;
}

.set-row__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-all;
}

/* ==========================================================================
   5. 卡片内区块分隔
   ========================================================================== */

.hfs-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent);
  margin: 18px 0;
  border: none;
}

/* 带文字的标题分隔 */
.hfs-divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hfs-divider-label::before,
.hfs-divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

/* ==========================================================================
   6. 数字徽章 / 数量角标
   ========================================================================== */

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  background: rgba(242, 193, 78, 0.16);
  color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.28);
  line-height: 1;
}

.count-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   7. 卡片标题区（统一）
   ========================================================================== */

.card > h3,
.chart-card__head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card > h3 .muted,
.chart-card__head h3 .muted {
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.2px;
}

/* chart-card__head 布局 */
.chart-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ==========================================================================
   8. 页面滚动进度条（顶部细线）
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-strong), #ffd97a);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
  z-index: 9999;
  transition: width 120ms linear, opacity 300ms ease;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ==========================================================================
   9. 微交互
   ========================================================================== */

/* 点击元素统一反馈 */
button:not(:disabled),
[role="button"],
.clickable {
  transition: transform 160ms cubic-bezier(0.34, 1.4, 0.64, 1), filter 160ms ease;
}

button:not(:disabled):active,
[role="button"]:active {
  transform: scale(0.975);
}

/* 链接下划线动效 */
.link {
  position: relative;
  text-decoration: none;
}

.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 图片加载淡入 */
img {
  opacity: 1;
  transition: opacity 300ms ease;
}

img[data-loading="1"] {
  opacity: 0;
}

/* ==========================================================================
   10. 响应式 & 无障碍
   ========================================================================== */

@media (max-width: 720px) {
  .loading-state,
  .hfs-empty {
    padding: 42px 16px;
  }
  .hfs-loader {
    width: 46px;
    height: 46px;
  }
  .empty__icon,
  .hfs-empty__icon {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hfs-loader__ring,
  .hfs-loader__dot,
  .hfs-progress::after,
  .hfs-skeleton-row,
  .hfs-skeleton-line,
  .empty__icon,
  .hfs-empty__icon {
    animation: none !important;
  }
  button:not(:disabled):active,
  [role="button"]:active {
    transform: none !important;
  }
}




/* ==========================================================================
   11. 学校网格（最小侵入：只改卡片和滚动条，不动表格列宽）
   ========================================================================== */

.school-grid {
  gap: 16px;
}

.school-class-card {
  padding: 16px 14px;
  border-radius: 14px;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.school-class-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 193, 78, 0.24);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.school-class-card > h3 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.2px;
}

.school-class-card > h3::before {
  content: '';
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(242, 193, 78, 0.3));
  flex: none;
}

/* 滚动条更细 */
.school-class-card .table-wrap::-webkit-scrollbar {
  width: 6px;
}

.school-class-card .table-wrap::-webkit-scrollbar-thumb {
  background: rgba(242, 193, 78, 0.22);
  border-radius: 3px;
}

.school-class-card .table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 193, 78, 0.45);
}

/* 保留原有列宽，只做微调 */
.school-class-card .table tbody td {
  transition: background-color 140ms ease;
}

.school-class-card .table tbody tr:hover td {
  background: rgba(242, 193, 78, 0.04);
}


/* ===== polish-v15.css ===== */
/* ============================================================
   v15 视觉打磨与动效（圆角卡片悬浮、页面淡入、榜单渐入、
   按钮反馈、进度条、目标条）
   ============================================================ */

@keyframes hfsFadeUp {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hfsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hfsSoftGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(242, 193, 78, 0); }
  50%      { text-shadow: 0 0 16px rgba(242, 193, 78, 0.22); }
}

/* 页面切换淡入 */
.pane { animation: hfsFadeIn 260ms ease both; }

/* 卡片悬浮 */
.card {
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease,
              border-color 220ms ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  border-color: rgba(242, 193, 78, 0.28);
}

/* 按钮：按下反馈 + 金色光晕 */
.btn {
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease,
              border-color 200ms ease, color 200ms ease;
  will-change: transform;
}
.btn:active { transform: scale(0.965); }
.btn--gold:hover { box-shadow: 0 6px 18px rgba(242, 193, 78, 0.28); }
.btn--ghost:hover { border-color: rgba(242, 193, 78, 0.4); }

/* 大分数微呼吸光 */
.hero__score b {
  animation: hfsSoftGlow 4.4s ease-in-out infinite;
}

/* tab 切换动效 */
.detail-tab {
  transition: color 180ms ease, background 200ms ease, transform 140ms ease;
}
.detail-tab:active { transform: scale(0.97); }
.detail-tab.is-active {
  box-shadow: 0 4px 14px rgba(242, 193, 78, 0.22);
}

/* 表格行 hover 更柔 */
.table tbody tr td { transition: background-color 150ms ease; }
.table tbody tr:hover td { background: rgba(242, 193, 78, 0.045); }

/* 目标进度条 */
.hfs-goal-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hfs-goal-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.55), #f2c14e);
  box-shadow: 0 0 12px rgba(242, 193, 78, 0.35);
  transition: width 620ms cubic-bezier(.2,.8,.2,1);
}

/* 榜单/明细滚动条统一细样式 */
.table-wrap::-webkit-scrollbar { width: 7px; height: 7px; }
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(242, 193, 78, 0.22);
  border-radius: 4px;
}
.table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(242, 193, 78, 0.4); }

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  .pane, .card, .btn, .hero__score b { animation: none !important; transition: none !important; }
  .card:hover { transform: none; }
}


/* ===== polish-v16.css ===== */
/* ==========================================================================
   polish-v16.css — 视觉精修（Aurora Glass）
   目标：更有层次与呼吸感的深色玻璃质感，克制但有生命力的动效。
   原则：不改布局结构，仅调整材质、层次、色彩与动效；移动端沿用原有适配。
   ========================================================================== */

:root {
  --v16-ease: cubic-bezier(.22, .75, .25, 1);
  --v16-ease-out: cubic-bezier(.16, 1, .3, 1);
  --v16-blue: #6aa2ff;
  --v16-green: #4cc38a;
  --v16-coral: #ef8b6b;
  --v16-line: rgba(255, 255, 255, .085);
  --v16-shadow: 0 14px 38px rgba(0, 0, 0, .32);
}

/* --------------------------------------------------------------------------
   1. 全局氛围：深空底色 + 两团柔光
   -------------------------------------------------------------------------- */

body {
  background-color: #0a0d12;
  background-image:
    radial-gradient(900px 480px at 8% -8%, rgba(242, 193, 78, .075), transparent 64%),
    radial-gradient(820px 460px at 102% -12%, rgba(106, 162, 255, .06), transparent 62%),
    linear-gradient(180deg, #0c1017 0%, #0a0d13 55%, #090c11 100%);
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   2. 标题栏：毛玻璃 + 品牌微光
   -------------------------------------------------------------------------- */

.titlebar {
  background: linear-gradient(180deg, rgba(17, 22, 32, .94), rgba(11, 14, 20, .78));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.titlebar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(242, 193, 78, 0) 0%,
    rgba(242, 193, 78, .45) 18%,
    rgba(242, 193, 78, .06) 55%,
    rgba(106, 162, 255, .3) 100%);
  pointer-events: none;
}

.titlebar__name {
  background: linear-gradient(120deg, #ffffff 8%, #ffe9b0 46%, #f2c14e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .2px;
}

.titlebar__tag {
  border: 1px solid rgba(242, 193, 78, .26);
  background: linear-gradient(180deg, rgba(242, 193, 78, .16), rgba(242, 193, 78, .05));
  color: #f8d47c;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11px;
  letter-spacing: .4px;
}

.logo-mark.logo-img {
  box-shadow: 0 4px 16px rgba(229, 169, 58, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}

/* --------------------------------------------------------------------------
   3. 桌面端：侧栏浮起成玻璃面板，内容区留白更舒展
   -------------------------------------------------------------------------- */

@media (min-width: 769px) {
  .main {
    padding: 12px 0 14px 12px;
  }

  .sidebar {
    width: 212px;
    flex: 0 0 212px;
    margin: 0 12px 0 0;
    padding: 14px 10px 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 32%),
      linear-gradient(180deg, rgba(21, 27, 39, .94), rgba(12, 16, 23, .96));
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .04) inset,
      0 18px 44px rgba(0, 0, 0, .34);
  }

  .sidebar .nav__item {
    border-radius: 10px;
  }

  .sidebar .nav__item.is-active {
    background: linear-gradient(90deg, rgba(242, 193, 78, .17), rgba(242, 193, 78, .04) 78%);
    color: #f8d47c;
    box-shadow: inset 0 0 0 1px rgba(242, 193, 78, .16);
  }

  .sidebar__user {
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
    border: 1px solid rgba(255, 255, 255, .075);
  }

  .side-btn {
    border-radius: 10px;
  }

  .side-btn--gold {
    background: linear-gradient(180deg, rgba(242, 193, 78, .2), rgba(242, 193, 78, .08));
    box-shadow: 0 6px 16px rgba(229, 169, 58, .14);
  }

  .content {
    padding: 24px 32px 48px;
  }
}

/* --------------------------------------------------------------------------
   4. 页头与卡片材质：统一的高光 + 分层阴影
   -------------------------------------------------------------------------- */

.pane__head h2 {
  letter-spacing: .3px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.card {
  border: 1px solid var(--v16-line);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, 0) 46%),
    radial-gradient(120% 100% at 100% 0%, rgba(106, 162, 255, .025), transparent 55%);
  background-color: var(--panel);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .035) inset,
    0 10px 28px rgba(0, 0, 0, .2);
}

.card:hover {
  border-color: rgba(255, 255, 255, .12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .05) inset,
    0 16px 38px rgba(0, 0, 0, .28);
}

/* 概览四卡：顶部彩条 + 主题色点缀 */
#examOverview .ov-card {
  border-radius: 14px;
  border: 1px solid var(--v16-line);
  background:
    radial-gradient(110% 92% at 100% 0%, rgba(255, 255, 255, .05), transparent 56%),
    linear-gradient(180deg, rgba(24, 31, 44, .94), rgba(15, 20, 29, .97));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .04) inset,
    0 10px 26px rgba(0, 0, 0, .24);
}

#examOverview .ov-card::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--ov-accent, var(--gold)), rgba(255, 255, 255, 0));
  opacity: .9;
  z-index: 0;
  pointer-events: none;
}

#examOverview .ov-card:nth-child(1) { --ov-accent: #f2c14e; }
#examOverview .ov-card:nth-child(2) { --ov-accent: #6aa2ff; }
#examOverview .ov-card:nth-child(3) { --ov-accent: #4cc38a; }
#examOverview .ov-card:nth-child(4) { --ov-accent: #ef8b6b; }

#examOverview .ov-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

#examOverview .ov-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--ov-accent, var(--gold));
  box-shadow: 0 0 10px var(--ov-accent, var(--gold));
  opacity: .85;
}

#examOverview .ov-card--gold::after {
  background: radial-gradient(circle, rgba(242, 193, 78, .26), transparent 66%);
}

/* 考试行：悬浮时金色描边与柔光 */
.exam-card {
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 52%), var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
}

.exam-card:hover {
  background: linear-gradient(180deg, rgba(242, 193, 78, .055), rgba(242, 193, 78, 0) 62%), var(--panel-2);
  border-color: rgba(242, 193, 78, .38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .04) inset,
    0 12px 30px rgba(0, 0, 0, .3),
    0 0 0 1px rgba(242, 193, 78, .06);
}

.exam-score__value {
  text-shadow: 0 0 22px rgba(242, 193, 78, .16);
}

.rank-mini b {
  letter-spacing: .2px;
}

/* --------------------------------------------------------------------------
   5. 按钮与输入：按下手感、焦点光环
   -------------------------------------------------------------------------- */

.btn {
  border-radius: 11px;
  transition:
    transform .16s var(--v16-ease),
    box-shadow .2s var(--v16-ease),
    background-color .2s var(--v16-ease),
    border-color .2s var(--v16-ease),
    color .2s var(--v16-ease),
    filter .2s var(--v16-ease);
}

.btn:active {
  transform: translateY(1px) scale(.985);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.side-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(242, 193, 78, .55), 0 0 0 4px rgba(242, 193, 78, .13);
}

.btn--primary,
.btn--gold {
  background: linear-gradient(145deg, #ffe08a 0%, #f5c65a 46%, #e2a733 100%);
  border: 1px solid rgba(255, 224, 150, .55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .45) inset,
    0 6px 20px rgba(229, 169, 58, .26);
}

.btn--primary:hover:not(:disabled),
.btn--gold:hover:not(:disabled) {
  filter: brightness(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .5) inset,
    0 10px 30px rgba(242, 193, 78, .4);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), var(--panel-2);
}

.btn--ghost:hover {
  border-color: rgba(242, 193, 78, .34);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}

.icon-btn {
  border-radius: 10px;
  transition: background-color .18s var(--v16-ease), color .18s, transform .18s;
}

.icon-btn:hover {
  color: var(--gold);
  transform: rotate(-12deg);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
.field__input:focus {
  outline: none;
  border-color: rgba(242, 193, 78, .55) !important;
  box-shadow: 0 0 0 3px rgba(242, 193, 78, .12), 0 0 0 1px rgba(242, 193, 78, .35) inset;
}

/* --------------------------------------------------------------------------
   6. 表格：表头材质、斑马纹、行悬浮
   -------------------------------------------------------------------------- */

.table thead th {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  letter-spacing: .3px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, .012);
}

.table tbody tr:hover td {
  background: rgba(242, 193, 78, .055);
}

.table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 rgba(242, 193, 78, .55);
}

/* 卡片内的榜单/表格随卡片圆角裁切，避免直角穿出 */
.card .table-wrap {
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   7. 弹窗、提示：更稳的层次
   -------------------------------------------------------------------------- */

.modal__mask {
  background: rgba(5, 8, 14, .66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .05) inset,
    0 30px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(242, 193, 78, .08);
}

/* 空 toast 不显示：覆盖旧版 toastIn 动画 both 造成的“空胶囊”残留 */
.toast:empty,
.toast:not(.is-show) {
  opacity: 0 !important;
  visibility: hidden;
  animation: none !important;
}

.toast.is-show {
  visibility: visible;
  animation: toastIn 360ms var(--v16-ease-out) both;
}

/* --------------------------------------------------------------------------
   8. 动效：页面切换淡入 + 卡片轻微交错
   -------------------------------------------------------------------------- */

.pane:not(.hidden) {
  animation: v16PaneIn 300ms var(--v16-ease-out) backwards;
}

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

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

/* 仅在支持动画的桌面端交错入场，避免移动端列表出现闪烁 */
@media (min-width: 769px) {
  .exam-list .exam-card,
  #examOverview .ov-card,
  .school-grid > .card {
    animation: v16CardIn 340ms var(--v16-ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 45ms);
  }
}

/* 趋势图加载中：给空 canvas 一层微光骨架，避免大片空白 */
canvas#trendChart {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  background:
    linear-gradient(100deg,
      rgba(255, 255, 255, .02) 24%,
      rgba(255, 255, 255, .065) 38%,
      rgba(255, 255, 255, .02) 54%);
  background-size: 220% 100%;
  animation: v16Shimmer 1.7s linear infinite;
}

@keyframes v16Shimmer {
  from { background-position: 120% 0; }
  to   { background-position: -120% 0; }
}

/* 登录页：更聚焦的光晕 */
.login__card {
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .05) inset,
    0 30px 90px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(242, 193, 78, .08);
}

.login__glow {
  filter: blur(10px);
  opacity: .9;
}

/* 滚动条：更细、更克制 */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .1);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 193, 78, .38);
  background-clip: content-box;
}

/* --------------------------------------------------------------------------
   9. 移动端：导航改成两行网格，标签不再挤压换行
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  /* 恢复移动端品牌行（旧版 ::before 被渐变遮罩规则覆盖，品牌字丢失） */
  .sidebar::before {
    content: '好分数' !important;
    position: static !important;
    display: block !important;
    height: auto !important;
    background: none !important;
    padding: 9px 14px 5px !important;
    font-weight: 700;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 1px;
  }

  /* 退出登录收进品牌行右侧，不再占一整行 */
  #btnLogout {
    position: absolute !important;
    top: 8px;
    right: 12px;
    margin: 0 !important;
    height: 26px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
    color: var(--muted) !important;
    font-size: 11px !important;
  }

  .sidebar .nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px 0 !important;
    padding: 0 4px 7px !important;
  }

  .sidebar .nav__item {
    min-height: 49px !important;
    padding: 6px 1px !important;
    font-size: 10.5px !important;
    letter-spacing: -.2px;
    white-space: nowrap;
  }

  .sidebar .nav__item span {
    white-space: nowrap;
    line-height: 1.25;
  }

  /* 品牌 + 两行导航，内容区同步下移 */
  .content {
    margin-top: 146px !important;
  }

  /* 移动端概览卡：更紧凑的圆角与内边距 */
  #examOverview .ov-card {
    border-radius: 13px;
  }

  .exam-card {
    border-radius: 13px !important;
  }
}

/* --------------------------------------------------------------------------
   10. 移动端成绩卡片与详情页头：保留分数，按钮换行不再压住标题
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  /* 详情页头：标题一行，操作按钮独立成两列网格 */
  .detail-head {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 10px;
  }

  .detail-head > div:not([style*="margin-left"]) {
    flex: 1 1 0;
    min-width: 0;
  }

  .detail-head h2 {
    font-size: 17px !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .detail-head [style*="margin-left:auto"] {
    flex: 1 1 100%;
    margin-left: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .detail-head [style*="margin-left:auto"] .btn {
    width: 100%;
    height: 34px;
  }

  .exam-card {
    position: relative;
  }

  .exam-card .exam-main {
    padding-right: 86px;
  }

  .exam-card .exam-right {
    display: flex !important;
    position: absolute;
    top: 12px;
    right: 14px;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    grid-column: auto;
    pointer-events: none;
  }

  .exam-card .exam-ranks,
  .exam-card .arrow {
    display: none !important;
  }

  .exam-card .exam-score {
    text-align: right;
  }

  .exam-card .exam-score__value {
    font-size: 20px !important;
    line-height: 1.1;
    letter-spacing: -.4px;
  }

  .exam-card .exam-score__label {
    font-size: 9.5px;
    opacity: .55;
  }
}

/* --------------------------------------------------------------------------
   11. 无障碍：降低动效
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .pane:not(.hidden),
  .exam-list .exam-card,
  #examOverview .ov-card,
  .school-grid > .card,
  .toast.is-show {
    animation: none !important;
  }

  .btn,
  .card,
  .exam-card,
  .nav__item {
    transition: none !important;
  }
}


/* ===== performance-v17.css ===== */
/* ==========================================================================
   performance-v17.css — 性能优先层
   保留 v16 的配色、层次与静态质感，去掉持续占用合成器的动效：
   1) 所有循环动画只播放一次（加载圈仍可见，只是不再无限旋转）
   2) 取消实时 backdrop-filter 毛玻璃，改用半透明实色
   3) 取消固定背景，避免滚动时整屏重绘
   4) 移动端关闭入场动画，桌面端压缩到 180-200ms
   ========================================================================== */

/* 1. 禁止持续动画：所有 animation 只跑一轮 */
*,
*::before,
*::after {
  animation-iteration-count: 1 !important;
}

/* 加载中的小型进度圈例外：只在真正等待时旋转，避免看起来“卡死” */
.loading-state__spinner,
.export-loading__spinner,
.hfs-loader__ring,
.hfs-loader__dot {
  animation-iteration-count: infinite !important;
}

/* 2. 毛玻璃全部改为半透明实色，滚动/切换不再实时采样背景 */
*,
*::before,
*::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.titlebar {
  background: rgba(11, 14, 20, 0.94) !important;
}

.modal__mask {
  background: rgba(5, 8, 14, 0.72) !important;
}

/* 3. 固定背景在滚动时会触发整页重绘 */
body {
  background-attachment: scroll !important;
}

/* 4. 大尺寸模糊光斑去掉实时 filter，保留渐变本身 */
#examOverview .ov-card--gold::after {
  filter: none !important;
  opacity: 0.52 !important;
}

/* 5. 入场动画：桌面端只保留短促淡入，移动端直接取消 */
@media (min-width: 769px) {
  .pane:not(.hidden) {
    animation-duration: 160ms !important;
  }

  #examOverview .ov-card,
  .exam-list .exam-card,
  .card {
    animation-duration: 180ms !important;
    animation-delay: 0ms !important;
  }
}

@media (max-width: 768px) {
  .pane:not(.hidden),
  #examOverview .ov-card,
  .exam-list .exam-card,
  .card,
  .hero {
    animation: none !important;
  }

  /* 全校名单在 390px 下不要因为固定 min-width 把页面撑出横向滚动 */
  #paneSchool .school-class-card .table {
    min-width: 0 !important;
    width: 100% !important;
  }

  #paneSchool .school-class-card .table th,
  #paneSchool .school-class-card .table td {
    padding: 6px 7px !important;
  }

  #schoolExamSelect {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* 6. 排行榜前三名的高光：全校页 16 个班 × 3 名会同时触发 48 个动画，改为纯静态光晕 */
.table tbody tr:nth-child(1) .num.gold,
.table tbody tr:nth-child(2) .num.gold,
.table tbody tr:nth-child(3) .num.gold {
  animation: none !important;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5) !important;
}

/* 7. 悬停不再叠加额外的大阴影，减少滚动后的重绘 */
.exam-card:hover,
.card:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28) !important;
}


/* ===== growth-lab.css ===== */
/* ==========================================================================
   成长实验室 v18 —— 4 页 × 2 张卡
   ========================================================================== */

.lab-head { align-items: flex-start !important; }
.lab-head .pane__sub { margin: 3px 0 0; }
.lab-select {
  width: 310px;
  max-width: 42vw;
  height: 34px;
  appearance: auto;
  font-size: 12.5px;
}
.lab-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(242, 193, 78, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(90% 120% at 6% 0%, rgba(242, 193, 78, 0.14), transparent 58%),
    radial-gradient(80% 120% at 100% 100%, rgba(106, 162, 255, 0.08), transparent 62%),
    linear-gradient(135deg, #151b27, #10141d 70%);
}
.lab-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -64px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(242, 193, 78, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.lab-hero__eyebrow {
  font-size: 11.5px;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.lab-hero__title {
  margin: 4px 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.lab-hero__score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.lab-hero__score > b {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -1px;
  color: #f5f7fb;
  font-variant-numeric: tabular-nums;
}
.lab-hero__score > span {
  font-size: 13px;
  color: var(--muted);
}
.lab-hero__sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.lab-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.lab-hero-stat {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lab-hero-stat__label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  color: var(--muted);
}
.lab-hero-stat b {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.lab-hero-stat b small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.lab-hero-stat small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}
.lab-value--good { color: var(--green); }
.lab-value--warn { color: var(--gold); }

.lab-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.lab-tab {
  flex: 1 0 auto;
  min-width: 108px;
  padding: 9px 14px 8px;
  border-radius: 9px;
  color: var(--text-2);
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease;
}
.lab-tab b { display: block; font-size: 13px; font-weight: 600; }
.lab-tab small { display: block; margin-top: 1px; color: var(--muted); font-size: 10.5px; }
.lab-tab:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.lab-tab.is-active {
  background: var(--gold-soft);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(242, 193, 78, 0.22);
}
.lab-tab.is-active small { color: rgba(242, 193, 78, 0.72); }

.lab-panels { min-height: 260px; }
.lab-panel { display: none; }
.lab-panel.is-active { display: block; }
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.lab-card {
  margin-bottom: 0 !important;
  min-width: 0;
  min-height: 330px;
  padding: 16px 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 40%), var(--panel);
}
.lab-card__head {
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 9px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.lab-card__head h3 { display: flex; align-items: baseline; gap: 7px; }
.lab-no {
  color: rgba(242, 193, 78, 0.7);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.lab-card__head .muted { text-align: right; line-height: 1.5; }

.lab-placeholder {
  display: grid;
  min-height: 210px;
  place-items: center;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
.lab-empty {
  margin: 12px 0;
  padding: 14px;
  border-radius: 10px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
  line-height: 1.7;
}
.lab-tiny {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}
.lab-subhead {
  margin: 5px 0 8px;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}
.lab-subhead--warn { color: #e7a26e; }

.lab-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  color: var(--tier-color, var(--gold));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--tier-color, #f2c14e) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tier-color, #f2c14e) 38%, transparent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.lab-tier--sm { min-width: 27px; height: 20px; font-size: 10.5px; padding: 0 5px; border-radius: 6px; }
.lab-tier--big {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  font-size: 24px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--tier-color, #f2c14e) 12%, transparent);
}
.lab-tier--na { color: var(--muted); background: transparent; border-color: var(--line); }
.lab-tier-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 0 13px;
}
.lab-tier-hero__body { min-width: 0; flex: 1; }
.lab-tier-hero__score {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lab-tier-hero__score small { font-size: 11px; color: var(--muted); font-weight: 400; }
.lab-tier-hero__next {
  margin-left: auto;
  color: var(--muted);
  text-align: right;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}
.lab-tier-hero__next b { color: var(--text-2); }
.lab-tier-hero__next strong { color: var(--gold); font-size: 16px; }
.lab-subject-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.lab-subject-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 11px;
}
.lab-subject-chip__name {
  overflow: hidden;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lab-subject-chip small { color: var(--muted); font-size: 10.5px; text-align: right; }

.lab-balance-hero {
  display: grid;
  grid-template-columns: auto 1fr minmax(110px, 0.8fr);
  gap: 13px;
  align-items: center;
  padding-bottom: 10px;
}
.lab-balance-score {
  color: var(--gold);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lab-balance-score small { color: var(--muted); font-size: 10.5px; font-weight: 400; }
.lab-balance-label { font-size: 13px; font-weight: 600; color: var(--text); }
.lab-balance-note {
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: right;
}
.lab-balance-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 9px; }
.lab-tag {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
}
.lab-tag--good { color: var(--green); border-color: rgba(76, 195, 138, 0.2); background: rgba(76, 195, 138, 0.07); }
.lab-tag--weak { color: #e58e86; border-color: rgba(239, 107, 98, 0.2); background: rgba(239, 107, 98, 0.07); }
.lab-rate-list { display: flex; flex-direction: column; gap: 5px; }
.lab-rate-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 43px 43px;
  gap: 7px;
  align-items: center;
  font-size: 10.5px;
}
.lab-rate-row__name { overflow: hidden; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
.lab-rate-row__track {
  position: relative;
  height: 7px;
  overflow: visible;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}
.lab-rate-row__fill { height: 100%; border-radius: inherit; opacity: 0.9; }
.lab-rate-row__mean {
  position: absolute;
  top: -2px;
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.45);
}
.lab-rate-row__val { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.lab-rate-row__dev { text-align: right; font-variant-numeric: tabular-nums; }
.lab-rate-row__dev.good { color: var(--green); }
.lab-rate-row__dev.weak { color: var(--red); }

.lab-stability-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 8px;
}
.lab-stability-score {
  color: var(--blue);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lab-stability-score small { color: var(--muted); font-size: 10.5px; font-weight: 400; }
.lab-stability-label { font-size: 13px; font-weight: 600; }
.lab-stability-delta {
  color: var(--muted);
  text-align: right;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lab-stability-delta small { display: block; color: var(--muted); font-size: 9.5px; font-weight: 400; }
.lab-stability-delta.good { color: var(--green); }
.lab-stability-delta.weak { color: var(--red); }
.lab-stab-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 112px;
  padding: 8px 2px 0;
  border-bottom: 1px solid var(--line);
}
.lab-stab-bar {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  height: 100%;
  min-width: 0;
  color: var(--muted);
}
.lab-stab-bar__score { font-size: 9.5px; font-variant-numeric: tabular-nums; }
.lab-stab-bar i {
  display: block;
  width: 100%;
  max-width: 22px;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: rgba(106, 162, 255, 0.42);
}
.lab-stab-bar.is-current i { background: linear-gradient(180deg, #ffdc82, var(--gold-strong)); box-shadow: 0 0 14px rgba(242, 193, 78, 0.3); }
.lab-stab-bar.is-current .lab-stab-bar__score { color: var(--gold); font-weight: 600; }
.lab-stab-bar small { overflow: hidden; width: 100%; font-size: 8.5px; text-align: center; white-space: nowrap; }
.lab-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.lab-mini-stats > div {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.lab-mini-stats span { display: block; color: var(--muted); font-size: 9.5px; }
.lab-mini-stats b { display: block; margin-top: 1px; font-size: 12px; font-variant-numeric: tabular-nums; }

.lab-contrib-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 12px;
}
.lab-contrib-total span { color: var(--muted); font-size: 11px; }
.lab-contrib-total b { color: var(--gold); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.lab-contrib-total small { margin-left: auto; color: var(--muted); font-size: 10.5px; }
.lab-contrib-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lab-contrib-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 35px 32px;
  gap: 5px;
  align-items: center;
  margin: 5px 0;
  font-size: 10.5px;
}
.lab-contrib-row > span { overflow: hidden; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }
.lab-contrib-track { height: 6px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.07); }
.lab-contrib-track i { display: block; height: 100%; border-radius: inherit; }
.lab-contrib-row b { text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }
.lab-contrib-row small { color: var(--muted); font-size: 9.5px; text-align: right; }

.lab-goal-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 3px 0 10px;
}
.lab-goal-prob {
  color: var(--gold);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lab-goal-prob small { color: var(--muted); font-size: 13px; font-weight: 400; }
.lab-goal-copy { min-width: 0; font-size: 12px; line-height: 1.55; }
.lab-goal-copy b { color: var(--text); }
.lab-goal-bar { height: 9px; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.lab-goal-bar div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f2c14e, #ffd97a); }
.lab-goal-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.lab-goal-meta > div { min-width: 0; padding: 7px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); }
.lab-goal-meta span { display: block; color: var(--muted); font-size: 9.5px; }
.lab-goal-meta b { display: block; overflow: hidden; margin-top: 1px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lab-goal-eta { margin: 10px 0 2px; color: var(--text-2); font-size: 10.5px; line-height: 1.6; }
.lab-goal-edit { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.lab-goal-edit label { color: var(--muted); font-size: 11px; }
.lab-goal-edit input {
  width: 82px;
  height: 29px;
  margin-left: 4px;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}
.lab-goal-edit input:focus { border-color: rgba(242, 193, 78, 0.5); }
.lab-goal-empty { padding: 10px 0 2px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.lab-goal-empty__icon { margin-bottom: 4px; color: rgba(242, 193, 78, 0.55); font-size: 24px; }

.lab-neighbor-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 0 11px;
}
.lab-neighbor-hero > div:first-child span { display: block; color: var(--muted); font-size: 10px; }
.lab-neighbor-hero > div:first-child b { font-size: 24px; line-height: 1.25; }
.lab-neighbor-hero > div:first-child small { color: var(--muted); font-size: 10.5px; }
.lab-neighbor-gap { text-align: right; }
.lab-neighbor-gap span { display: block; color: var(--muted); font-size: 10px; }
.lab-neighbor-gap b { color: var(--red); font-size: 20px; line-height: 1.3; }
.lab-neighbor-gap b.good { color: var(--green); }
.lab-neighbor-gap small { display: block; color: var(--muted); font-size: 9.5px; }
.lab-neighbor-list { margin-top: 2px; border-top: 1px solid var(--line); }
.lab-neighbor-row {
  display: grid;
  grid-template-columns: 32px 1fr 54px 88px;
  gap: 6px;
  align-items: center;
  padding: 7px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 10.5px;
}
.lab-neighbor-row.is-me {
  color: var(--gold);
  background: rgba(242, 193, 78, 0.075);
  border-radius: 6px;
}
.lab-neighbor-rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.lab-neighbor-row.is-me .lab-neighbor-rank { color: var(--gold); font-weight: 700; }
.lab-neighbor-row b { text-align: right; font-variant-numeric: tabular-nums; }
.lab-neighbor-row small { text-align: right; color: var(--muted); font-size: 9.5px; }
.lab-neighbor-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.lab-neighbor-empty { padding: 9px 0; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.lab-neighbor-loading { padding: 10px 0; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.lab-neighbor-loading b { display: block; margin-bottom: 2px; color: var(--text); }
.lab-neighbor-loading span { color: var(--muted); }
.lab-progress { height: 6px; overflow: hidden; margin-top: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.lab-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f2c14e, #ffd97a); transition: width 0.2s ease; }

.lab-budget-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin: 1px 0 10px; color: var(--muted); font-size: 11px; }
.lab-budget-row input {
  width: 56px;
  height: 28px;
  margin: 0 3px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: center;
}
.lab-budget-row input:focus { border-color: rgba(242, 193, 78, 0.5); }
.lab-time-list { display: flex; flex-direction: column; gap: 6px; }
.lab-time-row {
  display: grid;
  grid-template-columns: 44px 52px 72px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  font-size: 10.5px;
}
.lab-time-sub { color: var(--text-2); font-weight: 600; }
.lab-time-row b { color: var(--gold); font-size: 14px; font-variant-numeric: tabular-nums; }
.lab-time-row b small { color: var(--muted); font-size: 9px; font-weight: 400; }
.lab-time-row em { color: var(--muted); font-style: normal; font-size: 9.5px; }
.lab-time-action { overflow: hidden; color: var(--text-2); font-size: 9.5px; line-height: 1.4; }

.lab-review-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 1px 0 8px;
}
.lab-review-hero span { display: block; color: var(--muted); font-size: 10px; }
.lab-review-hero b { color: var(--gold); font-size: 25px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.lab-review-hero b small { color: var(--muted); font-size: 10px; font-weight: 400; }
.lab-review-progress { min-width: 100px; text-align: right; }
.lab-review-progress b { color: var(--text); font-size: 12px; }
.lab-review-subjects { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.lab-review-days { display: flex; flex-direction: column; gap: 4px; max-height: 270px; overflow: auto; padding-right: 2px; }
.lab-review-day {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 42px 58px;
  gap: 6px;
  align-items: center;
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid transparent;
  font-size: 10px;
}
.lab-review-day.is-today { border-color: rgba(242, 193, 78, 0.2); background: rgba(242, 193, 78, 0.05); }
.lab-review-day.is-done { opacity: 0.52; }
.lab-review-day__date b { display: block; color: var(--text-2); font-size: 10.5px; font-weight: 600; }
.lab-review-day__date small { color: var(--muted); font-size: 9px; }
.lab-review-day__tasks { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.lab-review-task {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 9.5px;
  white-space: nowrap;
}
.lab-review-task b { color: var(--gold); }
.lab-review-day__count { color: var(--muted); font-size: 9.5px; text-align: right; }
.lab-review-check { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.lab-review-check input { width: 13px; height: 13px; margin: 0; accent-color: var(--gold); }
.lab-review-clear { padding: 14px 0; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.lab-review-clear b { display: block; margin-bottom: 3px; color: var(--green); }

.lab-footnote {
  margin: 16px 2px 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .lab-hero { grid-template-columns: 1fr; }
  .lab-hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card { min-height: 0; }
}

@media (max-width: 720px) {
  .lab-head { flex-direction: column; align-items: stretch !important; }
  .lab-select { width: 100%; max-width: none; }
  .lab-hero { padding: 15px 15px; border-radius: 13px; }
  .lab-hero__score > b { font-size: 32px; }
  .lab-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-tabs { padding: 3px; }
  .lab-tab { min-width: 94px; padding: 8px 10px; }
  .lab-tab b { font-size: 12px; }
  .lab-card { padding: 13px 13px !important; }
  .lab-tier--big { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
  .lab-tier-hero__next { font-size: 10px; }
  .lab-subject-chips { grid-template-columns: 1fr 1fr; }
  .lab-balance-hero { grid-template-columns: auto 1fr; }
  .lab-balance-note { grid-column: 1 / -1; text-align: left; }
  .lab-contrib-cols { grid-template-columns: 1fr; gap: 6px; }
  .lab-goal-meta { grid-template-columns: repeat(3, 1fr); }
  .lab-neighbor-row { grid-template-columns: 28px 1fr 48px 76px; }
  .lab-review-day { grid-template-columns: 48px minmax(0, 1fr) 34px; }
  .lab-review-check { grid-column: 3; justify-content: flex-end; }
}


/* ===== official-theme.css ===== */
/* ==========================================================================
   好分数 · 原版排版（Official light layout）
   参考官方 App 的浅色界面：米白底、暖黄主色、白色圆角卡片、顶部橙色标题栏。
   本文件只作用于 body.layout-official；不切换时现有深色排版完全保留。
   ========================================================================== */

body.layout-official {
  color-scheme: light;
  --bg: #f6f7fa;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --panel-3: #f6f7fa;
  --line: #e7e9ef;
  --line-strong: #dfe2ea;
  --text: #2d3138;
  --text-2: #646f81;
  --muted: #9fa3ae;
  --gold: #eab127;
  --gold-strong: #d99a17;
  --gold-soft: rgba(234, 177, 39, 0.13);
  --red: #de5d44;
  --green: #4fb055;
  --blue: #00a2d8;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px rgba(45, 49, 56, 0.06);
  --titlebar: 64px;
  --v16-line: #e7e9ef;
  --v16-blue: #00a2d8;
  --v16-green: #4fb055;
  --v16-coral: #de5d44;
  background-color: #f6f7fa;
  background-image:
    radial-gradient(900px 460px at 8% -8%, rgba(234, 177, 39, 0.13), transparent 62%),
    radial-gradient(700px 380px at 102% -10%, rgba(0, 162, 216, 0.055), transparent 62%),
    linear-gradient(180deg, #fffaf0 0, #f6f7fa 300px, #f6f7fa 100%);
  background-attachment: fixed;
  color: var(--text);
}

/* 通用可读性 */
body.layout-official ::selection { background: #ffe6a4; color: #2d3138; }
body.layout-official ::-webkit-scrollbar-thumb { background: rgba(45, 49, 56, 0.18); border: 3px solid transparent; background-clip: content-box; }
body.layout-official .muted { color: var(--muted); }

/* ==========================================================================
   1. 标题栏：官方橙黄渐变
   ========================================================================== */

body.layout-official .titlebar {
  height: 64px;
  flex-basis: 64px;
  padding: 0 24px;
  background: linear-gradient(120deg, #f0ad16 0%, #f8bf2e 52%, #ffd45e 100%) !important;
  border-bottom: 0;
  box-shadow: 0 8px 24px rgba(218, 150, 18, 0.22);
  color: #fff;
}
body.layout-official .titlebar::after { display: none; }
html.hfs-desktop body.layout-official .titlebar { padding-right: 160px; }
body.layout-official .content::after,
body.layout-official .panes::after {
  background: linear-gradient(180deg, rgba(246, 247, 250, 0), rgba(246, 247, 250, 0.94)) !important;
}
body.layout-official .titlebar__brand { gap: 10px; }
body.layout-official .titlebar .logo-img {
  width: 32px; height: 32px;
  padding: 3px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(120, 70, 0, 0.22);
}
body.layout-official .titlebar__name {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(120, 70, 0, 0.14);
}
body.layout-official .titlebar__tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
}
body.layout-official .titlebar__actions { gap: 8px; }
body.layout-official .titlebar .icon-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
body.layout-official .titlebar .icon-btn:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }
body.layout-official .titlebar .badge {
  color: #8a5a00;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.7);
}

/* 版式切换控件（经典模式下也可用） */
.layout-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--panel-3);
  border: 1px solid var(--line);
}
.layout-switch__btn {
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.layout-switch__btn:hover { color: var(--gold); }
.layout-switch__btn.is-active {
  color: var(--gold);
  background: var(--gold-soft);
  font-weight: 600;
}
.layout-switch--settings { margin-left: auto; }
.layout-switch--settings .layout-switch__btn { height: 29px; padding: 0 13px; font-size: 12px; }

body.layout-official .titlebar .layout-switch {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
}
body.layout-official .titlebar .layout-switch__btn { color: rgba(255, 255, 255, 0.9); }
body.layout-official .titlebar .layout-switch__btn.is-active {
  background: #fff;
  color: #a86f00;
}

/* ==========================================================================
   2. 主框架：侧栏改成官方顶部横向导航
   ========================================================================== */

body.layout-official .main {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

body.layout-official .sidebar {
  width: 100%;
  flex: 0 0 auto;
  height: 56px;
  min-height: 56px;
  margin: 0;
  padding: 8px 20px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #e9ebf1;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 12px rgba(45, 49, 56, 0.035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  z-index: 40;
}

body.layout-official .sidebar .nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  gap: 3px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
body.layout-official .sidebar .nav::-webkit-scrollbar { display: none; }
body.layout-official .nav__item {
  flex: 0 0 auto;
  width: auto;
  height: 36px;
  padding: 0 11px;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #646f81;
  font-size: 12.5px;
  white-space: nowrap;
  justify-content: center;
}
body.layout-official .nav__item svg { width: 16px; height: 16px; opacity: 0.85; }
body.layout-official .nav__item::before { display: none; }
body.layout-official .nav__item:hover {
  background: #fff7e3;
  color: #a56d00;
  transform: none;
}
body.layout-official .nav__item.is-active {
  background: #fff3d2;
  border-color: rgba(234, 177, 39, 0.38);
  color: #a56d00;
  box-shadow: none;
  font-weight: 700;
}
body.layout-official .nav__item.is-active svg { stroke: #c28a05; }
body.layout-official .nav__item:hover svg { transform: none; }

body.layout-official .sidebar__user {
  flex: 0 0 auto;
  margin: 0 0 0 4px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 7px;
}
body.layout-official .sidebar__user:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
body.layout-official .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff3d2;
  color: #a56d00;
  font-size: 12px;
}
body.layout-official .sidebar__user-name { color: #2d3138; font-size: 12px; }
body.layout-official .sidebar__user-meta { display: none; }

body.layout-official .sidebar__actions {
  flex: 0 0 auto;
  flex-direction: row;
  gap: 4px;
  margin: 0 0 0 4px;
}
body.layout-official .side-btn--gold {
  height: 31px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #f0c44a;
  background: #fff8e3;
  color: #a56d00;
  box-shadow: none;
  font-size: 11.5px;
  font-weight: 600;
}
body.layout-official .side-btn--gold:hover { background: #fff3d2; }
body.layout-official .side-btn--gold svg { width: 14px; height: 14px; }
body.layout-official #btnLogout {
  flex: 0 0 auto;
  margin: 0 0 0 2px;
  height: 31px;
  padding: 0 7px;
  color: #9fa3ae;
  font-size: 11px;
  border-radius: 8px;
}
body.layout-official #btnLogout:hover { color: #646f81; background: #f6f7fa; }

body.layout-official .content {
  flex: 1;
  min-width: 0;
  padding: 24px 32px 56px;
  overflow-y: auto;
  background: transparent;
}
body.layout-official .pane { max-width: 1120px; margin: 0 auto; }

/* ==========================================================================
   3. 页头：橙黄竖线 + 清爽留白
   ========================================================================== */

body.layout-official .pane__head {
  align-items: center;
  margin-bottom: 18px;
}
body.layout-official .pane__head h2 {
  position: relative;
  padding-left: 14px;
  color: #2d3138;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: none;
}
body.layout-official .pane__head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f7bc28, #ffd45e);
}
body.layout-official .pane__sub {
  padding-left: 14px;
  color: #9fa3ae;
  opacity: 1;
}
body.layout-official .detail-head h2 { color: #2d3138; text-shadow: none; }
body.layout-official .detail-head .pane__sub { padding-left: 0; }

/* ==========================================================================
   4. 白色卡片 / 浅色面板
   ========================================================================== */

body.layout-official .card,
body.layout-official .exam-card,
body.layout-official .settings-card,
body.layout-official .chart-card,
body.layout-official .modal__card,
body.layout-official .login__card,
body.layout-official .lab-card,
body.layout-official .study-card,
body.layout-official .wrong-card,
body.layout-official .practice-card,
body.layout-official .answer-sheet-card,
body.layout-official .class-report-card,
body.layout-official .report-card,
body.layout-official .panel,
body.layout-official .confirm__card,
body.layout-official .confirm-card,
body.layout-official .export-menu {
  background: #fff;
  background-image: none;
  border: 1px solid #e7e9ef;
  box-shadow: 0 8px 24px rgba(45, 49, 56, 0.055);
}
body.layout-official .card:hover {
  transform: none;
  border-color: #dce0e9;
  box-shadow: 0 10px 30px rgba(45, 49, 56, 0.075);
}
body.layout-official .card--gold {
  background: linear-gradient(150deg, #fff9e8, #fff);
  border-color: #f0dfb0;
}

body.layout-official #examOverview .ov-card {
  background: #fff;
  background-image:
    radial-gradient(110% 92% at 100% 0%, rgba(234, 177, 39, 0.055), transparent 56%);
  border: 1px solid #e7e9ef;
  box-shadow: 0 8px 24px rgba(45, 49, 56, 0.055);
}
body.layout-official #examOverview .ov-card--gold {
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(234, 177, 39, 0.17), transparent 62%),
    #fffaf0;
  border-color: #f0dfb0;
}
body.layout-official #examOverview .ov-card--gold .ov-value {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #b47c00;
  color: #b47c00;
  filter: none;
  text-shadow: none;
}
body.layout-official #examOverview .ov-label::before { box-shadow: none; }
body.layout-official .exam-card {
  background: #fff;
  background-image: none;
  border-color: #e7e9ef;
  box-shadow: 0 5px 16px rgba(45, 49, 56, 0.045);
}
body.layout-official .exam-card:hover {
  background: #fffdf6;
  border-color: #eab127;
  box-shadow: 0 10px 26px rgba(218, 150, 18, 0.12);
  transform: translateY(-1px);
}
body.layout-official .exam-date { border-right-color: #eceef3; }
body.layout-official .exam-score__value { color: #b47c00; text-shadow: none; }
body.layout-official .exam-score__label { color: #9fa3ae; opacity: 1; }
body.layout-official .rank-mini span { color: #9fa3ae; opacity: 1; }
body.layout-official .arrow { color: #b7bbc3; }

/* 详情 hero：官方成绩报告的大分数 + 暖色描边 */
body.layout-official .hero,
body.layout-official .detail-hero {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(234, 177, 39, 0.13), transparent 56%),
    linear-gradient(180deg, #fffaf0, #fff);
  border: 1px solid #f0dfb0;
  box-shadow: 0 10px 30px rgba(218, 150, 18, 0.09);
}
body.layout-official .hero__score b {
  color: #b47c00;
  font-weight: 850;
  text-shadow: none;
}
body.layout-official .hero__score span { color: #9fa3ae; }
body.layout-official .hero__label { color: #9fa3ae; }
body.layout-official .rank-box {
  background: #fbfbfe;
  border-color: #eceef3;
}
body.layout-official .rank-box__value { color: #2d3138; }
body.layout-official .rank-box--gold .rank-box__value { color: #b47c00; }
body.layout-official .rank-box__label { color: #9fa3ae; }

body.layout-official .lab-hero {
  background:
    radial-gradient(90% 120% at 6% 0%, rgba(234, 177, 39, 0.14), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, rgba(0, 162, 216, 0.05), transparent 62%),
    #fff;
  border-color: #f0dfb0;
  box-shadow: 0 10px 30px rgba(45, 49, 56, 0.06);
}
body.layout-official .lab-hero::after { border-color: rgba(234, 177, 39, 0.16); }
body.layout-official .lab-hero__score > b { color: #b47c00; }
body.layout-official .lab-hero__eyebrow { color: #b47c00; }
body.layout-official .lab-hero-stat {
  background: #fbfbfe;
  border-color: #eceef3;
}
body.layout-official .lab-hero-stat b small { color: #9fa3ae; }

body.layout-official .lab-tabs,
body.layout-official .detail-tabs {
  background: #fff;
  border-color: #e7e9ef;
  box-shadow: 0 5px 16px rgba(45, 49, 56, 0.04);
}
body.layout-official .lab-tab:hover { background: #fff7e3; }
body.layout-official .lab-tab.is-active,
body.layout-official .detail-tabs button.is-active,
body.layout-official .detail-tabs .pill.is-active {
  background: #fff3d2;
  color: #a56d00;
  border-color: #f0d17a;
}

/* ==========================================================================
   5. 按钮、输入、标签
   ========================================================================== */

body.layout-official .btn--primary,
body.layout-official .btn--gold {
  background: linear-gradient(145deg, #ffd05b 0%, #f4b51f 56%, #e7a00b 100%);
  border: 1px solid #eab127;
  color: #fff;
  text-shadow: 0 1px 1px rgba(150, 90, 0, 0.2);
  box-shadow: 0 6px 18px rgba(229, 169, 58, 0.24);
}
body.layout-official .btn--primary:hover,
body.layout-official .btn--gold:hover { filter: brightness(1.04); }
body.layout-official .btn--ghost {
  background: #fff;
  border: 1px solid #e7e9ef;
  color: #646f81;
  box-shadow: none;
}
body.layout-official .btn--ghost:hover {
  background: #fff8e6;
  border-color: #eab127;
  color: #a56d00;
  box-shadow: none;
}
body.layout-official .icon-btn:hover { color: #a56d00; }
body.layout-official .back-btn {
  background: #fff;
  border-color: #e7e9ef;
  color: #646f81;
}
body.layout-official .back-btn:hover { background: #fff8e6; color: #a56d00; }

body.layout-official .search,
body.layout-official .select,
body.layout-official .field__input,
body.layout-official select,
body.layout-official input:not([type="checkbox"]):not([type="radio"]),
body.layout-official textarea {
  background: #fff !important;
  border: 1px solid #e7e9ef !important;
  color: #2d3138 !important;
}
body.layout-official .search::placeholder,
body.layout-official .field__input::placeholder,
body.layout-official input::placeholder { color: #b7bbc3; }
body.layout-official .search:focus,
body.layout-official select:focus,
body.layout-official .field__input:focus { border-color: #eab127 !important; }
body.layout-official .segmented,
body.layout-official .modal__tabs {
  background: #f6f7fa;
  border: 1px solid #e7e9ef;
}
body.layout-official .segmented__item.is-active {
  background: #fff;
  color: #a56d00;
  box-shadow: 0 2px 8px rgba(45, 49, 56, 0.06);
}
body.layout-official .chip { background: #f6f7fa; color: #646f81; }
body.layout-official .pill {
  background: #fff;
  border-color: #e7e9ef;
  color: #646f81;
}
body.layout-official .pill.is-active {
  background: #fff3d2;
  border-color: #f0d17a;
  color: #a56d00;
}

/* 分数/金色文字在浅底上加深，保证可读 */
body.layout-official .gold,
body.layout-official .table .gold,
body.layout-official .exam-score__value,
body.layout-official .hero__score b,
body.layout-official .lab-goal-prob,
body.layout-official .lab-balance-score,
body.layout-official .lab-review-hero b,
body.layout-official .lab-contrib-total b,
body.layout-official .pred-value {
  color: #b47c00;
}

/* ==========================================================================
   6. 表格、进度条、成长实验室内部浅色化
   ========================================================================== */

body.layout-official .table-wrap { border-color: #e7e9ef; }
body.layout-official .table thead th {
  background: #fafbfe;
  color: #7f838d;
  opacity: 1;
  border-bottom-color: #e7e9ef;
}
body.layout-official .table tbody td {
  border-bottom-color: #eceef3;
}
body.layout-official .table tbody tr:nth-child(even) td { background: #fcfcfe; }
body.layout-official .table tbody tr:hover td { background: #fff8e6; }
body.layout-official .table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 #eab127; }
body.layout-official .bar-track,
body.layout-official .lab-contrib-track,
body.layout-official .lab-goal-bar,
body.layout-official .lab-progress,
body.layout-official .lab-rate-row__track { background: #eceef3; }
body.layout-official .bar-fill { background: linear-gradient(90deg, #d99a17, #f4b51f); }

body.layout-official .lab-balance-hero { background: #fffaf0; border-color: #f0dfb0; }
body.layout-official .lab-balance-hero::after { border-color: rgba(234, 177, 39, 0.16); }
body.layout-official .lab-goal-meta > div { background: #fbfbfe; border: 1px solid #eceef3; }
body.layout-official .lab-empty { background: #fbfbfe; border: 1px solid #eceef3; }
body.layout-official .lab-review-day {
  background: #fbfbfe;
  border-color: #eceef3;
}
body.layout-official .lab-review-day.is-today {
  background: #fffaf0;
  border-color: #f0dfb0;
}
body.layout-official .lab-review-day.is-done { opacity: 0.66; }
body.layout-official .lab-neighbor-hero { background: #fffaf0; border-color: #f0dfb0; }
body.layout-official .lab-neighbor-row.is-me { background: #fffaf0; }
body.layout-official .lab-neighbor-list { border-top-color: #eceef3; }
body.layout-official .lab-rate-row__mean { background: #eceef3; }
body.layout-official .lab-mini-stats > div,
body.layout-official .lab-neighbor-row,
body.layout-official .lab-review-day,
body.layout-official .lab-time-row {
  border-color: #eceef3;
}

body.layout-official .lab-tier,
body.layout-official .lab-tag {
  color: #646f81;
  border-color: #e7e9ef;
}
body.layout-official .lab-tag--good { color: #4fb055; border-color: #cfe9d6; background: #f0faf3; }
body.layout-official .lab-tag--weak { color: #de5d44; border-color: #f4d2cb; background: #fff3f0; }
body.layout-official .lab-no { color: #c28a05; }

/* 成绩预测 / 提分建议 / 单科变化卡 */
body.layout-official .pred-main {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(234, 177, 39, 0.12), transparent 62%),
    #fffaf0;
  border-color: #f0dfb0;
  box-shadow: none;
}
body.layout-official .improve-hero {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(222, 93, 68, 0.08), transparent 62%),
    #fff;
  border-color: #f4d2cb;
  box-shadow: none;
}
body.layout-official .delta-my {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(234, 177, 39, 0.1), transparent 62%),
    #fffaf0;
  border-color: #f0dfb0;
  box-shadow: none;
}
body.layout-official .pred-value {
  background: none;
  -webkit-text-fill-color: #b47c00;
  filter: none;
}
body.layout-official .pred-stat {
  background: #fbfbfe;
  border-color: #eceef3;
}
body.layout-official .pred-stat:hover { background: #fff8e6; border-color: #f0dfb0; }
body.layout-official .diff-badge { color: #646f81; background: #f6f7fa; }
body.layout-official .improve-row:hover { background: #fff8e6; }

/* 弹窗和遮罩 */
body.layout-official .modal__mask { background: rgba(45, 49, 56, 0.34); }
body.layout-official .modal__card { box-shadow: 0 24px 70px rgba(45, 49, 56, 0.18); }
body.layout-official .modal__tab.is-active { color: #a56d00; }
body.layout-official .student-item,
body.layout-official .account-item { border-color: #eceef3; background: #fff; }
body.layout-official .student-item:hover,
body.layout-official .account-item:hover { background: #fff8e6; border-color: #f0dfb0; }

/* 空状态与加载 */
body.layout-official .empty,
body.layout-official .hfs-empty {
  background: #fff;
  border: 1px dashed #dfe2ea;
  border-radius: 14px;
}
body.layout-official .empty p,
body.layout-official .hfs-empty p { color: #646f81; }
body.layout-official .loading-state { color: #9fa3ae; }

/* 设置和账号 */
body.layout-official .set-row { border-bottom-color: #eceef3; }
body.layout-official .set-row:hover { background: #fff8e6; }
body.layout-official .set-row__icon { background: #f6f7fa; }
body.layout-official .set-row__value { color: #2d3138; }
body.layout-official .switch__slider { background: #dfe2ea; }
body.layout-official .switch input:checked + .switch__slider { background: linear-gradient(145deg, #ffd05b, #eab127); }

/* 登录页 */
body.layout-official .login { background: transparent; }
body.layout-official .login__glow { opacity: 0.55; }
body.layout-official .login__card {
  background: rgba(255, 255, 255, 0.96);
  border-color: #f0dfb0;
  box-shadow: 0 18px 50px rgba(45, 49, 56, 0.1);
}
body.layout-official .login__head h1 { color: #2d3138; }
body.layout-official .login__head p { color: #9fa3ae; }
body.layout-official .login__note { color: #9fa3ae; }

/* ==========================================================================
   7. 原版移动端：浅色吸顶导航
   ========================================================================== */

@media (max-width: 1100px) and (min-width: 769px) {
  body.layout-official .sidebar__user { display: none; }
  body.layout-official #btnLogout { display: none; }
  body.layout-official .sidebar { padding-left: 16px; padding-right: 16px; }
  body.layout-official .nav__item {
    height: 32px;
    padding: 0 8px;
    gap: 4px;
    font-size: 11.5px;
  }
  body.layout-official .nav__item svg { width: 14px; height: 14px; }
}

@media (max-width: 768px) {
  body.layout-official .titlebar { display: none; }
  body.layout-official .main { display: block !important; }
  body.layout-official .exam-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 4px 12px !important;
    align-items: center !important;
    padding: 14px 16px !important;
  }
  body.layout-official .exam-date { display: none !important; }
  body.layout-official .exam-right {
    display: block !important;
    grid-column: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body.layout-official .exam-ranks,
  body.layout-official .exam-right .arrow { display: none !important; }
  body.layout-official .exam-score { min-width: 0 !important; text-align: right; }
  body.layout-official .sidebar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;
    border-bottom: 1px solid #e7e9ef;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 3px 16px rgba(45, 49, 56, 0.07);
  }
  body.layout-official .sidebar::before {
    content: "好分数";
    display: block;
    padding: 9px 14px 6px;
    color: #b47c00;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.8px;
  }
  body.layout-official .sidebar .nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 2px 0 !important;
    margin: 0;
    padding: 0 4px 7px !important;
    overflow: visible !important;
  }
  body.layout-official .nav__item {
    width: auto !important;
    height: auto !important;
    min-height: 49px !important;
    padding: 6px 1px !important;
    border-radius: 10px !important;
    border: 1px solid transparent;
    font-size: 10.5px !important;
    color: #646f81;
  }
  body.layout-official .nav__item.is-active {
    background: #fff3d2;
    border-color: #f0d17a;
    color: #a56d00;
  }
  body.layout-official .nav__item svg { width: 19px !important; height: 19px !important; }
  body.layout-official #btnLogout {
    display: block;
    position: absolute !important;
    top: 7px;
    right: 12px;
    margin: 0 !important;
    height: 26px !important;
    padding: 0 10px !important;
    border: 1px solid #e7e9ef;
    border-radius: 8px;
    background: #fff;
    color: #9fa3ae !important;
    font-size: 11px !important;
  }
  body.layout-official .content {
    margin-top: 146px !important;
    padding: 12px 12px 40px !important;
    background: transparent;
  }
  body.layout-official .pane__head h2 { font-size: 17px !important; padding-left: 12px; }
  body.layout-official .pane__sub { padding-left: 12px; font-size: 11.5px !important; }
  body.layout-official .exam-card {
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(45, 49, 56, 0.045);
  }
  body.layout-official .hero,
  body.layout-official .detail-hero { padding: 14px !important; }
  body.layout-official .layout-switch--settings { margin-left: 0; }
}

@media (max-width: 380px) {
  body.layout-official .nav__item { font-size: 9.5px !important; }
}

/* 原版模式下的页面切换动效保留，但去掉深色阴影 */
body.layout-official .pane:not(.hidden) { animation: v16PaneIn 280ms var(--v16-ease-out) backwards; }


/* ===== official-v2.css ===== */
/* ==========================================================================
   好分数 · 原版排版 V2
   按官方 App 截图重做：白底、暖灰页面、橙色点缀、大功能卡、学习/工具网格、
   移动端底部导航、PC 宽屏首页与白卡布局。
   本文件在 official-theme.css 之后加载，只增强 body.layout-official。
   ========================================================================== */

/* 原版专属结构，经典排版下完全隐藏 */
.official-home,
.official-me,
.official-tabbar,
.official-subject-grid,
.official-golden {
  display: none;
}

body.layout-official {
  --oi-orange: #ff9f0a;
  --oi-orange-deep: #e98900;
  --oi-amber: #ffb21f;
  --oi-cream: #fff7e6;
  --oi-bg: #f6f5f2;
  --oi-text: #303030;
  --oi-sub: #8e8e93;
  --oi-line: #efede7;
  --bg: #f6f5f2;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --panel-3: #f8f7f4;
  --line: #efede7;
  --line-strong: #e8e4da;
  --text: #303030;
  --text-2: #666666;
  --muted: #9b9b9b;
  --gold: #ff9f0a;
  --gold-strong: #e98900;
  --gold-soft: #fff4d8;
  --red: #e05a4e;
  --green: #45b96c;
  --blue: #4b96ff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 20px rgba(60, 48, 24, 0.055);
  background: #f6f5f2 !important;
  background-image: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

body.layout-official ::-webkit-scrollbar-thumb {
  background: rgba(60, 60, 60, 0.2);
  border: 3px solid transparent;
  background-clip: content-box;
}

/* ==========================================================================
   1. 标题栏：白底、深字、橙色只做点缀
   ========================================================================== */

body.layout-official .titlebar {
  height: 64px;
  flex-basis: 64px;
  padding: 0 24px;
  background: #ffffff !important;
  border-bottom: 1px solid #efede7;
  box-shadow: none;
  color: #303030;
}
body.layout-official .titlebar::after { display: none; }
html.hfs-desktop body.layout-official .titlebar { padding-right: 160px; }
body.layout-official .titlebar__brand { gap: 9px; }
body.layout-official .titlebar .logo-img {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}
body.layout-official .titlebar__name {
  color: #303030;
  background: none;
  -webkit-text-fill-color: #303030;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: none;
  font-size: 17px;
}
body.layout-official .titlebar__tag {
  color: #e98900;
  background: #fff7e6;
  border: 1px solid #f5e1b5;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
}
body.layout-official .titlebar__actions { gap: 8px; }
body.layout-official .titlebar .icon-btn {
  color: #6d6d6d;
  background: #f7f6f3;
  border: 1px solid #efede7;
}
body.layout-official .titlebar .icon-btn:hover { background: #ffffff; color: #303030; border-color: #e6e2d9; }
body.layout-official .titlebar .badge {
  color: #9b6a00;
  background: #fff7e6;
  border-color: #f5e1b5;
}

/* 版式切换：浅灰胶囊 + 橙色选中 */
body.layout-official .titlebar .layout-switch {
  background: #f7f6f3;
  border-color: #efede7;
}
body.layout-official .titlebar .layout-switch__btn { color: #8e8e93; }
body.layout-official .titlebar .layout-switch__btn:hover { color: #e98900; }
body.layout-official .titlebar .layout-switch__btn.is-active {
  background: #ffffff;
  color: #e98900;
  box-shadow: 0 1px 4px rgba(50, 40, 20, 0.08);
}
body.layout-official .layout-switch {
  background: #f7f6f3;
  border-color: #efede7;
  border-radius: 999px;
}
body.layout-official .layout-switch__btn { color: #999; }
body.layout-official .layout-switch__btn.is-active {
  background: #fff7e6;
  color: #d98200;
  box-shadow: none;
}

body.layout-official .content::after,
body.layout-official .panes::after {
  background: linear-gradient(180deg, rgba(246, 245, 242, 0), rgba(246, 245, 242, 0.94)) !important;
}

/* ==========================================================================
   2. 桌面框架：白底横向导航，PC 宽屏内容
   ========================================================================== */

body.layout-official .main {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

body.layout-official .sidebar {
  width: 100%;
  flex: 0 0 auto;
  height: 54px;
  min-height: 54px;
  margin: 0;
  padding: 6px 18px;
  flex-direction: row;
  align-items: center;
  gap: 0;
  border: 0;
  border-bottom: 1px solid #f0eee8;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
  z-index: 40;
}

body.layout-official .sidebar .nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
body.layout-official .sidebar .nav::-webkit-scrollbar { display: none; }

body.layout-official .nav__item {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  height: 42px;
  padding: 0 9px;
  gap: 5px;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #696969;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  justify-content: center;
  box-shadow: none;
}
body.layout-official .nav__item svg { width: 16px; height: 16px; opacity: 0.72; }
body.layout-official .nav__item::before { display: none; }
body.layout-official .nav__item::after { display: none; }
body.layout-official .nav__item:hover {
  background: #faf9f6;
  color: #303030;
  transform: none;
}
body.layout-official .nav__item.is-active {
  background: transparent;
  border-color: transparent;
  color: #e98900;
  font-weight: 700;
  box-shadow: none;
}
body.layout-official .nav__item.is-active::after {
  display: block;
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffbf38, #ff9900);
}
body.layout-official .nav__item.is-active svg { stroke: #e98900; opacity: 1; }

/* 官方风格不在顶栏堆账号操作，统一放到首页 / 我的 */
body.layout-official .sidebar__user,
body.layout-official .sidebar__actions,
body.layout-official #btnLogout { display: none !important; }

body.layout-official .content {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 56px;
  overflow-y: auto;
  background: #f6f5f2;
}
body.layout-official .pane { max-width: 1180px; margin: 0 auto; }

/* ==========================================================================
   3. 官方首页
   ========================================================================== */

body.layout-official .official-home { display: block; margin-bottom: 2px; }

body.layout-official .oh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 16px;
}
body.layout-official .oh-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  min-width: 0;
}
body.layout-official .oh-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 2px solid #ffd67a;
  box-shadow: 0 3px 10px rgba(80, 60, 20, 0.08);
  color: #e98900;
  font-size: 18px;
  font-weight: 800;
}
body.layout-official .oh-usertext { min-width: 0; }
body.layout-official .oh-usertext b {
  display: block;
  color: #303030;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.layout-official .oh-usertext em {
  display: block;
  margin-top: 2px;
  color: #9b9b9b;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.layout-official .oh-topactions { display: flex; align-items: center; gap: 7px; }
body.layout-official .oh-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #efede7;
  background: #ffffff;
  color: #777777;
}
body.layout-official .oh-round:hover { color: #e98900; border-color: #f0ddad; background: #fffaf0; }

body.layout-official .oh-heroes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.layout-official .oh-hero {
  position: relative;
  height: 168px;
  overflow: hidden;
  padding: 18px 18px 16px;
  border: 0;
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(110, 80, 20, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body.layout-official .oh-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(110, 80, 20, 0.16);
}
body.layout-official .oh-hero--exam {
  background:
    radial-gradient(110% 120% at 85% 18%, rgba(255, 255, 255, 0.2), transparent 48%),
    linear-gradient(135deg, #ffbd36 0%, #ffa10b 100%);
}
body.layout-official .oh-hero--archive {
  background:
    radial-gradient(110% 120% at 85% 18%, rgba(255, 255, 255, 0.24), transparent 48%),
    linear-gradient(135deg, #83bbff 0%, #589bff 100%);
}
body.layout-official .oh-hero--wrong {
  background:
    radial-gradient(110% 120% at 85% 18%, rgba(255, 255, 255, 0.2), transparent 48%),
    linear-gradient(135deg, #72e3a8 0%, #3fd183 100%);
}
body.layout-official .oh-hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; }
body.layout-official .oh-hero__copy b {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.4px;
}
body.layout-official .oh-hero__copy em {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
  opacity: 0.9;
  letter-spacing: 0.3px;
}
body.layout-official .oh-hero__icon {
  position: absolute;
  right: 12px;
  bottom: 8px;
  opacity: 0.86;
  z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(50, 45, 30, 0.12));
}

body.layout-official .oh-sections {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
body.layout-official .oh-sheet {
  background: #ffffff;
  border: 1px solid #efede7;
  border-radius: 20px;
  padding: 18px 20px 14px;
  box-shadow: 0 5px 18px rgba(60, 48, 24, 0.045);
}
body.layout-official .oh-title {
  position: relative;
  margin: 0;
  padding-left: 12px;
  color: #303030;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
body.layout-official .oh-title i {
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffc13b, #ff9900);
}
body.layout-official .oh-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}
body.layout-official .oh-quick button {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #404040;
}
body.layout-official .oh-quick button:hover { background: #fffaef; }
body.layout-official .oh-quick button:hover .oh-ico { transform: translateY(-2px); }
body.layout-official .oh-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(50, 40, 20, 0.035);
  transition: transform 0.16s ease;
}
body.layout-official .oh-ico--amber { background: #fff3dd; }
body.layout-official .oh-ico--blue { background: #eaf2ff; }
body.layout-official .oh-ico--green { background: #eafaf0; }
body.layout-official .oh-ico--cyan { background: #e8f9fc; }
body.layout-official .oh-ico--violet { background: #f2ecff; }
body.layout-official .oh-ico--pink { background: #fff0f3; }
body.layout-official .oh-ico--gray { background: #f3f3f1; }
body.layout-official .oh-quick b {
  max-width: 100%;
  color: #404040;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.layout-official .oh-new {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-20%);
  padding: 1px 4px;
  border-radius: 5px;
  background: #ff5a4e;
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

body.layout-official .oh-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 10px;
}
body.layout-official .oh-recent-head .oh-title { font-size: 18px; }
body.layout-official #ohExamCount { color: #9b9b9b; font-size: 11.5px; }

/* 首页搜索和最近考试 */
body.layout-official #paneExams .pane__head {
  justify-content: flex-end;
  margin: 0 0 12px;
}
body.layout-official #paneExams .pane__head > div:first-child { display: none; }
body.layout-official #paneExams .pane__tools { width: 100%; justify-content: flex-end; gap: 8px; }
body.layout-official #paneExams .search {
  flex: 1 1 auto;
  max-width: 380px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff !important;
  border: 1px solid #efede7 !important;
  color: #303030 !important;
  box-shadow: none;
}
body.layout-official #paneExams .search::placeholder { color: #b1b1b1; }
body.layout-official #paneExams .btn--ghost {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border-color: #efede7;
  color: #666666;
  white-space: nowrap;
}
body.layout-official #examOverview { display: none !important; }

/* 考试列表 */
body.layout-official .exam-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.layout-official .exam-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #efede7;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(60, 48, 24, 0.04);
  color: #303030;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
body.layout-official .exam-card:hover {
  transform: translateY(-2px);
  border-color: #f2e6c8;
  box-shadow: 0 9px 24px rgba(60, 48, 24, 0.075);
}
body.layout-official .exam-date {
  flex: 0 0 56px;
  border-radius: 14px;
  background: #fff8e8;
  color: #e98900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
}
body.layout-official .exam-date__day { color: #e98900; font-size: 22px; font-weight: 800; line-height: 1.1; }
body.layout-official .exam-date__ym { color: #b18a3c; font-size: 10px; margin-top: 2px; }
body.layout-official .exam-main { min-width: 0; flex: 1 1 auto; }
body.layout-official .exam-title { color: #303030; font-size: 15px; font-weight: 650; line-height: 1.4; }
body.layout-official .exam-meta { gap: 5px; margin-top: 7px; }
body.layout-official .exam-meta .chip,
body.layout-official .exam-card .chip { font-size: 10px; padding: 2px 7px; border-radius: 7px; background: #f7f6f3; color: #7f7f7f; }
body.layout-official .exam-meta .chip--gold { background: #fff3d8; color: #c87e00; }
body.layout-official .exam-right { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
body.layout-official .exam-score { text-align: right; }
body.layout-official .exam-score__value { color: #ff9f0a; font-size: 26px; font-weight: 800; line-height: 1.1; }
body.layout-official .exam-score__value small { color: #b9b9b9; font-size: 11px; font-weight: 400; }
body.layout-official .exam-score__label { color: #a2a2a2; font-size: 10px; margin-top: 3px; }
body.layout-official .exam-ranks { display: none; }
body.layout-official .exam-right .arrow { color: #c9c9c9; font-size: 18px; }

body.layout-official .btn--gold {
  background: linear-gradient(135deg, #ffb42e, #ff9300) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 150, 0, 0.18);
}
body.layout-official .btn--gold:hover { filter: brightness(1.03); }
body.layout-official .btn--ghost {
  background: #ffffff;
  border-color: #efede7;
  color: #666666;
  box-shadow: none;
}

/* ==========================================================================
   4. 通用白卡、节标题、按钮
   ========================================================================== */

body.layout-official .card,
body.layout-official .exam-card,
body.layout-official .settings-card,
body.layout-official .chart-card,
body.layout-official .modal__card,
body.layout-official .login__card,
body.layout-official .lab-card,
body.layout-official .study-card,
body.layout-official .wrong-card,
body.layout-official .practice-card,
body.layout-official .answer-sheet-card,
body.layout-official .class-report-card,
body.layout-official .report-card,
body.layout-official .panel,
body.layout-official .confirm__card,
body.layout-official .confirm-card,
body.layout-official .export-menu {
  background: #ffffff;
  background-image: none;
  border: 1px solid #efede7;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(60, 48, 24, 0.045);
}

body.layout-official .pane__head {
  align-items: center;
  margin-bottom: 16px;
}
body.layout-official .pane__head h2 {
  position: relative;
  padding-left: 12px;
  color: #303030;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.1px;
  text-shadow: none;
}
body.layout-official .pane__head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffc13b, #ff9900);
}
body.layout-official .pane__sub {
  padding-left: 12px;
  color: #9b9b9b;
  opacity: 1;
  font-size: 12px;
}
body.layout-official .detail-head h2 { color: #303030; text-shadow: none; }
body.layout-official .detail-head .pane__sub { padding-left: 0; }

body.layout-official .btn {
  border-radius: 10px;
  font-weight: 600;
}
body.layout-official .btn--ghost {
  background: #ffffff;
  border-color: #efede7;
  color: #666666;
}
body.layout-official .btn--ghost:hover { background: #fffaf0; border-color: #f0dfb0; color: #d98200; }
body.layout-official .search,
body.layout-official select,
body.layout-official input:not([type="checkbox"]):not([type="radio"]),
body.layout-official textarea {
  background: #ffffff !important;
  border: 1px solid #efede7 !important;
  color: #303030 !important;
  border-radius: 10px;
}
body.layout-official .search:focus,
body.layout-official select:focus,
body.layout-official input:focus { border-color: #ffb21f !important; }
body.layout-official .chip { background: #f7f6f3; color: #7f7f7f; border-color: #efede7; }
body.layout-official .chip--gold { background: #fff3d8; color: #c87e00; }
body.layout-official .gold,
body.layout-official .table .gold,
body.layout-official .exam-score__value,
body.layout-official .hero__score b,
body.layout-official .lab-goal-prob,
body.layout-official .lab-balance-score,
body.layout-official .lab-review-hero b,
body.layout-official .lab-contrib-total b,
body.layout-official .pred-value {
  color: #e98900;
}
body.layout-official .pred-value { -webkit-text-fill-color: #e98900; background: none; }

/* ==========================================================================
   5. 详情页：官方成绩卡 + 科目格 + 黄金三步
   ========================================================================== */

.official-gauge { display: none; }

body.layout-official .detail-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
body.layout-official .back-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #efede7;
  color: #555555;
}
body.layout-official .detail-head h2 {
  margin: 1px 0 0;
  color: #303030;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}
body.layout-official .detail-head .pane__sub { color: #9b9b9b; font-size: 11.5px; margin-top: 3px; }
body.layout-official .detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
body.layout-official .detail-actions .btn { height: 32px; padding: 0 11px; font-size: 11.5px; border-radius: 999px; }

body.layout-official .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #f4e7c8;
  border-radius: 20px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 204, 82, 0.2), transparent 58%),
    linear-gradient(135deg, #fffaf0 0%, #fff7e6 100%);
  box-shadow: 0 6px 20px rgba(90, 65, 10, 0.045);
}
body.layout-official .hero-copy { position: relative; z-index: 2; min-width: 0; }
body.layout-official .hero__label { color: #9b9b9b; font-size: 12px; letter-spacing: 0.3px; }
body.layout-official .hero__score { margin-top: 2px; }
body.layout-official .hero__score b {
  color: #ff9f0a;
  font-size: 52px;
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: -1px;
}
body.layout-official .hero__score span { color: #a9a9a9; font-size: 14px; margin-left: 6px; }
body.layout-official .hero__tags { margin-top: 8px; gap: 6px; }
body.layout-official .hero__tags .chip { background: #ffffff; border-color: #f2e6c9; color: #8a7448; }
body.layout-official .hero__tags .chip--gold { background: #fff2d2; color: #b57a00; }
body.layout-official .rank-grid { position: relative; z-index: 2; gap: 8px; }
body.layout-official .rank-box {
  padding: 10px 12px;
  border: 1px solid #f4e7c8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}
body.layout-official .rank-box--gold { background: #ffffff; border-color: #f0dfb4; }
body.layout-official .rank-box__value { color: #3c3c3c; font-size: 21px; font-weight: 800; }
body.layout-official .rank-box__value small { color: #9b9b9b; font-size: 10.5px; font-weight: 400; }
body.layout-official .rank-box__label { color: #999999; font-size: 10.5px; margin-top: 2px; }

body.layout-official .official-gauge {
  display: block;
  position: absolute !important;
  left: 12px;
  top: 8px;
  width: 210px;
  height: 105px;
  overflow: hidden;
  opacity: 0.6;
  z-index: 0 !important;
  pointer-events: none;
}
body.layout-official .official-gauge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: conic-gradient(from 270deg,
    #ffb21f 0 var(--ga, 0deg),
    rgba(255, 190, 80, 0.16) var(--ga, 0deg) 180deg,
    transparent 180deg 360deg);
}
body.layout-official .official-gauge::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 26px;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  background: #fff9ea;
}

body.layout-official .official-golden {
  display: block;
  margin: 14px 0;
  padding: 18px 20px 14px;
  border: 1px solid #f2e3bf;
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 4px 16px rgba(90, 65, 10, 0.035);
}
body.layout-official .official-golden__title {
  position: relative;
  margin: 0 0 4px;
  padding-left: 12px;
  color: #303030;
  font-size: 17px;
  font-weight: 800;
}
body.layout-official .official-golden__title i {
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffc13b, #ff9900);
}
body.layout-official .official-golden__title span { color: #ff9f0a; font-size: 22px; margin: 0 2px; }
body.layout-official .og-step {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0 4px;
  border-top: 1px dashed #f1e2bd;
  margin-top: 10px;
}
body.layout-official .og-step:first-of-type { border-top: 0; margin-top: 0; padding-top: 6px; }
body.layout-official .og-no { color: #ffb21f; font-size: 25px; font-weight: 850; line-height: 1; }
body.layout-official .og-no small { display: block; color: #c28a26; font-size: 11px; font-weight: 500; margin-top: 4px; }
body.layout-official .og-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.layout-official .og-actions button {
  min-width: 0;
  height: 50px;
  padding: 0 10px;
  border: 1px solid #efede7;
  border-radius: 12px;
  background: #ffffff;
  color: #3c3c3c;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
}
body.layout-official .og-actions button:hover { background: #fff8e7; border-color: #f0dfb0; }
body.layout-official .og-ico {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-style: normal;
}
body.layout-official .og-ico--amber { background: #fff2d6; color: #e98900; }
body.layout-official .og-ico--blue { background: #eaf2ff; color: #4b96ff; }
body.layout-official .og-ico--red { background: #fff0ee; color: #e05a4e; }
body.layout-official .og-ico--green { background: #eafaf0; color: #45b96c; }
body.layout-official .og-actions b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.layout-official .official-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
body.layout-official .osub-card {
  min-width: 0;
  padding: 11px 13px 10px;
  border: 1px solid #efede7;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(60, 48, 24, 0.035);
}
body.layout-official .osub-head { display: flex; align-items: center; gap: 6px; }
body.layout-official .osub-dot { width: 6px; height: 6px; border-radius: 50%; background: #ffb21f; }
body.layout-official .osub-dot.is-good { background: #45b96c; }
body.layout-official .osub-name { color: #555555; font-size: 12px; font-weight: 600; }
body.layout-official .osub-score { margin-top: 3px; color: #ff9f0a; font-size: 23px; font-weight: 850; line-height: 1.2; }
body.layout-official .osub-score small { color: #b6b6b6; font-size: 10.5px; font-weight: 400; margin-left: 2px; }
body.layout-official .osub-meta { margin-top: 1px; color: #9b9b9b; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.layout-official .osub-bar { height: 4px; margin-top: 8px; border-radius: 4px; background: #f4f1e9; overflow: hidden; }
body.layout-official .osub-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffd05b, #ffa000); }
body.layout-official .subject-table-card { display: none !important; }

body.layout-official .detail-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0 0 12px;
  padding: 4px 6px;
  overflow-x: auto;
  border: 1px solid #efede7;
  border-radius: 14px;
  background: #ffffff;
  scrollbar-width: none;
}
body.layout-official .detail-tabs::-webkit-scrollbar { display: none; }
body.layout-official .detail-tab {
  position: relative;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #888888;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
body.layout-official .detail-tab:hover { background: transparent; color: #303030; }
body.layout-official .detail-tab.is-active {
  background: transparent;
  border: 0;
  color: #e98900;
  font-weight: 700;
  box-shadow: none;
}
body.layout-official .detail-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffc13b, #ff9900);
}

body.layout-official #rankEstimate { display: none !important; }
body.layout-official #hfsGoalCard { border-radius: 18px; }
body.layout-official #hfsGoalCard .chart-card__head h3 { color: #303030; }
body.layout-official #examEmpty {
  background: #fff;
  border: 1px dashed #ece6d8;
  border-radius: 18px;
  color: #a49c8c;
  box-shadow: none;
}
body.layout-official #examEmpty .empty__icon { background: #faf8f2; }
body.layout-official #examEmpty p { color: #605a4f; }
body.layout-official #examEmpty span { color: #9b9588; }
body.layout-official #toast {
  background: #fff;
  color: #4a463d;
  border-color: #ece6d8;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(120, 100, 70, 0.12);
}
body.layout-official #toast.toast--error { color: #d05545; border-color: #f0d5d0; }

/* ==========================================================================
   6. 原版「我的」个人中心
   ========================================================================== */

body.layout-official .official-me { display: block; }
body.layout-official #paneSettings { max-width: 960px; }
body.layout-official #paneSettings .pane__head { display: none; }

body.layout-official .om-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 16px;
  border: 0;
  background: transparent;
  text-align: left;
}
body.layout-official .om-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 2px solid #ffd67a;
  color: #e98900;
  font-size: 20px;
  font-weight: 800;
}
body.layout-official .om-user { min-width: 0; flex: 1 1 auto; }
body.layout-official .om-user b {
  display: block;
  color: #303030;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.layout-official .om-user em {
  display: block;
  margin-top: 3px;
  color: #9b9b9b;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.layout-official .om-chevron { color: #b9b9b9; font-size: 24px; line-height: 1; }

body.layout-official .om-card {
  position: relative;
  overflow: hidden;
  padding: 17px 18px 12px;
  border-radius: 20px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(255, 247, 210, 0.7), transparent 50%),
    linear-gradient(135deg, #ffe7a9 0%, #ffc84e 100%);
  box-shadow: 0 10px 26px rgba(160, 110, 10, 0.12);
}
body.layout-official .om-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
body.layout-official .om-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #704700;
}
body.layout-official .om-card__head b { font-size: 16px; font-weight: 800; letter-spacing: 0.2px; }
body.layout-official .om-card__head span { font-size: 10.5px; color: #946313; opacity: 0.8; }
body.layout-official .om-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
body.layout-official .om-grid button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.34);
  color: #704700;
}
body.layout-official .om-grid button:hover { background: rgba(255, 255, 255, 0.52); }
body.layout-official .om-grid span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  font-size: 21px;
}
body.layout-official .om-grid b { max-width: 100%; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.layout-official .om-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(120, 80, 0, 0.14);
  color: #86601c;
  font-size: 10.5px;
}
body.layout-official .om-card__foot button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #704700;
  font-size: 11px;
  font-weight: 600;
}
body.layout-official .om-section-title {
  position: relative;
  margin: 19px 0 10px;
  padding-left: 11px;
  color: #303030;
  font-size: 15px;
  font-weight: 800;
}
body.layout-official .om-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffc13b, #ff9900);
}

/* 设置列表：官方原生白卡 + 细分割线 */
body.layout-official .settings-card {
  padding: 4px 18px;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(60, 48, 24, 0.045);
}
body.layout-official .settings-card h3 {
  margin: 12px 0 4px !important;
  color: #303030;
  font-size: 14px;
  font-weight: 700;
}
body.layout-official .set-row {
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid #f2f0ea;
}
body.layout-official .set-row:last-child { border-bottom: 0; }
body.layout-official .set-row:hover { background: transparent; }
body.layout-official .set-row__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff7e6;
  font-size: 16px;
}
body.layout-official .set-row__label { color: #303030; font-size: 13.5px; }
body.layout-official .set-row__value { color: #8e8e93; font-size: 12px; }
body.layout-official .row { border-color: #f2f0ea; }
body.layout-official .row--action { padding: 11px 0; }
body.layout-official .settings-card .row { border-bottom: 0; }

/* ==========================================================================
   7. 移动端：官方 App 外壳 + 底部四栏
   ========================================================================== */

@media (max-width: 768px) {
  body.layout-official.hfs-main-visible .titlebar { display: none !important; }
  body.layout-official .sidebar { display: none !important; }
  body.layout-official .main { display: block !important; overflow: hidden; }
  body.layout-official .content {
    margin-top: 0 !important;
    padding: 0 0 calc(78px + env(safe-area-inset-bottom)) !important;
    background: #f6f5f2;
    overflow-y: auto;
  }
  body.layout-official .pane { max-width: none !important; margin: 0 !important; }

  body.layout-official .official-home {
    display: block;
    padding: calc(env(safe-area-inset-top) + 10px) 14px 0;
  }
  body.layout-official .oh-top { padding: 0 2px 14px; }
  body.layout-official .oh-avatar { width: 40px; height: 40px; flex-basis: 40px; font-size: 16px; }
  body.layout-official .oh-usertext b { font-size: 17px; }
  body.layout-official .oh-usertext em { font-size: 11px; }
  body.layout-official .oh-round { width: 34px; height: 34px; }
  body.layout-official .oh-heroes { gap: 8px; }
  body.layout-official .oh-hero { height: 132px; padding: 13px 12px 12px; border-radius: 16px; }
  body.layout-official .oh-hero__copy b { font-size: 19px; letter-spacing: 0.2px; }
  body.layout-official .oh-hero__copy em { margin-top: 7px; font-size: 10px; line-height: 1.4; letter-spacing: 0; }
  body.layout-official .oh-hero__icon { right: 4px; bottom: 2px; transform: scale(0.82); transform-origin: right bottom; }
  body.layout-official .oh-sections { display: block; margin-top: 10px; }
  body.layout-official .oh-sheet { padding: 14px 14px 10px; border-radius: 16px; }
  body.layout-official .oh-sheet + .oh-sheet { margin-top: 10px; }
  body.layout-official .oh-title { font-size: 16px; }
  body.layout-official .oh-title i { top: 1px; height: 15px; width: 3px; }
  body.layout-official .oh-quick { margin-top: 12px; gap: 2px; }
  body.layout-official .oh-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
  body.layout-official .oh-quick b { font-size: 11px; }
  body.layout-official .oh-new { font-size: 7px; top: -3px; }
  body.layout-official .oh-recent-head { margin: 16px 2px 8px; }
  body.layout-official .oh-recent-head .oh-title { font-size: 16px; }

  body.layout-official #paneExams .pane__head {
    padding: 0 14px;
    margin: 0 0 10px;
  }
  body.layout-official #paneExams .pane__tools { gap: 6px; }
  body.layout-official #paneExams .search { max-width: none; height: 36px; padding: 0 13px; font-size: 12px; }
  body.layout-official #paneExams .btn--ghost { height: 36px; padding: 0 10px; font-size: 10.5px; }
  body.layout-official .exam-list { display: grid; grid-template-columns: 1fr; gap: 9px; padding: 0 14px; }
  body.layout-official .exam-card { padding: 12px; border-radius: 16px; }
  body.layout-official .exam-date { flex-basis: 48px; padding: 6px 3px; border-radius: 12px; }
  body.layout-official .exam-date__day { font-size: 19px; }
  body.layout-official .exam-title { font-size: 14px; }
  body.layout-official .exam-meta .chip { font-size: 9px; }
  body.layout-official .exam-score__value { font-size: 23px; }

  /* 其它页面的官方白色页头 */
  body.layout-official .pane:not(#paneExams):not(#paneDetail):not(#paneSettings) .pane__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: calc(env(safe-area-inset-top) + 12px) 16px 11px;
    background: #ffffff;
    border-bottom: 1px solid #f0eee8;
  }
  body.layout-official .pane:not(#paneExams):not(#paneDetail):not(#paneSettings) .pane__head h2 {
    padding-left: 0;
    font-size: 18px;
    font-weight: 750;
  }
  body.layout-official .pane:not(#paneExams):not(#paneDetail):not(#paneSettings) .pane__head h2::before { display: none; }
  body.layout-official .pane:not(#paneExams):not(#paneDetail):not(#paneSettings) .pane__sub {
    display: none;
  }
  body.layout-official .pane:not(#paneExams):not(#paneDetail):not(#paneSettings) .pane__tools {
    margin-left: auto;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  body.layout-official .pane:not(#paneExams):not(#paneDetail):not(#paneSettings) .pane__tools .btn { height: 31px; font-size: 11px; padding: 0 10px; }
  body.layout-official .pane:not(#paneExams):not(#paneDetail):not(#paneSettings) .pane__tools select { height: 31px !important; font-size: 11px !important; max-width: 150px; }

  /* 详情页：白页头 + 回退 + 操作横滑 */
  body.layout-official #paneDetail .detail-head {
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
    background: #ffffff;
    border-bottom: 1px solid #f0eee8;
  }
  body.layout-official #paneDetail .detail-head .back-btn { width: 32px; height: 32px; }
  body.layout-official #paneDetail .detail-head h2 { flex: 1 1 calc(100% - 45px); font-size: 16px; margin-top: 2px; }
  body.layout-official #paneDetail .detail-head .pane__sub { font-size: 10.5px; }
  body.layout-official #paneDetail .detail-actions {
    width: 100%;
    margin-left: 0 !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 6px;
    padding-top: 2px;
    scrollbar-width: none;
  }
  body.layout-official #paneDetail .detail-actions::-webkit-scrollbar { display: none; }
  body.layout-official #paneDetail .detail-actions .btn { flex: 0 0 auto; height: 31px; font-size: 10.5px; border-radius: 999px; }
  body.layout-official #paneDetail #btnSwitchDetail,
  body.layout-official #paneDetail #btnCopy { display: none !important; }

  body.layout-official #paneDetail .hero,
  body.layout-official #paneDetail .official-golden,
  body.layout-official #paneDetail .card,
  body.layout-official #paneDetail .detail-tabs,
  body.layout-official #paneDetail .detail-foot,
  body.layout-official #paneDetail #rankEstimate { margin-left: 14px; margin-right: 14px; }
  body.layout-official #paneDetail .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px 16px 14px;
    border-radius: 17px;
    margin-top: 10px;
  }
  body.layout-official #paneDetail .official-gauge {
    left: 6px;
    top: 2px;
    width: 150px;
    height: 75px;
    opacity: 0.45;
  }
  body.layout-official #paneDetail .official-gauge::before { width: 150px; height: 150px; }
  body.layout-official #paneDetail .official-gauge::after { left: 20px; top: 20px; width: 110px; height: 110px; }
  body.layout-official #paneDetail .hero__score b { font-size: 43px; }
  body.layout-official #paneDetail .hero__score span { font-size: 12px; }
  body.layout-official #paneDetail .hero__tags { margin-top: 7px; }
  body.layout-official #paneDetail .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px; }
  body.layout-official #paneDetail .rank-box { padding: 8px 9px; border-radius: 10px; }
  body.layout-official #paneDetail .rank-box__value { font-size: 18px; }
  body.layout-official #paneDetail .rank-box__label { font-size: 9.5px; }

  body.layout-official #paneDetail .official-golden { padding: 15px 14px 11px; border-radius: 17px; }
  body.layout-official #paneDetail .official-golden__title { font-size: 15px; }
  body.layout-official #paneDetail .official-golden__title span { font-size: 19px; }
  body.layout-official #paneDetail .og-step { grid-template-columns: 58px minmax(0, 1fr); gap: 7px; padding-top: 9px; }
  body.layout-official #paneDetail .og-no { font-size: 21px; }
  body.layout-official #paneDetail .og-no small { font-size: 9.5px; }
  body.layout-official #paneDetail .og-actions { gap: 6px; }
  body.layout-official #paneDetail .og-actions button { height: 43px; gap: 6px; padding: 0 7px; font-size: 11px; border-radius: 10px; }
  body.layout-official #paneDetail .og-ico { width: 25px; height: 25px; flex-basis: 25px; font-size: 13px; border-radius: 7px; }

  body.layout-official #paneDetail .official-subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 14px 10px; }
  body.layout-official #paneDetail .osub-card { padding: 8px 9px; border-radius: 12px; }
  body.layout-official #paneDetail .osub-name { font-size: 10.5px; }
  body.layout-official #paneDetail .osub-score { font-size: 19px; }
  body.layout-official #paneDetail .osub-score small { font-size: 9px; }
  body.layout-official #paneDetail .osub-meta { font-size: 9px; }
  body.layout-official #paneDetail .osub-bar { margin-top: 5px; height: 3px; }

  body.layout-official #paneDetail .detail-tabs {
    margin: 0 14px 10px !important;
    border-radius: 12px;
    padding: 2px 4px !important;
    width: auto;
  }
  body.layout-official #paneDetail .table-wrap {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
  }
  body.layout-official #paneDetail .detail-tab { height: 37px; font-size: 11.5px; padding: 0 10px; }
  body.layout-official #paneDetail .detail-tab.is-active::after { left: 10px; right: 10px; bottom: 2px; height: 2px; }
  body.layout-official #paneDetail .detail-foot { margin-top: 12px; font-size: 10px; }
  body.layout-official #paneDetail .card { border-radius: 16px; padding: 13px 12px; }
  body.layout-official #paneDetail .card h3 { font-size: 15px; }

  /* 我的 */
  body.layout-official .official-me {
    display: block;
    padding: calc(env(safe-area-inset-top) + 10px) 14px 0;
  }
  body.layout-official .om-head { padding: 0 2px 13px; }
  body.layout-official .om-avatar { width: 46px; height: 46px; flex-basis: 46px; font-size: 18px; }
  body.layout-official .om-user b { font-size: 18px; }
  body.layout-official .om-user em { font-size: 11px; }
  body.layout-official .om-card { padding: 15px 14px 11px; border-radius: 18px; }
  body.layout-official .om-card__head b { font-size: 15px; }
  body.layout-official .om-grid { gap: 6px; margin-top: 12px; }
  body.layout-official .om-grid button { padding: 7px 2px 6px; border-radius: 11px; }
  body.layout-official .om-grid span { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  body.layout-official .om-grid b { font-size: 10.5px; }
  body.layout-official .om-section-title { font-size: 14.5px; margin: 16px 2px 8px; }
  body.layout-official .settings-card { margin: 0 14px 10px; padding: 2px 14px; border-radius: 16px; }
  body.layout-official .set-row { min-height: 49px; }
  body.layout-official .set-row__icon { width: 31px; height: 31px; font-size: 15px; }
  body.layout-official .set-row__label { font-size: 13px; }
  body.layout-official .set-row__value { font-size: 11.5px; }
  body.layout-official .layout-switch--settings { margin-left: 0; }
  body.layout-official #paneSettings > p.muted { padding: 0 16px; }

  /* 底部四栏 */
  body.layout-official.hfs-main-visible .official-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    height: calc(60px + env(safe-area-inset-bottom));
    padding: 4px 8px env(safe-area-inset-bottom);
    background: #ffffff;
    border-top: 1px solid #f0eee8;
    box-shadow: 0 -4px 16px rgba(50, 40, 20, 0.045);
  }
  body.layout-official #toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
    max-width: 86vw;
    text-align: center;
  }
  body.layout-official .official-tabbar button {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #9b9b9b;
    padding: 2px 0;
  }
  body.layout-official .official-tabbar button svg { width: 21px; height: 21px; }
  body.layout-official .official-tabbar button span { font-size: 10.5px; font-weight: 500; }
  body.layout-official .official-tabbar button.is-active { color: #e98900; }
  body.layout-official .official-tabbar button.is-active span { font-weight: 700; }
}

/* 窄桌面 / 平板：压缩顶栏，单列卡片 */
@media (min-width: 769px) and (max-width: 1100px) {
  body.layout-official .sidebar { padding-left: 14px; padding-right: 14px; height: 52px; min-height: 52px; }
  body.layout-official .nav__item { height: 38px; padding: 0 7px; font-size: 11.5px; gap: 4px; }
  body.layout-official .nav__item svg { width: 14px; height: 14px; }
  body.layout-official .nav__item.is-active::after { left: 7px; right: 7px; bottom: 1px; }
  body.layout-official .content { padding: 18px 20px 44px; }
  body.layout-official .oh-hero { height: 150px; padding: 16px 15px; }
  body.layout-official .oh-hero__copy b { font-size: 22px; }
  body.layout-official .oh-hero__copy em { font-size: 11.5px; }
  body.layout-official .oh-ico { width: 42px; height: 42px; font-size: 21px; }
  body.layout-official .oh-quick b { font-size: 11.5px; }
  body.layout-official .oh-sheet { padding: 16px 16px 12px; }
}
@media (max-width: 1000px) {
  body.layout-official .oh-sections { grid-template-columns: 1fr; }
  body.layout-official .exam-list { grid-template-columns: 1fr; }
  body.layout-official .oh-hero { height: 148px; }
  body.layout-official .oh-hero__copy b { font-size: 21px; }
}

/* ==========================================================================
   8. 登录页
   ========================================================================== */

body.layout-official .login { background: transparent; }
body.layout-official .login__glow { opacity: 0.42; }
body.layout-official .login__card {
  background: #ffffff;
  border: 1px solid #efede7;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(60, 48, 24, 0.09);
}
body.layout-official .login__head h1 { color: #303030; }
body.layout-official .login__head p { color: #9b9b9b; }
body.layout-official .login__note { color: #a2a2a2; }
body.layout-official .segmented { background: #f7f6f3; border-color: #efede7; border-radius: 999px; }
body.layout-official .segmented__item { border-radius: 999px; color: #888888; }
body.layout-official .segmented__item.is-active { background: #ffffff; color: #d98200; box-shadow: 0 1px 4px rgba(50, 40, 20, 0.08); }
body.layout-official .login__card .btn--primary, body.layout-official .btn--primary {
  background: linear-gradient(135deg, #ffb42e, #ff9300);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 150, 0, 0.2);
}

/* ==========================================================================
   9. 第二轮 PC 适配：联考标识、洞察双栏、我的双栏、图表与对比页浅色
   ========================================================================== */

/* 联考 / 非联考：每个考试都显示 */
.chip--joint {
  background: var(--gold-soft, rgba(242, 193, 78, 0.16));
  color: var(--gold, #f2c14e);
  font-weight: 600;
}
.chip--nonjoint {
  background: var(--panel-3, rgba(255, 255, 255, 0.06));
  color: var(--muted, #8b95a7);
}
body.layout-official .chip--joint {
  background: #fff0d2;
  color: #b46b00;
}
body.layout-official .chip--nonjoint {
  background: #f2f1ec;
  color: #8c887d;
}

/* 孩子对比：B 孩子大分数在浅色底上也要清晰 */
.cmp-score {
  margin: 10px 0 2px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #e6e9ef;
  font-variant-numeric: tabular-nums;
}
.cmp-score.is-a { color: var(--gold-strong, #f2c14e); }
body.layout-official .cmp-score.is-a { color: #e98900; }
body.layout-official .cmp-score.is-b { color: #302c25; }

/* 洞察页输入框与进度条（默认深色，原版浅色覆盖） */
.ins-input {
  width: 96px;
  padding: 5px 8px;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: inherit;
  font: inherit;
  font-size: 12px;
  outline: none;
}
.ins-input:focus { border-color: var(--gold, #f2c14e); }
.ins-track { background: rgba(255, 255, 255, 0.08); }
.ins-note { background: rgba(255, 255, 255, 0.04); }

body.layout-official .ins-input {
  background: #ffffff;
  border-color: #ece3d0;
  color: #3f3a30;
}
body.layout-official .ins-input:focus {
  border-color: #ffc24d;
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.1);
}
body.layout-official .ins-track { background: #efece4; }
body.layout-official .ins-note {
  background: #fbf7ee;
  border: 1px solid #f2ead9;
}

/* 洞察页：PC 两栏，不再一条长列表铺到底 */
@media (min-width: 1000px) {
  body.layout-official #paneInsight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    align-content: start;
    align-items: start;
  }
  body.layout-official #paneInsight > .pane__head {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  body.layout-official #paneInsight > section.card {
    margin: 0 !important;
    height: auto !important;
  }
}

/* 我的 / 设置：PC 左档案、右设置，避免 960px 单列长滚动 */
@media (min-width: 1000px) {
  body.layout-official #paneSettings {
    max-width: 1180px !important;
    display: grid;
    grid-template-columns: 342px minmax(0, 1fr);
    gap: 14px 18px;
    align-items: start;
  }
  body.layout-official #paneSettings #officialMe {
    grid-column: 1;
    grid-row: 1 / span 6;
    margin: 0;
  }
  body.layout-official #paneSettings .om-section-title { display: none; }
  body.layout-official #paneSettings .settings-card {
    grid-column: 2;
    margin: 0;
  }
  body.layout-official #paneSettings > p.muted {
    grid-column: 1 / -1;
    margin: 2px 0 0;
  }
}

/* 移动端洞察表格：四列压进一屏，不再横向溢出 */
@media (max-width: 768px) {
  body.layout-official #paneInsight .table {
    min-width: 0 !important;
    font-size: 10.5px !important;
  }
  body.layout-official #paneInsight .table th,
  body.layout-official #paneInsight .table td {
    padding: 8px 6px !important;
  }
}

/* 2K / 大屏：内容区不再被 auto margin 缩成各页各自宽度，统一铺满宽屏 */
@media (min-width: 1600px) {
  body.layout-official .content {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
  }
  body.layout-official .pane { max-width: 1400px; }
  body.layout-official #paneSettings { max-width: 1400px !important; }
}

/* 2K / 4K 大屏再放大一档，避免两侧留白过重 */
@media (min-width: 2200px) {
  body.layout-official .content { max-width: 1840px; }
  body.layout-official .pane { max-width: 1680px; }
  body.layout-official #paneSettings { max-width: 1680px !important; }
}

/* ===== 桌面宽屏增强：在 1600px 以上用满横向空间并提高信息密度 ===== */
@media (min-width: 1600px) {
  body.layout-official .content { max-width: 1640px; }
  body.layout-official .pane { max-width: 1560px; }
  body.layout-official #paneSettings { max-width: 1560px !important; }
  body.layout-official .exam-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.layout-official .exam-title { font-size: 16px; }
  body.layout-official .exam-score__value { font-size: 30px; }
  body.layout-official .exam-card { padding: 16px; }
  body.layout-official .oh-hero { height: 180px; padding: 20px; }
  body.layout-official .oh-hero__copy b { font-size: 28px; }
  body.layout-official .oh-hero__copy em { font-size: 14px; }
}

@media (min-width: 2200px) {
  body.layout-official .content { max-width: 2160px; }
  body.layout-official .pane { max-width: 2040px; }
  body.layout-official #paneSettings { max-width: 2040px !important; }
  body.layout-official .exam-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1440px) and (max-width: 1599px) {
  body.layout-official .content { max-width: 1360px; }
  body.layout-official .pane { max-width: 1280px; }
  body.layout-official #paneSettings { max-width: 1280px !important; }
}

/* 1920 级别的洞察页：左侧大表，右侧三张摘要卡，减少左列空白 */
@media (min-width: 1600px) {
  body.layout-official #paneInsight {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  body.layout-official #paneInsight > section.card:nth-of-type(1) { grid-column: 2; grid-row: 1; }
  body.layout-official #paneInsight > section.card:nth-of-type(2) { grid-column: 1; grid-row: 1 / span 3; }
  body.layout-official #paneInsight > section.card:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  body.layout-official #paneInsight > section.card:nth-of-type(4) { grid-column: 2; grid-row: 3; }
  body.layout-official #paneInsight > section.card:nth-of-type(2) .table { min-width: 0; }
  body.layout-official .exam-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    min-height: 42px;
  }
}

/* 修正洞察页头在 3 行网格下丢失，并让真题按地区两列排布 */
@media (min-width: 1600px) {
  body.layout-official #paneInsight {
    grid-template-rows: auto auto auto auto;
  }
  body.layout-official #paneInsight > .pane__head { grid-column: 1 / -1; grid-row: 1; }
  body.layout-official #paneInsight > section.card:nth-of-type(1) { grid-row: 2; }
  body.layout-official #paneInsight > section.card:nth-of-type(2) { grid-row: 2 / span 3; }
  body.layout-official #paneInsight > section.card:nth-of-type(3) { grid-row: 3; }
  body.layout-official #paneInsight > section.card:nth-of-type(4) { grid-row: 4; }
  body.layout-official #cityExamsList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }
  body.layout-official #cityExamsList > .card { margin: 0; }
}

@media (min-width: 1600px) {
  body.layout-official .exam-title { word-break: keep-all; }
}

@media (min-width: 1600px) {
  body.layout-official #paneSettings { max-width: 1320px !important; }
}
@media (min-width: 2200px) {
  body.layout-official #paneSettings { max-width: 1480px !important; }
}

@media (min-width: 1440px) and (max-width: 1599px) {
  body.layout-official .content { width: 100%; margin: 0 auto; }
}
