:root {
  --bg: #07121f;
  --bg-deep: #040b13;
  --surface: rgba(12, 28, 45, 0.82);
  --surface-strong: #0c1c2d;
  --surface-soft: rgba(16, 38, 60, 0.68);
  --line: rgba(142, 204, 245, 0.18);
  --line-strong: rgba(142, 204, 245, 0.3);
  --text: #eaf7ff;
  --text-soft: #b6cad9;
  --muted: #8099ad;
  --blue: #3b82f6;
  --blue-light: #93c5fd;
  --blue-soft: rgba(59, 130, 246, 0.14);
  --cyan: #1ec8ff;
  --cyan-soft: rgba(30, 200, 255, 0.12);
  --green: #18d4a8;
  --code-bg: #030912;
  --shadow: 0 22px 60px rgba(0, 5, 12, 0.42);
  --topbar-height: 70px;
  --radius: 16px;
  --font: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 22px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 4%, rgba(30, 200, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.12), transparent 28rem),
    linear-gradient(155deg, var(--bg) 0%, #081728 48%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.is-modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(146, 213, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 213, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: radial-gradient(circle at 50% 34%, #000 28%, transparent 86%);
  pointer-events: none;
}

a {
  color: inherit;
}

button,
.button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  box-shadow: 0 0 14px rgba(30, 200, 255, 0.58);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 28px, 1380px);
  min-height: var(--topbar-height);
  margin: 12px auto 0;
  padding: 9px 12px 9px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 15, 25, 0.8);
  box-shadow: 0 12px 32px rgba(0, 6, 14, 0.32);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue), #1d4ed8);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.28);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(127, 190, 232, 0.11);
  color: var(--text);
}

.topnav .nav-download {
  border: 1px solid rgba(59, 130, 246, 0.32);
  color: var(--blue-light);
}

.topnav .nav-home {
  border: 1px solid var(--line);
}

.topnav .nav-consult {
  margin-left: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #031525;
  box-shadow: 0 8px 22px rgba(24, 183, 209, 0.24);
}

.topnav .nav-consult:hover,
.topnav .nav-consult:focus-visible {
  background: linear-gradient(135deg, #48d5ff, #46e8bd);
  color: #031525;
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 400px);
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
  width: min(100% - 36px, 1280px);
  min-height: calc(82svh - var(--topbar-height));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) 0 clamp(48px, 7vw, 88px);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 7px 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  background: linear-gradient(110deg, #fff 8%, #caeeff 48%, #78aaff 92%);
  background-clip: text;
  color: transparent;
  font-size: clamp(52px, 7.5vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.hero-lede {
  max-width: 740px;
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.72;
}

.hero-actions,
.guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(147, 197, 253, 0.4);
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.24);
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(82, 210, 241, 0.28);
  background: var(--cyan-soft);
  color: #9cecff;
}

.hero-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.hero-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: left top;
}

.hero-pricing {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.15), transparent 40%),
    rgba(9, 25, 41, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.pricing-kicker {
  margin: 0 0 2px;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.pricing-note {
  max-width: 104px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

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

.pricing-card {
  position: relative;
  display: grid;
  gap: 4px;
  overflow: hidden;
  padding: 12px 13px 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 20, 34, 0.72);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pricing-card:hover,
.pricing-card:focus-visible {
  border-color: rgba(96, 165, 250, 0.58);
  background: rgba(11, 32, 52, 0.92);
  box-shadow: 0 10px 25px rgba(0, 8, 18, 0.25);
  transform: translateY(-2px);
}

.pricing-card:active {
  transform: translateY(0);
}

.pricing-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--blue), var(--cyan));
  content: "";
}

.pricing-card--featured {
  border-color: rgba(96, 165, 250, 0.42);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.16), rgba(7, 20, 34, 0.76));
}

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

