:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d7dee8;
  --paper: #ffffff;
  --mist: #f6f8fb;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --brand-soft: #d9f7f1;
  --accent: #b45309;
  --accent-soft: #fff3d4;
  --blue: #2458d3;
  --blue-soft: #e2eaff;
  --bad: #be123c;
  --bad-soft: #ffe4e9;
  --good: #047857;
  --good-soft: #dff7ea;
  --shadow: 0 18px 46px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  --content: min(1180px, calc(100vw - 36px));
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--app-bg, linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 340px), var(--mist));
}

body.book-czsx {
  --ink: #243041;
  --muted: #64748b;
  --line: #d8e3ef;
  --paper: #ffffff;
  --mist: #f7fbff;
  --brand: #158f8b;
  --brand-strong: #0f6865;
  --brand-soft: #dff8f6;
  --accent: #d97706;
  --accent-soft: #fff0c7;
  --blue: #2f6fe4;
  --blue-soft: #e7efff;
  --shadow: 0 16px 38px rgba(31, 80, 122, 0.12);
  --app-bg:
    linear-gradient(90deg, rgba(47, 111, 228, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 143, 139, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #fcfeff 0%, #f3fbfb 48%, #fff8e6 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

body.book-zjsx {
  --ink: #20261f;
  --muted: #6d756a;
  --line: #d8dbcf;
  --paper: #fffef8;
  --mist: #f3f3e8;
  --brand: #5b7f3a;
  --brand-strong: #344f26;
  --brand-soft: #e5efd9;
  --accent: #a75f2b;
  --accent-soft: #f8e4d3;
  --blue: #1d6f80;
  --blue-soft: #dff1ef;
  --shadow: 0 14px 32px rgba(64, 72, 53, 0.14);
  --app-bg:
    linear-gradient(135deg, rgba(52, 79, 38, 0.08), transparent 320px),
    repeating-linear-gradient(90deg, rgba(32, 38, 31, 0.045) 0 1px, transparent 1px 72px),
    #f3f3e8;
}

body.book-cet4 {
  --ink: #202b3d;
  --muted: #66738a;
  --line: #dbe3f1;
  --paper: #ffffff;
  --mist: #f7f9fe;
  --brand: #315fd6;
  --brand-strong: #2346a8;
  --brand-soft: #e6edff;
  --accent: #d84f6a;
  --accent-soft: #ffe7ec;
  --blue: #315fd6;
  --blue-soft: #e6edff;
  --shadow: 0 18px 42px rgba(49, 95, 214, 0.13);
  --app-bg:
    linear-gradient(180deg, rgba(49, 95, 214, 0.07), transparent 360px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(49, 95, 214, 0.06) 31px 32px),
    #f8fbff;
}

body.book-ncre {
  --ink: #172028;
  --muted: #61717c;
  --line: #d4e1e3;
  --paper: #fbfeff;
  --mist: #eef7f7;
  --brand: #087f8c;
  --brand-strong: #075b63;
  --brand-soft: #dff7f9;
  --accent: #6a5acd;
  --accent-soft: #ece8ff;
  --blue: #087f8c;
  --blue-soft: #dff7f9;
  --shadow: 0 16px 38px rgba(8, 127, 140, 0.12);
  --app-bg:
    radial-gradient(circle at 85% 0%, rgba(106, 90, 205, 0.12), transparent 26rem),
    linear-gradient(90deg, rgba(8, 127, 140, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 127, 140, 0.05) 1px, transparent 1px),
    #f4fbfb;
  background-size: auto, 48px 48px, 48px 48px, auto;
}

body.book-cpa {
  --ink: #202225;
  --muted: #666b73;
  --line: #d6d2ca;
  --paper: #ffffff;
  --mist: #f5f6f7;
  --brand: #8a2635;
  --brand-strong: #5d1825;
  --brand-soft: #f7e8eb;
  --accent: #b7892f;
  --accent-soft: #fff4d8;
  --blue: #176b78;
  --blue-soft: #e2f2f3;
  --shadow: 0 12px 30px rgba(32, 34, 37, 0.11);
  --radius: 4px;
  --app-bg:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(32, 34, 37, 0.045) 39px 40px),
    linear-gradient(90deg, #f8f9fa 0 72%, #f1f4f3 72% 100%);
}

body.book-jkgl {
  --ink: #17332d;
  --muted: #5e716b;
  --line: #d2e3de;
  --paper: #ffffff;
  --mist: #f1f8f6;
  --brand: #168067;
  --brand-strong: #0e5948;
  --brand-soft: #dff5ed;
  --accent: #d65d55;
  --accent-soft: #ffe9e5;
  --blue: #2477a6;
  --blue-soft: #e3f2fa;
  --shadow: 0 16px 36px rgba(22, 128, 103, 0.11);
  --app-bg:
    linear-gradient(90deg, rgba(36, 119, 166, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 128, 103, 0.045) 1px, transparent 1px),
    #f5faf8;
  background-size: 56px 56px, 56px 56px, auto;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(49, 95, 214, 0.28);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(215, 222, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #1d9c89);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  min-width: 168px;
}

.main {
  flex: 1;
  width: 100%;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 30px 0;
}

.hero-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(125deg, #12312e 0%, #0f766e 56%, #1f4ba8 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 74px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-grid {
  width: var(--content);
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.55fr);
  gap: 34px;
  align-items: center;
}

.hero-grid h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-grid p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 20px;
}

.hero-band .secondary-button,
.hero-band .ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(10px);
}

.hero-band .secondary-button:hover,
.hero-band .ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.book-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.book-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  background: #e5e7eb;
}

