:root {
  --bg-base: #f7f2e8;
  --bg-deep: #14110d;
  --surface: rgba(255, 251, 244, 0.78);
  --surface-strong: rgba(255, 248, 238, 0.92);
  --surface-soft: rgba(255, 244, 230, 0.62);
  --border: rgba(112, 73, 23, 0.16);
  --border-strong: rgba(151, 105, 37, 0.28);
  --text-main: #23180b;
  --text-soft: rgba(35, 24, 11, 0.82);
  --text-dim: rgba(35, 24, 11, 0.58);
  --gold: #b7862d;
  --gold-strong: #8f6112;
  --gold-soft: rgba(183, 134, 45, 0.14);
  --green-soft: rgba(39, 138, 94, 0.12);
  --red-soft: rgba(176, 72, 58, 0.1);
  --shadow: 0 30px 70px rgba(43, 24, 4, 0.12);
  --card-shadow: 0 18px 44px rgba(43, 24, 4, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(248, 215, 134, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(123, 76, 27, 0.08), transparent 26%),
    linear-gradient(180deg, #fbf7f0 0%, #f4eee2 100%);
  color: var(--text-main);
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.page-background__mesh,
.page-background__glow {
  position: absolute;
  inset: 0;
}

.page-background__mesh {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.34), transparent 46%),
    repeating-linear-gradient(
      90deg,
      rgba(143, 97, 18, 0.045) 0,
      rgba(143, 97, 18, 0.045) 1px,
      transparent 1px,
      transparent 112px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(123, 86, 33, 0.03) 0,
      rgba(123, 86, 33, 0.03) 1px,
      transparent 1px,
      transparent 72px
    ),
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 55%);
  opacity: 0.92;
}

html[data-bg-engine="vanta.globe"] .page-background__mesh {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 28%),
    repeating-linear-gradient(
      90deg,
      rgba(124, 86, 22, 0.055) 0,
      rgba(124, 86, 22, 0.055) 1px,
      transparent 1px,
      transparent 128px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(92, 66, 20, 0.034) 0,
      rgba(92, 66, 20, 0.034) 1px,
      transparent 1px,
      transparent 76px
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(185, 131, 36, 0.025) 32%,
      rgba(185, 131, 36, 0.055) 58%,
      transparent 100%
    );
  opacity: 0.98;
}

.page-background__glow {
  filter: blur(98px);
  opacity: 0.42;
}

.page-background__glow--left {
  left: -10%;
  top: -8%;
  width: 42vw;
  height: 42vw;
  background:
    radial-gradient(circle, rgba(239, 193, 91, 0.24) 0%, transparent 62%),
    radial-gradient(circle at 42% 58%, rgba(39, 138, 94, 0.14) 0%, transparent 54%);
}

.page-background__glow--right {
  right: -8%;
  top: 15%;
  width: 28vw;
  height: 28vw;
  background:
    radial-gradient(circle, rgba(173, 122, 47, 0.14) 0%, transparent 62%),
    radial-gradient(circle at 64% 42%, rgba(176, 72, 58, 0.12) 0%, transparent 52%);
}

html[data-bg-engine="vanta.globe"] .page-background__glow--left {
  background:
    radial-gradient(circle, rgba(211, 160, 62, 0.18) 0%, transparent 64%),
    radial-gradient(circle at 36% 62%, rgba(47, 142, 98, 0.11) 0%, transparent 50%);
}

html[data-bg-engine="vanta.globe"] .page-background__glow--right {
  background:
    radial-gradient(circle, rgba(173, 122, 47, 0.11) 0%, transparent 64%),
    radial-gradient(circle at 64% 42%, rgba(165, 69, 56, 0.08) 0%, transparent 48%);
}

.page-background::before,
.page-background::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-background::before {
  left: 0;
  right: 0;
  top: 14%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(183, 134, 45, 0.1) 18%,
    rgba(183, 134, 45, 0.18) 50%,
    rgba(183, 134, 45, 0.1) 82%,
    transparent 100%
  );
}

