:root {
  --bg: #12161a;
  --bg-night: rgb(23, 35, 64);
  --bg-soft: #1f1116;
  --panel: rgba(225, 228, 230, 0.06);
  --panel-strong: rgba(225, 228, 230, 0.1);
  --text: #e1e4e6;
  --muted: #a5adb7;
  --subtle: #6b7280;
  --line: rgba(225, 228, 230, 0.16);
  --red: #ff2a4b;
  --red-dark: #cc001d;
  --red-deep: #8a0010;
  --black: #1c1c1c;
  --gold: #d7b16a;
  --max: 1180px;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 42, 75, 0.16), transparent 28rem),
    linear-gradient(135deg, var(--bg), #0b0d10 42%, var(--bg-soft));
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
}

body::before {
  right: -90px;
  top: 18%;
  width: 280px;
  height: 280px;
  background: url("img/ui-sprite.svg") 64px 0 / 192px 32px repeat;
  transform: rotate(18deg);
  filter: drop-shadow(0 0 18px rgba(255, 42, 75, 0.3));
}

body::after {
  left: -120px;
  bottom: 8%;
  width: 360px;
  height: 140px;
  border-top: 1px solid rgba(255, 42, 75, 0.35);
  border-bottom: 1px solid rgba(215, 177, 106, 0.18);
  transform: rotate(-14deg);
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1,
h2 {
  color: var(--red);
}

h2 {
  text-align: center;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--red-dark);
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 22, 26, 0.86);
  border-bottom: 1px solid rgba(225, 228, 230, 0.1);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100%, var(--max));
  min-height: var(--header);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(255, 42, 75, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.nav-links a:not(.download-link):hover,
.nav-links a:not(.download-link).is-active {
  color: rgb(255, 42, 75);
  background: rgba(255, 42, 75, 0.06);
  border-color: rgba(255, 42, 75, 0.82);
  box-shadow: 0 0 14px rgba(255, 42, 75, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-links .download-link,
.btn {
  color: #fff;
  background: var(--black);
  border: 1px solid var(--red-dark);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sprite-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  background-image: url("img/ui-sprite.svg");
  background-repeat: no-repeat;
  background-size: 108px 18px;
  vertical-align: -3px;
}

.sprite-download {
  background-position: 0 0;
}

.sprite-sword {
  background-position: -18px 0;
}

.sprite-shuriken {
  background-position: -36px 0;
}

.sprite-scroll {
  background-position: -54px 0;
}

.sprite-mask {
  background-position: -72px 0;
}

.sprite-lotus {
  background-position: -90px 0;
}

.nav-links .download-link:hover,
.btn:hover {
  color: #fff;
  background: var(--red-dark);
  box-shadow: 0 0 15px rgba(204, 0, 29, 0.8);
  transform: translateY(-2px);
}

.btn:active {
  background: var(--red-deep);
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.nav-toggle.is-open {
  background: var(--red-dark);
  border-color: var(--red);
  box-shadow: 0 0 15px rgba(204, 0, 29, 0.55);
}

.nav-toggle.is-open span {
  background: #fff;
}

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

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

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

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  overflow: hidden;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  filter: saturate(0.96) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.92), rgba(18, 22, 26, 0.76) 48%, rgba(18, 22, 26, 0.32)),
    linear-gradient(0deg, rgba(18, 22, 26, 1), transparent 38%);
  z-index: -1;
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 96px 24px 82px;
  position: relative;
  z-index: 2;
}

.hero-content,
.section-head,
.section-copy {
  translate: 0 0;
  transition: translate 520ms cubic-bezier(0.16, 1, 0.3, 1), border-color 360ms ease, box-shadow 520ms ease;
}

.hero-content:hover,
.section-head:hover,
.section-copy:hover {
  translate: 0 -6px;
}

.eyebrow,
.section-kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hero h1 {
  margin-top: 10px;
  font-size: clamp(40px, 5.8vw, 78px);
  color: var(--red);
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.58);
}

