body.guide-page {
  --accent: #ff5d38;
  --accent-soft: rgba(255, 93, 56, 0.12);
  --accent-line: rgba(255, 93, 56, 0.22);
  --accent-strong: rgba(255, 93, 56, 0.82);
  --bg-main: #f6f1e9;
  --bg-panel: rgba(255, 255, 255, 0.84);
  --bg-panel-strong: #ffffff;
  --bg-muted: rgba(255, 255, 255, 0.58);
  --ink-main: #171923;
  --ink-soft: #687085;
  --ink-faint: #8b90a4;
  --line-main: rgba(23, 25, 35, 0.08);
  --shadow-main: 0 24px 64px rgba(15, 17, 23, 0.08);
  --shadow-soft: 0 16px 36px rgba(15, 17, 23, 0.05);
  --hero-grad-a: rgba(255, 93, 56, 0.11);
  --hero-grad-b: rgba(255, 179, 106, 0.12);
  --tip-bg: rgba(255, 247, 224, 0.92);
  --tip-line: rgba(255, 179, 0, 0.55);
  --highlight-bg: rgba(255, 255, 255, 0.92);
  --progress-bg: linear-gradient(90deg, var(--accent), #ff9f5f);
  background:
    radial-gradient(circle at 0% 0%, var(--hero-grad-a), transparent 22%),
    radial-gradient(circle at 100% 10%, var(--hero-grad-b), transparent 20%),
    var(--bg-main);
  color: var(--ink-main);
  position: relative;
}

body.guide-page::before,
body.guide-page::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.52;
  pointer-events: none;
  z-index: 0;
}

body.guide-page::before {
  width: 320px;
  height: 320px;
  left: -120px;
  top: 6vh;
  background: var(--hero-grad-a);
}

body.guide-page::after {
  width: 280px;
  height: 280px;
  right: -90px;
  top: 26vh;
  background: var(--hero-grad-b);
}

body.guide-page.guide-student {
  --accent: #169b62;
  --accent-soft: rgba(22, 155, 98, 0.12);
  --accent-line: rgba(22, 155, 98, 0.22);
  --accent-strong: rgba(22, 155, 98, 0.84);
  --hero-grad-a: rgba(22, 155, 98, 0.12);
  --hero-grad-b: rgba(55, 190, 152, 0.12);
  --tip-bg: rgba(235, 250, 243, 0.94);
  --tip-line: rgba(22, 155, 98, 0.44);
  --progress-bg: linear-gradient(90deg, var(--accent), #4acb95);
}

body.guide-page[data-theme="dark"] {
  --bg-main: #0e1015;
  --bg-panel: rgba(18, 21, 30, 0.84);
  --bg-panel-strong: rgba(20, 23, 32, 0.96);
  --bg-muted: rgba(18, 21, 30, 0.74);
  --ink-main: #f5f7fb;
  --ink-soft: #a6aabd;
  --ink-faint: #7f869b;
  --line-main: rgba(255, 255, 255, 0.08);
  --shadow-main: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.26);
  --highlight-bg: rgba(18, 21, 30, 0.92);
  --tip-bg: rgba(35, 30, 14, 0.92);
  --tip-line: rgba(255, 214, 10, 0.48);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 93, 56, 0.12), transparent 24%),
    radial-gradient(circle at 100% 10%, rgba(255, 179, 106, 0.12), transparent 20%),
    var(--bg-main);
}

body.guide-page .progress-bar {
  background: var(--progress-bg);
  height: 4px;
}

body.guide-page .nav {
  padding: 1rem 1.35rem;
  background: color-mix(in srgb, var(--bg-main) 74%, transparent);
  border-bottom: 1px solid var(--line-main);
  backdrop-filter: blur(20px);
}

