:root {
  --bg: #0f1419;
  --bg-elevated: #1a212c;
  --bg-card: #222b38;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f3f7;
  --text-muted: #9aa5b5;
  --accent: #ff8a2b;
  --accent-dim: rgba(255, 138, 43, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.85; }

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

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15, 20, 25, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); opacity: 1; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-left: 8px;
}

.lang-switch a {
  color: var(--text-muted);
  font-weight: 500;
}

.lang-switch a.is-active,
.lang-switch a:hover {
  color: var(--accent);
  opacity: 1;
}

.lang-switch__sep {
  color: var(--border);
  user-select: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8a2b 0%, #e07020 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(255, 138, 43, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(255, 138, 43, 0.36);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--bg-elevated); opacity: 1; }

.app-store-badge {
  height: 48px;
  width: auto;
}

/* Hero */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 138, 43, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.phone-frame {
  background: var(--bg-card);
  border-radius: 40px;
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  background: #121820;
  aspect-ratio: 9 / 19.5;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* App screenshot gallery */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.screenshot-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.screenshot-card:hover {
  border-color: rgba(255, 138, 43, 0.35);
  transform: translateY(-2px);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

.screenshot-card figcaption {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.showcase-image img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 138, 43, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.95;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

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

.highlight-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 24px;
}

.showcase-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.showcase-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
}

.showcase-list li:last-child { border-bottom: none; }

.showcase-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 0;
}

.cta h2 { margin-bottom: 12px; }

.cta p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 32px;
}

/* Support page */
.container--narrow {
  width: min(420px, calc(100% - 32px));
}

.support-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.support-hero--compact {
  padding: 20px 0 12px;
}

.support-hero h1 {
  font-size: clamp(32px, 4vw, 42px);
  margin: 0 0 12px;
}

.support-hero--compact h1 {
  font-size: clamp(22px, 5vw, 28px);
  margin: 0 0 8px;
}

.support-tagline {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent);
}

.section--support-contact {
  padding: 8px 0 32px;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-card--stack {
  padding: 18px 20px;
  text-align: center;
}

.contact-card .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.label--center {
  text-align: center;
}

.contact-card .value {
  font-size: 20px;
  font-weight: 600;
  word-break: break-all;
}

.contact-card--stack .value {
  font-size: clamp(18px, 4.5vw, 22px);
}

.contact-card .value--email {
  font-size: clamp(15px, 3.8vw, 18px);
}

.contact-card .hint {
  font-size: 14px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.contact-card--phone .phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 2px;
}

a.value--phone {
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

a.value--phone:active {
  color: var(--accent);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.btn-call:active {
  filter: brightness(0.92);
}

.wechat-contact {
  max-width: 360px;
  margin: 0 auto 48px;
  text-align: center;
}

.wechat-contact .section-label {
  margin-bottom: 16px;
}

.wechat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
}

.wechat-card--stack {
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  text-align: center;
}

.wechat-card img {
  width: min(220px, 72vw);
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.wechat-card--stack img {
  width: min(200px, 58vw);
  margin: 4px auto 10px;
  padding: 6px;
}

.wechat-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.wechat-card--stack .wechat-hint {
  font-size: 13px;
  margin-bottom: 10px;
}

.faq--support {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.faq--support h2 {
  margin-bottom: 20px !important;
  font-size: 18px;
}

.page-support .site-header .inner {
  padding: 10px 0;
}

.page-support .site-header .nav-links,
.page-support .site-header .btn-ghost {
  display: none;
}

.page-support .notice {
  margin-top: 24px;
  padding: 14px 16px;
}

.page-support .faq-item {
  padding: 16px 0;
}

.wechat-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wechat-id-label {
  font-size: 13px;
  color: var(--text-muted);
}

.wechat-id-row code {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg-elevated);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.btn-copy {
  appearance: none;
  border: 1px solid rgba(255, 138, 43, 0.45);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-copy:active {
  transform: scale(0.97);
}

.btn-copy.is-success {
  border-color: rgba(72, 199, 142, 0.5);
  background: rgba(72, 199, 142, 0.12);
  color: #6dd9a8;
}

.copy-toast {
  font-size: 13px;
  color: #6dd9a8;
  margin: 12px 0 0;
  min-height: 1.2em;
}

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

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

.notice {
  background: var(--accent-dim);
  border: 1px solid rgba(255, 138, 43, 0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 48px;
}

.notice strong { color: var(--text); }

/* Privacy policy */
.policy-meta {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

.policy-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 40px;
}

.policy-summary h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.policy-summary ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.9;
}

.policy-summary strong {
  color: var(--text);
}

.policy-body {
  max-width: 720px;
  margin: 0 auto;
}

.policy-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text);
}

.policy-body h2:first-of-type {
  margin-top: 0;
}

.policy-body p,
.policy-body li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.policy-body ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.policy-body > p:first-child {
  font-size: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .showcase,
  .feature-grid,
  .contact-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

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

  .hero { padding: 48px 0 64px; }
  .hero-grid { gap: 48px; }
  .phone-mockup { order: -1; max-width: 280px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .container--narrow { width: calc(100% - 24px); }
  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .app-store-badge { margin: 0 auto; }
  .page-support .support-hero--compact { padding-top: 12px; }
  .page-support .contact-stack { gap: 10px; }
}
