:root {
  --bg: #f4f3e8;
  --bg-deep: #123326;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(16, 48, 36, 0.12);
  --text: #193127;
  --muted: #53695d;
  --accent: #d46c2f;
  --accent-deep: #a84b1a;
  --accent-soft: rgba(212, 108, 47, 0.14);
  --teal: #2e7d70;
  --teal-soft: rgba(46, 125, 112, 0.12);
  --shadow: 0 22px 60px rgba(18, 51, 38, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --font-main: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(93, 168, 119, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(86, 152, 210, 0.16), transparent 28%),
    linear-gradient(180deg, #fbfaf1 0%, #edf1e6 46%, #f5f4ea 100%);
  line-height: 1.7;
}

strong {
  font-weight: 700;
  color: var(--text);
}

.accent-text {
  color: var(--accent);
  font-weight: 700;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -44px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 241, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(25, 49, 39, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(34, 70, 58, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.97rem;
  transition: color 0.22s ease, transform 0.22s ease;
}

.site-nav .nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  line-height: 1;
  text-align: center;
  color: #fff8ef;
  background: linear-gradient(135deg, var(--accent), #f08d46);
  box-shadow: 0 12px 28px rgba(212, 108, 47, 0.2);
}

.site-nav .nav-download::after {
  display: none;
}

.site-nav .nav-download:hover,
.site-nav .nav-download:focus-visible {
  color: #fff8ef;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 42px rgba(212, 108, 47, 0.34);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #f0be65);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(25, 49, 39, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:not(.sr-only):nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:not(.sr-only):nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:not(.sr-only):nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: clip;
  padding: 72px 0 56px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(18, 51, 38, 0.88), rgba(27, 75, 58, 0.74) 42%, rgba(23, 96, 110, 0.58)),
    url("./img/cover.jpg") center/cover no-repeat;
  filter: saturate(0.95);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 232, 165, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(8, 17, 12, 0.15), rgba(8, 17, 12, 0.5));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  color: #f5f3ea;
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #ffe3b2;
  font-size: 0.93rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-kicker {
  color: var(--teal);
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 0.98;
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: rgba(245, 243, 234, 0.94);
  max-width: 28ch;
}

.hero-text {
  margin: 18px 0 0;
  color: rgba(245, 243, 234, 0.82);
}

.hero-text strong,
.hero-subtitle strong,
.hero-points strong {
  color: #ffe3b2;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.button-primary {
  color: #fff8ef;
  background: linear-gradient(135deg, var(--accent), #f08d46);
  box-shadow: 0 16px 34px rgba(212, 108, 47, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
}

.button-secondary {
  color: #f6f2e8;
  border-color: rgba(246, 242, 232, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.button-large {
  min-width: min(100%, 248px);
}

.hero-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 243, 234, 0.88);
}

.hero-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8d98b, #f08d46);
  box-shadow: 0 0 0 5px rgba(248, 217, 139, 0.12);
}

.hero-media {
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 80px rgba(6, 18, 14, 0.28);
}

.hero-media img {
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 12px 6px 0;
  color: rgba(245, 243, 234, 0.78);
  font-size: 0.95rem;
}

.section {
  padding: 84px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.section-grid {
  display: grid;
  gap: 24px;
}

.section-grid-wide {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  align-items: start;
}

.prose p,
.media-copy p,
.showcase-copy p,
.callout p,
.timeline-body p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.prose strong,
.media-copy strong,
.showcase-copy strong,
.feature-card strong,
.timeline-body strong,
.character-card strong,
.callout strong,
.faq-item strong {
  color: var(--teal);
}

.prose p + p,
.media-copy p + p,
.showcase-copy p + p,
.timeline-body p + p {
  margin-top: 16px;
}

.gallery-band {
  padding-top: 18px;
}

.media-split {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.media-card,
.showcase-media,
.character-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background-color 0.26s ease;
}

.media-card img,
.showcase-media img,
.character-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.media-card figcaption,
.showcase-media figcaption,
.character-card figcaption {
  padding: 18px 20px 20px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 244, 234, 0.98));
}

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

.feature-card {
  min-height: 100%;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 247, 237, 0.96)),
    radial-gradient(circle at top right, rgba(46, 125, 112, 0.08), transparent 32%);
  box-shadow: 0 14px 36px rgba(18, 51, 38, 0.08);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
}

.feature-card h3,
.timeline-body h3,
.character-card h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.3;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.stacked-showcase {
  display: grid;
  gap: 22px;
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(16, 48, 36, 0.08);
  box-shadow: 0 14px 32px rgba(18, 51, 38, 0.06);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background-color 0.26s ease;
}

.showcase-row-reverse {
  grid-template-columns: minmax(280px, 1.08fr) minmax(0, 0.92fr);
}

.showcase-row-reverse .showcase-copy {
  order: 2;
}

.showcase-row-reverse .showcase-media {
  order: 1;
}

.showcase-copy h2,
.callout h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.12;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.84fr);
  gap: 24px;
  align-items: start;
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide;
  display: grid;
  gap: 14px;
}

