:root {
  --bg: #070a12;
  --bg-soft: #0c1120;
  --bg-card: #10172b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2fb;
  --text-dim: #9aa6c4;
  --brand-1: #8b5cf6;
  --brand-2: #38bdf8;
  --brand-3: #22d3ee;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #38bdf8 55%, #22d3ee 100%);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(3, 7, 18, 0.55);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* 背景光晕 */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 15% -5%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(700px 460px at 85% 10%, rgba(56, 189, 248, 0.14), transparent 60%);
}

/* ===== 顶部导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.2px;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14.5px;
  transition: 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #06121f;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.35);
  transition: 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(56, 189, 248, 0.45); }

/* 语言切换器 */
.lang-switch { position: relative; margin-left: 6px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.09); }
.lang-btn svg { width: 17px; height: 17px; }
.lang-btn .lang-caret { width: 14px; height: 14px; transition: transform 0.2s; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  max-height: 340px;
  overflow-y: auto;
  background: #0e1526;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.18s;
  z-index: 60;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { list-style: none; }
.lang-menu a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: 0.15s;
}
.lang-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang-menu a.active { color: #06121f; background: var(--grad); }

/* ===== 通用容器 ===== */
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.section { padding: 96px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.08);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.sec-head p { color: var(--text-dim); font-size: 17px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Hero ===== */
.hero { padding: 96px 0 60px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 13.5px;
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero p.sub {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: clamp(16px, 2.2vw, 19px);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  transition: 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--grad); color: #06121f; box-shadow: 0 14px 34px rgba(56, 189, 248, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(56, 189, 248, 0.5); }
.btn-ghost { border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn svg { width: 20px; height: 20px; }

.hero-visual {
  margin-top: 60px;
  position: relative;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.hero-visual .frame {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #0d1426, #080d1a);
  padding: 26px;
  box-shadow: var(--shadow);
}
.mockbar { display: flex; gap: 7px; margin-bottom: 18px; }
.mockbar i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.mockbar i:first-child { background: #f87171; }
.mockbar i:nth-child(2) { background: #fbbf24; }
.mockbar i:nth-child(3) { background: #34d399; }
.mock-grid { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 18px; }
.mock-tile {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 18px;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}
.mock-tile .mt-label { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 4px; }
.mock-tile .mt-sub { font-size: 13px; font-weight: 800; color: #7dd3fc; margin-bottom: 12px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border-radius: 10px; background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.25); font-size: 12.5px; font-weight: 600; color: #d8cbfb; }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.plat img { width: 34px; height: 34px; border-radius: 8px; }
.plat span { font-size: 11.5px; color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.bar { height: 9px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 10px; }
.bar span { display: block; height: 100%; border-radius: 6px; background: var(--grad); }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(139,92,246,0.4); box-shadow: var(--shadow); }
.feature .icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.22);
  margin-bottom: 20px;
}
.feature .icon svg { width: 26px; height: 26px; stroke: #a78bfa; }
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.feature p { color: var(--text-dim); font-size: 15px; }

/* ===== Screenshots ===== */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.shot { margin: 0; }
.shot img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.shot figcaption { text-align: center; color: var(--text-dim); font-size: 13.5px; margin-top: 12px; }
.phone {
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #10172b, #080d1a);
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.phone .screen {
  height: 100%;
  border-radius: 20px;
  background: #0b1120;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  position: relative;
}
.phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: #05070d; border-radius: 12px; }
.screen .s-head { font-weight: 800; font-size: 15px; margin: 18px 0 12px; text-align: center; }
.screen .s-row { display: flex; gap: 8px; margin-bottom: 9px; }
.screen .s-tile { flex: 1; height: 56px; border-radius: 12px; background: rgba(139,92,246,0.13); border: 1px solid rgba(139,92,246,0.22); }
.screen .s-tile.a { background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.24); }
.screen .s-big { height: 88px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 12px; }
.phone .cap { position: absolute; bottom: -42px; left: 0; right: 0; text-align: center; color: var(--text-dim); font-size: 13.5px; }
.shots { margin-bottom: 44px; }

/* ===== Download ===== */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.dl-card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,0.4); box-shadow: var(--shadow); }
.dl-card.hot { border-color: rgba(139,92,246,0.5); background: linear-gradient(180deg, rgba(139,92,246,0.08), var(--bg-card)); }
.dl-card .store-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}
.dl-card .store-icon svg { width: 34px; height: 34px; }
.dl-card h3 { font-size: 20px; font-weight: 800; }
.dl-card .meta { color: var(--text-dim); font-size: 13.5px; min-height: 20px; }
.dl-card .btn { width: 100%; justify-content: center; font-size: 15px; padding: 13px 24px; }
.tag-hot {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #06121f;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dl-card.hot { position: relative; }
.dl-note { text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 26px; }

/* ===== 权限透明区块 ===== */
.perms { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.perm-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.perm {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 14.5px;
}
.perm b { display: block; margin-bottom: 6px; color: var(--text); }
.perm code { color: #7dd3fc; font-family: ui-monospace, monospace; font-size: 13px; }
.perm span { color: var(--text-dim); }

/* ===== CTA ===== */
.cta-box {
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(56,189,248,0.12)), var(--bg-card);
  padding: 60px 40px;
  text-align: center;
}
.cta-box h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text-dim); font-size: 17px; margin-bottom: 28px; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--border); padding: 60px 0 34px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 15px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.footer-grid a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; transition: 0.2s; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-dim); font-size: 14.5px; margin-top: 12px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text); }

/* ===== 政策页 ===== */
.legal-hero { padding: 70px 0 40px; text-align: center; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.legal-hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; }
.legal-hero .meta { color: var(--text-dim); font-size: 15px; }
.legal-body { padding: 60px 0 80px; }
.legal-body .wrap { max-width: 820px; }
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 44px;
}
.toc h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #c4b5fd; }
.toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; counter-reset: toc; }
.toc li { counter-increment: toc; color: var(--text-dim); font-size: 14.5px; }
.toc li a:hover { color: var(--text); }
.toc li::before { content: counter(toc) ". "; color: #7dd3fc; font-weight: 700; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-size: 22px; font-weight: 800; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.legal-section h2 .num { color: #7dd3fc; margin-right: 8px; }
.legal-section p, .legal-section li { color: #c6cfe2; font-size: 15.5px; margin-bottom: 12px; }
.legal-section ul { padding-left: 22px; list-style: disc; }
.legal-section li { margin-bottom: 8px; }
.legal-section a { color: #7dd3fc; }
.legal-section a:hover { text-decoration: underline; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .features-grid, .dl-grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .lang-switch { margin-left: auto; }
  .features-grid, .dl-grid, .shots, .perm-list { grid-template-columns: 1fr; }
  .mock-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 40px; }
  .section { padding: 64px 0; }
}

/* ===== RTL（阿拉伯语） ===== */
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu a { text-align: right; }
@media (max-width: 680px) {
  [dir="rtl"] .lang-switch { margin-left: 0; margin-right: auto; }
}