.hero-copy {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(225, 228, 230, 0.92);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn.ghost {
  background: rgba(18, 22, 26, 0.72);
  border-color: rgba(225, 228, 230, 0.24);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: 44px 0 0;
  background: rgba(225, 228, 230, 0.16);
  border: 1px solid rgba(225, 228, 230, 0.16);
}

.hero-facts div {
  padding: 16px;
  background: rgba(23, 35, 64, 0.88);
}

.hero-facts dt {
  color: var(--subtle);
  font-size: 12px;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.quick-panel,
.section,
.cta-inner,
.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  transform: translateY(-38px);
  position: relative;
  z-index: 3;
}

.quick-panel article,
.feature-tile,
.highlight-grid article,
.timeline article,
.faq-list details,
.guide-list article,
.hero-facts div,
.cta-inner {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 35, 64, 0.96), rgba(23, 35, 64, 0.78));
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  translate: 0 0;
  transition: translate 520ms cubic-bezier(0.16, 1, 0.3, 1), border-color 360ms ease, box-shadow 520ms ease;
}

.quick-panel article::after,
.feature-tile::after,
.highlight-grid article::after,
.timeline article::after,
.faq-list details::after,
.guide-list article::after,
.hero-facts div::after,
.cta-inner::after {
  content: "";
  position: absolute;
  right: -36px;
  top: 18px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 75, 0.72), transparent);
  transform: rotate(-28deg);
  opacity: 0.48;
  pointer-events: none;
}

.quick-panel article:hover,
.feature-tile:hover,
.highlight-grid article:hover,
.timeline article:hover,
.faq-list details:hover,
.guide-list article:hover,
.hero-facts div:hover,
.cta-inner:hover,
.media-card:hover,
.gallery figure:hover {
  translate: 0 -6px;
  border-color: rgba(255, 42, 75, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), 0 0 22px rgba(255, 42, 75, 0.1);
}

.quick-panel article {
  padding: 22px;
  backdrop-filter: blur(14px);
}

.quick-panel span,
.timeline time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.quick-panel h2 {
  margin-top: 8px;
  font-size: 18px;
}

.quick-panel p {
  margin-top: 10px;
  color: var(--muted);
}

.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 44px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(300px, 1.05fr) minmax(0, 0.95fr);
}

.section-head {
  max-width: 850px;
  margin-bottom: 30px;
  text-align: center;
}

.section h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3.2vw, 40px);
  text-align: center;
}

.section-head p:last-child,
.section-copy p,
.feature-tile p,
.highlight-grid p,
.timeline p,
.faq-list p,
.cta-inner p {
  color: var(--muted);
}

.section-copy p {
  margin-top: 18px;
  font-size: 16px;
}

.media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(23, 35, 64, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  position: relative;
  translate: 0 0;
  transition: translate 520ms cubic-bezier(0.16, 1, 0.3, 1), border-color 360ms ease, box-shadow 520ms ease;
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.14), transparent 30%, transparent 72%, rgba(215, 177, 106, 0.12));
  pointer-events: none;
  z-index: 1;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-card figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.feature-tile {
  overflow: hidden;
}

.feature-tile h3::before,
.highlight-grid h3::before,
.guide-list h3::before,
.timeline h3::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  background: url("img/ui-sprite.svg") -36px 0 / 96px 16px no-repeat;
  vertical-align: -2px;
}

.feature-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-tile h3,
.feature-tile p {
  padding-left: 18px;
  padding-right: 18px;
}

.feature-tile h3 {
  padding-top: 18px;
  font-size: 22px;
}

.feature-tile p {
  padding-top: 10px;
  padding-bottom: 20px;
}

.guide-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.guide-list article {
  padding-left: 18px;
  border-left: 3px solid var(--red-dark);
}

.guide-list h3 {
  font-size: 20px;
}

.guide-list p {
  margin-top: 8px;
}

.feature-band {
  border-top: 1px solid rgba(225, 228, 230, 0.08);
  border-bottom: 1px solid rgba(225, 228, 230, 0.08);
}

.highlight-grid {
  grid-template-columns: repeat(4, 1fr);
}