.pricing-name {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.pricing-badge {
  padding: 3px 7px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-desc {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.pricing-card-foot {
  align-items: flex-end;
}

.pricing-reference {
  color: var(--text-soft);
  font-size: 11px;
  text-decoration: line-through;
  text-decoration-color: rgba(182, 202, 217, 0.42);
}

.pricing-card:not(.pricing-card--featured) .pricing-reference {
  text-decoration: none;
}

.pricing-price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--blue-light);
}

.pricing-price strong {
  font-size: 21px;
  line-height: 1;
}

.pricing-price small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.book-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 920px);
  align-items: start;
  gap: clamp(28px, 4vw, 54px);
  width: min(100% - 36px, 1300px);
  margin: 0 auto;
  padding: 44px 0 96px;
}

.toc-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 30px);
  max-height: calc(100svh - var(--topbar-height) - 50px);
  overflow: auto;
  padding: 18px 14px 18px 0;
  border-right: 1px solid var(--line);
  scrollbar-color: rgba(128, 171, 202, 0.3) transparent;
  scrollbar-width: thin;
}

.toc-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.toc-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--blue-light);
  cursor: pointer;
  font-size: 13px;
}

.toc-list {
  display: grid;
  gap: 2px;
}

.toc-link {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.toc-link--sub {
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
}

.toc-link:hover,
.toc-link:focus-visible,
.toc-link.is-active {
  border-left-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-light);
}

.book-content {
  min-width: 0;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(13, 31, 49, 0.94), rgba(7, 20, 33, 0.98));
  box-shadow: var(--shadow);
}

.book-content > h1:first-child {
  margin-top: 0;
  background: linear-gradient(105deg, #fff, #beeaff 62%, #78aaff);
  background-clip: text;
  color: transparent;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.22;
}

.book-content h1,
.book-content h2,
.book-content h3,
.book-content h4,
.book-content h5,
.book-content h6 {
  color: var(--text);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.book-content h2 {
  margin: 54px 0 18px;
  padding-left: 15px;
  border-left: 5px solid var(--blue);
  font-size: clamp(24px, 3vw, 34px);
}

.book-content h3 {
  margin: 38px 0 14px;
  color: var(--blue-light);
  font-size: clamp(20px, 2.2vw, 26px);
}

.book-content h4 {
  margin: 29px 0 11px;
  color: #dff4ff;
  font-size: 19px;
}

.book-content h5,
.book-content h6 {
  margin: 22px 0 9px;
  color: #bdd7e9;
  font-size: 16px;
}

.book-content p,
.book-content li {
  color: var(--text-soft);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.book-content p {
  margin: 0 0 15px;
}

.book-content ul,
.book-content ol {
  margin: 0 0 20px;
  padding-left: 25px;
}

.book-content li + li {
  margin-top: 6px;
}

.book-content li::marker {
  color: var(--blue-light);
}

.book-content blockquote {
  margin: 22px 0;
  padding: 17px 19px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--blue-soft);
}

.book-content blockquote p {
  margin: 0;
  color: #cadde9;
}

.book-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 20px 0 26px;
  overflow-x: auto;
  border-collapse: collapse;
  scrollbar-color: rgba(128, 171, 202, 0.35) transparent;
}

.book-content thead,
.book-content tbody,
.book-content tr {
  width: 100%;
}

.book-content th,
.book-content td {
  min-width: 120px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.62;
  text-align: left;
  vertical-align: top;
}

.book-content th {
  background: rgba(59, 130, 246, 0.13);
  color: var(--text);
  font-weight: 700;
}

.book-content code {
  padding: 2px 6px;
  border: 1px solid rgba(110, 175, 218, 0.14);
  border-radius: 5px;
  background: rgba(1, 10, 18, 0.66);
  color: #a8eaff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.book-content pre {
  max-width: 100%;
  margin: 20px 0 24px;
  overflow: auto;
  padding: 19px;
  border: 1px solid rgba(116, 179, 221, 0.16);
  border-radius: 12px;
  background: var(--code-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.book-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8f3ff;
  font-size: 13px;
  line-height: 1.68;
  white-space: pre;
}

.book-content a {
  color: #65d8ff;
  font-weight: 600;
  text-decoration-color: rgba(101, 216, 255, 0.35);
  text-underline-offset: 3px;
}

.book-content a:hover,
.book-content a:focus-visible {
  color: var(--blue-light);
  text-decoration-color: currentColor;
}

.book-content img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 5, 12, 0.32);
}

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

  100% {
    background-position: -100% 0;
  }
}