.guide-list li {
  counter-increment: guide;
  position: relative;
  padding: 18px 18px 18px 66px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(18, 51, 38, 0.05);
}

.guide-list li::before {
  content: counter(guide, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), #58a48d);
  color: #f7f4ec;
  font-weight: 700;
  font-size: 0.86rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 141px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(46, 125, 112, 0.28), rgba(212, 108, 47, 0.24));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 136px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f0be65);
  box-shadow: 0 0 0 6px rgba(212, 108, 47, 0.12);
}

.timeline-date {
  padding-top: 2px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.94rem;
}

.timeline-body {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 12px 30px rgba(18, 51, 38, 0.05);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.highlight-download {
  padding-top: 30px;
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  color: #f6f2e8;
  background:
    linear-gradient(135deg, rgba(18, 51, 38, 0.94), rgba(32, 84, 69, 0.92)),
    radial-gradient(circle at top right, rgba(255, 214, 133, 0.18), transparent 34%);
  box-shadow: 0 26px 60px rgba(18, 51, 38, 0.18);
}

.callout .section-kicker {
  color: #f6c777;
}

.callout p {
  color: rgba(246, 242, 232, 0.92);
}

.callout strong {
  color: #ffe3b2;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 26px rgba(18, 51, 38, 0.05);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.faq-item summary {
  position: relative;
  padding: 18px 54px 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.35rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 20px;
}

@media (hover: hover) and (pointer: fine) {
  .hero-media:hover,
  .hero-media:focus-within {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 40px 100px rgba(6, 18, 14, 0.4);
  }

  .media-card:hover,
  .media-card:focus-within,
  .showcase-media:hover,
  .showcase-media:focus-within,
  .character-card:hover,
  .character-card:focus-within {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(46, 125, 112, 0.3);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 30px 58px rgba(18, 51, 38, 0.18);
  }

  .media-card:hover img,
  .media-card:focus-within img,
  .showcase-media:hover img,
  .showcase-media:focus-within img,
  .character-card:hover img,
  .character-card:focus-within img {
    transform: scale(1.035);
    filter: saturate(1.06);
  }

  .feature-card:hover,
  .feature-card:focus-within {
    transform: translateY(-10px) scale(1.015);
    border-color: rgba(46, 125, 112, 0.32);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 247, 237, 1)),
      radial-gradient(circle at top right, rgba(46, 125, 112, 0.18), transparent 36%);
    box-shadow: 0 28px 50px rgba(18, 51, 38, 0.18);
  }

  .showcase-row:hover,
  .showcase-row:focus-within {
    transform: translateY(-9px) scale(1.006);
    border-color: rgba(46, 125, 112, 0.26);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 54px rgba(18, 51, 38, 0.15);
  }

  .timeline-item:hover .timeline-body,
  .timeline-item:focus-within .timeline-body {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(46, 125, 112, 0.28);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 26px 46px rgba(18, 51, 38, 0.15);
  }

  .faq-item:hover,
  .faq-item:focus-within {
    transform: translateY(-7px) scale(1.008);
    border-color: rgba(46, 125, 112, 0.26);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 42px rgba(18, 51, 38, 0.14);
  }

  .faq-item summary:hover,
  .faq-item summary:focus-visible {
    background: rgba(46, 125, 112, 0.1);
  }
}

.site-footer {
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 48, 36, 0.09);
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
  filter: blur(4px);
}

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

.reveal-text {
  transform: translateY(16px);
}

.reveal-card {
  transform: translateY(28px);
}

.reveal-media {
  transform: translateY(24px) scale(0.985);
}

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

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid-wide,
  .media-split,
  .guide-layout,
  .showcase-row,
  .showcase-row-reverse,
  .callout,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .showcase-row-reverse .showcase-copy,
  .showcase-row-reverse .showcase-media {
    order: initial;
  }
}

@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 48, 36, 0.08);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-download {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 52px;
  }

  .section {
    padding: 68px 0;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-date {
    padding-left: 4px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-copy span {
    font-size: 0.84rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-actions,
  .button-large {
    width: 100%;
  }

  .hero-actions .button,
  .callout .button {
    width: 100%;
  }

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

  .guide-list li {
    padding-left: 60px;
  }

  .callout {
    padding: 24px 20px;
  }
}
