:root {
  --bg: #0a0c14;
  --bg-2: #12161f;
  --card: #161b28;
  --card-2: #1c2333;
  --brand: #e11d48;
  --brand-hover: #be123c;
  --brand-cyan: #fb7185;
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --text: #eef1f7;
  --muted: #9aa3b8;
  --line: rgba(255, 255, 255, 0.09);
  --line-glow: rgba(225, 29, 72, 0.35);
  --radius: 16px;
  --radius-sm: 8px;
  --max-w: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --page-pad: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
ul { list-style: disc; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  padding-left: max(var(--page-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-pad), env(safe-area-inset-right, 0px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17.5px;
  color: #fff;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a { color: var(--muted); }
.nav-links a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 980px;
  background: linear-gradient(135deg, var(--brand), var(--brand-cyan));
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
  color: #fff !important;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.45);
}

.btn-sm {
  min-height: 34px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
  color: var(--text) !important;
}

.btn-ghost:hover {
  border-color: var(--brand-cyan);
  background: rgba(225, 29, 72, 0.08);
}

.hero {
  padding: 68px 0 44px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  color: #fff;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 52px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 13.5px;
  color: var(--text);
}

.trust-badge svg { color: var(--accent); }
.trust-badge strong { color: var(--accent); }

.section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.platform-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: 0.25s;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.platform-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--card-2), var(--card));
}

.platform-emoji {
  font-size: 28px;
  margin-bottom: 8px;
}

.platform-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}

.platform-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.platform-card ul {
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.platform-card ul strong { color: var(--text); }

.sha-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sha-box h3 {
  font-size: 16px;
  color: #fff;
}

.sha-box p,
.sha-box code {
  font-size: 13.5px;
  color: var(--muted);
  word-break: break-all;
}

.sha-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--brand-cyan);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th, td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
  background: var(--card-2);
}

td { color: var(--text); }
tr:last-child td { border-bottom: none; }

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: 0.25s;
}

.feature-card:hover {
  background: var(--card-2);
  border-color: var(--line-glow);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #fff;
}

.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.security-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.security-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #fff;
}

.security-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-cyan);
  background: rgba(251, 113, 133, 0.12);
  padding: 4px 10px;
  border-radius: 980px;
  display: inline-block;
  margin-bottom: 14px;
}

.step-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #fff;
}

.step-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.changelog-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.changelog-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 18px;
}

.changelog-badge {
  background: rgba(225, 29, 72, 0.15);
  color: var(--brand-cyan);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 980px;
}

.changelog-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.pricing-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--card-2), var(--card));
}

.pricing-card h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}

.price {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.pricing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 8px;
}

.pricing-card ul li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.faq-category { margin-bottom: 32px; }

.faq-cat-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 14px;
  border-left: 4px solid var(--brand-cyan);
  padding-left: 12px;
}

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 16px 20px;
  transition: 0.2s;
}

details[open] {
  border-color: var(--brand);
  background: var(--card-2);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
}

details summary::-webkit-details-marker { display: none; }

details ol,
details ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  background: var(--bg-2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 480px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }

.download-hero {
  padding: 72px 0 40px;
  text-align: center;
}

.download-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 14px;
}

.download-hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .platforms-grid,
  .grid-6,
  .grid-2,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
