:root {
  --bg: #0f0e0c;
  --bg-deep: #070604;
  --footer: #151515;
  --gold: #eec97a;
  --gold-soft: #c1a769;
  --gold-muted: #9f8e65;
  --gold-dark: #462923;
  --line: #8d712f;
  --text-muted: #898989;
  --content: min(100% - 64px, 1100px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gold-muted);
  background:
    linear-gradient(180deg, rgba(15, 14, 12, 0.96), rgba(8, 7, 5, 0.94)),
    var(--bg);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button {
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

.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;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  width: var(--content);
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateX(-50%);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #0f0e0c;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 14, 12, 0) 0%, rgba(15, 14, 12, 0) 60%, rgba(10, 7, 0, 0.96) 100%),
    url("assets/top-bg.png") center top / 1280px auto no-repeat;
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 23%, rgba(236, 182, 78, 0.18), transparent 18%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 720px;
}

.hero-logo {
  position: absolute;
  top: -108px;
  left: 50%;
  width: min(114vw, 1448px);
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.56));
}

.download-actions {
  position: absolute;
  top: 572px;
  left: 50%;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.download-button {
  display: grid;
  width: 198px;
  height: 56px;
  place-items: center;
  color: var(--gold-dark);
  font-family: "Songti SC", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  background: url("assets/download-btn.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
  transition: transform 180ms ease, filter 180ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.45)) brightness(1.08);
}

.section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 7, 0, 0.15), rgba(10, 7, 0, 0.55)),
    url("assets/main-bg.png") center top / 1280px auto repeat-y;
}

.section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 14% 42%, rgba(240, 205, 124, 0.08), transparent 21%),
    radial-gradient(circle at 83% 28%, rgba(240, 205, 124, 0.06), transparent 19%);
  pointer-events: none;
}

.section-heading {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--content);
  justify-items: center;
  margin: 0 auto;
  text-align: center;
}

.heading-divider {
  position: absolute;
  top: 10px;
  opacity: 0.92;
  pointer-events: none;
}

.heading-divider-small {
  width: 163px;
  height: 24px;
}

.heading-divider-wide {
  width: 246px;
  height: 24px;
}

.section-heading h2 {
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #f7f2c6 5%, #cba76d 95%);
  background-clip: text;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.section-heading p {
  margin: 13px 0 0;
  color: #736749;
  font-family: "Times New Roman", "Noto Serif SC", serif;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro-section {
  padding: 42px 0 118px;
}

.intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 74px;
  width: var(--content);
  align-items: center;
  margin: 54px auto 0;
}

.intro-visual {
  position: relative;
  min-height: 330px;
}

.intro-visual::after,
.feature-art::after {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 380px;
  height: 66px;
  content: "";
  background: url("assets/gold-shadow.png") center / cover no-repeat;
  opacity: 0.54;
  transform: translateX(-50%);
}

.intro-visual img {
  position: relative;
  z-index: 1;
  width: 356px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.36));
}

.copy-block h3 {
  margin: 0 0 20px;
  color: var(--gold-soft);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.copy-block p {
  margin: 0;
  color: var(--gold-muted);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.copy-block p + p {
  margin-top: 5px;
}

.showcase-section {
  padding: 8px 0 132px;
}

.showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 824px) 44px;
  gap: 104px;
  width: var(--content);
  align-items: center;
  justify-content: center;
  margin: 66px auto 0;
}

.carousel-control {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  transition: transform 180ms ease, filter 180ms ease;
}

.carousel-control:hover {
  transform: scale(1.08);
  filter: brightness(1.16);
}

.carousel-control img {
  width: 44px;
  height: 44px;
}

.showcase-stage {
  position: relative;
  min-width: 0;
  margin: 0;
  aspect-ratio: 824 / 379;
  overflow: hidden;
  border: 1px solid rgba(141, 113, 47, 0.65);
  background: rgba(8, 7, 5, 0.8);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.45);
}

.showcase-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 160ms ease;
}

.showcase-stage.is-changing img {
  opacity: 0.28;
}

.showcase-stage figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 5px 12px;
  color: #f6df9c;
  border: 1px solid rgba(238, 201, 122, 0.36);
  background: rgba(6, 5, 4, 0.64);
  font-size: 13px;
  line-height: 1.4;
}

.thumbs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 197px);
  gap: 12px;
  width: max-content;
  margin: 16px auto 0;
}

.thumb {
  position: relative;
  width: 197px;
  height: 90px;
  overflow: visible;
  border: 1px solid rgba(141, 113, 47, 0.72);
  opacity: 0.72;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.thumb:hover,
.thumb.is-active {
  opacity: 1;
  border-color: #e9c36f;
}

.thumb.is-active::before {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 22px;
  height: 19px;
  content: "";
  background: url("assets/active-marker.svg") center / contain no-repeat;
  transform: translateX(-50%);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-section {
  display: grid;
  width: 100%;
  min-height: 410px;
  align-items: center;
  padding: 0 max(32px, calc((100% - 1100px) / 2));
}

.feature-cards {
  grid-template-columns: minmax(0, 474px) 1fr;
  gap: 70px;
  padding-bottom: 40px;
}

.feature-phone {
  grid-template-columns: minmax(0, 390px) minmax(0, 500px);
  gap: 72px;
  padding-top: 4px;
  padding-bottom: 72px;
}

.feature-art {
  position: relative;
  z-index: 1;
}

.card-art img {
  width: 476px;
  margin-left: auto;
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.45));
}

