:root {
  --bg: #eef0eb;
  --bg-soft: #f7f8f4;
  --ink: #24313e;
  --ink-soft: #53606d;
  --sage: #6b7f87;
  --teal: #53717b;
  --gold: #c5a56f;
  --stone: #d6dbd7;
  --card: rgba(255, 255, 255, 0.68);
  --shadow: 0 28px 70px rgba(47, 69, 76, 0.12);
  --shadow-strong: 0 30px 80px rgba(35, 56, 63, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: min(1160px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(197, 165, 111, 0.18), transparent 20%),
    linear-gradient(180deg, #e7eceb 0%, #f4f6f2 45%, #edf0ea 100%);
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

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

.page-shell {
  position: relative;
  overflow: clip;
}

.hero,
.thesis-section,
.deepread-section,
.reader-section,
.poster-gallery-section,
.pdf-section,
.cta-section {
  width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100svh;
  padding: 24px 0 88px;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 24% 26%, rgba(173, 192, 198, 0.42), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(197, 165, 111, 0.16), transparent 18%);
  pointer-events: none;
}

.topbar,
.hero-grid,
.thesis-section,
.deepread-section,
.reader-section,
.poster-gallery-section,
.pdf-section,
.cta-section {
  position: relative;
}

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

.brand,
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(83, 96, 109, 0.14);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(59, 82, 93, 0.07);
}

.brand-code {
  letter-spacing: 0.16em;
  color: var(--teal);
  font-weight: 800;
}

.brand-name,
.top-link-strong {
  font-weight: 800;
}

.top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.top-link-strong {
  color: #fff;
  background: linear-gradient(135deg, #5d7d87, #7f99a2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  padding-top: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-copy h2,
.price-card h2,
.insight-card h2 {
  margin: 0;
  font-family: "Noto Serif TC", "PingFang TC", serif;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  max-width: 7ch;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: #4f6472;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-family: "Noto Serif TC", serif;
}

.hero-lead,
.section-heading p,
.thesis-card p,
.dialogue-card p,
.reader-card p,
.pdf-copy p,
.cta-copy p,
.price-note,
.focus-list li {
  line-height: 1.88;
  color: var(--ink-soft);
}

.hero-lead {
  max-width: 44rem;
  margin: 22px 0 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.meta-pill {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(83, 96, 109, 0.12);
}

.meta-pill span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f8f99;
}

.meta-pill strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #5c7982, #89a4ad);
  box-shadow: 0 18px 34px rgba(88, 121, 130, 0.22);
}

.button-secondary {
  border: 1px solid rgba(83, 96, 109, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.hero-visual {
  justify-self: end;
  width: min(100%, 34rem);
}

.cover-stage {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
}

.cover-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
}

.cover-halo-a {
  width: 22rem;
  height: 22rem;
  top: 0;
  right: 0;
  background: radial-gradient(circle, rgba(181, 203, 210, 0.68), transparent 66%);
}

.cover-halo-b {
  width: 18rem;
  height: 18rem;
  bottom: 8%;
  left: 4%;
  background: radial-gradient(circle, rgba(197, 165, 111, 0.3), transparent 72%);
}

.hero-book {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  filter: drop-shadow(0 34px 52px rgba(55, 71, 78, 0.24));
}

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

.intro-grid,
.thesis-grid,
.pdf-layout {
  display: grid;
  gap: 22px;
}

.intro-grid {
  grid-template-columns: 0.92fr 1.08fr;
}

.price-card,
.insight-card,
.thesis-card,
.dialogue-card,
.pdf-frame,
.pdf-copy,
.poster-card,
.cta-section {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.price-card,
.insight-card,
.thesis-card,
.dialogue-card,
.pdf-copy {
  padding: 30px;
  background: var(--card);
  border: 1px solid rgba(83, 96, 109, 0.12);
}

.price-stack {
  margin-top: 14px;
}

.price-old {
  color: #7a8591;
  text-decoration: line-through;
}

.price-now {
  margin-top: 6px;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  line-height: 1;
  font-family: "Noto Serif TC", serif;
  color: #405a63;
}

.price-badge {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(197, 165, 111, 0.18);
  color: #7d6234;
  font-weight: 800;
}

.price-note {
  margin: 18px 0 0;
}

.price-actions {
  margin-top: 22px;
}

.focus-list {
  margin: 22px 0 0;
  padding-left: 1.2rem;
}

.focus-list li + li {
  margin-top: 10px;
}

.section-heading {
  max-width: 52rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.45rem);
  color: #324550;
  text-wrap: balance;
}

.mobile-break-target {
  display: inline;
}

.thesis-section .section-heading h2 {
  max-width: 18ch;
  text-wrap: nowrap;
}

.thesis-section,
.deepread-section,
.reader-section,
.poster-gallery-section,
.pdf-section {
  padding-top: 112px;
}

.thesis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.thesis-card span {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(137, 164, 173, 0.18);
  color: #4d6972;
  font-weight: 800;
}

.thesis-card h3,
.dialogue-card h3,
.pdf-copy h3 {
  margin: 16px 0 12px;
  font-family: "Noto Serif TC", serif;
  font-size: 1.52rem;
}

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

.excerpt-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: var(--card);
  border: 1px solid rgba(83, 96, 109, 0.12);
}

.reader-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.poster-gallery {
  margin-top: 30px;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}

.poster-card {
  overflow: hidden;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.poster-card.reveal {
  opacity: 1;
  transform: none;
}

.poster-card img {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  height: auto;
  border-radius: 18px;
}

.cta-section {
  margin-top: 112px;
  margin-bottom: 64px;
  padding: 32px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(197, 165, 111, 0.16), transparent 26%),
    rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(83, 96, 109, 0.12);
}

.cta-copy {
  max-width: 38rem;
}

.floating-buy {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5c7982, #89a4ad);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .intro-grid,
  .thesis-grid,
  .reader-grid,
  .excerpt-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: stretch;
    width: 100%;
  }

  .cover-stage {
    min-height: 28rem;
  }

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

@media (max-width: 720px) {
  .hero {
    padding-bottom: 72px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions > * {
    flex: 1 1 180px;
    justify-content: center;
  }

  .hero-grid {
    padding-top: 36px;
    gap: 18px;
  }

  .hero-visual {
    order: -1;
  }

  .cover-stage {
    min-height: 18rem;
  }

  .hero-book {
    width: min(100%, 18rem);
  }

  .hero h1 {
    max-width: none;
  }

  .meta-pill {
    min-width: calc(50% - 6px);
  }

  .price-card,
  .insight-card,
  .thesis-card,
  .reader-card,
  .dialogue-card,
  .pdf-copy,
  .cta-section {
    padding: 24px;
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
  }

  .thesis-section,
  .deepread-section,
  .reader-section,
  .poster-gallery-section,
  .pdf-section {
    padding-top: 88px;
  }

  .floating-buy {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .poster-gallery {
    gap: 18px;
  }

  .mobile-break-target {
    display: block;
  }

  .poster-card {
    margin: 0;
  }

  .poster-card img {
    width: min(100%, calc(100vw - 24px));
    max-width: 680px;
  }
}