body.book-czsx .topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(21, 143, 139, 0.2);
}

body.book-czsx .brand-mark {
  background: #fff;
  color: var(--brand-strong);
  border: 2px solid var(--brand);
  box-shadow: inset 0 -5px 0 rgba(255, 240, 199, 0.9);
}

body.book-czsx .nav a.active,
body.book-czsx .nav a:hover {
  color: var(--brand-strong);
  background: linear-gradient(180deg, #efffff, var(--brand-soft));
}

body.book-czsx .hero-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(47, 111, 228, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 143, 139, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #eafcff 58%, #fff2c2 100%);
  background-size: 42px 42px, 42px 42px, auto;
  border-bottom-color: rgba(21, 143, 139, 0.18);
}

body.book-czsx .hero-band::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, #158f8b 0 42px, #2f6fe4 42px 84px, #d97706 84px 126px);
}

body.book-czsx .hero-grid p {
  color: #475569;
}

body.book-czsx .hero-band .secondary-button,
body.book-czsx .hero-band .ghost-button,
body.book-cet4 .hero-band .secondary-button,
body.book-cet4 .hero-band .ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(49, 95, 214, 0.18);
}

body.book-czsx .hero-band .eyebrow {
  color: var(--brand-strong);
}

body.book-czsx .book-preview {
  align-items: center;
  transform: rotate(-1.2deg);
}

body.book-czsx .book-preview img {
  border: 6px solid #fff;
  box-shadow: 0 16px 34px rgba(31, 80, 122, 0.18);
}

body.book-czsx .book-preview img:nth-child(2),
body.book-czsx .book-preview img:nth-child(3) {
  transform: translateY(18px) rotate(3deg);
}

body.book-czsx .stat,
body.book-czsx .panel,
body.book-czsx .course-item,
body.book-czsx .practice-item,
body.book-czsx .paper-card,
body.book-czsx .lesson-section,
body.book-czsx .question,
body.book-czsx .review-card,
body.book-czsx .history-row,
body.book-czsx .empty-state {
  border-color: rgba(47, 111, 228, 0.14);
}