body.guide-page .nav-logo-text,
body.guide-page .nav-logo-text span,
body.guide-page .nav-btn,
body.guide-page .theme-toggle,
body.guide-page .print-btn,
body.guide-page .toc h2,
body.guide-page .chapter-title,
body.guide-page .ebook-footer a,
body.guide-page .other-ebook .oe-text h3,
body.guide-page .highlight-box h4,
body.guide-page .ebook-hero h1 .pink,
body.guide-page .tag {
  color: inherit;
}

body.guide-page .nav-logo-text {
  color: var(--ink-main);
}

body.guide-page .nav-logo-text span,
body.guide-page .tag,
body.guide-page .highlight-box h4,
body.guide-page .ebook-footer a,
body.guide-page .other-ebook .oe-text h3,
body.guide-page .chapter-title .accent,
body.guide-page .mini-tag,
body.guide-page .quick-pill,
body.guide-page .toc h2,
body.guide-page .toc ol li a.active {
  color: var(--accent);
}

body.guide-page .nav {
  z-index: 120;
}

body.guide-page .nav-right {
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.guide-page .theme-toggle,
body.guide-page .print-btn,
body.guide-page .nav-btn,
body.guide-page .mini-btn {
  border-radius: 999px;
  border: 1px solid var(--line-main);
  background: var(--bg-muted);
  color: var(--ink-main);
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.guide-page .theme-toggle:hover,
body.guide-page .print-btn:hover,
body.guide-page .nav-btn:hover,
body.guide-page .mini-btn:hover,
body.guide-page .other-ebook:hover,
body.guide-page .toc ol li a:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

body.guide-page .nav-btn,
body.guide-page .mini-btn.primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 68%, white));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 24%, transparent);
}

body.guide-page .ebook-hero {
  padding: 8rem 1.3rem 2.5rem;
  background: transparent;
  border-bottom: 0;
  position: relative;
  z-index: 1;
}

body.guide-page .hero-grid,
body.guide-page .toc-wrap {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

body.guide-page .hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 1.2rem;
  align-items: stretch;
}

body.guide-page .hero-copy,
body.guide-page .hero-side,
body.guide-page .toc,
body.guide-page .guide-card,
body.guide-page .other-ebook,
body.guide-page .chapter,
body.guide-page .ebook-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-panel);
  border: 1px solid var(--line-main);
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(14px);
}

body.guide-page .hero-copy,
body.guide-page .hero-side {
  border-radius: 34px;
  padding: 1.75rem;
}

body.guide-page .hero-copy {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 12%, transparent), transparent 26%),
    var(--bg-panel);
  text-align: left;
}

body.guide-page .hero-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 12%, transparent), transparent 24%),
    var(--bg-panel-strong);
}

body.guide-page .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.guide-page .tag::before,
body.guide-page .mini-tag::before,
body.guide-page .quick-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

body.guide-page .ebook-hero h1 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: 0.03em;
}

body.guide-page .ebook-hero .subtitle {
  max-width: 62ch;
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.82;
}

body.guide-page .hero-actions,
body.guide-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.guide-page .hero-actions {
  margin-bottom: 1.25rem;
}

body.guide-page .meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  justify-content: stretch;
}

body.guide-page .meta span {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 22px;
  background: var(--bg-muted);
  border: 1px solid var(--line-main);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

body.guide-page .meta strong {
  color: var(--ink-main);
}

body.guide-page .hero-side h3,
body.guide-page .guide-card h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0;
}

body.guide-page .hero-side p,
body.guide-page .guide-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

body.guide-page .mini-tag,
body.guide-page .quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

body.guide-page .hero-list,
body.guide-page .guide-list {
  display: grid;
  gap: 0.8rem;
}

body.guide-page .hero-list-item,
body.guide-page .guide-list-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 22px;
  background: var(--bg-muted);
  border: 1px solid var(--line-main);
  color: var(--ink-soft);
}

body.guide-page .hero-list-mark,
body.guide-page .guide-list-mark {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.84rem;
}

body.guide-page .hero-list-item strong,
body.guide-page .guide-list-item strong {
  display: block;
  color: var(--ink-main);
  font-size: 0.92rem;
  margin-bottom: 0.12rem;
}

