:root {
  --bg: #eef5ff;
  --card: #ffffff;
  --card-strong: #ffffff;
  --ink: #151d2f;
  --muted: #70819a;
  --line: #e8eef7;
  --blue: #0f6fff;
  --blue2: #2f8bff;
  --cyan: #0db9b4;
  --green: #16c6a5;
  --orange: #ffad2b;
  --red: #ff6b73;
  --shadow: 0 14px 34px rgba(36, 77, 135, 0.12);
  --soft-shadow: 0 8px 22px rgba(41, 84, 143, 0.08);
  --radius: 8px;
  --nav-height: 68px;
}

:root[data-theme="dark"] {
  --bg: #070b12;
  --card: #101723;
  --card-strong: #151e2b;
  --ink: #dbe7f3;
  --muted: #7f8da4;
  --line: #243044;
  --blue: #426fae;
  --blue2: #315c94;
  --cyan: #287f83;
  --green: #2d856f;
  --orange: #9b712f;
  --red: #a95059;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.48);
  --soft-shadow: 0 8px 20px rgba(0, 0, 0, 0.30);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 2%, rgba(37, 128, 255, 0.12), transparent 26%),
    radial-gradient(circle at 96% 18%, rgba(20, 198, 169, 0.10), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% 2%, rgba(38, 86, 140, 0.08), transparent 30%),
    radial-gradient(circle at 96% 18%, rgba(34, 103, 101, 0.06), transparent 28%),
    linear-gradient(180deg, #060914 0%, #0a101b 48%, var(--bg) 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  width: min(100%, 430px);
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
  overflow-x: hidden;
}

:root[data-theme="dark"] .app-shell,
:root[data-theme="dark"] .practice-shell {
  background: linear-gradient(180deg, #080f1a 0%, #0a101b 100%);
}

.page,
.study-card,
.plan-banner,
.select-card,
.chapter-panel,
.setting-card,
.history-panel,
.chart-panel,
.profile,
.vip-card,
.mine-icons,
.mine-list,
.source-note,
.score-card,
.recommend-panel,
.mode-card,
.theme-card,
.knowledge-panel,
.memory-hero,
.memory-actions,
.memory-card,
.exam-card,
.exam-summary,
.home-action-grid,
.home-action,
.practice-tools,
.tool-card,
.real-panel,
.path-card,
.shortcut-grid,
.bottom-nav,
.exam-switcher,
.practice-shell,
.practice-foot {
  min-width: 0;
  max-width: 100%;
}

.main {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + 14px);
}

.page {
  display: none;
  padding: 0 16px 18px;
}

.page.active {
  display: block;
}

.app-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 14px 0 5px;
}

.app-title strong {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}

.app-title.home-title {
  grid-template-columns: 1fr auto;
}

.app-title.home-title > span:first-child {
  display: none;
}

.app-title.home-title strong {
  text-align: left;
}

.icon-button,
.bell,
.user-entry,
.edit-text,
.exam-switch-button {
  border: 0;
  background: transparent;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}

.ui-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bell {
  display: grid;
  position: relative;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #182234;
}

.bell span {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4b4b;
}

.user-entry {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(207, 222, 245, 0.95);
  border-radius: 999px;
  color: #1b72ff;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(36, 100, 194, 0.10);
}

.user-entry .ui-icon {
  width: 18px;
  height: 18px;
}

.edit-text {
  color: #1b72ff;
  font-size: 13px;
  font-weight: 800;
}

.title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.exam-switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 58px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.exam-switch-button .ui-icon {
  width: 17px;
  height: 17px;
}

.exam-switcher[hidden] {
  display: none;
}

.exam-switcher {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
}

.exam-switch-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 34, 54, 0.36);
}

.exam-switch-panel {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 14px 16px max(18px, env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: var(--card);
  box-shadow: 0 -18px 50px rgba(38, 67, 108, 0.22);
}

.exam-switch-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.exam-switch-panel header strong {
  font-size: 16px;
}

.exam-switch-panel header .icon-button {
  transform: rotate(-90deg);
}

.exam-switch-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.exam-switch-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-strong);
  text-align: left;
}

.exam-switch-item > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #edf5ff;
  color: var(--blue);
}

.exam-switch-item strong {
  display: block;
  font-size: 15px;
}

.exam-switch-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.exam-switch-item i {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.exam-switch-item.active {
  border-color: rgba(21, 113, 255, 0.34);
  background: #edf5ff;
}

.exam-switch-item.active i {
  color: var(--blue);
}

.report-dialog[hidden] {
  display: none;
}

.report-dialog {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  align-items: end;
}

.report-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 34, 54, 0.38);
}

.report-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 16px 16px max(20px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: var(--card);
  box-shadow: 0 -18px 50px rgba(38, 67, 108, 0.24);
}

.report-panel header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.report-panel header strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.report-panel header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-panel header .icon-button {
  transform: rotate(-90deg);
}

.report-score {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #edf5ff, #f8fbff);
  text-align: center;
}

.report-score b {
  color: var(--blue);
  font-size: 42px;
  line-height: 1;
}

.report-score span,
.report-score em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.report-score em {
  color: var(--ink);
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.report-metrics div {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-strong);
}

.report-metrics strong {
  color: var(--ink);
  font-size: 18px;
}

.report-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.home-hero-modern {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding-top: 8px;
}

.home-greeting {
  min-width: 0;
}

.home-greeting > span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.home-greeting h1 {
  margin-top: 8px;
  color: #101827;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.home-greeting p,
.page-tip {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.home-exam-pill {
  display: inline-grid;
  grid-template-columns: 28px auto;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 5px 10px 5px 5px;
  border: 1px solid #d9e7fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
  box-shadow: 0 12px 24px rgba(46, 90, 148, 0.10);
  font-weight: 900;
}

.home-exam-pill span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #edf5ff;
}

.home-exam-pill em {
  font-size: 12px;
  font-style: normal;
}

.app-search {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 7px;
  height: 43px;
  margin-top: 14px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.app-search span {
  display: block;
  color: #a0aec1;
}

.app-search .ui-icon {
  width: 18px;
  height: 18px;
}

.app-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.app-search input::placeholder {
  color: #9ba9ba;
}

.study-card,
.plan-banner,
.select-card,
.chapter-panel,
.setting-card,
.history-panel,
.chart-panel,
.profile,
.vip-card,
.mine-icons,
.mine-list,
.source-note,
.score-card,
.recommend-panel,
.mode-card,
.theme-card,
.knowledge-panel,
.memory-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--soft-shadow);
}

.study-card {
  margin-top: 12px;
  padding: 14px;
}

.modern-study-card {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 16px;
  border-color: rgba(206, 223, 248, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96)),
    radial-gradient(circle at 88% 8%, rgba(20, 119, 255, 0.12), transparent 30%);
  box-shadow: 0 18px 40px rgba(38, 82, 140, 0.12);
}

.modern-study-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(20, 119, 255, 0.08);
}

.modern-study-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.modern-study-top span,
.home-section-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modern-study-top strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.modern-study-top small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.modern-study-top button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #0f6fff;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 111, 255, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.card-head,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-head span,
.panel-title strong,
.history-panel h3,
.chart-panel h3 {
  color: #202a3c;
  font-size: 14px;
  font-weight: 900;
}

.card-head button,
.panel-title button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #1b72ff;
  font-size: 12px;
  font-weight: 800;
}

.card-head button .ui-icon,
.panel-title button .ui-icon,
.setting-line strong .ui-icon {
  width: 14px;
  height: 14px;
}

