:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5b6575;
  --line: #d8dee8;
  --soft: #f5f7fb;
  --panel: #ffffff;
  --blue: #1769aa;
  --green: #2f7d5b;
  --red: #c4495e;
  --shadow: 0 22px 60px rgba(25, 38, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fbfcfe;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 105, 170, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 105, 170, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 222, 232, 0.86);
  background: rgba(251, 252, 254, 0.92);
  backdrop-filter: blur(14px);
  transition:
    padding 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(251, 252, 254, 0.96);
  box-shadow: 0 12px 28px rgba(25, 38, 61, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(23, 105, 170, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--blue);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.language-switcher select {
  min-height: 34px;
  padding: 5px 30px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.language-switcher select:hover,
.language-switcher select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(520px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: clamp(44px, 7vw, 86px) clamp(20px, 5vw, 72px) clamp(32px, 5vw, 64px);
}

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

.hero-copy,
.product-preview,
.download-section,
.support-panel {
  transform: translateY(var(--parallax-y, 0));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: 1.04;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.16;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-text {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button.primary {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.button.secondary {
  color: var(--ink);
  background: white;
}

.button:hover {
  transform: translateY(calc(var(--parallax-y, 0px) - 2px));
  box-shadow: 0 12px 30px rgba(23, 105, 170, 0.16);
}

.download-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #edf1f7;
}

.product-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform:
    translateY(var(--parallax-y, 0))
    perspective(1100px)
    rotateX(1.4deg)
    rotateY(-2deg);
  transform-origin: center;
  transition:
    transform 220ms ease-out,
    box-shadow 220ms ease;
}

.product-preview:hover {
  box-shadow: 0 28px 76px rgba(25, 38, 61, 0.2);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f2f5f9;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #aeb8c6;
}

.window-bar span:first-child {
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: #d99b2b;
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 8px;
  font-size: 14px;
}

.app-mock {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 430px;
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f7f8fb;
}

.mock-sidebar label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mock-select,
.mock-sidebar button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #c7d0dc;
  border-radius: 6px;
  background: white;
  font: inherit;
  font-size: 13px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.mock-sidebar button {
  margin-top: 8px;
  color: white;
  border-color: var(--blue);
  background: var(--blue);
  font-weight: 800;
}

.mock-select:hover,
.mock-sidebar button:hover,
.mock-toolbar span:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
}

.mock-chart {
  padding: 18px;
}

.mock-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.mock-toolbar span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease;
}

.chart-card {
  overflow: hidden;
  border: 1px solid #222;
  border-radius: 4px;
  background: white;
}

.chart-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-series,
.chart-trend {
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: draw-chart 1700ms ease forwards;
}

.chart-trend {
  animation-delay: 580ms;
}

.chart-card circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop-point 560ms ease forwards;
  animation-delay: 980ms;
  opacity: 0;
}