.highlight-grid article {
  padding: 22px;
}

.highlight-grid h3 {
  font-size: 19px;
}

.highlight-grid p {
  margin-top: 10px;
  font-size: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.gallery figure {
  min-width: 150px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(23, 35, 64, 0.9);
  opacity: 0.72;
  translate: 0 0;
  transition: opacity 320ms ease, translate 520ms cubic-bezier(0.16, 1, 0.3, 1), border-color 360ms ease;
}

.gallery figure.is-active,
.gallery figure:hover {
  opacity: 1;
  translate: 0 -6px;
  border-color: rgba(255, 42, 75, 0.55);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-trigger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.gallery figcaption {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.image-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-viewer-frame {
  width: min(100%, 1120px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 42, 75, 0.46);
  border-radius: 8px;
  background: rgb(24, 34, 63);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52), 0 0 28px rgba(255, 42, 75, 0.22);
  translate: 0 12px;
  transition: translate 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-viewer.is-open .image-viewer-frame {
  translate: 0 0;
}

.image-viewer-frame img {
  width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  background: #090b10;
}

.image-viewer-frame figcaption {
  padding: 12px 16px;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.image-viewer-close {
  position: fixed;
  right: 24px;
  top: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 42, 75, 0.62);
  border-radius: 50%;
  color: #fff;
  background: rgba(24, 34, 63, 0.92);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 42, 75, 0.22);
}

.image-viewer-close:hover {
  color: rgb(255, 42, 75);
  border-color: rgb(255, 42, 75);
}

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

.timeline article {
  padding: 20px;
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 42px;
  height: 2px;
  background: var(--red);
}

.timeline h3 {
  margin-top: 8px;
  font-size: 19px;
}

.timeline p {
  margin-top: 10px;
  font-size: 15px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 17px 18px;
  color: #fff;
  font-weight: 800;
}

.faq-list p {
  padding: 0 18px 18px;
  font-size: 15px;
}

.cta-section {
  padding: 80px 0;
  background:
    url("img/ui-sprite.svg") right 28px top 18px / 192px 32px repeat-x,
    linear-gradient(90deg, rgba(204, 0, 29, 0.18), transparent),
    rgba(23, 35, 64, 0.92);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3.2vw, 36px);
}

.cta-inner p {
  max-width: 720px;
  margin: 18px auto 26px;
}

.friend-links {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 42, 75, 0.18), transparent 20rem),
    rgb(24, 34, 63);
  padding: 52px 24px 58px;
  text-align: center;
}

.friend-links-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.friend-links h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
}

.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.friend-links-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  color: #18223f;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(18, 22, 26, 0.22);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.friend-links-list a:hover {
  color: rgb(255, 42, 75);
  background: rgba(255, 42, 75, 0.06);
  border-color: rgba(255, 42, 75, 0.82);
  box-shadow: 0 0 14px rgba(255, 42, 75, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-shadow: none;
  transform: translateY(-1px);
}

.site-footer {
  padding-top: 34px;
  padding-bottom: 38px;
  color: var(--subtle);
  font-size: 14px;
  border-top: 1px solid rgba(225, 228, 230, 0.08);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.site-footer p + p {
  margin-top: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease, translate 520ms cubic-bezier(0.16, 1, 0.3, 1), border-color 360ms ease, box-shadow 520ms ease;
}

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

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

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header) + 8px);
    display: grid;
    gap: 4px;
    padding: 12px;
    background: rgba(23, 35, 64, 0.98);
    border: 1px solid var(--line);
    border-radius: 6px;
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .split,
  .split.reverse,
  .content-grid,
  .highlight-grid,
  .timeline,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    grid-template-columns: 1fr;
    transform: none;
    padding-top: 24px;
  }

  .hero {
    min-height: 720px;
  }

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

@media (max-width: 640px) {
  :root {
    --header: 64px;
  }

  .nav,
  .quick-panel,
  .section,
  .cta-inner,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand span {
    font-size: 16px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding: 84px 16px 52px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .gallery {
    grid-template-columns: repeat(7, 72vw);
  }
}