.study-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.modern-study-row {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.progress-ring {
  --value: 0;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(#1477ff calc(var(--value) * 1%), #e5eefb 0);
}

.progress-ring strong {
  font-size: 19px;
  font-weight: 900;
}

.study-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.study-kpis span,
.metric-card span {
  color: var(--muted);
  font-size: 11px;
}

.study-kpis strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.home-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.home-action {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 104px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(220, 231, 246, 0.95);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 116, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: 0 16px 32px rgba(45, 84, 142, 0.11);
  text-align: left;
}

.home-action::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 17px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(198, 214, 236, 0.72);
}

.home-action::before {
  content: "";
  position: absolute;
  right: 23px;
  bottom: 24px;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(83, 111, 151, 0.55);
  border-right: 2px solid rgba(83, 111, 151, 0.55);
  transform: rotate(45deg);
}

.home-action span {
  display: grid;
  width: 48px;
  height: 48px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 10px 18px rgba(21, 111, 255, 0.16);
}

.home-action strong {
  display: block;
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.16;
  white-space: nowrap;
}

.home-action small {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  grid-column: 2;
  min-width: 0;
  width: max-content;
  max-width: calc(100% - 30px);
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.home-action small b {
  color: #2c6eea;
  font-size: 15px;
  font-weight: 900;
}

.home-action small em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
}

.home-action.blue span { background: linear-gradient(135deg, #3a90ff, #0d6dff); }
.home-action.teal span { background: linear-gradient(135deg, #1fc5a6, #11a58b); }
.home-action.indigo span { background: linear-gradient(135deg, #4e8bff, #3c63f1); }
.home-action.orange span { background: linear-gradient(135deg, #ffbd3f, #ff9a1f); }

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.shortcut {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  border: 0;
  background: transparent;
}

.shortcut span,
.mine-icons span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 9px 16px rgba(36, 96, 180, 0.16);
}

.shortcut span .ui-icon,
.mine-icons span .ui-icon {
  width: 18px;
  height: 18px;
}

.shortcut em,
.nav-item em {
  font-style: normal;
}

.shortcut em {
  font-size: 11px;
  font-weight: 800;
}

.teal {
  background: linear-gradient(135deg, #1fc5a6, #11a58b);
}

.blue {
  background: linear-gradient(135deg, #3a90ff, #0d6dff);
}

.indigo {
  background: linear-gradient(135deg, #4e8bff, #3c63f1);
}

.orange {
  background: linear-gradient(135deg, #ffbd3f, #ff9a1f);
}

.coral {
  background: linear-gradient(135deg, #ff875f, #ff5c65);
}

.home-action.blue,
.home-action.teal,
.home-action.indigo,
.home-action.orange {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 116, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #fff, #f7fbff);
}

.home-action.teal {
  background:
    radial-gradient(circle at 100% 0%, rgba(17, 165, 139, 0.10), transparent 34%),
    linear-gradient(180deg, #fff, #f7fffd);
}

.home-action.indigo {
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 104, 242, 0.10), transparent 34%),
    linear-gradient(180deg, #fff, #f8faff);
}

.home-action.orange {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 156, 31, 0.12), transparent 34%),
    linear-gradient(180deg, #fff, #fffaf3);
}

.plan-banner {
  position: relative;
  min-height: 100px;
  margin-top: 16px;
  overflow: hidden;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #1e78ff, #4da0ff);
}

.plan-banner h2 {
  max-width: 210px;
  font-size: 17px;
  line-height: 1.35;
}

.plan-banner p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.plan-banner button {
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #156fff;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 900;
}

.book-figure {
  position: absolute;
  right: 20px;
  bottom: 10px;
  width: 90px;
  height: 70px;
}

.book-figure span,
.book-figure i,
.shield,
.building,
.clipboard {
  display: block;
  background: rgba(255, 255, 255, 0.35);
}

.book-figure span {
  width: 58px;
  height: 44px;
  margin: 18px 0 0 4px;
  border-radius: 7px;
  transform: rotate(-12deg);
}

.book-figure i {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 42px;
  height: 52px;
  border-radius: 7px;
  transform: rotate(18deg);
}

.block-title {
  margin: 18px 0 10px;
}

.block-title h2 {
  font-size: 15px;
}

.home-exam-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(220, 231, 246, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(45, 84, 142, 0.10);
  backdrop-filter: blur(14px);
}

.home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.home-section-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.home-section-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d7e6fb;
  border-radius: 999px;
  background: #f5f9ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.home-section-head .ui-icon {
  width: 15px;
  height: 15px;
}

.exam-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  width: 100%;
  min-height: 104px;
  margin-top: 10px;
  overflow: hidden;
  padding: 20px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 18px 34px rgba(26, 104, 203, 0.18);
  text-align: left;
}

.exam-list {
  display: grid;
  gap: 10px;
}

.exam-list .exam-card {
  margin-top: 0;
}

.exam-card.active {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: -5px;
}

.exam-card::before {
  content: none;
}

.exam-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}

.exam-card-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.exam-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #176cff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.green-card .exam-card-icon {
  color: #078f86;
}

.exam-card-icon .ui-icon {
  width: 23px;
  height: 23px;
  stroke-width: 2.25;
}

.exam-card h3 {
  position: relative;
  z-index: 1;
  font-size: 24px;
  line-height: 1.2;
}

.exam-card p {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 800;
}

.exam-card-current {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 900;
}

.exam-card-art,
.exam-card-watermark {
  position: relative;
  z-index: 1;
  display: grid;
  justify-self: end;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  pointer-events: none;
}

.exam-card-art .ui-icon,
.exam-card-watermark .ui-icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.85;
}

.blue-card {
  background:
    radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #176cff, #438dff);
}

.green-card {
  background:
    radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.15), transparent 30%),
    linear-gradient(135deg, #07b6ac, #18c5b2);
}

.exam-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.modern-exam-summary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(220, 231, 246, 0.92);
}

.exam-summary article {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid rgba(220, 231, 246, 0.95);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 116, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.exam-summary strong {
  display: block;
  color: #126fff;
  font-size: clamp(13px, 3.7vw, 16px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.exam-summary span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.page-tip {
  margin: 4px 0 14px;
}

.select-card {
  overflow: hidden;
  margin-top: 14px;
  padding: 0 12px 12px;
}

.select-hero {
  position: relative;
  height: 66px;
  margin: 0 -12px 12px;
  padding: 20px 16px;
  color: #fff;
}

.select-hero h2 {
  font-size: 18px;
}

.select-hero p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.select-blue .select-hero {
  background: linear-gradient(135deg, #186fff, #54a0ff);
}

.select-green .select-hero {
  background: linear-gradient(135deg, #08b5ac, #1ec8b9);
}

.shield {
  position: absolute;
  right: 22px;
  top: 13px;
  width: 48px;
  height: 48px;
  border-radius: 16px 16px 22px 22px;
}

.building {
  position: absolute;
  right: 28px;
  top: 12px;
  width: 38px;
  height: 50px;
  border-radius: 6px 6px 0 0;
}

.exam-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--radius);
  background: #f4f8ff;
  text-align: left;
}

.exam-row strong {
  color: #1773ff;
  text-align: center;
}

.exam-row span {
  color: #5e708a;
  font-size: 12px;
}

.exam-row.active {
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(21, 113, 255, 0.12);
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 9px;
}

.major-grid button {
  display: grid;
  min-height: 60px;
  gap: 4px;
  border: 0;
  border-radius: var(--radius);
  background: #f5fbff;
  color: #00a9a2;
  font-weight: 900;
}

.c2-select .major-grid {
  margin-top: 10px;
}

.major-grid small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.chapter-panel {
  margin-top: 14px;
  padding: 14px;
}

.practice-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tool-card {
  display: grid;
  min-width: 0;
  min-height: 88px;
  gap: 6px;
  justify-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.tool-card span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #edf5ff;
  color: var(--blue);
}

.tool-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.tool-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.current-exam-strip {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e2ecfa;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
}

.current-exam-strip > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #e6f1ff;
  color: var(--blue);
}

.current-exam-strip .ui-icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.25;
}

.current-exam-strip strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.current-exam-strip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.chapter-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.chapter-row,
.wrong-topic,
.mine-list button {
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius);
  background: #f8fbff;
  text-align: left;
}

.chapter-row > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-left: 8px;
  border-radius: 8px;
  background: #eaf3ff;
  color: #1773ff;
  font-size: 12px;
  font-weight: 900;
}

.chapter-row strong,
.wrong-topic strong,
.mine-list span {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.chapter-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.chapter-row i,
.wrong-topic i,
.mine-list i,
.profile i {
  color: #b7c3d3;
  font-style: normal;
  font-size: 18px;
}

.chapter-row i,
.wrong-topic i,
.mine-list i,
.profile i {
  display: grid;
  place-items: center;
}

.chapter-row i .ui-icon,
.wrong-topic i .ui-icon,
.mine-list i .ui-icon,
.profile i .ui-icon {
  width: 16px;
  height: 16px;
}

.chapter-row-v2 {
  position: relative;
  grid-template-columns: 44px minmax(0, 1fr) auto 16px;
  gap: 11px;
  min-height: 76px;
  overflow: hidden;
  padding: 12px 13px 12px 16px;
  border: 1px solid #e8f0fb;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 24px rgba(46, 90, 148, 0.06);
}

.chapter-row-v2::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--chapter-color, var(--blue));
}

.chapter-row-v2 .chapter-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--chapter-color, var(--blue)) 12%, #fff);
  color: var(--chapter-color, var(--blue));
  font-size: 0;
  line-height: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chapter-color, var(--blue)) 14%, transparent);
}