.js .book-content img.lazy-image.is-loading {
  opacity: 0.72;
  background:
    linear-gradient(
      110deg,
      rgba(82, 210, 241, 0.08) 24%,
      rgba(59, 130, 246, 0.18) 42%,
      rgba(82, 210, 241, 0.08) 60%
    ),
    #0b1b2a;
  background-size: 220% 100%;
  animation: lazy-image-shimmer 1.35s linear infinite;
  transition: opacity 240ms ease;
}

.js .book-content img.lazy-image.is-loaded {
  opacity: 1;
  background: #fff;
  transition: opacity 240ms ease;
}

.js .book-content img.lazy-image.is-error {
  opacity: 1;
  background: rgba(255, 102, 102, 0.12);
}

.book-content p[align="center"] {
  margin: 25px 0;
  text-align: center;
}

.book-content hr {
  margin: 42px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(100% - 36px, 1140px);
  margin: 0 auto 88px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(14, 35, 55, 0.94), rgba(7, 22, 37, 0.98));
  box-shadow: var(--shadow);
}

.guide-cta-kicker {
  margin: 0 0 8px;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
}

.guide-cta h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.32;
}

.guide-cta p:not(.guide-cta-kicker) {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.guide-cta-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.guide-footer {
  width: min(100% - 36px, 1140px);
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.guide-footer p {
  margin: 4px 0;
}

.guide-footer a {
  color: #82ddf7;
  text-underline-offset: 3px;
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.consult-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.consult-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 16, 0.78);
  backdrop-filter: blur(10px);
}

.consult-modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.18), transparent 42%),
    #07192a;
  box-shadow: 0 30px 90px rgba(0, 4, 12, 0.72);
  outline: none;
  overscroll-behavior: contain;
  transform: translateY(14px) scale(0.98);
  transition: transform 200ms ease;
}

.consult-modal.is-open .consult-modal-panel {
  transform: translateY(0) scale(1);
}

.consult-modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px 18px 16px 26px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(7, 25, 42, 0.94);
  backdrop-filter: blur(14px);
}

.consult-modal-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(19px, 3.5vw, 24px);
  line-height: 1.35;
}

.consult-modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 31px;
  line-height: 1;
  place-items: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.consult-modal-close:hover,
.consult-modal-close:focus-visible {
  background: var(--blue-soft);
  color: var(--text);
  transform: rotate(4deg);
}

.consult-modal-body {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 28px;
}

.consult-price-card {
  width: 100%;
  padding: 22px 24px;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.2), transparent 42%),
    rgba(7, 18, 31, 0.78);
  text-align: center;
}

.consult-price-card[hidden],
.consult-pdf-card[hidden] {
  display: none;
}

.consult-pdf-card {
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(45, 212, 191, 0.2), transparent 44%),
    rgba(7, 18, 31, 0.78);
  text-align: center;
}

.consult-pdf-tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.consult-pdf-card h3 {
  margin: 14px 0 8px;
  color: var(--text);
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.3;
}

.consult-pdf-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.consult-price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.consult-price-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.consult-price-label {
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 700;
}

.consult-price-original,
.consult-price-value,
.consult-price-sub,
.consult-plan-list p,
.consult-remark {
  margin: 0;
}