html[data-bg-engine="vanta.globe"] .page-background::before {
  top: 10.5%;
  height: 36px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(183, 134, 45, 0.06) 12%,
      rgba(183, 134, 45, 0.13) 40%,
      rgba(183, 134, 45, 0.09) 62%,
      transparent 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 32px,
      rgba(183, 134, 45, 0.08) 32px,
      rgba(183, 134, 45, 0.08) 33px
    );
  mask: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.88) 30%, rgba(0,0,0,0.88) 70%, transparent 100%);
}

.page-background::after {
  right: 6%;
  top: 12%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(183, 134, 45, 0.08);
  box-shadow:
    0 0 0 24px rgba(183, 134, 45, 0.035),
    0 0 0 56px rgba(183, 134, 45, 0.02);
}

html[data-bg-engine="vanta.globe"] .page-background::after {
  right: 4.5%;
  top: 9%;
  width: 136px;
  height: 136px;
  border-color: rgba(183, 134, 45, 0.12);
  box-shadow:
    0 0 0 14px rgba(183, 134, 45, 0.03),
    0 0 0 32px rgba(183, 134, 45, 0.018);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.topbar-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #bf8a31, #8f6112);
  box-shadow: 0 14px 28px rgba(143, 97, 18, 0.18);
  color: #fff8ea;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.topbar-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar-brand__copy strong {
  font-size: 15px;
  line-height: 1.15;
}

.topbar-brand__copy span {
  color: var(--text-dim);
  font-size: 12px;
}

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

.topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(143, 97, 18, 0.16);
  background: rgba(255, 250, 242, 0.86);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(43, 24, 4, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.topbar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(43, 24, 4, 0.08);
}

.topbar-btn--primary {
  border-color: rgba(143, 97, 18, 0.24);
  background: linear-gradient(135deg, #bf8a31, #8f6112);
  color: #fff8ea;
}

.market-strip {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid rgba(143, 97, 18, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(248, 240, 226, 0.82)),
    linear-gradient(90deg, rgba(183, 134, 45, 0.05), transparent 38%);
  box-shadow: 0 12px 30px rgba(43, 24, 4, 0.06);
  overflow: hidden;
}

.market-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #bb852d, #8f6112);
}

.market-strip__viewport {
  overflow: hidden;
  padding: 10px 16px 10px 18px;
}

.market-strip__track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  white-space: nowrap;
  animation: market-strip-scroll 44s linear infinite;
}

.market-strip__item {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(143, 97, 18, 0.12);
  background: rgba(255, 250, 241, 0.84);
  color: rgba(50, 34, 13, 0.88);
  font-family: "Aptos Narrow", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.market-strip__item--accent {
  background: linear-gradient(135deg, #bf8a31, #8f6112);
  border-color: rgba(143, 97, 18, 0.28);
  color: #fff8ea;
}

.market-strip__item--signal-up {
  color: #23704d;
  border-color: rgba(35, 112, 77, 0.16);
  background: rgba(232, 248, 239, 0.92);
}

.market-strip__item--signal-down {
  color: #9c4b3b;
  border-color: rgba(156, 75, 59, 0.14);
  background: rgba(253, 241, 238, 0.94);
}

@keyframes market-strip-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-34%, 0, 0);
  }
}

.hero-card,
.chapters-section {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 28px;
  border-radius: 32px;
  padding: 34px 34px 30px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.54), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(195, 150, 58, 0.18), transparent 26%);
  pointer-events: none;
}

