:root {
  --bg: #120f0e;
  --bg-soft: #1b1514;
  --panel: #241a18;
  --panel-2: #2d211d;
  --text: #f4ece6;
  --muted: #c7b8ad;
  --soft: #927e73;
  --line: rgba(244, 236, 230, 0.14);
  --gold: #d6a85d;
  --red: #9f2630;
  --red-deep: #5e1117;
  --teal: #6fa8a0;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(159, 38, 48, 0.22), transparent 36rem),
    linear-gradient(180deg, #160f0e 0%, #120f0e 38%, #17110f 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.1rem, 5.6vw, 4.6rem);
  color: var(--gold);
  letter-spacing: 0;
  text-shadow: 0 12px 32px rgba(159, 38, 48, 0.34);
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  color: var(--gold);
}

h3 {
  font-size: 1.18rem;
}

.sr-only,
.skip-link {
  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:focus {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  clip: auto;
  background: #fff;
  color: #111;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: rgba(18, 15, 14, 0.74);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(18, 15, 14, 0.94);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 60px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.95rem;
  overflow: hidden;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav a .icon {
  width: 0.98rem;
  height: 0.98rem;
  opacity: 0.86;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.34rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.site-nav a:hover .icon,
.site-nav a.is-active .icon {
  opacity: 1;
  transform: translateY(-1px);
}

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

.site-nav .nav-download {
  margin-left: 0.55rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red), #d24d42);
  box-shadow: 0 10px 22px rgba(159, 38, 48, 0.24);
}

.site-nav .nav-download .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.site-nav .nav-download:hover,
.site-nav .nav-download.is-active {
  color: #fff;
  background: linear-gradient(135deg, #b82e39, #e05c4e);
}

.site-nav .nav-download:hover .icon,
.site-nav .nav-download.is-active .icon {
  transform: translateY(1px);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-toggle.is-open span:not(.sr-only):nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.nav-toggle.is-open span:not(.sr-only):nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 7.5rem max(1.25rem, calc((100vw - var(--max)) / 2)) 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 14, 0.95) 0%, rgba(18, 15, 14, 0.66) 42%, rgba(18, 15, 14, 0.28) 100%),
    image-set(url("img/cover.jpg") 1x);
  background-size: cover;
  background-position: center top;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: end;
  min-height: calc(100vh - 11rem);
}

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

.eyebrow {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-lead {
  max-width: 680px;
  margin-top: 1rem;
  font-size: 1.12rem;
  color: #eaded6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  font-weight: 800;
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn .icon,
.back-top .icon {
  position: relative;
  transition: transform 180ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.24) 42%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

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

.btn:hover .icon {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #d24d42);
  color: #fff;
  box-shadow: 0 16px 36px rgba(159, 38, 48, 0.36);
}

.btn-primary:hover {
  box-shadow: 0 20px 44px rgba(159, 38, 48, 0.48);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(214, 168, 93, 0.5);
  background: rgba(214, 168, 93, 0.12);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.hero-facts div {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-facts div:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 168, 93, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.hero-facts dt {
  color: var(--soft);
  font-size: 0.82rem;
}

.hero-facts dd {
  margin: 0.1rem 0 0;
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
}

.gallery-item figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 5.5rem max(1.25rem, calc((100vw - var(--max)) / 2));
}

.section-head {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-head p:not(.eyebrow) {
  margin-top: 1rem;
  font-size: 1.03rem;
}

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

.feature-panel,
.guide-card,
.timeline-item,
.faq-item {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.feature-panel::before,
.guide-card::before,
.timeline-item::before,
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214, 168, 93, 0.14), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.feature-panel:hover,
.guide-card:hover,
.timeline-item:hover,
.faq-item:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 168, 93, 0.34);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.26);
}

.feature-panel:hover::before,
.guide-card:hover::before,
.timeline-item:hover::before,
.faq-item:hover::before {
  opacity: 1;
}

.feature-panel > *,
.guide-card > *,
.timeline-item > *,
.faq-item > * {
  position: relative;
}

.feature-panel {
  padding: 1.4rem;
}

.feature-panel p,
.guide-card p,
.timeline-item p {
  margin-top: 0.7rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.split-media:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 168, 93, 0.34);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.48);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transition: transform 520ms ease;
}

.split-media:hover img {
  transform: scale(1.025);
}

.content-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.content-points div {
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.content-points p {
  margin-top: 0.3rem;
}

.stats-section {
  padding-top: 0;
}

.stats-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat-item {
  min-height: 130px;
  padding: 1.2rem;
  background: var(--panel);
  transition: transform 180ms ease, background 180ms ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(214, 168, 93, 0.12), var(--panel));
}

.stat-item strong {
  display: block;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 168, 93, 0.38);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.gallery-item:hover figcaption {
  color: #eaded6;
}

.guide-section {
  background:
    linear-gradient(180deg, rgba(159, 38, 48, 0.12), rgba(255, 255, 255, 0.02)),
    var(--bg);
}

.guide-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  padding: 1.4rem;
}