body.guide-page .toc-wrap {
  margin: 0 auto 2.4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

body.guide-page .side-stack {
  display: grid;
  gap: 1rem;
}

body.guide-page .toc,
body.guide-page .guide-card,
body.guide-page .other-ebook {
  border-radius: 28px;
  padding: 1.4rem;
}

body.guide-page .toc h2 {
  margin-bottom: 0.95rem;
  font-size: 1.65rem;
  letter-spacing: 0.03em;
}

body.guide-page .toc ol li {
  border-bottom-color: var(--line-main);
}

body.guide-page .toc ol li a {
  padding: 0.15rem 0;
  color: var(--ink-soft);
  border-radius: 12px;
}

body.guide-page .toc ol li a::before {
  color: var(--accent);
}

body.guide-page .guide-card {
  display: grid;
  gap: 0.9rem;
}

body.guide-page .mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

body.guide-page .other-ebook {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

body.guide-page .other-ebook .oe-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
  font-size: 1.65rem;
}

body.guide-page .other-ebook .oe-text p {
  color: var(--ink-soft);
}

body.guide-page .article {
  max-width: 980px;
  padding: 1rem 1.2rem 2.8rem;
  display: grid;
  gap: 1.15rem;
}

body.guide-page .chapter {
  margin: 0;
  padding: 1.7rem 1.6rem;
  border-radius: 30px;
}

body.guide-page .chapter-title {
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--accent-line);
  color: var(--ink-main);
}

body.guide-page .chapter p {
  text-align: left;
  color: var(--ink-soft);
  line-height: 1.86;
}

body.guide-page .highlight-box,
body.guide-page .tip {
  margin: 1.3rem 0;
  border-radius: 22px;
}

body.guide-page .highlight-box {
  background: var(--highlight-bg);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-soft);
}

body.guide-page .highlight-box .hl-content {
  color: var(--ink-soft);
}

body.guide-page .tip {
  background: var(--tip-bg);
  border-left: 0;
  border: 1px solid var(--tip-line);
  color: var(--ink-main);
}

body.guide-page .chapter-sep {
  width: 84px;
  height: 4px;
  margin: 0.2rem auto;
  background: var(--progress-bg);
}

body.guide-page .ebook-footer {
  max-width: 980px;
  margin: 0 auto 3rem;
  padding: 1.6rem;
  border-radius: 30px;
  text-align: left;
}

body.guide-page .ebook-footer p {
  color: var(--ink-soft);
}

body.guide-page .ebook-footer p:first-child {
  color: var(--ink-main);
  font-weight: 700;
}

body.guide-page .back-top {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 68%, white));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 28%, transparent);
}

body.guide-page .toc ol li a.active {
  font-weight: 700;
}

@media (max-width: 980px) {
  body.guide-page .hero-grid,
  body.guide-page .toc-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.guide-page .nav {
    padding: 0.85rem 1rem;
  }

  body.guide-page .nav-right {
    gap: 0.55rem;
  }

  body.guide-page .ebook-hero {
    padding: 7rem 1rem 2rem;
  }

  body.guide-page .hero-grid,
  body.guide-page .toc-wrap,
  body.guide-page .article {
    width: min(100% - 18px, 100%);
  }

  body.guide-page .meta {
    grid-template-columns: 1fr;
  }

  body.guide-page .chapter,
  body.guide-page .toc,
  body.guide-page .guide-card,
  body.guide-page .other-ebook,
  body.guide-page .hero-copy,
  body.guide-page .hero-side,
  body.guide-page .ebook-footer {
    border-radius: 24px;
  }

  body.guide-page .article {
    padding: 0.6rem 0.9rem 2.2rem;
  }

  body.guide-page .chapter {
    padding: 1.35rem 1.1rem;
  }

  body.guide-page .print-btn span.label {
    display: none;
  }
}