:root {
  --ink: #181714;
  --paper: #f5f2eb;
  --paper-deep: #e5dfd4;
  --gold: #d9a428;
  --gold-light: #ffe08a;
  --red: #9d201b;
  --forest: #24433a;
  --line: #c9c0b2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 70px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #bdb4a6;
  box-shadow: 0 4px 18px rgba(39, 34, 28, 0.12);
}

.topbar__inner {
  width: min(1500px, calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #2d2924;
  font-size: 21px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
}

nav > a:not(.nav-download) {
  height: 100%;
  display: flex;
  align-items: center;
  color: #4c463e;
  border-bottom: 3px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

nav > a:not(.nav-download):hover {
  color: var(--red);
  border-color: var(--red);
}

.nav-download {
  min-width: 136px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #20190a;
  background: var(--gold);
  border: 1px solid #af7912;
  border-radius: 4px;
  box-shadow: 0 5px 14px rgba(152, 99, 11, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}

.nav-download:hover {
  transform: translateY(-2px);
  background: #f0bc3e;
}

.page-shell {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.hero {
  position: relative;
  height: min(670px, calc(100vh - 70px));
  min-height: 520px;
  background-color: #8a9694;
  background-image: url("hero-dragon-v2.jpg");
  background-position: center 42%;
  background-size: cover;
  border-bottom: 5px solid var(--gold);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 215px;
  background: rgba(8, 12, 12, 0.48);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  z-index: 1;
  left: max(60px, calc((100% - 1420px) / 2));
  bottom: 38px;
  width: 680px;
  color: #fff;
  animation: rise-in 650ms ease both;
}

.hero__content p {
  margin: 0 0 1px;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 2px 4px #000;
}

.hero__content h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.15;
  text-shadow: 0 3px 8px #000;
}

.hero__content > span {
  display: block;
  margin: 5px 0 20px;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 2px 5px #000;
}

.download-button {
  position: relative;
  min-width: 270px;
  min-height: 72px;
  padding: 10px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  color: #211708;
  background: var(--gold);
  border: 2px solid #f8d46c;
  border-radius: 5px;
  box-shadow: 0 0 0 1px #8d5f0e, 0 9px 24px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.download-button::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -55%;
  width: 34%;
  height: 170%;
  background: rgba(255, 255, 255, 0.56);
  transform: rotate(18deg);
  animation: button-shine 3.6s ease-in-out infinite;
}

.download-button b {
  font-size: 22px;
  line-height: 1.2;
}

.download-button small {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.download-button:hover {
  transform: translateY(-3px);
  background: #f2bf43;
}

.download-button--hero {
  animation: download-pulse 2.4s ease-in-out infinite;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 113px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid #454038;
}

.feature-strip div {
  min-height: 102px;
  padding: 22px 12px;
  text-align: center;
  border-right: 1px solid #4d473f;
  animation: rise-in 520ms ease both;
}

.feature-strip div:nth-child(2) { animation-delay: 70ms; }
.feature-strip div:nth-child(3) { animation-delay: 140ms; }
.feature-strip div:nth-child(4) { animation-delay: 210ms; }
.feature-strip div:nth-child(5) { animation-delay: 280ms; }

.feature-strip div:last-child {
  border-right: 0;
}

.feature-strip b,
.feature-strip span {
  display: block;
}

.feature-strip b {
  color: var(--gold-light);
  font-size: 17px;
}

.feature-strip span {
  margin-top: 4px;
  color: #bbb4a9;
  font-size: 12px;
}

.section {
  padding: 70px max(54px, calc((100% - 1420px) / 2)) 76px;
}

.section--light {
  color: #26221d;
  background: var(--paper);
}

.section--dark {
  color: #fff;
  background: #111310;
  border-top: 1px solid #373a33;
}

.section-title {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-title p {
  margin: 0 0 5px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.3;
}

.section-title span {
  color: #6c6459;
  font-size: 14px;
}

.section-title--dark p {
  color: var(--gold-light);
}

.section-title--dark span {
  color: #aaa99f;
}

.journey-line {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.journey-line article {
  position: relative;
  min-height: 138px;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.42);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  transition: background 180ms ease, transform 180ms ease;
}

.journey-line article::after {
  content: "";
  position: absolute;
  top: 53px;
  right: -5px;
  z-index: 2;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.journey-line article:last-child::after {
  display: none;
}

.journey-line article:hover {
  z-index: 3;
  background: #fff;
  transform: translateY(-4px);
}

.journey-line i,
.journey-line b,
.journey-line span {
  display: block;
  font-style: normal;
}

.journey-line i {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.journey-line b {
  margin: 17px 0 2px;
  font-size: 16px;
}

.journey-line span {
  color: #766e64;
  font-size: 12px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.showcase-heading {
  margin: 0 0 16px;
  padding-left: 13px;
  color: var(--gold-light);
  font-size: 20px;
  line-height: 1.4;
  border-left: 4px solid var(--gold);
}

.showcase-heading--second {
  margin-top: 56px;
}

.showcase-grid figure {
  margin: 0;
  overflow: hidden;
  background: #1b1d18;
  border: 1px solid #4c4b42;
  border-radius: 5px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease;
}

.showcase-grid figure:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.showcase-media {
  width: 100%;
  aspect-ratio: 353 / 465;
  overflow: hidden;
  background: #090a08;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 420ms ease;
}

.showcase-grid figure:hover img {
  transform: scale(1.025);
}

.showcase-grid figcaption {
  min-height: 93px;
  padding: 16px 18px;
}

.showcase-grid figcaption b,
.showcase-grid figcaption span {
  display: block;
}

.showcase-grid figcaption b {
  color: var(--gold-light);
  font-size: 18px;
}

.showcase-grid figcaption span {
  margin-top: 4px;
  color: #b7b5ad;
  font-size: 13px;
}

.final-download {
  padding: 70px 40px 76px;
  color: #fff;
  background: var(--red);
  text-align: center;
  border-top: 1px solid #71120f;
}

.final-download p {
  margin: 0 0 6px;
  color: #ffd991;
  font-size: 14px;
  font-weight: 900;
}

.final-download h2 {
  margin: 0 0 24px;
  font-size: 32px;
}

footer {
  width: 100%;
  min-height: 70px;
  margin: 0 auto;
  padding: 18px max(40px, calc((100% - 1500px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #817a71;
  background: #161512;
  font-size: 11px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-shine {
  0%, 55% { left: -55%; }
  78%, 100% { left: 125%; }
}

@keyframes download-pulse {
  0%, 100% { box-shadow: 0 0 0 1px #8d5f0e, 0 9px 24px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 0 0 5px rgba(255, 217, 108, 0.28), 0 12px 30px rgba(0, 0, 0, 0.34); }
}

@media (max-width: 1180px) {
  .hero {
    height: min(620px, calc(100vh - 70px));
    min-height: 500px;
  }

  .journey-line article {
    padding-left: 8px;
    padding-right: 8px;
  }

  nav {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    width: calc(100% - 32px);
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  nav > a:not(.nav-download) {
    display: none;
  }

  .nav-download {
    min-width: 126px;
  }

  .hero {
    height: min(590px, calc(100vh - 70px));
    min-height: 500px;
    background-position: center top;
  }

  .hero::after {
    height: 205px;
  }

  .hero__content {
    left: 28px;
    right: 28px;
    bottom: 28px;
    width: auto;
  }

  .hero__content h1 {
    font-size: 38px;
  }

  .hero__content > span {
    font-size: 15px;
  }

  .section {
    padding: 56px 28px 62px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .journey-line {
    grid-template-columns: repeat(4, 1fr);
  }

  .journey-line article::after {
    display: none;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__second-download {
    display: none;
  }

  .hero__actions {
    gap: 0;
  }

  footer {
    padding: 18px 28px;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 62px;
  }

  .topbar__inner {
    width: calc(100% - 24px);
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-download {
    min-width: 112px;
    height: 38px;
    font-size: 13px;
  }

  .hero {
    height: min(560px, calc(100vh - 62px));
    min-height: 460px;
  }

  .hero__content {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .hero__content p {
    font-size: 12px;
  }

  .hero__content h1 {
    font-size: 34px;
  }

  .hero__content > span {
    margin-bottom: 15px;
    font-size: 14px;
  }

  .download-button {
    min-width: 230px;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-strip div:nth-child(5) {
    grid-column: 1 / -1;
  }

  .section {
    padding: 48px 18px 54px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 25px;
  }

  .journey-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-heading--second {
    margin-top: 44px;
  }

  .final-download {
    padding: 58px 18px 64px;
  }

  .final-download h2 {
    font-size: 27px;
  }

  footer {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