body.book-czsx .stat {
  background: linear-gradient(180deg, #fff, #f1fbff);
  box-shadow: 0 10px 24px rgba(47, 111, 228, 0.08);
}

body.book-czsx .stat strong {
  color: var(--brand-strong);
}

body.book-czsx .course-item.active,
body.book-czsx .practice-item.active,
body.book-czsx .paper-card.active {
  background: linear-gradient(135deg, #e6fffb, #fff7dc);
}

body.book-zjsx .topbar {
  background: rgba(36, 43, 32, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.book-zjsx .brand strong,
body.book-zjsx .nav a {
  color: #f7f6ed;
}

body.book-zjsx .brand small {
  color: rgba(247, 246, 237, 0.66);
}

body.book-zjsx .brand-mark {
  background: linear-gradient(135deg, #a75f2b, #5b7f3a);
  color: #fffef8;
}

body.book-zjsx .nav a:hover,
body.book-zjsx .nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

body.book-zjsx .topbar .secondary-button {
  color: #fffef8;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

body.book-zjsx .hero-band {
  background:
    linear-gradient(135deg, #24301f 0%, #526c34 52%, #a75f2b 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 68px);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.book-zjsx .hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(255, 255, 255, 0.08) 58% 64%, transparent 64%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.05) 38px 39px);
  pointer-events: none;
}

body.book-zjsx .hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.48fr);
}

body.book-zjsx .book-preview {
  position: relative;
  display: block;
  min-height: 340px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.12);
  box-shadow: 0 22px 48px rgba(32, 38, 31, 0.24);
}

body.book-zjsx .book-preview img {
  display: none;
}

body.book-zjsx .book-preview img:first-child {
  display: block;
  width: 74%;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

body.book-zjsx .book-preview::before,
body.book-zjsx .book-preview::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 42%;
  border-radius: 8px;
  background: rgba(255, 254, 248, 0.18);
}

body.book-zjsx .book-preview::before {
  top: 34px;
  height: 118px;
  box-shadow: 0 138px 0 rgba(255, 254, 248, 0.12);
}

body.book-zjsx .book-preview::after {
  top: 62px;
  height: 12px;
  background: #f3bd7a;
  box-shadow:
    0 28px 0 rgba(255, 254, 248, 0.5),
    0 56px 0 rgba(255, 254, 248, 0.32),
    0 138px 0 #9fbc6b,
    0 166px 0 rgba(255, 254, 248, 0.36);
}

body.book-zjsx .panel,
body.book-zjsx .stat,
body.book-zjsx .course-item,
body.book-zjsx .practice-item,
body.book-zjsx .paper-card,
body.book-zjsx .question,
body.book-zjsx .review-card,
body.book-zjsx .history-row,
body.book-zjsx .empty-state {
  border-color: var(--line);
  box-shadow: none;
}

body.book-zjsx .panel {
  border-top: 4px solid var(--brand);
}

body.book-zjsx .stat {
  position: relative;
  min-height: 104px;
  padding-left: 20px;
  background: #fffef8;
}

body.book-zjsx .stat::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  background: var(--accent);
}

body.book-zjsx .stat strong {
  color: #344f26;
  font-size: 28px;
}

body.book-zjsx .course-item,
body.book-zjsx .practice-item,
body.book-zjsx .paper-card {
  background: #fffef8;
}

body.book-zjsx .course-item.active,
body.book-zjsx .practice-item.active,
body.book-zjsx .paper-card.active {
  border-color: var(--brand);
  background: linear-gradient(90deg, #eef5e5, #fff9ef);
}

body.book-cet4 .topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(49, 95, 214, 0.16);
}

body.book-cet4 .brand-mark {
  background: linear-gradient(135deg, #315fd6, #d84f6a);
}

body.book-cet4 .nav a.active,
body.book-cet4 .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

body.book-cet4 .hero-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(49, 95, 214, 0.08) 0 1px, transparent 1px 54px),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 58%, #fff2f5 100%);
  border-bottom-color: rgba(49, 95, 214, 0.18);
}

body.book-cet4 .hero-band::before {
  content: "A  B  C  D";
  position: absolute;
  right: 6vw;
  top: 24px;
  color: rgba(49, 95, 214, 0.08);
  font-size: clamp(74px, 12vw, 170px);
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-cet4 .hero-band .eyebrow {
  color: var(--accent);
}

body.book-cet4 .hero-grid p {
  color: #40506a;
}

body.book-cet4 .book-preview {
  position: relative;
  transform: none;
}

body.book-cet4 .book-preview img {
  border: 1px solid rgba(49, 95, 214, 0.18);
  box-shadow: 0 16px 34px rgba(49, 95, 214, 0.16);
}

body.book-cet4 .book-preview img:nth-child(1) {
  transform: rotate(-2deg);
}

body.book-cet4 .book-preview img:nth-child(2) {
  transform: translateY(20px) rotate(1.5deg);
}

body.book-cet4 .book-preview img:nth-child(3) {
  transform: translateY(-10px) rotate(2deg);
}

body.book-cet4 .book-preview img:nth-child(4) {
  transform: translateY(16px) rotate(-1deg);
}

body.book-cet4 .panel {
  border-top: 3px solid var(--accent);
}

body.book-cet4 .stat {
  background: linear-gradient(180deg, #fff, #f4f7ff);
}

body.book-cet4 .stat strong {
  color: var(--brand-strong);
}

body.book-cet4 .course-item.active,
body.book-cet4 .practice-item.active,
body.book-cet4 .paper-card.active {
  border-color: rgba(216, 79, 106, 0.46);
  background: linear-gradient(135deg, #eef4ff, #fff0f4);
}

body.book-ncre .topbar {
  background: rgba(251, 254, 255, 0.92);
  border-bottom-color: rgba(8, 127, 140, 0.2);
}

body.book-ncre .brand-mark {
  background: #172028;
  color: #78f2ff;
  font-family: Consolas, "Courier New", monospace;
}

body.book-ncre .nav a.active,
body.book-ncre .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

body.book-ncre .hero-band {
  background:
    radial-gradient(circle at 74% 22%, rgba(120, 242, 255, 0.26), transparent 18rem),
    linear-gradient(135deg, #172028 0%, #075b63 56%, #2b266e 100%);
  border-bottom-color: rgba(120, 242, 255, 0.24);
}

body.book-ncre .hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(120, 242, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(120, 242, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

body.book-ncre .hero-grid {
  position: relative;
  z-index: 1;
}

body.book-ncre .book-preview {
  padding: 16px;
  border: 1px solid rgba(120, 242, 255, 0.24);
  border-radius: 8px;
  background: rgba(23, 32, 40, 0.42);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

body.book-ncre .book-preview img {
  border: 1px solid rgba(120, 242, 255, 0.26);
  box-shadow: none;
  filter: saturate(0.95);
}

body.book-ncre .book-preview img:nth-child(2),
body.book-ncre .book-preview img:nth-child(4) {
  transform: translateY(18px);
}

body.book-ncre .panel,
body.book-ncre .stat,
body.book-ncre .course-item,
body.book-ncre .practice-item,
body.book-ncre .paper-card,
body.book-ncre .question,
body.book-ncre .review-card,
body.book-ncre .history-row,
body.book-ncre .empty-state {
  border-color: rgba(8, 127, 140, 0.18);
}

body.book-ncre .panel {
  box-shadow: 0 1px 0 rgba(8, 127, 140, 0.12), var(--shadow);
}

body.book-ncre .stat {
  background:
    linear-gradient(90deg, rgba(8, 127, 140, 0.11), transparent 38%),
    #fff;
}

body.book-ncre .stat strong {
  color: var(--brand-strong);
  font-family: Consolas, "Courier New", monospace;
}

body.book-ncre .course-item.active,
body.book-ncre .practice-item.active,
body.book-ncre .paper-card.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, #e8fbfd, #f0edff);
}

body.book-cpa .topbar {
  border-top: 4px solid var(--brand);
  border-bottom: 3px double #b9b3aa;
  background: rgba(255, 255, 255, 0.96);
}

body.book-cpa .brand-mark {
  background: #202225;
  color: #f3d58f;
  font-family: Georgia, "Times New Roman", serif;
}

body.book-cpa .nav a.active,
body.book-cpa .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
  box-shadow: inset 0 -3px 0 var(--brand);
}

body.book-cpa .hero-band {
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(32, 34, 37, 0.065) 43px 44px),
    linear-gradient(100deg, #ffffff 0 62%, #eef5f4 62% 100%);
  border-bottom: 8px solid var(--brand);
}

body.book-cpa .hero-band::before {
  content: "CPA";
  position: absolute;
  right: 5vw;
  bottom: -36px;
  color: rgba(138, 38, 53, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 180px;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-cpa .hero-grid,
body.book-jkgl .hero-grid {
  position: relative;
  z-index: 1;
}

body.book-cpa .hero-grid p {
  color: #565b63;
}

body.book-cpa .hero-band .eyebrow {
  color: var(--brand);
  letter-spacing: 0;
}

body.book-cpa .hero-band .secondary-button,
body.book-cpa .hero-band .ghost-button {
  color: var(--ink);
  background: #fff;
  border-color: #aaa49a;
}

body.book-cpa .book-preview {
  padding: 12px;
  border: 1px solid #b9b3aa;
  border-left: 7px solid var(--brand);
  background: #fff;
  box-shadow: 12px 12px 0 rgba(23, 107, 120, 0.1);
}

body.book-cpa .book-preview img {
  border: 1px solid #c8c2b9;
  border-radius: 2px;
  box-shadow: none;
}

body.book-cpa .panel,
body.book-cpa .stat,
body.book-cpa .course-item,
body.book-cpa .practice-item,
body.book-cpa .paper-card,
body.book-cpa .question,
body.book-cpa .review-card,
body.book-cpa .history-row,
body.book-cpa .empty-state {
  border-color: #d6d2ca;
}

body.book-cpa .stat {
  border-top: 4px solid var(--brand);
}

body.book-cpa .stat strong {
  color: var(--brand-strong);
  font-family: Georgia, "Times New Roman", serif;
}

body.book-cpa .course-item.active,
body.book-cpa .practice-item.active,
body.book-cpa .paper-card.active {
  border-color: var(--brand);
  border-left-width: 5px;
  background: linear-gradient(90deg, var(--brand-soft), #fff 72%);
}

body.book-jkgl .topbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(22, 128, 103, 0.22);
}

body.book-jkgl .brand-mark {
  background: var(--brand);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.16);
}

body.book-jkgl .nav a.active,
body.book-jkgl .nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

body.book-jkgl .hero-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 74%, rgba(36, 119, 166, 0.08) 74% 100%),
    linear-gradient(180deg, #ffffff 0%, #edf9f5 100%);
  border-bottom: 1px solid rgba(22, 128, 103, 0.2);
}

body.book-jkgl .hero-band::before {
  content: "+";
  position: absolute;
  right: 8vw;
  top: -76px;
  color: rgba(214, 93, 85, 0.1);
  font-size: 280px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

body.book-jkgl .hero-grid p {
  color: #4f6861;
}

body.book-jkgl .hero-band .eyebrow {
  color: var(--accent);
  letter-spacing: 0;
}

body.book-jkgl .hero-band .secondary-button,
body.book-jkgl .hero-band .ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(22, 128, 103, 0.28);
}

body.book-jkgl .book-preview {
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(22, 128, 103, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(22, 128, 103, 0.13);
}

body.book-jkgl .book-preview img {
  border: 1px solid #d2e3de;
  box-shadow: none;
}

body.book-jkgl .book-preview img:nth-child(1),
body.book-jkgl .book-preview img:nth-child(4) {
  transform: translateY(10px);
}

body.book-jkgl .panel,
body.book-jkgl .stat,
body.book-jkgl .course-item,
body.book-jkgl .practice-item,
body.book-jkgl .paper-card,
body.book-jkgl .question,
body.book-jkgl .review-card,
body.book-jkgl .history-row,
body.book-jkgl .empty-state {
  border-color: rgba(22, 128, 103, 0.2);
}

body.book-jkgl .stat {
  background: linear-gradient(135deg, #ffffff, #edf9f5);
}

body.book-jkgl .stat strong {
  color: var(--brand-strong);
}

body.book-jkgl .course-item.active,
body.book-jkgl .practice-item.active,
body.book-jkgl .paper-card.active {
  border-color: var(--brand);
  background: linear-gradient(110deg, var(--brand-soft), var(--blue-soft));
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-pad {
  padding: 22px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.two-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.38fr);
  align-items: start;
}

.lesson-grid {
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
}

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

.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 16px;
}

.focus-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
  overflow: hidden;
}

.focus-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--brand);
}

.focus-card.primary-focus {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    linear-gradient(90deg, var(--brand-soft), transparent);
}

.focus-card h2 {
  margin-bottom: 10px;
  line-height: 1.22;
}

.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 720;
}

.stat,
.course-item,
.practice-item,
.paper-card,
.user-row,
.answer-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.stat {
  min-height: 118px;
  padding: 18px;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.stat span,
.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-band .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.course-list,
.practice-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.course-item,
.practice-item,
.user-row {
  padding: 14px;
}

.course-item {
  text-align: left;
}

.course-item.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.course-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.tag.good {
  color: var(--good);
  background: var(--good-soft);
}

.tag.warn {
  color: var(--accent);
  background: var(--accent-soft);
}

.tag.bad {
  color: var(--bad);
  background: var(--bad-soft);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.segment:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: #fff;
  background: var(--brand);
}

.primary-button:hover {
  background: var(--brand-strong);
}

.secondary-button {
  color: var(--brand-strong);
  background: #fff;
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);
}

.ghost-button {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.full-width {
  width: 100%;
}

.lesson-body {
  display: grid;
  gap: 16px;
}

.lesson-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.formula-list,
.tip-list,
.objective-list {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.75;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #34d399);
}

.question {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.option {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.option input {
  margin-top: 3px;
}

.answer-card {
  padding: 14px;
}

.answer-card.correct {
  border-color: rgba(4, 120, 87, 0.35);
  background: var(--good-soft);
}

.answer-card.wrong {
  border-color: rgba(190, 18, 60, 0.35);
  background: var(--bad-soft);
}

.review-list,
.history-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.review-card,
.history-row,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.review-card h3 {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.55;
}

.review-card p {
  margin: 7px 0;
}

.review-card-head,
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-row strong {
  display: block;
  margin-bottom: 4px;
}

.empty-state {
  background: #f8fafc;
}

.modal {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.modal-panel {
  position: relative;
  padding: 24px;
  background: #fff;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  padding: 0;
  background: #fff;
  border-color: var(--line);
}

.modal-head h2 {
  margin: 0 0 8px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 18px 0;
  padding: 5px;
  border-radius: 8px;
  background: #eef2f7;
}

.segment {
  background: transparent;
  color: var(--muted);
}

.segment.active {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.hidden {
  display: none !important;
}

.form-error {
  min-height: 20px;
  margin: 12px 0;
  color: var(--bad);
  font-weight: 720;
}

.status-page {
  max-width: 760px;
  margin: 58px auto;
  text-align: center;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #172033;
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}

.footer {
  width: var(--content);
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand,
  .top-actions {
    min-width: 0;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero-grid,
  .two-grid,
  .lesson-grid,
  .paper-grid,
  .stats-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 34px 0;
  }

  .book-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.book-zjsx .hero-grid {
    grid-template-columns: 1fr;
  }

  body.book-zjsx .book-preview {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 20px 0;
  }

  .hero-grid h1 {
    font-size: 34px;
  }

  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .focus-card {
    min-height: 0;
    padding: 18px;
  }

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

  body.book-zjsx .book-preview {
    min-height: 260px;
  }

  body.book-zjsx .book-preview img:first-child {
    width: 68%;
  }

  .footer {
    display: grid;
  }

  .review-card-head,
  .history-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== 极简精修层 · 2026-07-25 =====
   目标：更干净、去除冗余小字与重装饰；保留各科主色与布局，不改类名/结构。 */
.eyebrow { display: none !important; }
.brand small { display: none !important; }
.question-source { display: none !important; }
.hero-band::before,
.hero-band::after { content: none !important; background: none !important; box-shadow: none !important; }
body { background-image: none !important; }
.book-preview { box-shadow: 0 12px 30px rgba(23, 32, 51, 0.12) !important; transform: none !important; }
.book-preview img { transform: none !important; box-shadow: 0 8px 20px rgba(23, 32, 51, 0.14) !important; }
.panel,
.focus-card,
.stat { box-shadow: 0 1px 3px rgba(23, 32, 51, 0.07) !important; }
