:root {
  color-scheme: dark;
  --ink: #0c1424;
  --navy: #1b2a47;
  --navy-2: #24375c;
  --navy-3: #132039;
  --ivory: #fdfbf7;
  --ivory-soft: #efe9df;
  --gold: #c5a059;
  --gold-2: #ead6a1;
  --rose: #b56a76;
  --plum: #6e5477;
  --line: rgba(253, 251, 247, .16);
  --line-strong: rgba(197, 160, 89, .45);
  --shadow: 0 24px 70px rgba(3, 8, 18, .34);
  --radius: 8px;
  --max: 1180px;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--navy-3) 0%, var(--navy) 40%, #10192c 100%);
  color: var(--ivory);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(253, 251, 247, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 251, 247, .028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 78%);
}

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

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

p {
  margin: 0;
  color: rgba(253, 251, 247, .82);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  max-width: 980px;
  font-size: clamp(1.85rem, 4.4vw, 3.85rem);
}

h2 {
  font-size: clamp(1.38rem, 2.6vw, 2.25rem);
}

h3 {
  font-size: 1.08rem;
}

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform .2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(19, 32, 57, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .94rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(253, 251, 247, .82);
  transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.site-nav a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: rgba(197, 160, 89, .72);
  color: var(--gold-2);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, .08), 0 0 18px rgba(197, 160, 89, .14);
}

.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  transform: translateY(-2px);
  border-color: transparent;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(197, 160, 89, .24);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 251, 247, .06);
  color: var(--ivory);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(92vh - var(--header));
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.08);
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 20, 36, .94) 0%, rgba(19, 32, 57, .76) 42%, rgba(19, 32, 57, .28) 100%),
    linear-gradient(0deg, rgba(16, 25, 44, .96) 0%, rgba(16, 25, 44, .2) 48%, rgba(16, 25, 44, .78) 100%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(92vh - var(--header));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 54px 0 42px;
}

.hero-copy {
  display: grid;
  gap: 22px;
  max-width: 980px;
}

.eyebrow,
.section-kicker {
  color: var(--gold-2);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 760px;
  font-size: 1.08rem;
}

.hero-actions,
.final-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .22) 48%, transparent 100%);
  transform: translateX(-130%);
  transition: transform .55s ease;
}

.button:hover::before {
  transform: translateX(130%);
}

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

.button-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(197, 160, 89, .28);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(197, 160, 89, .36);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(253, 251, 247, .08);
  color: var(--ivory);
}

.button-secondary:hover {
  border-color: rgba(197, 160, 89, .75);
  background: rgba(197, 160, 89, .12);
  box-shadow: 0 14px 34px rgba(3, 8, 18, .22);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.hero-facts div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 251, 247, .06);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}

.hero-facts div:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 160, 89, .56);
  background: rgba(253, 251, 247, .09);
}

.hero-facts dt {
  color: rgba(253, 251, 247, .62);
  font-size: .78rem;
}

.hero-facts dd {
  margin: 2px 0 0;
  color: var(--ivory);
  font-weight: 800;
}

.hero-character {
  align-self: end;
  margin: 0;
}

.hero-character img {
  max-height: min(70vh, 620px);
  margin-left: auto;
  border-radius: var(--radius);
  object-fit: contain;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, .38));
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
  scroll-margin-top: calc(var(--header) + 20px);
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-bottom: 34px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
  align-items: center;
  gap: 42px;
}

.section-grid.reverse {
  grid-template-columns: minmax(280px, .5fr) minmax(0, 1fr);
}

.section-copy {
  display: grid;
  gap: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.tag-list span {
  padding: 7px 11px;
  border: 1px solid rgba(197, 160, 89, .35);
  border-radius: 999px;
  background: rgba(197, 160, 89, .12);
  color: var(--gold-2);
  font-size: .88rem;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.tag-list span:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, .78);
  background: rgba(197, 160, 89, .2);
}

.image-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 251, 247, .06);
  box-shadow: var(--shadow);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.image-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, .5);
  box-shadow: 0 26px 76px rgba(3, 8, 18, .42);
}

.image-panel img {
  width: 100%;
  object-fit: contain;
  background: rgba(12, 20, 36, .92);
}

.portrait-panel img {
  aspect-ratio: 4 / 5;
}

.wide-panel img {
  aspect-ratio: 16 / 9;
}

figcaption {
  padding: 12px 14px;
  color: rgba(253, 251, 247, .72);
  font-size: .9rem;
}

.content-layout,
.guide-grid,
.feature-list,
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.guide-card,
.feature-list article,
.analysis-grid article,
.updates-list article,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 251, 247, .065);
  box-shadow: 0 12px 34px rgba(3, 8, 18, .18);
}

.feature-card,
.guide-card,
.feature-list article,
.analysis-grid article {
  padding: 22px;
  transition: transform .24s ease, border-color .24s ease, background-color .24s ease, box-shadow .24s ease;
}

