:root {
  color-scheme: light;
  --ink: #24201b;
  --muted: #716a60;
  --paper: #fff8ec;
  --panel: #fffdf8;
  --line: #ead9bd;
  --terracotta: #b85638;
  --terracotta-dark: #7d3627;
  --sage: #697f64;
  --blue: #486f89;
  --gold: #dca646;
  --shadow: 0 24px 80px rgba(56, 42, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

.hero {
  min-height: auto;
  padding: 14px clamp(18px, 4vw, 48px) 42px;
  background:
    linear-gradient(120deg, rgba(255, 248, 236, 0.96), rgba(255, 248, 236, 0.7)),
    repeating-linear-gradient(90deg, rgba(72, 111, 137, 0.08) 0 1px, transparent 1px 76px),
    linear-gradient(135deg, #f8e6cc 0%, #fff8eb 45%, #dfeadb 100%);
}

.sample-hero {
  padding: 14px clamp(18px, 4vw, 48px) 28px;
  background:
    linear-gradient(120deg, rgba(255, 248, 236, 0.96), rgba(255, 248, 236, 0.7)),
    repeating-linear-gradient(90deg, rgba(72, 111, 137, 0.08) 0 1px, transparent 1px 76px),
    linear-gradient(135deg, #f8e6cc 0%, #fff8eb 52%, #dfeadb 100%);
}

.topbar,
.hero-grid,
.sample-hero-copy,
.summary-strip,
.section-shell,
.sample-reading-section,
.sample-section,
.join-section,
footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 12px 28px rgba(184, 86, 56, 0.24);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.76fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding-top: clamp(26px, 5vw, 64px);
}

.hero-copy,
.preview-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.65rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.22rem;
}

.hero-lead,
.sample-copy p,
.join-section p,
.feature-card p,
.inside-list span {
  color: var(--muted);
  font-size: clamp(0.96rem, 1.45vw, 1.08rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.sample-hero .hero-lead {
  font-size: clamp(0.94rem, 1.35vw, 1.04rem);
  line-height: 1.55;
}

.sample-hero-copy {
  padding-top: 18px;
}

.sample-hero-copy h1 {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: clamp(2.05rem, 4.4vw, 3.55rem);
  line-height: 1.08;
}

.sample-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sample-resource-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 54, 39, 0.2);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--terracotta-dark);
  background: rgba(255, 253, 248, 0.74);
  font-size: 0.9rem;
  font-weight: 900;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 900;
}

.primary-action {
  background: var(--ink);
  color: #fff;
}

.secondary-action {
  border: 1px solid rgba(36, 32, 27, 0.16);
  background: rgba(255, 255, 255, 0.62);
}

.preview-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(36, 32, 27, 0.1);
  border-radius: 10px;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.95), rgba(255, 247, 231, 0.72)),
    linear-gradient(90deg, rgba(220, 166, 70, 0.24), transparent 50%),
    linear-gradient(0deg, rgba(105, 127, 100, 0.16), transparent 62%);
  box-shadow: var(--shadow);
}

.book-visual {
  position: absolute;
  right: 9%;
  bottom: 18%;
  width: 300px;
  height: 320px;
}

.book {
  position: absolute;
  width: 134px;
  height: 240px;
  border-radius: 7px 16px 16px 7px;
  box-shadow: 0 22px 36px rgba(56, 42, 29, 0.2);
}

.book::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 18px;
  width: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.book-one {
  right: 130px;
  bottom: 26px;
  transform: rotate(-13deg);
  background: var(--terracotta);
}

.book-two {
  right: 68px;
  bottom: 40px;
  transform: rotate(4deg);
  background: var(--blue);
}

.book-three {
  right: 5px;
  bottom: 18px;
  transform: rotate(15deg);
  background: var(--sage);
}

.preview-stat {
  position: relative;
  z-index: 1;
  max-width: 240px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 42px rgba(56, 42, 29, 0.08);
}

.preview-stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--terracotta-dark);
  font-size: 1.35rem;
}

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

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-top: -24px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.summary-strip div {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.summary-strip div:last-child {
  border-right: 0;
}

.summary-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
}

.summary-strip span {
  color: rgba(255, 255, 255, 0.74);
}

.section-shell,
.sample-section,
.join-section {
  padding: 58px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card,
.day-card,
.wechat-card {
  border: 1px solid rgba(36, 32, 27, 0.12);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 20px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(220, 166, 70, 0.22);
  color: var(--terracotta-dark);
  font-weight: 950;
}

.sample-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: center;
}

.day-card {
  padding: 24px;
}

.linked-card {
  display: block;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.linked-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 90px rgba(56, 42, 29, 0.18);
}