.hero-copy,
.hero-note {
  position: relative;
  z-index: 1;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(183, 134, 45, 0.28);
  background: rgba(255, 245, 220, 0.7);
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-description,
.section-summary,
.hero-note p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 16px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-stat,
.hero-note {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 251, 244, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero-stat {
  padding: 16px 18px;
}

.hero-stat__value {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-strong);
  font-size: 18px;
  font-weight: 800;
}

.hero-stat__label {
  color: var(--text-dim);
  font-size: 13px;
}

.hero-note {
  padding: 22px 22px 20px;
  align-self: stretch;
}

.hero-note__title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.hero-note__hint {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 14px;
}

.hero-note code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(112, 73, 23, 0.08);
  font-family: "Cascadia Code", "JetBrains Mono", monospace;
  font-size: 12px;
}

.chapters-section {
  margin-top: 26px;
  border-radius: 28px;
  padding: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-summary {
  max-width: 420px;
  font-size: 15px;
}

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

.chapter-card {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(112, 73, 23, 0.14);
  background: linear-gradient(145deg, rgba(255, 251, 245, 0.96), rgba(255, 247, 233, 0.82));
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.chapter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 58px rgba(43, 24, 4, 0.14);
  border-color: var(--border-strong);
}

.chapter-card__poster {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 210, 124, 0.42), transparent 28%),
    linear-gradient(160deg, #3a2710, #8a621d 72%, #f4d18c 145%);
  isolation: isolate;
}

.chapter-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.chapter-card__poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.chapter-card__poster--fallback::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
}

.chapter-card__order {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.9);
  border: 1px solid rgba(183, 134, 45, 0.22);
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chapter-card__brand {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  pointer-events: none;
}

.chapter-card__brand-badge {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 221, 0.18);
  background: rgba(22, 14, 8, 0.3);
  backdrop-filter: blur(8px);
  color: rgba(255, 244, 221, 0.9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-card__brand-mark {
  color: rgba(255, 244, 221, 0.32);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.14);
}

.chapter-card__placeholder {
  position: absolute;
  inset: 0;
}

.chapter-card__placeholder-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 219, 135, 0.24), transparent 22%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 244, 221, 0.08) 0,
      rgba(255, 244, 221, 0.08) 1px,
      transparent 1px,
      transparent 34px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 244, 221, 0.07) 0,
      rgba(255, 244, 221, 0.07) 1px,
      transparent 1px,
      transparent 28px
    );
}

.chapter-card__placeholder-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff4dd;
}

.chapter-card__placeholder-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 244, 221, 0.14);
  border: 1px solid rgba(255, 244, 221, 0.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-card__placeholder-title {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.chapter-card__placeholder-subtitle {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 244, 221, 0.82);
}

.chapter-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chapter-card__status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 700;
}

.chapter-card__title {
  margin: 14px 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.chapter-card__subtitle {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chapter-card__summary {
  flex: 1;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.68;
  font-size: 15px;
}

.chapter-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.chapter-card__meta {
  color: var(--text-dim);
  font-size: 13px;
}

.chapter-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  color: #fffdf7;
  text-decoration: none;
  background: linear-gradient(135deg, #a36f19, #d8aa55);
  box-shadow: 0 16px 30px rgba(163, 111, 25, 0.26);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.chapter-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(163, 111, 25, 0.3);
  filter: saturate(1.04);
}

@media (max-width: 1120px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .market-strip__track {
    animation-duration: 32s;
  }

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

  .chapter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    margin-bottom: 14px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-btn {
    flex: 1 1 220px;
  }

  .market-strip {
    margin-bottom: 14px;
  }

  .market-strip__viewport {
    padding: 8px 12px 8px 14px;
  }

  .market-strip__track {
    gap: 8px;
    animation: none;
  }

  .market-strip__item {
    min-height: 26px;
    padding: 0 10px;
    font-size: 10px;
  }

  .page-shell {
    width: min(100vw - 24px, 100%);
    padding: 22px 0 44px;
  }

  .hero-card,
  .chapters-section {
    padding: 20px;
    border-radius: 24px;
  }

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

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .chapter-card {
    grid-template-columns: 1fr;
  }

  .chapter-card__brand-mark {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-card,
  .chapter-card__cta {
    transition: none;
  }
}