.phone-art img {
  width: 348px;
  margin: 0 auto;
  transform: rotate(6deg);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.45));
}

.feature-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}

.site-footer {
  background: var(--footer);
}

.download-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 8, 6, 0.84), rgba(9, 8, 6, 0.96)),
    url("assets/main-bg.png") center top / 1280px auto repeat-y,
    #080706;
}

.download-header {
  position: relative;
  left: auto;
  display: none;
  transform: none;
  margin: 0 auto;
}

.download-main {
  width: 100%;
  overflow: hidden;
}

.download-hero {
  position: relative;
  padding: 46px 0 46px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(10, 8, 5, 0.78)),
    url("assets/top-bg.png") center top / 1280px auto no-repeat;
}

.download-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(238, 201, 122, 0.38), transparent);
}

.download-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: var(--content);
  align-items: center;
  margin: 0 auto;
}

.download-eyebrow {
  margin: 0 0 8px;
  color: #736749;
  font-family: "Times New Roman", "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.download-hero h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, #fff1bc 0%, #cba76d 92%);
  background-clip: text;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 42px;
  line-height: 1.15;
}

.download-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--gold-muted);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: var(--content);
  margin: 34px auto 0;
  padding-bottom: 34px;
}

.download-card,
.download-help {
  border: 1px solid rgba(238, 201, 122, 0.22);
  background:
    linear-gradient(180deg, rgba(31, 24, 13, 0.78), rgba(9, 8, 6, 0.76)),
    rgba(7, 6, 5, 0.72);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.download-card {
  min-width: 0;
  padding: 28px;
}

.download-card-head {
  min-height: 164px;
}

.platform-badge {
  display: inline-flex;
  height: 28px;
  align-items: center;
  padding: 0 13px;
  color: #261608;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2c5, #d3a552);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.download-card h2,
.download-help h2 {
  margin: 18px 0 0;
  color: var(--gold-soft);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
}

.download-card p,
.download-help p,
.install-steps li {
  color: var(--gold-muted);
  font-size: 15px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.download-card p {
  margin: 13px 0 0;
}

.primary-download {
  display: grid;
  width: min(100%, 260px);
  height: 54px;
  place-items: center;
  margin-top: 18px;
  color: var(--gold-dark);
  background: url("assets/download-btn.png") center / 100% 100% no-repeat;
  font-family: "Songti SC", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  filter: drop-shadow(0 13px 20px rgba(0, 0, 0, 0.42));
  transition: transform 180ms ease, filter 180ms ease;
}

.primary-download:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5)) brightness(1.08);
}

.download-note {
  max-width: 420px;
  min-height: 52px;
}

.download-note code {
  color: #f4d991;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  word-break: break-all;
}

.install-steps {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(238, 201, 122, 0.16);
}

.install-steps h3 {
  margin: 0 0 12px;
  color: #ecd293;
  font-size: 18px;
  font-weight: 500;
}

.install-steps ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
}

.download-help {
  width: var(--content);
  margin: 0 auto 56px;
  padding: 24px 28px;
}

.download-help h2 {
  margin-top: 0;
  font-size: 22px;
}

.download-help p {
  margin: 12px 0 0;
}

.download-help a {
  display: inline-flex;
  margin-top: 16px;
  color: #f4d991;
  border-bottom: 1px solid rgba(244, 217, 145, 0.42);
  line-height: 1.6;
}

.download-footer-inner {
  min-height: 220px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: var(--content);
  min-height: 220px;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
  text-align: center;
}