.guide-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(214, 168, 93, 0.15);
  color: var(--gold);
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding: 1.35rem 1.5rem;
}

.timeline-item time {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-weight: 800;
}

.download-section {
  padding-top: 0;
}

.download-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid rgba(214, 168, 93, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(159, 38, 48, 0.2), rgba(111, 168, 160, 0.1)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.download-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent, rgba(214, 168, 93, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 760ms ease;
  pointer-events: none;
}

.download-panel:hover::before {
  transform: translateX(100%);
}

.download-panel > * {
  position: relative;
}

.download-panel p:not(.eyebrow) {
  margin-top: 0.75rem;
  max-width: 760px;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  padding: 0.1rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  color: var(--text);
  font-weight: 800;
  transition: color 180ms ease;
}

.faq-item summary:hover {
  color: var(--gold);
}

.faq-item p {
  padding: 0 0 1rem;
}

.friend-links {
  position: relative;
  overflow: hidden;
  padding: 3.2rem max(1.25rem, calc((100vw - var(--max)) / 2));
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 168, 93, 0.16), transparent 30rem),
    linear-gradient(135deg, var(--red-deep), var(--bg-soft) 52%, #101615);
  border-top: 1px solid rgba(214, 168, 93, 0.18);
  border-bottom: 1px solid rgba(214, 168, 93, 0.14);
}

.friend-links::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.friend-links h2 {
  position: relative;
  margin-bottom: 1.7rem;
  color: var(--text);
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.friend-link-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 980px;
  margin: 0 auto;
}

.friend-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  color: #eaded6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 236, 230, 0.18);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.friend-link-list a:hover {
  color: #fff;
  background: rgba(214, 168, 93, 0.14);
  border-color: rgba(214, 168, 93, 0.42);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #0f0c0b;
}

.site-footer p {
  margin-top: 0.25rem;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.back-top:hover {
  color: #f1c878;
  transform: translateY(-2px);
}

.back-top:hover .icon {
  transform: translateY(-2px);
}

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

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
  }

  .intro-grid,
  .guide-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18, 15, 14, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-radius: 6px;
  }

  .site-nav .nav-download {
    margin-left: 0;
  }

  .hero {
    padding: 6.5rem 1rem 3rem;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(18, 15, 14, 0.72) 0%, rgba(18, 15, 14, 0.92) 68%, #120f0e 100%),
      image-set(url("img/cover.jpg") 1x);
    background-size: cover;
    background-position: center top;
  }

  .hero-facts,
  .intro-grid,
  .stats-wrap,
  .gallery-grid,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .split-media img {
    min-height: 240px;
  }

  .download-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .friend-links {
    padding: 2.8rem 1rem;
  }

  .friend-link-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .friend-link-list a {
    width: 100%;
  }

  .download-panel .btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .brand span {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 4rem 1rem;
  }

  .download-section,
  .stats-section {
    padding-top: 0;
  }
}