.feature-card:hover,
.guide-card:hover,
.feature-list article:hover,
.analysis-grid article:hover,
.updates-list article:hover,
.callout:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, .52);
  background: rgba(253, 251, 247, .09);
  box-shadow: 0 20px 48px rgba(3, 8, 18, .28);
}

.feature-card:hover svg {
  transform: scale(1.08);
}

.feature-card svg {
  transition: transform .22s ease;
}

.feature-card {
  display: grid;
  gap: 12px;
}

.feature-card svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.feature-card p,
.guide-card p,
.feature-list article p,
.analysis-grid article p,
.updates-list article p {
  margin-top: 10px;
  font-size: .95rem;
}

.media-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .55fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.callout {
  padding: 24px;
}

.callout ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: rgba(253, 251, 247, .82);
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.timeline div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 251, 247, .06);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.timeline div:hover {
  transform: translateX(4px);
  border-color: rgba(197, 160, 89, .5);
  background: rgba(253, 251, 247, .09);
}

.timeline strong {
  color: var(--gold-2);
}

.timeline span {
  color: rgba(253, 251, 247, .78);
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.guide-media {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr);
}

.feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-list article {
  border-left: 3px solid var(--gold);
}

.analysis-grid article {
  border-top: 3px solid rgba(197, 160, 89, .78);
}

.updates-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.updates-list article {
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, background-color .24s ease, box-shadow .24s ease;
}

.updates-list article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gold);
  opacity: .78;
}

.updates-list time {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold-2);
  font-weight: 900;
  font-size: .86rem;
}

.gallery-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.gallery-main {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 251, 247, .06);
  box-shadow: var(--shadow);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.gallery-main:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 160, 89, .5);
  box-shadow: 0 26px 76px rgba(3, 8, 18, .42);
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(12, 20, 36, .92);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.gallery-thumb {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 251, 247, .06);
  color: var(--ivory);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.is-active {
  border-color: var(--gold);
  background: rgba(197, 160, 89, .14);
  box-shadow: 0 14px 34px rgba(3, 8, 18, .22);
}

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

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(12, 20, 36, .92);
}

.gallery-thumb span {
  overflow: hidden;
  color: rgba(253, 251, 247, .82);
  font-size: .85rem;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 251, 247, .06);
  overflow: hidden;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.faq-list details:hover,
.faq-list details[open] {
  border-color: rgba(197, 160, 89, .52);
  background: rgba(253, 251, 247, .085);
  box-shadow: 0 14px 34px rgba(3, 8, 18, .18);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ivory);
  font-weight: 850;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--gold);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  padding: 0 20px 18px;
}

.final-cta {
  width: min(var(--max), calc(100% - 32px));
  margin: 28px auto 0;
  padding: 34px;
  justify-content: space-between;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(197, 160, 89, .2), rgba(181, 106, 118, .12)),
    rgba(253, 251, 247, .06);
}

.final-cta div {
  max-width: 720px;
}

.final-cta h2 {
  margin: 8px 0 10px;
}

.friend-links {
  width: 100%;
  margin: 58px 0 0;
  padding: 58px 16px;
  border-top: 1px solid rgba(197, 160, 89, .38);
  background:
    radial-gradient(circle at center top, rgba(197, 160, 89, .13), transparent 38%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
  text-align: center;
}

.friend-links h2 {
  color: #ffd338;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  text-shadow: 0 0 28px rgba(197, 160, 89, .28);
}

.friend-link-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  width: min(var(--max), calc(100% - 32px));
  margin: 24px auto 0;
}

.friend-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid rgba(197, 160, 89, .42);
  border-radius: 999px;
  background: rgba(253, 251, 247, .07);
  color: rgba(253, 251, 247, .82);
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(253, 251, 247, .04);
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.friend-link-list a:hover,
.friend-link-list a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(197, 160, 89, .18);
  color: var(--ivory);
  box-shadow: 0 14px 34px rgba(3, 8, 18, .22), inset 0 0 0 1px rgba(197, 160, 89, .18);
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 36px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  font-size: .92rem;
  color: rgba(253, 251, 247, .62);
}

@media (max-width: 980px) {
  :root {
    --header: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header) + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(19, 32, 57, .98);
    box-shadow: var(--shadow);
  }

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

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero-inner,
  .section-grid,
  .section-grid.reverse,
  .media-pair,
  .guide-media {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 26px;
  }

  .hero-character {
    display: none;
  }

  .hero-facts,
  .content-layout,
  .guide-grid,
  .feature-list,
  .analysis-grid,
  .updates-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .brand-text {
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 58px 0 34px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 20, 36, .9) 0%, rgba(19, 32, 57, .86) 62%, rgba(16, 25, 44, .98) 100%);
  }

  .hero-actions,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .content-layout,
  .guide-grid,
  .feature-list,
  .analysis-grid,
  .updates-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .timeline div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gallery-viewer {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .final-cta {
    padding: 24px;
  }

  .friend-links {
    margin-top: 42px;
    padding: 42px 16px;
  }

  .friend-link-list {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