.footer-legal {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-legal p {
  margin: 0;
}

@media (max-width: 900px) {
  :root {
    --content: min(100% - 36px, 680px);
  }

  .site-header {
    height: 56px;
  }

  .hero {
    min-height: clamp(430px, 72vw, 640px);
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(15, 14, 12, 0) 0%, rgba(15, 14, 12, 0.3) 56%, rgba(10, 7, 0, 0.98) 100%),
      url("assets/top-bg.png") center top / 760px auto no-repeat;
  }

  .hero-content {
    min-height: clamp(430px, 72vw, 640px);
  }

  .hero-logo {
    top: clamp(-78px, -7vw, -34px);
    width: min(220vw, 1500px);
  }

  .download-actions {
    gap: 18px;
    top: clamp(300px, 76vw, 572px);
  }

  .download-button {
    width: 154px;
    height: 44px;
    font-size: 16px;
  }

  .section {
    background:
      linear-gradient(180deg, rgba(10, 7, 0, 0.18), rgba(10, 7, 0, 0.6)),
      url("assets/main-bg.png") center top / 760px auto repeat-y;
  }

  .intro-section {
    padding: 32px 0 78px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-heading p {
    margin-top: 9px;
    font-size: 12px;
  }

  .heading-divider-small {
    width: 163px;
    height: 24px;
  }

  .heading-divider-wide {
    width: 246px;
    height: 24px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 44px;
  }

  .intro-visual {
    min-height: 270px;
    order: 2;
  }

  .intro-visual img {
    width: min(82vw, 330px);
  }

  .copy-block h3 {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .copy-block p {
    font-size: 14px;
    line-height: 1.72;
  }

  .showcase-section {
    padding-bottom: 82px;
  }

  .showcase {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    margin-top: 48px;
  }

  .carousel-control,
  .carousel-control img {
    width: 36px;
    height: 36px;
  }

  .showcase-stage figcaption {
    left: 10px;
    bottom: 10px;
    font-size: 12px;
  }

  .thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: var(--content);
  }

  .thumb {
    width: auto;
    height: auto;
    aspect-ratio: 197 / 90;
  }

  .feature-section {
    min-height: 0;
    padding-right: max(18px, calc((100% - 680px) / 2));
    padding-left: max(18px, calc((100% - 680px) / 2));
  }

  .feature-cards,
  .feature-phone {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 66px;
  }

  .feature-copy {
    width: 100%;
  }

  .feature-cards .feature-copy {
    order: 1;
  }

  .feature-cards .feature-art {
    order: 2;
  }

  .card-art img {
    width: min(86vw, 390px);
    margin: 0 auto;
  }

  .phone-art img {
    width: min(74vw, 310px);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    min-height: 190px;
    padding: 34px 0;
  }

  .footer-legal {
    font-size: 10px;
  }

  .download-hero {
    padding: 28px 0 38px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(10, 8, 5, 0.86)),
      url("assets/top-bg.png") center top / 760px auto no-repeat;
  }

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

  .download-hero h1 {
    font-size: 32px;
  }

  .download-lead {
    font-size: 14px;
  }

  .download-cards {
    grid-template-columns: 1fr;
  }

  .download-card-head {
    min-height: 0;
  }

  .download-card {
    padding: 24px 22px;
  }

  .download-note {
    min-height: 0;
  }

  .primary-download {
    width: 230px;
    height: 50px;
    font-size: 18px;
  }

  .download-help {
    padding: 22px;
  }

}

@media (max-width: 520px) {
  :root {
    --content: min(100% - 28px, 430px);
  }

  .site-header {
    left: 0;
    display: block;
    height: 64px;
    width: 100%;
    padding: 0 14px;
    transform: none;
  }

  .hero {
    min-height: 380px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(15, 14, 12, 0) 0%, rgba(15, 14, 12, 0.18) 54%, rgba(10, 7, 0, 0.98) 100%),
      url("assets/top-bg.png") center top / 750px auto no-repeat;
  }

  .hero-content {
    min-height: 380px;
  }

  .hero-logo {
    top: -50px;
    width: 840px;
  }

  .download-actions {
    top: 336px;
  }

  .download-button {
    width: 128px;
    height: 36px;
    font-size: 13px;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.72));
  }

  .intro-section {
    padding-top: 26px;
  }

  .intro-grid {
    margin-top: 38px;
  }

  .intro-visual {
    min-height: 235px;
  }

  .showcase {
    display: block;
    width: calc(100% - 52px);
  }

  .carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    background: rgba(8, 7, 5, 0.34);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%);
  }

  .carousel-control:hover {
    transform: translateY(-50%) scale(1.08);
  }

  .carousel-prev {
    left: 4px;
  }

  .carousel-next {
    right: 4px;
  }

  .thumbs {
    display: flex;
    width: calc(100% - 28px);
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .thumbs::-webkit-scrollbar {
    display: none;
  }

  .thumb {
    flex: 0 0 112px;
    width: 112px;
    height: 52px;
  }

  .thumb.is-active::before {
    top: -17px;
    width: 18px;
    height: 16px;
  }

  .feature-cards,
  .feature-phone {
    gap: 18px;
  }

  .card-art img {
    width: min(108vw, 420px);
    transform: translateX(22px);
  }

  .phone-art img {
    width: min(94vw, 360px);
  }

  .feature-phone {
    padding-bottom: 54px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-legal {
    max-width: 330px;
    word-break: break-all;
  }

  .download-hero {
    padding: 42px 0 32px;
  }

  .download-hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .download-hero h1 {
    font-size: 29px;
  }

  .download-lead {
    max-width: 340px;
  }

  .download-cards {
    gap: 16px;
    width: calc(100% - 48px);
    margin-top: 24px;
    padding-bottom: 24px;
  }

  .download-help {
    width: calc(100% - 48px);
  }

  .download-lead {
    max-width: calc(100vw - 56px);
  }

  .download-card,
  .download-help {
    border-right: 0;
    border-left: 0;
    padding-right: 18px;
    padding-left: 18px;
  }

  .download-card h2 {
    font-size: 22px;
  }

  .download-card p,
  .download-help p,
  .install-steps li {
    font-size: 14px;
  }

  .primary-download {
    width: min(100%, 280px);
    margin-right: auto;
    margin-left: auto;
  }

  .download-help {
    margin-bottom: 38px;
  }
}