.day-card h3 {
  font-size: 1.55rem;
}

.day-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.inside-list {
  display: grid;
  gap: 8px;
}

.inside-list div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.inside-list strong {
  color: var(--terracotta-dark);
  font-size: 1.08rem;
}

.join-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 64px;
}

.compact-join {
  padding-top: 42px;
}

.sample-reading-section {
  padding: 20px 0 0;
}

.sample-reading-section > .section-heading {
  max-width: 760px;
  margin-bottom: 14px;
}

.sample-reading-section > .section-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.sample-note {
  max-width: 820px;
  color: var(--muted);
  margin-bottom: 0;
  border-left: 5px solid rgba(184, 86, 56, 0.35);
  padding: 10px 14px;
  background: rgba(255, 253, 248, 0.6);
  font-size: 0.92rem;
  line-height: 1.5;
}

.preview-material-stack {
  display: grid;
  gap: 14px;
}

.guide-preview-card {
  margin: 0 0 14px;
  border: 1px solid rgba(36, 32, 27, 0.12);
  border-radius: 8px;
  padding: clamp(16px, 2.7vw, 24px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.guide-preview-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.28rem, 2.25vw, 1.7rem);
}

.guide-preview-card h4 {
  margin: 16px 0 7px;
  color: var(--terracotta-dark);
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
  line-height: 1.35;
}

.guide-preview-card p,
.guide-preview-card li {
  color: var(--muted);
  font-size: clamp(0.86rem, 1.15vw, 0.94rem);
  line-height: 1.48;
}

.guide-preview-card ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 1.15em;
}

.guide-preview-card li::marker {
  color: var(--terracotta);
}

.guide-muted {
  color: rgba(113, 106, 96, 0.82) !important;
  font-weight: 800;
}

.guide-arrow {
  position: relative;
  padding-left: 30px;
  font-weight: 850;
}

.guide-arrow::before {
  position: absolute;
  left: 0;
  content: "→";
  color: var(--terracotta);
}

.guide-quote {
  color: var(--ink) !important;
  font-weight: 900;
}

.guide-calc {
  color: var(--ink) !important;
  font-size: clamp(1.28rem, 3vw, 2rem) !important;
  font-weight: 950;
  letter-spacing: 0;
}

.material-panel {
  border: 1px solid rgba(36, 32, 27, 0.12);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.material-panel h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
}

.word-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0;
}

.word-list div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.word-list dt {
  color: var(--terracotta-dark);
  font-size: 0.98rem;
  font-weight: 950;
}

.word-list dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.sentence-card {
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff7e7;
}

.sentence-card + .sentence-card {
  margin-top: 10px;
}

.sentence-card h4 {
  margin: 0 0 8px;
  color: var(--terracotta-dark);
  font-size: 0.98rem;
}

.sentence-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sentence-card p:last-child {
  margin-bottom: 0;
}

.quote {
  color: var(--ink) !important;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 253, 248, 0.9);
  font-size: 0.94rem;
  line-height: 1.45 !important;
  font-weight: 900;
}

.wechat-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(36, 32, 27, 0.96), rgba(54, 71, 52, 0.94)),
    var(--ink);
  color: #fff;
}

.wechat-card span {
  color: var(--gold);
  font-weight: 900;
}

.wechat-card strong {
  display: block;
  margin: 12px 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: 0;
}

.wechat-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    overflow: hidden;
    padding: 14px 18px 42px;
  }

  .sample-hero {
    padding: 14px 18px 22px;
  }

  .topbar,
  .hero-grid,
  .sample-hero-copy,
  .summary-strip,
  .section-shell,
  .sample-reading-section,
  .sample-section,
  .join-section,
  footer {
    width: calc(100vw - 36px);
    margin-right: 0;
    margin-left: 0;
  }

  .topbar,
  .hero-grid,
  .preview-material-stack,
  .feature-grid,
  .sample-section,
  .join-section,
  .inside-list div {
    grid-template-columns: 1fr;
  }

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

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

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

  .nav-links {
    gap: 12px;
  }

  h1 {
    max-width: 100%;
    font-size: 1.9rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .sample-hero-copy {
    padding-top: 10px;
  }

  .sample-hero-copy h1 {
    font-size: 1.65rem;
    line-height: 1.14;
    word-break: normal;
  }

  .sample-resource-links a {
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.84rem;
  }

  h2 {
    font-size: 1.8rem;
    line-height: 1.14;
    overflow-wrap: anywhere;
  }

  .preview-card {
    min-height: 330px;
    max-width: 100%;
  }

  .book-visual {
    right: 4%;
    bottom: 6%;
    transform: scale(0.74);
    transform-origin: bottom right;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .summary-strip div {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}
