:root {
  --bg: #0c0f14;
  --bg-elevated: #141a22;
  --surface: #1a222d;
  --text: #eef2f7;
  --text-muted: #94a3b8;
  --accent: #ff775e;
  --accent-soft: rgba(255, 119, 94, 0.14);
  --accent-glow: rgba(255, 119, 94, 0.35);
  --border: rgba(148, 163, 184, 0.14);
  --radius: 16px;
  --max-width: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(12, 15, 20, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-en {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.tm {
  font-size: 0.58em;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.05em;
  opacity: 0.88;
  letter-spacing: 0;
}

.trademark-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(30, 109, 181, 0.35);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--text);
}

.nav-dropdown-chevron {
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 232px;
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 120;
}

.nav-dropdown.open .nav-dropdown-panel {
  display: block;
}

.download-panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.download-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 148px;
  border-radius: 12px;
  border: 1.5px dashed rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-muted);
}

.download-qr-placeholder span {
  font-size: 0.8125rem;
}

.download-qr-wrap,
.download-qr-link {
  display: block;
  width: 168px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}

.download-qr {
  display: block;
  width: 168px;
  height: 168px;
}

.download-apk-link {
  display: block;
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-apk-link:hover {
  color: #bae6fd;
}

.download-panel-hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff9a7a);
  color: #1a0f0c;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% auto auto 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 520px;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffb4a3;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, #fff 30%, #ffb4a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  min-width: 120px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* 设计稿截图 · 390×930，框高在 837 基础上顶部 +5% */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  margin-inline: auto;
  width: min(100%, 300px);
  aspect-ratio: 390 / 879;
  border-radius: 44px;
  padding: 4px;
  background: linear-gradient(165deg, #4a4a4c 0%, #2c2c2e 38%, #1c1c1e 100%);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.phone-frame--iphone::before {
  content: "";
  position: absolute;
  top: 14%;
  right: -2px;
  width: 3px;
  height: 12%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #3a3a3c, #1c1c1e);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.phone-screen {
  container-type: inline-size;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: #fff4f3;
  position: relative;
}

.phone-island {
  position: absolute;
  top: 2.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  min-width: 74px;
  max-width: 106px;
  height: 3.4%;
  min-height: 21px;
  max-height: 27px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.18);
}

.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.phone-status-bar--ios {
  height: 9.5%;
  min-height: 34px;
  padding: 2.8% 7% 0;
  color: #000;
}

.phone-status-time {
  font-size: clamp(11px, 4.1cqw, 15px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: -apple-system, "SF Pro Text", "PingFang SC", sans-serif;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: clamp(3px, 1.2cqw, 6px);
}

.phone-status-signal {
  width: clamp(15px, 4.6cqw, 18px);
  height: auto;
}

.phone-status-wifi {
  width: clamp(14px, 4.4cqw, 17px);
  height: auto;
}

.phone-status-battery {
  width: clamp(22px, 6.8cqw, 27px);
  height: auto;
}

.phone-status-battery--ios {
  width: clamp(24px, 7.2cqw, 28px);
}

.phone-screenshot {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 119, 94, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* About */
.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem;
}

.about-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

.about-panel p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.about-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-card p {
  margin: 0;
  font-size: 1rem;
}

/* Legal pages */
.legal-page {
  padding: 3rem 0 5rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: #090b0f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 28rem;
}

.footer-links h4 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-filings {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.footer-beian {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-beian img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-inner .footer-filings {
  margin-top: 0.5rem;
}

.footer-license-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .phone-frame {
    width: min(100%, 280px);
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .phone-frame {
    margin-inline: auto;
  }

  .about-panel {
    padding: 1.5rem;
  }
}