.chapter-row-v2 .chapter-badge.is-number {
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.chapter-row-v2 .chapter-badge .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

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

.chapter-main strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.chapter-main small {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chapter-main small em,
.chapter-main small b {
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-weight: 800;
}

.chapter-main small em {
  color: var(--chapter-color, var(--blue));
}

.chapter-main small em::after {
  content: "·";
  margin-left: 6px;
  color: #b6c3d2;
}

.chapter-main small b {
  color: #65758c;
}

.chapter-progress {
  display: block;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3fb;
}

.chapter-progress i {
  display: block;
  width: var(--mastery, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--chapter-color, var(--blue)), color-mix(in srgb, var(--chapter-color, var(--blue)) 70%, var(--cyan)));
}

.chapter-rate {
  display: grid;
  min-width: 46px;
  min-height: 38px;
  place-items: center;
  gap: 2px;
  justify-self: end;
  border-radius: 12px;
  background: #f5f8fc;
  color: var(--chapter-color, var(--blue));
  font-size: 12px;
  font-weight: 900;
}

.chapter-rate em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.chapter-row-v2 .chapter-arrow {
  color: #aab8ca;
}

.chapter-row-v2.tone-law { --chapter-color: #176cff; }
.chapter-row-v2.tone-management { --chapter-color: #0aa58e; }
.chapter-row-v2.tone-technology { --chapter-color: #5b6df5; }
.chapter-row-v2.tone-material { --chapter-color: #0aa58e; }
.chapter-row-v2.tone-construction { --chapter-color: #5b6df5; }
.chapter-row-v2.tone-measurement { --chapter-color: #ff981f; }
.chapter-row-v2.tone-specialty { --chapter-color: #d65f7b; }

.tabs,
.range-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.range-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tabs button,
.range-tabs button {
  position: relative;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tabs button.active,
.range-tabs button.active {
  color: #126fff;
}

.tabs button.active::after,
.range-tabs button.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 999px;
  background: #126fff;
}

.wrong-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.wrong-topic {
  grid-template-columns: 1fr 38px 18px;
  min-height: 50px;
  padding: 0 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(44, 86, 145, 0.06);
}

.wrong-topic span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f0;
  color: #ff6068;
  font-size: 11px;
  font-weight: 900;
}

.wrong-actions {
  position: sticky;
  bottom: calc(var(--nav-height) + 8px);
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.primary-wide,
.outline-wide {
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-wide {
  border: 0;
  background: #106fff;
  color: #fff;
  box-shadow: 0 10px 18px rgba(16, 111, 255, 0.22);
}

.outline-wide {
  border: 1px solid var(--line);
  background: #fff;
  color: #5d6d83;
}

.mock-setup-card {
  margin-top: 10px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 18px 38px rgba(38, 87, 154, 0.14);
}

.mock-hero {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  padding: 24px 22px 42px;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(135deg, #0d68ff, #2d8eff);
  color: #fff;
}

.mock-hero > div:first-child {
  position: relative;
  z-index: 1;
}

.mock-hero span {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.82;
}

.mock-hero h2 {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.1;
}

.mock-hero p {
  max-width: 210px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.clipboard {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 88px;
  height: 96px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 241, 255, 0.82));
  box-shadow: -12px 16px 28px rgba(0, 66, 168, 0.16);
  transform: rotate(7deg);
}

.clipboard::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 29px;
  width: 30px;
  height: 17px;
  border-radius: 8px;
  background: #d9e8ff;
  box-shadow: inset 0 0 0 3px rgba(13, 104, 255, 0.16);
}

.clipboard::after {
  content: "";
  position: absolute;
  inset: 28px 18px 18px;
  background:
    linear-gradient(#a7bee3, #a7bee3) 0 0 / 50px 4px no-repeat,
    linear-gradient(#b8c9e8, #b8c9e8) 0 20px / 44px 4px no-repeat,
    linear-gradient(#c6d5ee, #c6d5ee) 0 40px / 38px 4px no-repeat;
}

.setting-card,
.history-panel,
.chart-panel,
.profile,
.vip-card,
.mine-icons,
.mine-list,
.source-note {
  margin-top: 14px;
  padding: 14px;
}

.mock-setting-card {
  position: relative;
  z-index: 1;
  margin: -22px 14px 0;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(41, 70, 112, 0.12);
}

.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mock-setting-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 18px;
  gap: 12px;
  min-height: 64px;
  color: var(--ink);
}

.setting-line:last-of-type {
  border-bottom: 0;
}

.setting-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #edf5ff;
  color: var(--blue);
}

.mock-setting-line:nth-child(2) .setting-icon {
  background: #e9fbf7;
  color: var(--cyan);
}

.mock-setting-line:nth-child(3) .setting-icon {
  background: #edf5ff;
  color: var(--blue);
}

.mock-setting-line:nth-child(4) .setting-icon {
  background: #eafaf5;
  color: var(--green);
}

.setting-icon .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.35;
}

.setting-line strong {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 15px;
}

.mock-setting-line em {
  align-self: center;
  color: #6b7587;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.mock-setting-line > i {
  display: grid;
  align-self: center;
  place-items: center;
  color: #aab4c2;
  font-style: normal;
}

.mock-setting-line > i .ui-icon {
  width: 18px;
  height: 18px;
}

.setting-line.stacked {
  display: grid;
  gap: 8px;
  padding: 10px 0;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-pill-group {
  grid-column: 2 / -1;
  margin: -6px 0 4px;
}

.pill-group button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #5e7088;
  font-size: 12px;
  font-weight: 800;
}

.pill-group button.active {
  border-color: #1b72ff;
  background: #ecf4ff;
  color: #126fff;
}

.mock-setup-card > .primary-wide {
  width: calc(100% - 36px);
  min-height: 58px;
  margin: 16px 18px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d68ff, #147cff);
  font-size: 19px;
  box-shadow: 0 14px 26px rgba(13, 104, 255, 0.26);
}

.mock-section-title {
  margin: 26px 2px 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.mock-history-panel {
  padding: 6px 18px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
}

.history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row strong {
  font-size: 15px;
  line-height: 1.35;
}

.history-row span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.history-row span b {
  width: 1px;
  height: 12px;
  background: var(--line);
}

.history-row button {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #126fff;
  font-size: 12px;
  font-weight: 900;
}

.history-row button .ui-icon {
  width: 16px;
  height: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.metric-card {
  min-width: 0;
  padding: 12px 8px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(44, 86, 145, 0.06);
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.1;
}

.metric-card small {
  margin-left: 1px;
  font-size: 10px;
}

.metric-card em {
  display: block;
  margin-top: 7px;
  color: #20bf78;
  font-size: 10px;
  font-style: normal;
}

.line-chart {
  position: relative;
  height: 155px;
  margin-top: 12px;
  border: 1px solid #eff3fa;
  border-radius: var(--radius);
  background:
    linear-gradient(#eef4fb 1px, transparent 1px) 0 25% / 100% 25%,
    #fbfdff;
}

.line-chart::before {
  content: "";
  position: absolute;
  inset: 35px 16px 42px;
  border-bottom: 2px solid rgba(18, 111, 255, 0.18);
  transform: skewY(-7deg);
}

.line-chart i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #126fff;
}

.bar-chart {
  display: flex;
  align-items: end;
  justify-content: space-around;
  height: 150px;
  margin-top: 10px;
  border-radius: var(--radius);
  background: #fbfdff;
}

.bar-chart div {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.bar-chart b {
  width: 16px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, #3b8dff, #126fff);
}

.profile {
  display: grid;
  grid-template-columns: 52px 1fr 18px;
  align-items: center;
  gap: 12px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #ffe0bd 0 24%, transparent 25%),
    radial-gradient(circle at 50% 74%, #2581ff 0 34%, transparent 35%),
    #dff0ff;
}

.profile h2 {
  font-size: 17px;
}

.profile p,
.source-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.large {
  width: 62px;
  height: 62px;
}

.auth-card,
.login-panel,
.account-panel,
.about-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--soft-shadow);
}

.auth-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.auth-card strong,
.account-head strong,
.sync-status strong,
.about-panel strong {
  color: var(--ink);
  font-size: 14px;
}

.auth-card span,
.account-head span,
.sync-status span,
.login-note,
.about-panel p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-card button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.login-hero,
.account-head,
.about-brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.login-hero > span,
.about-brand > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #edf5ff;
  color: var(--blue);
}

.login-hero h2,
.about-brand h2 {
  color: var(--ink);
  font-size: 18px;
}

.login-hero p,
.about-brand p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  display: grid;
  gap: 6px;
}

.login-form label > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.login-form input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
}

.sync-status {
  padding: 12px;
  border-radius: 10px;
  background: #f5f9ff;
}

.member-status-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.member-status-card.is-member {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.member-status-card strong {
  color: var(--ink);
  font-size: 16px;
}

.member-status-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.member-benefits {
  display: grid;
  gap: 8px;
}

.member-benefits article,
.member-admin,
.member-user-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-strong);
}

.member-benefits article {
  padding: 12px;
}

.member-benefits b,
.member-admin strong,
.member-user-row strong {
  color: var(--ink);
  font-size: 13px;
}

.member-benefits span,
.member-admin p,
.member-user-main span,
.member-user-row label span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.member-admin {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.member-admin-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.member-admin-search input,
.member-user-row input,
.member-user-row select {
  min-height: 38px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  outline: 0;
}

.member-admin-search button,
.member-user-row button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.member-admin-list {
  display: grid;
  gap: 8px;
}

.member-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 84px auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
}

.admin-empty {
  padding: 14px;
  border-radius: 10px;
  background: #f5f9ff;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.about-panel article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-strong);
}

.vip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #232936, #111827);
}

.local-card {
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #126fff, #00b7ae);
}

.vip-card h3 {
  font-size: 16px;
}

.vip-card p {
  margin-top: 6px;
  color: #f0c56d;
  font-size: 12px;
}

.vip-card button {
  border: 0;
  border-radius: 999px;
  background: #fff4d7;
  color: #5b3a00;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}

.mine-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mine-icons button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  border: 0;
  background: transparent;
}

.mine-icons span {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #3a90ff, #106fff);
}

.mine-icons strong {
  font-size: 11px;
}

.mine-icons small,
.mine-list em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.mine-list {
  display: grid;
  gap: 2px;
  padding: 6px;
}

.mine-list button {
  grid-template-columns: 1fr auto 18px;
  padding: 0 10px;
  background: #fff;
}

.source-note strong {
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(100%, 430px);
  max-width: 100vw;
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 7px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -10px 28px rgba(42, 84, 145, 0.08);
  backdrop-filter: blur(12px);
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #8795aa;
  font-size: 10px;
  font-weight: 800;
}

.nav-item span {
  display: grid;
  width: 24px;
  height: 22px;
  place-items: center;
  line-height: 1;
}

.nav-item .ui-icon {
  width: 20px;
  height: 20px;
}

.nav-item.active {
  color: #126fff;
}

.practice-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
}

.practice-overlay[hidden] {
  display: none;
}

.practice-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 430px);
  max-width: 100vw;
  height: 100%;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.practice-head {
  border-bottom: 1px solid #edf2f8;
}

.quiz-head {
  display: grid;
  grid-template-columns: 44px 1fr 82px;
  align-items: center;
  height: 44px;
  padding: 0 12px;
}

.quiz-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #142033;
}

.quiz-head strong {
  text-align: center;
  font-size: 15px;
}

.quiz-head div {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.quiz-head .on {
  color: #ffb800;
}

.quiz-head .on .ui-icon {
  fill: #ffb800;
}

.quiz-progress {
  display: grid;
  grid-template-columns: 60px 1fr 54px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
}

.quiz-progress span {
  color: #126fff;
  font-size: 12px;
  font-weight: 900;
}

.quiz-progress i {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf7;
}

.quiz-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #126fff;
}

.quiz-progress em {
  color: #51657e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.practice-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px 100px;
}

.quiz-card h2 {
  font-size: 17px;
  line-height: 1.66;
  letter-spacing: 0;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px;
  border: 1px solid #edf3fb;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.quiz-option span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #dde6f2;
  border-radius: 50%;
  background: #fff;
  color: #2d3b51;
  font-weight: 900;
}

.quiz-option p {
  color: #1f2a3d;
  font-size: 14px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.quiz-option i {
  color: #126fff;
  font-style: normal;
  font-weight: 900;
}

.quiz-option.picked {
  border-color: #d6e7ff;
  background: #edf5ff;
  box-shadow: none;
}

.quiz-option.picked span {
  border-color: #126fff;
  background: #126fff;
  color: #fff;
}

.quiz-option.right {
  border-color: #bfead8;
  background: #effbf6;
  box-shadow: none;
}

.quiz-option.right span {
  border-color: #20b77a;
  background: #20b77a;
  color: #fff;
}

.quiz-option.bad {
  border-color: #ffd5d8;
  background: #fff4f5;
}

.quiz-option.bad span {
  border-color: #ff6972;
  background: #ff6972;
  color: #fff;
}

.answer-box {
  margin-top: 22px;
  padding: 14px;
  border-radius: var(--radius);
  background: #f8fbff;
}

.answer-box strong,
.answer-box h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.answer-box em {
  color: #0db9b4;
  font-style: normal;
}

.answer-box.correct em,
.answer-box.correct small {
  color: #12a86f;
}

.answer-box.partial em,
.answer-box.partial small {
  color: #d28a0d;
}

.answer-box.wrong em,
.answer-box.wrong small {
  color: #e94d5c;
}

.answer-box p {
  color: #4a5b70;
  font-size: 13px;
  line-height: 1.7;
}

.answer-box small {
  display: inline-block;
  margin-top: 10px;
  color: #126fff;
  font-weight: 900;
}

.practice-foot {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 8px;
  width: min(100%, 430px);
  max-width: 100vw;
  margin: 0 auto;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid #edf2f8;
  background: #fff;
}

.practice-foot button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #5c6c84;
  font-weight: 900;
}

.practice-foot .next {
  border: 0;
  background: #126fff;
  color: #fff;
}

.practice-foot span {
  font-size: 11px;
}

.practice-foot .ui-icon {
  width: 17px;
  height: 17px;
}

.question-map {
  position: fixed;
  right: 16px;
  bottom: 70px;
  left: 16px;
  z-index: 130;
  max-width: 398px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 42px rgba(29, 61, 112, 0.18);
}

.question-map header {
  display: flex;
  justify-content: space-between;
}

.question-map header button {
  border: 0;
  background: transparent;
  color: #126fff;
  font-weight: 900;
}

.question-map div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-height: 210px;
  margin-top: 12px;
  overflow-y: auto;
}

.question-map div button {
  position: relative;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #687a91;
  font-weight: 900;
}

.question-map div button em {
  position: absolute;
  top: -6px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(28, 60, 102, 0.16);
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.question-map div button.correct {
  border-color: #bfead8;
  background: #effbf6;
  color: #12a86f;
}

.question-map div button.answered {
  border-color: #cfe0f8;
  background: #edf5ff;
  color: #126fff;
}

.question-map div button.partial {
  position: relative;
  border-color: #ffe0a1;
  background: linear-gradient(135deg, #fff8e8 0 50%, #fff 50% 100%);
  color: #d28a0d;
}

.question-map div button.partial::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -4px;
}

.question-map div button.wrong {
  border-color: #ffc8ce;
  background: #fff0f2;
  color: #e94d5c;
}

.question-map div button.active {
  border-color: #126fff;
  background: #126fff;
  color: #fff;
}

.question-map div button.active.correct {
  border-color: #16a773;
  background: #16a773;
  color: #fff;
}

.question-map div button.active.partial {
  border-color: #e4a62c;
  background: linear-gradient(135deg, #e4a62c 0 50%, #fff8e8 50% 100%);
  color: #6b4600;
}

.question-map div button.active.wrong {
  border-color: #e94d5c;
  background: #e94d5c;
  color: #fff;
}

.question-map div button span {
  pointer-events: none;
}

.question-map div button.correct em {
  color: #12a86f;
}

.question-map div button.answered em {
  color: #126fff;
}

.question-map div button.partial em {
  color: #d28a0d;
}

.question-map div button.wrong em {
  color: #e94d5c;
}

.score-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 28px 18px;
  text-align: center;
}

.score-card > div {
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(#126fff 78%, #e5eefb 0);
}

.score-card strong {
  margin-top: 18px;
  color: #126fff;
  font-size: 36px;
}

.score-card span {
  margin-top: -30px;
  color: var(--muted);
  font-size: 12px;
}

.empty {
  padding: 26px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.empty p {
  color: var(--muted);
  font-size: 12px;
}

.protect-lock {
  display: grid;
  gap: 14px;
  max-width: 420px;
  min-height: 100vh;
  align-content: center;
  margin: 0 auto;
  padding: 28px 18px;
}

.protect-lock > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  color: #fff;
  box-shadow: 0 18px 34px rgba(18, 111, 255, 0.22);
}

.protect-lock h1 {
  font-size: 24px;
}

.protect-lock p,
.protect-lock small {
  color: var(--muted);
  line-height: 1.7;
}

.protect-lock label {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-strong);
}

.protect-lock label em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.protect-lock input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 86px;
  left: 20px;
  z-index: 200;
  display: none;
  max-width: 390px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.toast.show {
  display: block;
}

.recommend-panel,
.mode-card,
.theme-card,
.knowledge-panel,
.memory-card {
  margin-top: 14px;
  padding: 14px;
}

.recommend-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.recommend-card {
  display: grid;
  min-width: 0;
  min-height: 92px;
  gap: 7px;
  justify-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  box-shadow: 0 8px 18px rgba(44, 86, 145, 0.06);
  text-align: left;
}

.recommend-card span,
.memory-hero span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  color: #fff;
}

.recommend-card strong,
.memory-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.recommend-card small,
.theme-card span,
.mode-card span,
.search-result,
.memory-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.mode-card,
.theme-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mode-card strong,
.theme-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.segmented,
.mini-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(129, 158, 196, 0.10);
}