.consult-price-original {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.consult-price-original.is-reference {
  text-decoration: none;
}

.consult-price-value {
  color: var(--blue-light);
  font-size: clamp(35px, 8vw, 46px);
  font-weight: 800;
  line-height: 1.25;
}

.consult-price-sub {
  color: var(--text-soft);
  font-size: 15px;
}

.consult-plan-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(142, 204, 245, 0.26);
  color: var(--text-soft);
  font-size: 14px;
  text-align: left;
}

.consult-plan-list[hidden] {
  display: none;
}

.consult-plan-list p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.consult-plan-list strong,
.consult-plan-list b {
  color: var(--text);
}

.consult-qr {
  display: block;
  width: min(70vw, 260px);
  height: auto;
  padding: 10px;
  border-radius: 16px;
  background: #f8fdff;
  box-shadow: 0 16px 38px rgba(0, 6, 14, 0.3);
}

.consult-remark {
  color: var(--text-soft);
  font-size: 16px;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  opacity: 0;
  background: rgba(10, 28, 44, 0.92);
  box-shadow: 0 12px 30px rgba(0, 5, 12, 0.42);
  color: var(--text);
  cursor: pointer;
  place-items: center;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .topnav .nav-reading,
  .topnav .nav-toc {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-side {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: stretch;
  }

  .book-shell {
    grid-template-columns: 1fr;
  }

  .toc-panel {
    position: static;
    max-height: none;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }

  .toc-heading {
    margin: 0;
  }

  .toc-panel.is-collapsible .toc-toggle {
    display: inline-flex;
  }

  .toc-panel.is-collapsible .toc-list {
    margin-top: 10px;
  }

  .toc-panel.is-collapsed .toc-list {
    display: none;
  }

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

  .guide-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  :root {
    --topbar-height: 62px;
  }

  .topbar {
    width: calc(100% - 18px);
    margin-top: 8px;
    padding: 7px 8px 7px 10px;
  }

  .brand-name {
    max-width: 76px;
    overflow: hidden;
    font-size: 0;
    white-space: nowrap;
  }

  .brand-name::after {
    content: "蓝皮书";
    font-size: 14px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .topnav {
    gap: 3px;
  }

  .topnav a {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }

  .topnav .nav-download,
  .topnav .nav-home {
    display: none;
  }

  .topnav .nav-consult {
    margin-left: 0;
  }

  .hero {
    width: calc(100% - 28px);
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(48px, 18vw, 78px);
    white-space: normal;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .book-shell {
    width: calc(100% - 20px);
    padding-top: 24px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .book-content {
    padding: 24px 16px 42px;
    border-radius: 13px;
  }

  .book-content > h1:first-child {
    font-size: 29px;
  }

  .book-content h2 {
    margin-top: 44px;
    font-size: 25px;
  }

  .book-content h3 {
    font-size: 21px;
  }

  .book-content p,
  .book-content li {
    font-size: 15px;
  }

  .book-content th,
  .book-content td {
    min-width: 150px;
    font-size: 13px;
  }

  .guide-cta {
    width: calc(100% - 20px);
    margin-bottom: 62px;
  }

  .guide-cta-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .guide-footer {
    width: calc(100% - 28px);
  }

  .consult-modal {
    padding: 8px;
  }

  .consult-modal-panel {
    max-height: calc(100svh - 16px);
    border-radius: 16px;
  }

  .consult-modal-head {
    min-height: 64px;
    padding: 12px 10px 12px 16px;
  }

  .consult-modal-head h2 {
    font-size: 18px;
  }

  .consult-modal-body {
    gap: 18px;
    padding: 18px 14px 22px;
  }

  .consult-price-card {
    padding: 17px 15px;
  }

  .consult-pdf-card {
    padding: 20px 16px;
  }

  .consult-price-label {
    font-size: 14px;
  }

  .consult-plan-list p {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .consult-qr {
    width: min(66vw, 230px);
  }

  .consult-remark {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .book-content img.lazy-image.is-loading {
    animation: none;
  }
}
