:root {
  --bg: #000;
  --surface: #1d1d1d;
  --text: #fff;
  --text-muted: #b3b3b3;
  --text-dim: #8c8c8c;
  --accent: #bcff2f;
  --accent-btn-bg: #133f06;
  --border-subtle: rgba(255, 255, 255, 0.13);
  --glass: rgba(255, 255, 255, 0.08);
  --header-h: 64px;
  --max-w: 1200px;
  --font: OKXSans, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

mark {
  background: none;
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: #000;
  padding: 8px 12px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-mark {
  color: #fff;
}

.brand-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  transition: background 0.15s ease;
}

.icon-btn:hover,
.icon-btn[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.08);
}

/* Language panel */
.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
}

.lang-panel {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 16px;
  z-index: 210;
  width: min(420px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - var(--header-h) - 32px));
  display: flex;
  flex-direction: column;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.lang-panel[hidden],
.lang-overlay[hidden] {
  display: none !important;
}

.lang-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.lang-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.lang-panel-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
}

.lang-panel-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-search-wrap {
  position: relative;
  margin: 0 16px 12px;
}

.lang-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.lang-search {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  outline: none;
}

.lang-search::placeholder {
  color: var(--text-dim);
}

.lang-search:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.lang-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  transition: background 0.15s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-option.is-active {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.lang-empty {
  grid-column: 1 / -1;
  margin: 12px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

html[dir='rtl'] .lang-panel {
  right: auto;
  left: 16px;
}

html[dir='rtl'] .lang-search {
  padding: 0 36px 0 12px;
}

html[dir='rtl'] .lang-search-icon {
  left: auto;
  right: 12px;
}

html[dir='rtl'] .lang-option {
  text-align: right;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: 675px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.72) 72%, #000 100%),
    url("../assets/images/hero-bg.png") center / cover no-repeat,
    #000;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  min-height: inherit;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 48px;
  align-items: center;
}

.hero-content {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 400;
}

.hero-title {
  margin: 0 0 36px;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 49px;
  padding: 14px 24px;
  border-radius: 50px;
  background: var(--accent-btn-bg);
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.download-btn:hover {
  filter: brightness(1.15);
}

.download-btn-icon {
  flex-shrink: 0;
}

.ios-hint {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.trust-banner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  transition: background 0.15s ease;
}

.trust-banner:hover {
  background: rgba(255, 255, 255, 0.12);
}

.trust-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.trust-icon {
  width: 22px;
  height: 22px;
}

.trust-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.trust-stats strong {
  color: #fff;
  font-weight: 600;
  margin-right: 4px;
}

.trust-arrow {
  margin-left: auto;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* QR Card */
.qr-card {
  width: 296px;
  padding: 24px 16px;
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
  justify-self: end;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  animation: fadeUp 0.7s ease 0.12s both;
}

.qr-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.qr-subtitle {
  margin: 8px 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.qr-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box canvas,
.qr-box img {
  width: 100% !important;
  height: 100% !important;
}

.qr-alt {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 13px;
}

.qr-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.qr-links a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.qr-links a:hover {
  opacity: 1;
}

/* Selling points */
.selling-points {
  padding: 96px 0 48px;
  background: #000;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.selling-points h2,
.faq h2 {
  margin: 0 0 48px;
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.25;
}

.selling-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.selling-card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  flex-direction: column;
}

.selling-card-content {
  padding: 32px 32px 16px;
}

.card-eyebrow {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 14px;
}

.selling-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.card-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.selling-card-media {
  margin-top: auto;
  padding: 0 24px 24px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.selling-card-media img {
  width: min(278px, 100%);
  height: auto;
}

/* FAQ */
.faq {
  padding: 72px 0 96px;
}

.faq-inner {
  max-width: 920px;
}

.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.faq-item:not(.open) .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: none;
  padding: 0 0 24px;
}

.faq-item.open .faq-panel {
  display: block;
}

.faq-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 820px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 0 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-copy {
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 13px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  font-size: 13px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.social-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 13px;
}

.social-links a:hover {
  color: #fff;
}

.footer-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1100px) {
  .selling-cards {
    grid-template-columns: 1fr;
  }

  .selling-card {
    min-height: auto;
  }

  .selling-card-media {
    padding-bottom: 32px;
  }

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

@media (max-width: 960px) {
  .lang-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: min(70vh, 560px);
    border-radius: 16px 16px 0 0;
  }

  .lang-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    /* 手机端去掉大背景图，减轻首屏带宽与解码开销 */
    background:
      radial-gradient(ellipse at 30% 0%, rgba(30, 80, 20, 0.45), transparent 55%),
      linear-gradient(180deg, #0a0f08 0%, #000 70%);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .hero-content,
  .qr-card {
    animation: none;
  }

  /* 手机自带下载按钮，二维码卡片无意义 */
  .qr-card {
    display: none !important;
  }

  .trust-banner {
    flex-wrap: wrap;
  }

  .trust-arrow {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    margin-bottom: 28px;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .trust-stats {
    width: 100%;
  }


  .selling-points {
    padding-top: 64px;
  }

  .selling-card-content {
    padding: 24px 20px 12px;
  }

  .selling-card h3 {
    font-size: 22px;
  }

  .faq-trigger {
    font-size: 16px;
    padding: 20px 0;
  }

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