.segmented button,
.mini-switch button,
.filter-row button,
.theme-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.segmented button {
  padding: 0 8px;
}

.segmented button.active,
.mini-switch button.active,
.filter-row button.active,
.theme-card button {
  background: var(--blue);
  color: #fff;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.filter-row button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--card-strong);
}

.search-result {
  margin-top: 9px;
}

.search-result strong {
  color: var(--blue);
}

.heat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.heat-grid button {
  display: grid;
  gap: 5px;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 107, 115, calc(0.18 + var(--heat) * 0.35));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 107, 115, calc(0.08 + var(--heat) * 0.24)), rgba(15, 111, 255, 0.04)),
    var(--card-strong);
}

.heat-grid span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.heat-grid strong {
  color: var(--red);
  font-size: 12px;
}

.trend-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.trend-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.trend-legend span + span::before {
  background: var(--orange);
}

.compare-chart i.prev {
  background: var(--orange);
  opacity: 0.75;
}

.compare-chart i.now {
  background: var(--blue);
}

.bar-chart em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.knowledge-panel {
  display: grid;
  gap: 12px;
}

.graph-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 111, 255, 0.12), transparent 26%),
    radial-gradient(circle at 78% 30%, rgba(13, 185, 180, 0.12), transparent 26%),
    var(--card-strong);
}

.graph-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

.graph-wrap line {
  stroke: rgba(112, 129, 154, 0.32);
  stroke-width: 2;
}

.graph-node {
  cursor: pointer;
}

.graph-node circle {
  fill: #edf5ff;
  stroke: var(--blue);
  stroke-width: 2;
  filter: drop-shadow(0 6px 12px rgba(15, 111, 255, 0.18));
}

.graph-node.management circle {
  fill: #effbf8;
  stroke: var(--cyan);
}

.graph-node.technology circle {
  fill: #fff7e8;
  stroke: var(--orange);
}

.graph-node.material circle {
  fill: #edf5ff;
  stroke: var(--blue);
}

.graph-node.construction circle {
  fill: #eefbf8;
  stroke: var(--cyan);
}

.graph-node.measurement circle {
  fill: #f2f0ff;
  stroke: var(--indigo);
}

.graph-node.specialty circle {
  fill: #fff7e8;
  stroke: var(--orange);
}

.graph-node text {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
  pointer-events: none;
}

.graph-list {
  display: grid;
  gap: 8px;
}

.graph-list button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-strong);
  text-align: left;
}

.graph-list span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.graph-list strong {
  font-size: 13px;
}

.graph-list small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.panel-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.path-panel {
  padding: 14px;
}

.path-list {
  display: grid;
  gap: 10px;
}

.path-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-strong), var(--card));
}

.path-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.path-head > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px;
  background: #edf5ff;
  color: var(--blue);
}

.path-head strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.path-head small,
.path-metrics span,
.path-steps em {
  color: var(--muted);
  font-size: 11px;
}

.path-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.path-metrics span {
  padding: 8px;
  border-radius: 8px;
  background: #f4f8ff;
}

.path-metrics b {
  display: block;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
}

.path-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.path-steps em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf5ff;
  color: #236fca;
  font-style: normal;
  font-weight: 800;
}

.path-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.path-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.path-actions button + button {
  border: 1px solid #cfe0f8;
  background: #fff;
  color: var(--blue);
}

.real-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--soft-shadow);
}

.real-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.real-filter-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.real-filter-row .active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.real-list {
  display: grid;
  gap: 9px;
}

.real-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-strong);
}

.real-card strong {
  color: var(--ink);
  font-size: 14px;
}

.real-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.real-score {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.real-score-detail {
  color: #496178;
  font-weight: 800;
}

.real-card button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.real-card-actions {
  display: flex;
  gap: 6px;
}

.real-card-actions button + button {
  border: 1px solid #cfe0f8;
  background: #fff;
  color: var(--blue);
}

.real-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px 18px;
  border: 1px dashed #cfe0f8;
  border-radius: var(--radius);
  background: #f7fbff;
  text-align: center;
}

.real-empty span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: #edf5ff;
  color: var(--blue);
}

.real-empty strong {
  color: var(--ink);
  font-size: 15px;
}

.real-empty p {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.memory-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  margin-top: 10px;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,0.22), transparent 28%),
    linear-gradient(135deg, #0f6fff, #0db9b4);
  box-shadow: var(--shadow);
}

.memory-hero h2 {
  font-size: 20px;
}

.memory-hero p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.memory-hero span {
  background: rgba(255, 255, 255, 0.20);
}

.memory-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.memory-map-panel,
.memory-extract-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--soft-shadow);
}