.section {
  padding: clamp(52px, 7vw, 90px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.feature-grid article,
.link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.feature-grid article {
  min-height: 190px;
  padding: 22px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.feature-grid article:hover {
  transform: translateY(-5px);
  border-color: #bdd1e4;
  box-shadow: 0 18px 42px rgba(25, 38, 61, 0.1);
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 clamp(20px, 5vw, 72px);
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  transform: translateY(var(--parallax-y, 0));
  transition:
    transform 220ms ease-out,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.download-section:hover {
  border-color: #bdd1e4;
  box-shadow: 0 18px 44px rgba(25, 38, 61, 0.1);
}

.download-section p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.link-card {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 24px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.link-card:hover {
  transform: translateY(-5px);
  border-color: #bdd1e4;
  box-shadow: 0 18px 42px rgba(25, 38, 61, 0.1);
}

.link-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-card strong {
  font-size: 24px;
}

.link-card small {
  color: var(--muted);
  font-size: 14px;
}

.link-card.xhs:hover {
  border-color: var(--red);
  box-shadow: 0 16px 36px rgba(196, 73, 94, 0.12);
}

.link-card.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.support-section {
  padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 7vw, 90px);
}

.support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  position: relative;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 105, 170, 0.2), transparent 42%),
    linear-gradient(120deg, #17202a, #233446 58%, #1d3f50);
  box-shadow: var(--shadow);
  transform: translateY(var(--parallax-y, 0));
  transition:
    transform 220ms ease-out,
    box-shadow 220ms ease;
}

.support-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  animation: slow-ring 9s ease-in-out infinite alternate;
}

.support-copy {
  position: relative;
  max-width: 760px;
  z-index: 1;
}

.support-copy .eyebrow {
  color: #91d4bb;
}

.support-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.support-open {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.24);
  background: #ffffff;
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(calc(var(--parallax-y, 0px) + 22px));
  transition:
    opacity 650ms ease var(--reveal-delay, 0ms),
    transform 650ms ease var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

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

.product-preview.reveal {
  transform:
    translateY(calc(var(--parallax-y, 0px) + 22px))
    perspective(1100px)
    rotateX(1.4deg)
    rotateY(-2deg);
}

.product-preview.reveal.is-visible {
  transform:
    translateY(var(--parallax-y, 0))
    perspective(1100px)
    rotateX(1.4deg)
    rotateY(-2deg);
}

.feature-grid article.reveal.is-visible:hover,
.link-card.reveal.is-visible:hover {
  transform: translateY(-5px);
}

.download-section.reveal.is-visible:hover {
  transform: translateY(calc(var(--parallax-y, 0px) - 3px));
}

@keyframes draw-chart {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pop-point {
  0% {
    opacity: 0;
    transform: scale(0.45);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slow-ring {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-18px, 20px, 0) scale(1.08);
  }
}

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

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

  .reveal,
  .reveal.is-visible,
  .product-preview,
  .product-preview.reveal,
  .product-preview.reveal.is-visible,
  .download-section,
  .support-panel {
    opacity: 1;
    transform: none !important;
  }

  .chart-series,
  .chart-trend {
    stroke-dashoffset: 0;
  }

  .chart-card circle {
    opacity: 1;
  }
}

.support-page {
  background: #f7f9fc;
}

.support-header {
  background: rgba(247, 249, 252, 0.94);
}

.support-main {
  display: grid;
  gap: 28px;
  padding: clamp(34px, 6vw, 72px) clamp(20px, 5vw, 72px) clamp(54px, 7vw, 90px);
}

.support-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.48fr);
  gap: 28px;
  align-items: stretch;
}

.support-hero-copy,
.support-stats,
.payment-workspace {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 42px rgba(25, 38, 61, 0.08);
}

.support-hero-copy {
  padding: clamp(30px, 5vw, 56px);
}

.support-hero-copy p:not(.eyebrow) {
  max-width: 880px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.support-stats {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.support-stats div {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 24px;
  background: #fbfcfe;
}

.support-stats strong {
  font-size: 26px;
}

.support-stats span {
  color: var(--muted);
  line-height: 1.5;
}

.payment-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(420px, 1fr);
  min-height: 620px;
  overflow: hidden;
}

.payment-menu {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #f4f7fb;
}

.payment-option {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px;
  border: 1px solid #d6dee9;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.payment-option:hover,
.payment-option.active {
  border-color: var(--blue);
  box-shadow: 0 14px 30px rgba(23, 105, 170, 0.12);
}

.payment-option.active {
  background: #f7fbff;
}

.payment-option span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-option strong {
  font-size: 22px;
}

.payment-option small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.payment-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(280px, 0.55fr);
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
}

.payment-detail-copy p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.selected-qr {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.selected-qr img {
  display: block;
  width: min(100%, 360px);
  aspect-ratio: 1;
  object-fit: contain;
}

.wallet-address {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d5e6ef;
  border-radius: 8px;
  background: #f5fbff;
}

.wallet-address[hidden] {
  display: none;
}

.wallet-address span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.wallet-address code {
  overflow-wrap: anywhere;
  color: var(--ink);
  background: white;
  border: 1px solid #d8e3ef;
}

.wallet-address button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: white;
  background: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.security-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #d8e7df;
  border-radius: 8px;
  color: #2f604d;
  background: #f4fbf7;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-preview {
    order: -1;
  }

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

  .support-hero,
  .payment-workspace,
  .payment-detail {
    grid-template-columns: 1fr;
  }

  .payment-menu {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher select {
    min-width: 160px;
  }

  .app-mock {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid,
  .link-cards {
    grid-template-columns: 1fr;
  }

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

  .support-main {
    padding-top: 24px;
  }

  .wallet-address {
    grid-template-columns: 1fr;
  }
}