.memory-map-panel header,
.memory-extract-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.memory-map-panel header span,
.memory-extract-panel header span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.memory-map-panel header strong,
.memory-extract-panel header strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.memory-map-panel header em,
.memory-extract-panel header em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.memory-map {
  position: relative;
  height: 260px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(18, 111, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fbff, #eef6ff);
}

.memory-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.memory-map line {
  stroke: rgba(18, 111, 255, 0.18);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.memory-map-center,
.memory-map-node {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
}

.memory-map-center {
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(18, 111, 255, 0.20);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 14px 28px rgba(45, 84, 142, 0.12);
  transform: translate(-50%, -50%);
}

.memory-map-center strong {
  font-size: 22px;
  line-height: 1;
}

.memory-map-center small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.memory-map-node {
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  min-width: 92px;
  min-height: 72px;
  padding: 9px 10px;
  border: 1px solid rgba(220, 231, 246, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(45, 84, 142, 0.10);
  transform: translate(-50%, -50%);
}

.memory-map-node b {
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
}

.memory-map-node span {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.memory-map-node em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.memory-map-node.height b { color: #176cff; }
.memory-map-node.time b { color: #0aa58e; }
.memory-map-node.load b { color: #6457f5; }
.memory-map-node.count b { color: #ff981f; }
.memory-map-node.spec b { color: #d95f7b; }

.memory-extract-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.memory-extract-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid #e2edf9;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 111, 255, 0.07), transparent 30%),
    #fff;
  text-align: left;
}

.memory-extract-row > span {
  display: grid;
  min-width: 64px;
  min-height: 38px;
  place-items: center;
  padding: 0 8px;
  border-radius: 10px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.memory-extract-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.memory-extract-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.memory-extract-row i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.memory-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.memory-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 4px 10px;
  align-items: center;
}

.memory-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: 1 / span 3;
  place-items: center;
  border-radius: 8px;
  background: #edf5ff;
  color: var(--blue);
  font-weight: 900;
}

.memory-card p {
  grid-column: 2 / 4;
}

.memory-token-row {
  display: flex;
  grid-column: 2 / 4;
  flex-wrap: wrap;
  gap: 5px;
}

.memory-token-row em {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f0f6ff;
  color: var(--blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.memory-order-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.memory-order-flow button {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 3px 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid #d8e7ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  color: var(--ink);
  text-align: left;
}

.memory-order-flow b {
  grid-row: span 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}

.memory-order-flow span {
  font-size: 13px;
  font-weight: 900;
}

.memory-order-flow em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.memory-card button {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.quiz-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.quiz-card.marked {
  position: relative;
}

.quiz-card.marked::before {
  content: "已标记";
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
}

.score-delta {
  color: var(--blue);
  font-weight: 900;
}

.quiz-option {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.quiz-option:active {
  transform: scale(0.985);
}

.quiz-option.right {
  animation: option-pop 0.34s ease;
}

.quiz-option.bad {
  animation: option-shake 0.34s ease;
}

.answer-box {
  animation: answer-rise 0.28s ease;
}

@keyframes option-pop {
  0% { transform: scale(0.98); }
  55% { transform: scale(1.018); }
  100% { transform: scale(1); }
}

@keyframes option-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

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

@media (max-width: 520px) {
  .member-user-row {
    grid-template-columns: minmax(0, 1fr) 76px;
    align-items: start;
  }

  .member-user-main {
    grid-column: 1 / -1;
  }

  .member-user-row button {
    grid-column: 1 / -1;
  }
}

:root[data-theme="dark"] .app-title strong,
:root[data-theme="dark"] .card-head span,
:root[data-theme="dark"] .panel-title strong,
:root[data-theme="dark"] .history-panel h3,
:root[data-theme="dark"] .chart-panel h3,
:root[data-theme="dark"] .chapter-row strong,
:root[data-theme="dark"] .wrong-topic strong,
:root[data-theme="dark"] .mine-list span,
:root[data-theme="dark"] .metric-card strong,
:root[data-theme="dark"] .profile h2,
:root[data-theme="dark"] .auth-card strong,
:root[data-theme="dark"] .account-head strong,
:root[data-theme="dark"] .sync-status strong,
:root[data-theme="dark"] .member-status-card strong,
:root[data-theme="dark"] .member-benefits b,
:root[data-theme="dark"] .member-admin strong,
:root[data-theme="dark"] .member-user-row strong,
:root[data-theme="dark"] .about-panel strong,
:root[data-theme="dark"] .login-hero h2,
:root[data-theme="dark"] .about-brand h2,
:root[data-theme="dark"] .login-form label > span,
:root[data-theme="dark"] .mock-section-title,
:root[data-theme="dark"] .quiz-card h2,
:root[data-theme="dark"] .quiz-option p,
:root[data-theme="dark"] .empty strong {
  color: var(--ink);
}

:root[data-theme="dark"] .app-search,
:root[data-theme="dark"] .exam-summary article,
:root[data-theme="dark"] .exam-row,
:root[data-theme="dark"] .exam-switch-item,
:root[data-theme="dark"] .major-grid button,
:root[data-theme="dark"] .chapter-row,
:root[data-theme="dark"] .wrong-topic,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .line-chart,
:root[data-theme="dark"] .bar-chart,
:root[data-theme="dark"] .mine-list button,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .login-panel,
:root[data-theme="dark"] .account-panel,
:root[data-theme="dark"] .about-panel,
:root[data-theme="dark"] .about-panel article,
:root[data-theme="dark"] .login-form input,
:root[data-theme="dark"] .sync-status,
:root[data-theme="dark"] .member-status-card,
:root[data-theme="dark"] .member-benefits article,
:root[data-theme="dark"] .member-admin,
:root[data-theme="dark"] .member-user-row,
:root[data-theme="dark"] .member-admin-search input,
:root[data-theme="dark"] .member-user-row input,
:root[data-theme="dark"] .member-user-row select,
:root[data-theme="dark"] .admin-empty,
:root[data-theme="dark"] .quiz-option,
:root[data-theme="dark"] .answer-box,
:root[data-theme="dark"] .question-map,
:root[data-theme="dark"] .empty,
:root[data-theme="dark"] .mock-setting-card,
:root[data-theme="dark"] .mock-history-panel,
:root[data-theme="dark"] .outline-wide,
:root[data-theme="dark"] .practice-foot button {
  background: var(--card-strong);
}

:root[data-theme="dark"] .bottom-nav,
:root[data-theme="dark"] .practice-foot,
:root[data-theme="dark"] .practice-overlay {
  background: rgba(15, 23, 42, 0.96);
}

:root[data-theme="dark"] .practice-head,
:root[data-theme="dark"] .practice-foot {
  border-color: var(--line);
}

:root[data-theme="dark"] .practice-head {
  background: rgba(8, 15, 26, 0.98);
}

:root[data-theme="dark"] .quiz-head strong {
  color: #dbe7f3;
}

:root[data-theme="dark"] .quiz-head button {
  color: #8fb4e4;
  opacity: 1;
}

:root[data-theme="dark"] .quiz-head > button:first-child {
  color: #dbe7f3;
  background: rgba(51, 91, 145, 0.22);
  border-radius: 10px;
}

:root[data-theme="dark"] .quiz-head button .ui-icon {
  stroke-width: 2.35;
}

:root[data-theme="dark"] .quiz-head .on {
  color: #b99345;
}

:root[data-theme="dark"] .quiz-head .on .ui-icon {
  fill: rgba(185, 147, 69, 0.34);
}

:root[data-theme="dark"] .practice-foot button {
  border: 1px solid #243044;
  background: #141d2b;
}

:root[data-theme="dark"] .practice-foot button:not(:disabled):hover,
:root[data-theme="dark"] .practice-foot button:not(:disabled):focus-visible {
  border-color: rgba(143, 180, 228, 0.35);
  background: rgba(51, 91, 145, 0.18);
}

:root[data-theme="dark"] .quiz-progress i,
:root[data-theme="dark"] .progress-ring {
  background:
    radial-gradient(circle at center, var(--card) 0 54%, transparent 55%),
    conic-gradient(var(--blue) calc(var(--value, 0) * 1%), #2a3750 0);
}

:root[data-theme="dark"] .quiz-option.picked {
  background: rgba(104, 163, 255, 0.16);
}

:root[data-theme="dark"] .quiz-option.right {
  border-color: rgba(66, 154, 112, 0.44);
  background: rgba(40, 125, 92, 0.18);
}

:root[data-theme="dark"] .quiz-option.right span {
  border-color: #4fa779;
  background: #2d856f;
}

:root[data-theme="dark"] .quiz-option.bad {
  border-color: rgba(169, 80, 89, 0.48);
  background: rgba(255, 107, 115, 0.14);
}

:root[data-theme="dark"] .question-map div button.correct {
  border-color: rgba(66, 154, 112, 0.38);
  background: rgba(40, 125, 92, 0.18);
  color: #66c595;
}

:root[data-theme="dark"] .question-map div button.answered {
  border-color: rgba(86, 132, 190, 0.36);
  background: rgba(51, 91, 145, 0.18);
  color: #8fb4e4;
}

:root[data-theme="dark"] .question-map div button.partial {
  border-color: rgba(155, 113, 47, 0.48);
  background: linear-gradient(135deg, rgba(155, 113, 47, 0.22) 0 50%, #151e2b 50% 100%);
  color: #d1a352;
}

:root[data-theme="dark"] .question-map div button.wrong {
  border-color: rgba(169, 80, 89, 0.48);
  background: rgba(169, 80, 89, 0.16);
  color: #d9858b;
}

:root[data-theme="dark"] .question-map div button.active.correct {
  border-color: #3c9c70;
  background: #2b765c;
  color: #e6f5ee;
}

:root[data-theme="dark"] .question-map div button.active.partial {
  border-color: #b8893f;
  background: linear-gradient(135deg, #8b642d 0 50%, #2a2418 50% 100%);
  color: #f2d99f;
}

:root[data-theme="dark"] .question-map div button.active.wrong {
  border-color: #a95059;
  background: #743941;
  color: #f3d6da;
}

:root[data-theme="dark"] .vip-card p {
  color: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .study-kpis strong,
:root[data-theme="dark"] .exam-summary strong,
:root[data-theme="dark"] .quiz-progress span,
:root[data-theme="dark"] .quiz-option i,
:root[data-theme="dark"] .answer-box small,
:root[data-theme="dark"] .score-delta,
:root[data-theme="dark"] .card-head button,
:root[data-theme="dark"] .panel-title button,
:root[data-theme="dark"] .nav-item.active {
  color: #6f9bd5;
}

:root[data-theme="dark"] .app-search span,
:root[data-theme="dark"] .nav-item,
:root[data-theme="dark"] .exam-switch-item i {
  color: #65748c;
}

:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .bell,
:root[data-theme="dark"] .user-entry,
:root[data-theme="dark"] .edit-text,
:root[data-theme="dark"] .exam-switch-button,
:root[data-theme="dark"] .quiz-head button,
:root[data-theme="dark"] .practice-foot button,
:root[data-theme="dark"] .question-map button,
:root[data-theme="dark"] .chapter-row i,
:root[data-theme="dark"] .wrong-topic i,
:root[data-theme="dark"] .mine-list i,
:root[data-theme="dark"] .setting-line strong,
:root[data-theme="dark"] .card-head button,
:root[data-theme="dark"] .panel-title button {
  color: #8fb4e4;
  opacity: 1;
}

:root[data-theme="dark"] .user-entry {
  border-color: #25344a;
  background: #111b29;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .ui-icon {
  stroke: currentColor;
}

:root[data-theme="dark"] button:disabled,
:root[data-theme="dark"] button[disabled] {
  color: #6d7e96;
  opacity: 0.86;
}

:root[data-theme="dark"] .app-search input::placeholder {
  color: #6f7d94;
}

:root[data-theme="dark"] .study-card,
:root[data-theme="dark"] .recommend-panel,
:root[data-theme="dark"] .home-action,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .real-panel,
:root[data-theme="dark"] .real-card,
:root[data-theme="dark"] .path-card,
:root[data-theme="dark"] .memory-map-panel,
:root[data-theme="dark"] .memory-extract-panel,
:root[data-theme="dark"] .exam-switch-panel,
:root[data-theme="dark"] .mock-setup-card,
:root[data-theme="dark"] .mode-card,
:root[data-theme="dark"] .theme-card,
:root[data-theme="dark"] .chapter-panel,
:root[data-theme="dark"] .setting-card,
:root[data-theme="dark"] .history-panel,
:root[data-theme="dark"] .chart-panel,
:root[data-theme="dark"] .profile,
:root[data-theme="dark"] .mine-icons,
:root[data-theme="dark"] .mine-list,
:root[data-theme="dark"] .source-note,
:root[data-theme="dark"] .knowledge-panel,
:root[data-theme="dark"] .memory-card,
:root[data-theme="dark"] .score-card {
  border-color: #1f2a3d;
  background: #101723;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .mock-setting-card,
:root[data-theme="dark"] .mock-history-panel {
  border: 1px solid #1f2a3d;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .recommend-card {
  border-color: #243044;
  background: linear-gradient(180deg, #151e2b, #101723);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .home-action::after {
  background: linear-gradient(135deg, rgba(19, 29, 43, 0.96), rgba(14, 22, 34, 0.96));
  box-shadow: inset 0 0 0 1px rgba(49, 65, 88, 0.78);
}

:root[data-theme="dark"] .home-action::before {
  border-color: rgba(128, 153, 188, 0.66);
}

:root[data-theme="dark"] .home-action span,
:root[data-theme="dark"] .home-exam-pill span,
:root[data-theme="dark"] .tool-card span,
:root[data-theme="dark"] .path-head > span,
:root[data-theme="dark"] .real-empty span,
:root[data-theme="dark"] .memory-map-panel header em,
:root[data-theme="dark"] .memory-extract-panel header em,
:root[data-theme="dark"] .memory-extract-row > span,
:root[data-theme="dark"] .memory-token-row em,
:root[data-theme="dark"] .memory-order-flow b {
  background: #172335;
  color: #8fb4e4;
}

:root[data-theme="dark"] .memory-order-flow button {
  border-color: #20314a;
  background: linear-gradient(180deg, #111c2b, #0e1724);
  color: var(--ink);
}

:root[data-theme="dark"] .memory-order-flow em {
  color: var(--muted);
}

:root[data-theme="dark"] .home-action strong,
:root[data-theme="dark"] .home-greeting h1,
:root[data-theme="dark"] .home-section-head strong,
:root[data-theme="dark"] .tool-card strong,
:root[data-theme="dark"] .path-head strong,
:root[data-theme="dark"] .memory-map-panel header strong,
:root[data-theme="dark"] .memory-extract-panel header strong,
:root[data-theme="dark"] .memory-map-node span,
:root[data-theme="dark"] .memory-extract-row strong,
:root[data-theme="dark"] .real-card strong,
:root[data-theme="dark"] .real-empty strong {
  color: var(--ink);
}

:root[data-theme="dark"] .modern-study-card,
:root[data-theme="dark"] .home-action,
:root[data-theme="dark"] .home-exam-panel,
:root[data-theme="dark"] .modern-exam-summary article,
:root[data-theme="dark"] .home-exam-pill {
  border-color: #1f2a3d;
  background: linear-gradient(180deg, #101723, #0f1622);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .modern-study-top button,
:root[data-theme="dark"] .home-section-head button {
  background: #285b98;
  color: #dbe7f3;
  border-color: rgba(143, 180, 228, 0.24);
  box-shadow: none;
}

:root[data-theme="dark"] .modern-study-card::after {
  background: rgba(143, 180, 228, 0.07);
}

:root[data-theme="dark"] .modern-exam-summary {
  border-top-color: #1f2a3d;
}

:root[data-theme="dark"] .memory-map {
  background:
    radial-gradient(circle at 50% 50%, rgba(143, 180, 228, 0.08), transparent 28%),
    linear-gradient(180deg, #111a27, #0f1622);
}

:root[data-theme="dark"] .memory-map line {
  stroke: rgba(143, 180, 228, 0.18);
}

:root[data-theme="dark"] .memory-map-center,
:root[data-theme="dark"] .memory-map-node {
  border-color: #243044;
  background: #101723;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .memory-map-center strong,
:root[data-theme="dark"] .memory-map-node b,
:root[data-theme="dark"] .memory-map-panel header span,
:root[data-theme="dark"] .memory-extract-panel header span {
  color: #8fb4e4;
}

:root[data-theme="dark"] .memory-extract-row i {
  background: #285b98;
  color: #dbe7f3;
}

:root[data-theme="dark"] .path-metrics span,
:root[data-theme="dark"] .path-steps em,
:root[data-theme="dark"] .real-empty,
:root[data-theme="dark"] .real-filter-row button,
:root[data-theme="dark"] .path-actions button + button,
:root[data-theme="dark"] .memory-extract-row {
  border-color: #243044;
  background: #141d2b;
  color: #8aa0ba;
}

:root[data-theme="dark"] .real-filter-row .active,
:root[data-theme="dark"] .path-actions button {
  border-color: transparent;
  background: #285b98;
  color: #dbe7f3;
}

:root[data-theme="dark"] .login-hero > span,
:root[data-theme="dark"] .about-brand > span,
:root[data-theme="dark"] .real-card-actions button + button {
  border-color: #243044;
  background: #172335;
  color: #8fb4e4;
}

:root[data-theme="dark"] .member-status-card.is-member {
  border-color: rgba(54, 124, 102, 0.58);
  background: linear-gradient(135deg, #11251f, #121f2c);
}

:root[data-theme="dark"] .shortcut span,
:root[data-theme="dark"] .mine-icons span,
:root[data-theme="dark"] .recommend-card span,
:root[data-theme="dark"] .memory-hero span {
  color: #c5d6e8;
  box-shadow: none;
}

:root[data-theme="dark"] .teal {
  background: linear-gradient(135deg, #1d6b62, #164f4a);
}

:root[data-theme="dark"] .blue {
  background: linear-gradient(135deg, #285b98, #1e477c);
}

:root[data-theme="dark"] .indigo {
  background: linear-gradient(135deg, #314f9a, #283d78);
}

:root[data-theme="dark"] .orange {
  background: linear-gradient(135deg, #7b5522, #63421b);
}

:root[data-theme="dark"] .coral {
  background: linear-gradient(135deg, #88484e, #6f363d);
}

:root[data-theme="dark"] .blue-card {
  background: linear-gradient(135deg, #1d4d86, #2a5f98);
}

:root[data-theme="dark"] .green-card {
  background: linear-gradient(135deg, #1d6a62, #247a70);
}

:root[data-theme="dark"] .plan-banner,
:root[data-theme="dark"] .mock-hero,
:root[data-theme="dark"] .memory-hero,
:root[data-theme="dark"] .select-blue .select-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(196, 214, 235, 0.10), transparent 30%),
    linear-gradient(135deg, #173a66, #244f7d);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .mock-hero {
  background:
    radial-gradient(circle at 76% 18%, rgba(196, 214, 235, 0.10), transparent 28%),
    linear-gradient(135deg, #153963, #204a78);
}

:root[data-theme="dark"] .select-green .select-hero {
  background: linear-gradient(135deg, #174f4b, #216760);
}

:root[data-theme="dark"] .plan-banner p,
:root[data-theme="dark"] .select-hero p,
:root[data-theme="dark"] .mock-hero p,
:root[data-theme="dark"] .memory-hero p {
  color: rgba(219, 231, 243, 0.76);
}

:root[data-theme="dark"] .plan-banner button {
  background: #d7e3f0;
  color: #173a66;
}

:root[data-theme="dark"] .book-figure span,
:root[data-theme="dark"] .book-figure i,
:root[data-theme="dark"] .shield,
:root[data-theme="dark"] .building,
:root[data-theme="dark"] .clipboard,
:root[data-theme="dark"] .exam-card-art,
:root[data-theme="dark"] .exam-card-watermark {
  background: rgba(203, 218, 236, 0.14);
}

:root[data-theme="dark"] .clipboard {
  box-shadow: -12px 16px 28px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .setting-icon {
  background: #17243a;
  color: #8fb4e4;
}

:root[data-theme="dark"] .mock-setting-line:nth-child(2) .setting-icon,
:root[data-theme="dark"] .mock-setting-line:nth-child(4) .setting-icon {
  background: #14302e;
  color: #6fbdb7;
}

:root[data-theme="dark"] .mock-setting-line em,
:root[data-theme="dark"] .mock-setting-line > i {
  color: #93a4bd;
}

:root[data-theme="dark"] .pill-group button {
  border-color: #243044;
  background: #151e2b;
  color: #93a4bd;
}

:root[data-theme="dark"] .pill-group button.active {
  border-color: rgba(143, 180, 228, 0.42);
  background: rgba(51, 91, 145, 0.24);
  color: #b7cdeb;
}

:root[data-theme="dark"] .mock-setup-card > .primary-wide {
  background: #315c94;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .exam-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .exam-card.active {
  outline-color: rgba(203, 218, 236, 0.34);
}

:root[data-theme="dark"] .exam-card-icon {
  background: rgba(203, 218, 236, 0.15);
  color: #c5d6e8;
  box-shadow: inset 0 0 0 1px rgba(203, 218, 236, 0.12);
}

:root[data-theme="dark"] .exam-card-art,
:root[data-theme="dark"] .exam-card-watermark {
  color: rgba(213, 226, 240, 0.66);
}

:root[data-theme="dark"] .exam-switch-button {
  background: rgba(51, 91, 145, 0.18);
  color: #8fb4e4;
}

:root[data-theme="dark"] .exam-switch-backdrop {
  background: rgba(2, 8, 18, 0.62);
}

:root[data-theme="dark"] .exam-switch-item {
  border-color: #243044;
  box-shadow: none;
}

:root[data-theme="dark"] .exam-switch-item > span {
  background: #17243a;
  color: #7fa7d8;
}

:root[data-theme="dark"] .exam-switch-item.active {
  border-color: rgba(86, 132, 190, 0.38);
  background: rgba(51, 91, 145, 0.18);
}

:root[data-theme="dark"] .exam-switch-item.active i {
  color: #8fb4e4;
}

:root[data-theme="dark"] .report-backdrop {
  background: rgba(2, 8, 18, 0.66);
}

:root[data-theme="dark"] .report-panel {
  border: 1px solid rgba(139, 162, 190, 0.20);
  background: var(--card);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .report-score {
  background: linear-gradient(135deg, #111c2b, #172337);
}

:root[data-theme="dark"] .report-score em,
:root[data-theme="dark"] .report-panel header strong,
:root[data-theme="dark"] .report-metrics strong {
  color: #e5edf8;
}

:root[data-theme="dark"] .report-metrics div {
  border-color: rgba(133, 156, 184, 0.18);
  background: var(--card-strong);
}

:root[data-theme="dark"] .recommend-card span {
  background: linear-gradient(135deg, #2c5f96, #234a78);
}

:root[data-theme="dark"] .memory-hero span {
  background: rgba(203, 218, 236, 0.16);
}

:root[data-theme="dark"] .graph-list span,
:root[data-theme="dark"] .memory-card > span,
:root[data-theme="dark"] .chapter-row > span {
  background: #17243a;
  color: #7fa7d8;
}

:root[data-theme="dark"] .current-exam-strip {
  border-color: #223049;
  background: linear-gradient(180deg, #121c2b, #101723);
}

:root[data-theme="dark"] .current-exam-strip > span,
:root[data-theme="dark"] .chapter-row-v2 .chapter-badge {
  background: color-mix(in srgb, var(--chapter-color, #8fb4e4) 18%, #101723);
  color: #8fb4e4;
  box-shadow: inset 0 0 0 1px rgba(143, 180, 228, 0.12);
}

:root[data-theme="dark"] .real-score {
  background: rgba(51, 91, 145, 0.18);
  color: #8fb4e4;
}

:root[data-theme="dark"] .real-score-detail {
  color: #8aa0ba;
}

:root[data-theme="dark"] .current-exam-strip strong,
:root[data-theme="dark"] .chapter-main strong {
  color: #dbe7f3;
}

:root[data-theme="dark"] .chapter-row-v2 {
  border-color: #1f2a3d;
  background: linear-gradient(180deg, #121c2b, #101723);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .chapter-main small em,
:root[data-theme="dark"] .chapter-rate {
  color: #8fb4e4;
}

:root[data-theme="dark"] .chapter-rate {
  background: #172335;
}

:root[data-theme="dark"] .chapter-main small b {
  color: #7f91a8;
}

:root[data-theme="dark"] .chapter-main small em::after {
  color: #4b5d73;
}

:root[data-theme="dark"] .chapter-progress {
  background: #1d2a40;
}

:root[data-theme="dark"] .chapter-progress i {
  background: linear-gradient(90deg, #315c94, #3a817b);
}

:root[data-theme="dark"] .chapter-row-v2 .chapter-arrow {
  color: #667992;
}

:root[data-theme="dark"] .graph-wrap {
  background:
    radial-gradient(circle at 20% 20%, rgba(70, 112, 168, 0.10), transparent 26%),
    radial-gradient(circle at 78% 30%, rgba(66, 130, 124, 0.10), transparent 26%),
    var(--card-strong);
}

:root[data-theme="dark"] .graph-node circle,
:root[data-theme="dark"] .graph-node.material circle {
  fill: #17243a;
  stroke: #6f9bd5;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

:root[data-theme="dark"] .graph-node.management circle,
:root[data-theme="dark"] .graph-node.construction circle {
  fill: #152d2c;
  stroke: #5ba6a6;
}

:root[data-theme="dark"] .graph-node.technology circle,
:root[data-theme="dark"] .graph-node.specialty circle {
  fill: #30271a;
  stroke: #b98a48;
}

:root[data-theme="dark"] .graph-node.measurement circle {
  fill: #20233f;
  stroke: #8a93c8;
}

:root[data-theme="dark"] .exam-row.active,
:root[data-theme="dark"] .quiz-option.picked {
  border-color: rgba(86, 132, 190, 0.34);
  background: rgba(51, 91, 145, 0.18);
  box-shadow: none;
}

:root[data-theme="dark"] .quiz-option.picked span {
  border-color: #507eb8;
  background: #315c94;
  color: #dbe7f3;
}

:root[data-theme="dark"] .quiz-option.right {
  border-color: rgba(66, 154, 112, 0.44);
  background: rgba(40, 125, 92, 0.18);
  box-shadow: none;
}

:root[data-theme="dark"] .quiz-option.right span {
  border-color: #4fa779;
  background: #2d856f;
  color: #e0f3e9;
}

:root[data-theme="dark"] .quiz-option.bad {
  border-color: rgba(169, 80, 89, 0.42);
  background: rgba(126, 55, 63, 0.20);
}

:root[data-theme="dark"] .quiz-option.bad span {
  border-color: #9e5058;
  background: #7a3a42;
  color: #f0d4d8;
}

:root[data-theme="dark"] .quiz-progress i {
  background: #1f2a3d;
}

:root[data-theme="dark"] .quiz-progress b,
:root[data-theme="dark"] .primary-wide,
:root[data-theme="dark"] .memory-card button {
  background: #315c94;
}

:root[data-theme="dark"] .primary-wide {
  color: #dbe7f3;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .answer-box em {
  color: #5ba6a6;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 374px) {
  .shortcut-grid {
    gap: 6px;
  }

  .shortcut em,
  .nav-item {
    font-size: 9px;
  }

  .study-kpis strong {
    font-size: 16px;
  }
}

@media (min-width: 760px) {
  body {
    padding: 22px;
  }

  .app-shell {
    width: min(100%, 960px);
    min-height: calc(100vh - 36px);
    border: 1px solid rgba(226, 236, 249, 0.9);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(45, 84, 142, 0.14);
  }

  .main {
    padding-bottom: calc(var(--nav-height) + 28px);
  }

  .page {
    padding: 0 22px 24px;
  }

  .page.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .page > .app-title,
  .page > .block-title,
  .page > .tabs,
  .page > .range-tabs,
  .page > .wrong-actions,
  .page > .source-note {
    grid-column: 1 / -1;
  }

  #page-home > .app-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #page-home > .home-hero-modern {
    grid-column: 1;
    grid-row: 2;
  }

  #page-home > .study-card {
    grid-column: 1;
    grid-row: 3;
  }

  #page-home > .home-action-grid {
    grid-column: 1;
    grid-row: 4;
  }

  #page-home .home-action {
    min-height: 86px;
    padding: 13px;
  }

  #page-home .home-action span {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  #page-home .home-action strong {
    font-size: 16px;
  }

  #page-home .home-action small b {
    font-size: 14px;
  }

  #page-home > .home-exam-panel {
    grid-column: 2;
    grid-row: 2 / span 4;
    margin-top: 0;
  }

  .bottom-nav {
    right: auto;
    left: 50%;
    bottom: 22px;
    width: min(calc(100% - 44px), 960px);
    border: 1px solid rgba(226, 236, 249, 0.95);
    border-radius: 16px;
    transform: translateX(-50%);
    overflow: hidden;
  }

  .practice-overlay {
    padding: 22px;
    background: rgba(238, 245, 255, 0.88);
  }

  .practice-shell {
    width: min(100%, 760px);
    height: calc(100vh - 44px);
    border: 1px solid rgba(226, 236, 249, 0.95);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(45, 84, 142, 0.16);
    overflow: hidden;
  }

  .practice-foot {
    right: auto;
    left: 50%;
    bottom: 22px;
    width: min(calc(100% - 44px), 760px);
    border: 1px solid rgba(226, 236, 249, 0.95);
    border-radius: 14px;
    transform: translateX(-50%);
    overflow: hidden;
  }

  .question-map {
    max-width: 720px;
  }
}

@media (min-width: 760px) {
  body {
    padding: 18px;
  }

  .app-shell {
    width: min(100%, 780px);
    min-height: calc(100vh - 36px);
    border-radius: 20px;
  }

  .page.active {
    display: block;
  }

  #page-home.page.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    gap: 16px;
    align-items: start;
  }

  #page-home > .app-title,
  #page-home > .home-hero-modern {
    grid-column: 1 / -1;
  }

  #page-home > .study-card,
  #page-home > .home-action-grid {
    grid-column: 1;
  }

  #page-home > .home-exam-panel {
    grid-column: 2;
    grid-row: 3 / span 2;
    margin-top: 0;
  }

  .home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-tools,
  .stats-grid,
  .memory-grid,
  .real-list,
  .path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mine-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mock-setup-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .exam-switch-panel,
  .report-panel {
    width: min(100%, 720px);
    border-radius: 20px 20px 0 0;
  }
}

@media (min-width: 1100px) {
  body {
    padding: 24px 32px;
  }

  .app-shell {
    width: min(calc(100vw - 64px), 1180px);
    min-height: calc(100vh - 48px);
    padding-left: 92px;
    border-radius: 24px;
  }

  .main {
    padding-bottom: 28px;
  }

  .page {
    padding: 0 30px 32px;
  }

  .page.active {
    max-width: 940px;
    margin: 0 auto;
  }

  .app-title {
    min-height: 60px;
    padding-top: 18px;
  }

  .app-title strong {
    font-size: 17px;
  }

  #page-home.page.active,
  #page-practice.page.active,
  #page-mock.page.active,
  #page-stats.page.active,
  #page-mine.page.active,
  #page-knowledge.page.active,
  #page-memory.page.active,
  #page-real.page.active {
    max-width: none;
    margin: 0;
  }

  #page-home.page.active {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 22px;
  }

  #page-home > .app-title {
    grid-column: 1 / -1;
  }

  #page-home > .home-hero-modern {
    grid-column: 1;
    grid-row: 2;
  }

  #page-home > .study-card {
    grid-column: 1;
    grid-row: 3;
  }

  #page-home > .home-action-grid {
    grid-column: 1;
    grid-row: 4;
  }

  #page-home > .home-exam-panel {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: stretch;
  }

  .home-hero-modern {
    padding-top: 2px;
  }

  .home-greeting h1 {
    font-size: 36px;
  }

  .modern-study-card {
    min-height: 190px;
  }

  .home-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .home-action {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 142px;
    padding: 18px;
  }

  .home-action span {
    grid-row: auto;
    width: 52px;
    height: 52px;
  }

  .home-action strong,
  .home-action small {
    grid-column: 1;
  }

  .exam-card {
    min-height: 124px;
    padding: 24px;
  }

  .exam-summary {
    margin-top: 14px;
  }

  #page-practice.page.active {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  #page-practice > .app-title {
    grid-column: 1 / -1;
  }

  #page-practice > .mode-card,
  #page-practice > .practice-tools {
    grid-column: 1;
  }

  #page-practice > .chapter-panel {
    grid-column: 2;
    grid-row: 2 / span 3;
    margin-top: 0;
  }

  #page-practice .practice-tools {
    grid-template-columns: 1fr;
  }

  #page-practice .tool-card {
    min-height: 118px;
  }

  #page-practice .chapter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #page-practice .chapter-row-v2 {
    min-height: 92px;
  }

  #page-mock.page.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
  }

  #page-mock > .app-title {
    grid-column: 1 / -1;
  }

  #page-mock > .mock-setup-card {
    grid-column: 1;
  }

  #page-mock > .mock-section-title,
  #page-mock > .mock-history-panel {
    grid-column: 2;
  }

  #page-mock > .mock-section-title {
    margin-top: 0;
  }

  #page-stats.page.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  #page-stats > .app-title,
  #page-stats > .range-tabs,
  #page-stats > .stats-grid {
    grid-column: 1 / -1;
  }

  #page-stats .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #page-mine.page.active {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  #page-mine > .app-title,
  #page-mine > .profile,
  #page-mine > .auth-card,
  #page-mine > .theme-card {
    grid-column: 1;
  }

  #page-mine > .mine-icons,
  #page-mine > .mine-list,
  #page-mine > .source-note {
    grid-column: 2;
  }

  #page-mine > .mine-icons {
    grid-row: 2;
  }

  #page-mine > .mine-list {
    grid-row: 3 / span 3;
  }

  #page-real .real-list,
  #page-knowledge .path-list,
  #page-memory .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #page-memory .memory-extract-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    top: 50%;
    right: auto;
    bottom: auto;
    left: max(24px, calc((100vw - 1180px) / 2 + 20px));
    width: 72px;
    min-height: auto;
    padding: 10px;
    grid-template-columns: 1fr;
    grid-auto-rows: 66px;
    border: 1px solid rgba(226, 236, 249, 0.95);
    border-radius: 22px;
    transform: translateY(-50%);
  }

  .nav-item {
    gap: 5px;
    border-radius: 16px;
  }

  .nav-item.active {
    background: #edf5ff;
  }

  .practice-overlay {
    padding: 24px 32px;
  }

  .practice-shell {
    width: min(calc(100vw - 64px), 1040px);
    height: calc(100vh - 48px);
    border-radius: 24px;
  }

  .practice-body {
    padding: 28px 360px 112px 38px;
  }

  .quiz-card h2 {
    font-size: 20px;
    line-height: 1.7;
  }

  .quiz-options {
    gap: 14px;
  }

  .quiz-option {
    min-height: 66px;
    padding: 15px;
  }

  .quiz-option p {
    font-size: 15px;
  }

  .question-map {
    right: max(42px, calc((100vw - 1040px) / 2 + 28px));
    bottom: 92px;
    left: auto;
    width: 318px;
    max-width: 318px;
  }

  .question-map div {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-height: min(52vh, 420px);
  }

  .practice-foot {
    width: min(calc(100vw - 64px), 1040px);
    bottom: 24px;
    border-radius: 18px;
  }

  .exam-switcher,
  .report-dialog {
    align-items: center;
    justify-items: center;
    padding: 32px;
  }

  .exam-switch-panel,
  .report-panel {
    width: min(720px, calc(100vw - 64px));
    border-radius: 22px;
  }
}

/* Multi-platform responsive layer: mobile app, tablet split view, desktop workspace */
@media (min-width: 760px) and (max-width: 1099px) {
  body {
    padding: 18px;
  }

  .app-shell {
    width: min(100%, 960px);
    min-height: calc(100vh - 36px);
    padding-left: 0;
    border: 1px solid rgba(218, 231, 248, 0.92);
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(38, 82, 140, 0.14);
  }

  .main {
    padding-bottom: calc(var(--nav-height) + 30px);
  }

  .page {
    padding: 0 24px 28px;
  }

  .page.active {
    display: block;
    max-width: none;
    margin: 0;
  }

  #page-home.page.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 18px;
    align-items: start;
  }

  #page-home > .app-title,
  #page-home > .home-hero-modern {
    grid-column: 1 / -1;
  }

  #page-home > .study-card,
  #page-home > .home-action-grid {
    grid-column: 1;
  }

  #page-home > .home-exam-panel {
    grid-column: 2;
    grid-row: 3 / span 2;
    margin-top: 0;
  }

  .home-action-grid,
  .practice-tools,
  .real-list,
  .memory-grid,
  .path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    top: auto;
    right: auto;
    bottom: 18px;
    left: 50%;
    width: min(calc(100% - 36px), 960px);
    min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    padding: 8px 10px calc(7px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: auto;
    border: 1px solid rgba(218, 231, 248, 0.95);
    border-radius: 18px;
    transform: translateX(-50%);
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
  }

  .practice-overlay {
    padding: 18px;
  }

  .practice-shell {
    width: min(100%, 900px);
    height: calc(100vh - 36px);
    border: 1px solid rgba(218, 231, 248, 0.95);
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(38, 82, 140, 0.16);
    overflow: hidden;
  }

  .practice-foot {
    right: auto;
    left: 50%;
    bottom: 18px;
    width: min(calc(100% - 36px), 900px);
    border: 1px solid rgba(218, 231, 248, 0.95);
    border-radius: 16px;
    transform: translateX(-50%);
  }
}

@media (min-width: 1100px) {
  body {
    min-height: 100vh;
    padding: 24px;
  }

  .app-shell {
    position: relative;
    width: min(calc(100vw - 48px), 1440px);
    min-height: calc(100vh - 48px);
    padding-left: 220px;
    border: 1px solid rgba(218, 231, 248, 0.92);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(38, 82, 140, 0.16);
  }

  .main {
    min-height: calc(100vh - 48px);
    padding-bottom: 0;
  }

  .page {
    padding: 0 38px 38px;
  }

  .page.active {
    max-width: none;
    margin: 0;
  }

  .app-title {
    min-height: 72px;
    padding-top: 20px;
  }

  .app-title strong {
    font-size: 18px;
  }

  .bottom-nav {
    top: 24px;
    right: auto;
    bottom: 24px;
    left: max(24px, calc((100vw - 1440px) / 2 + 24px));
    width: 188px;
    min-height: auto;
    padding: 92px 14px 18px;
    grid-template-columns: 1fr;
    grid-auto-rows: 56px;
    align-content: start;
    gap: 8px;
    border: 1px solid rgba(218, 231, 248, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 58px rgba(45, 84, 142, 0.14);
    transform: none;
  }

  .bottom-nav::before {
    content: "刷题助手";
    position: absolute;
    top: 24px;
    left: 20px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
  }

  .bottom-nav::after {
    content: "PC / 平板 / 手机";
    position: absolute;
    top: 54px;
    left: 20px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .nav-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 10px;
    padding: 0 12px;
    border-radius: 16px;
    color: #6d7d94;
    font-size: 13px;
    text-align: left;
  }

  .nav-item span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(237, 245, 255, 0.78);
  }

  .nav-item em {
    font-size: 13px;
  }

  .nav-item.active {
    background: #edf5ff;
    color: #126fff;
  }

  .nav-item.active span {
    background: #126fff;
    color: #fff;
  }

  #page-home.page.active {
    display: grid;
    grid-template-columns: minmax(560px, 1fr) minmax(420px, 480px);
    gap: 24px;
    align-items: start;
  }

  #page-home > .app-title {
    grid-column: 1 / -1;
  }

  #page-home > .home-hero-modern {
    grid-column: 1;
    grid-row: 2;
  }

  #page-home > .study-card {
    grid-column: 1;
    grid-row: 3;
  }

  #page-home > .home-action-grid {
    grid-column: 1;
    grid-row: 4;
  }

  #page-home > .home-exam-panel {
    position: sticky;
    top: 24px;
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: start;
    margin-top: 0;
  }

  .home-hero-modern {
    min-height: 112px;
    align-items: end;
  }

  .home-greeting h1 {
    font-size: 38px;
  }

  .home-greeting p {
    font-size: 14px;
  }

  .modern-study-card {
    min-height: 194px;
    padding: 24px;
  }

  .modern-study-top strong {
    font-size: 24px;
  }

  .study-row {
    grid-template-columns: 92px 1fr;
    gap: 22px;
  }

  .progress-ring {
    width: 86px;
    height: 86px;
  }

  .study-kpis strong {
    font-size: 24px;
  }

  .home-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .home-action {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 160px;
    padding: 20px;
  }

  .home-action span {
    grid-row: auto;
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .home-action strong,
  .home-action small {
    grid-column: 1;
  }

  .home-action strong {
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.22;
    white-space: normal;
  }

  .home-action small {
    width: auto;
    max-width: 100%;
    font-size: 13px;
  }

  .home-action small b {
    font-size: 17px;
  }

  .exam-card {
    min-height: 136px;
    padding: 26px;
  }

  .exam-card h3 {
    font-size: 28px;
  }

  .exam-card p {
    font-size: 16px;
  }

  .exam-card-art {
    width: 88px;
    height: 88px;
    border-radius: 28px;
  }

  .exam-summary article {
    min-height: 86px;
    padding: 18px 14px;
  }

  .exam-summary strong {
    font-size: 20px;
  }

  #page-practice.page.active {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  #page-practice > .app-title {
    grid-column: 1 / -1;
  }

  #page-practice > .mode-card,
  #page-practice > .practice-tools {
    grid-column: 1;
  }

  #page-practice > .chapter-panel {
    grid-column: 2;
    grid-row: 2 / span 3;
    margin-top: 0;
  }

  #page-practice .mode-card {
    align-items: stretch;
    flex-direction: column;
  }

  #page-practice .practice-tools {
    grid-template-columns: 1fr;
  }

  #page-practice .tool-card {
    min-height: 122px;
    padding: 18px;
  }

  #page-practice .chapter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #page-practice .chapter-row-v2 {
    min-height: 104px;
  }

  #page-mock.page.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
  }

  #page-mock > .app-title {
    grid-column: 1 / -1;
  }

  #page-mock > .mock-setup-card {
    grid-column: 1;
  }

  #page-mock > .mock-section-title,
  #page-mock > .mock-history-panel {
    grid-column: 2;
  }

  #page-mock > .mock-section-title {
    margin-top: 0;
  }

  .mock-hero {
    min-height: 156px;
    padding: 32px 32px 52px;
  }

  .mock-hero h2 {
    font-size: 30px;
  }

  #page-stats.page.active {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  #page-stats > .app-title,
  #page-stats > .range-tabs,
  #page-stats > .stats-grid {
    grid-column: 1 / -1;
  }

  #page-stats .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #page-stats > .chart-panel:nth-of-type(3) {
    grid-column: span 5;
  }

  #page-stats > .chart-panel:nth-of-type(4) {
    grid-column: span 7;
  }

  #page-stats > .chart-panel:nth-of-type(5) {
    grid-column: 1 / -1;
  }

  .heat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #page-mine.page.active {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  #page-mine > .app-title,
  #page-mine > .profile,
  #page-mine > .auth-card,
  #page-mine > .theme-card {
    grid-column: 1;
  }

  #page-mine > .mine-icons,
  #page-mine > .mine-list,
  #page-mine > .source-note {
    grid-column: 2;
  }

  #page-mine > .mine-icons {
    grid-row: 2;
  }

  #page-mine > .mine-list {
    grid-row: 3 / span 3;
  }

  #page-real .real-list,
  #page-knowledge .path-list,
  #page-memory .memory-grid,
  #page-memory .memory-extract-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #page-memory.page.active {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    align-items: start;
  }

  #page-memory > .app-title,
  #page-memory > .memory-hero,
  #page-memory > .memory-actions {
    grid-column: 1;
  }

  #page-memory > .memory-map-panel,
  #page-memory > .memory-extract-panel,
  #page-memory > .memory-grid {
    grid-column: 2;
  }

  #page-real.page.active,
  #page-knowledge.page.active {
    display: grid;
    grid-template-columns: 1fr;
  }

  .practice-overlay {
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(238, 245, 255, 0.9);
  }

  .practice-overlay[hidden] {
    display: none;
  }

  .practice-shell {
    width: min(calc(100vw - 48px), 1180px);
    height: calc(100vh - 48px);
    border: 1px solid rgba(218, 231, 248, 0.95);
    border-radius: 26px;
    box-shadow: 0 28px 82px rgba(38, 82, 140, 0.18);
    overflow: hidden;
  }

  .quiz-head {
    grid-template-columns: 56px minmax(0, 1fr) 220px;
    height: 56px;
    padding: 0 22px;
  }

  .quiz-progress {
    grid-template-columns: 88px minmax(0, 1fr) 80px;
    padding: 10px 28px 14px;
  }

  .practice-body {
    padding: 34px 410px 118px 46px;
  }

  .quiz-card h2 {
    font-size: 21px;
    line-height: 1.72;
  }

  .quiz-options {
    gap: 14px;
  }

  .quiz-option {
    min-height: 68px;
    padding: 16px;
  }

  .quiz-option p {
    font-size: 15px;
  }

  .question-map {
    right: max(42px, calc((100vw - 1180px) / 2 + 28px));
    bottom: 102px;
    left: auto;
    width: 342px;
    max-width: 342px;
  }

  .question-map div {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-height: min(54vh, 456px);
  }

  .practice-foot {
    right: auto;
    left: 50%;
    bottom: 24px;
    width: min(calc(100vw - 48px), 1180px);
    padding: 12px 24px;
    border: 1px solid rgba(218, 231, 248, 0.95);
    border-radius: 18px;
    transform: translateX(-50%);
  }

  .exam-switcher,
  .report-dialog {
    align-items: center;
    justify-items: center;
    padding: 32px;
  }

  .exam-switch-panel,
  .report-panel {
    width: min(760px, calc(100vw - 64px));
    border-radius: 24px;
  }
}

@media (min-width: 1440px) {
  .app-shell {
    width: min(calc(100vw - 64px), 1520px);
    padding-left: 236px;
  }

  .bottom-nav {
    left: max(32px, calc((100vw - 1520px) / 2 + 32px));
    width: 200px;
  }

  #page-home.page.active {
    grid-template-columns: minmax(640px, 1fr) 500px;
  }

  #page-practice.page.active {
    grid-template-columns: 360px minmax(0, 1fr);
  }
}

:root[data-theme="dark"] .bottom-nav::before {
  color: var(--ink);
}

:root[data-theme="dark"] .bottom-nav::after {
  color: var(--muted);
}

@media (min-width: 1100px) {
  :root[data-theme="dark"] .bottom-nav {
    border-color: #243044;
    background: rgba(10, 16, 27, 0.92);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
  }

  :root[data-theme="dark"] .nav-item span {
    background: rgba(49, 92, 148, 0.20);
  }

  :root[data-theme="dark"] .nav-item.active {
    background: rgba(49, 92, 148, 0.28);
  }

  :root[data-theme="dark"] .nav-item.active span {
    background: #315c94;
  }
}
