:root {
  --bg: #eef1fb;
  --text: #1a2240;
  --text-muted: #5c6688;
  --primary: #4f63ff;
  --primary-dark: #6b4dff;
  --green: #18c56a;
  --green-dark: #12a858;
  --apple: #1c1c1e;
  --card: #ffffff;
  --border: rgba(99, 118, 200, 0.12);
  --shadow: 0 12px 32px rgba(52, 68, 160, 0.1);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 14px 100px;
}

/* ── Nav ── */
.top-nav {
  position: sticky;
  top: 8px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(60, 80, 180, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

#nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(65, 77, 179, 0.22);
}

#nav-title {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(90deg, #3d52ff, #8b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-actions {
  display: flex;
  gap: 6px;
}

/* ── Hero ── */
.hero {
  position: relative;
  margin-top: 12px;
  border-radius: var(--radius-lg);
  padding: 22px 18px 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #3d52ff 0%, #6b4dff 55%, #9b5cff 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(61, 82, 255, 0.35);
}

.hero-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  position: relative;
  margin: 0;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

#hero-title {
  position: relative;
  margin: 10px 0 6px;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  position: relative;
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.5;
}

.hero-highlights {
  position: relative;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.highlight-item {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.highlight-item strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.highlight-item span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.9;
}

.hero-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* ── Section headers ── */
.section-head {
  margin-bottom: 14px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: #eef0ff;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.section-label-hot {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.section-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Panels ── */
.panel {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px 16px;
}

/* ── Feature cards ── */
.feature-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #f7f8ff;
  border: 1px solid #e8ebff;
  margin-top: 12px;
}

.feature-card-primary {
  background: linear-gradient(135deg, #f0f2ff 0%, #faf5ff 100%);
  border-color: #dce2ff;
}

.feature-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #2a3480;
  line-height: 1.35;
}

.feature-body p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ── Download hub ── */
.panel-download-hub {
  background: linear-gradient(180deg, #fff 0%, #f5f7ff 100%);
  border-color: #d0d8ff;
  box-shadow: 0 16px 40px rgba(61, 82, 255, 0.14);
}

.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.download-card {
  border-radius: var(--radius-md);
  padding: 14px 12px;
  border: 1px solid var(--border);
}

.download-card-android {
  background: linear-gradient(180deg, #f0fff6 0%, #fff 100%);
  border-color: #b8efd0;
}

.download-card-apple {
  background: linear-gradient(180deg, #f8f8fa 0%, #fff 100%);
  border-color: #ddd;
}

.download-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-card-icon {
  font-size: 28px;
  line-height: 1;
}

.download-card-top h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.download-card-top p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.platform-tags {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.download-card-android .platform-tags li {
  font-size: 10px;
  color: #128a4a;
  background: #e0f9ec;
  border-radius: 999px;
  padding: 3px 8px;
}

.download-card-apple .platform-tags li {
  font-size: 10px;
  color: #444;
  background: #eee;
  border-radius: 999px;
  padding: 3px 8px;
}

/* ── Capabilities ── */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cap-item {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  background: #f7f8ff;
  border: 1px solid #eaecff;
  text-align: center;
}

.cap-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-style: normal;
  font-size: 18px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(80, 100, 200, 0.1);
}

.cap-item strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text);
}

.cap-item span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Steps ── */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed #e4e8f8;
}

.step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-item em {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

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

/* ── Rating ── */
.panel-rating {
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.rating-stars {
  font-size: 22px;
  color: #ffb400;
  letter-spacing: 2px;
}

.panel-rating .score {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.panel-rating .score strong {
  font-size: 28px;
  color: var(--text);
}

.panel-rating .note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}

/* ── Stats strip (subtle, bottom) ── */
.stats-strip {
  margin-top: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  padding: 10px;
}

.stats-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stat-chip {
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: #f4f6ff;
}

.stat-chip strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
  line-height: 1.2;
}

.stat-chip span {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Buttons ── */
.btn-mini,
.btn-main,
.btn-platform {
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-mini:active,
.btn-main:active,
.btn-platform:active {
  transform: scale(0.97);
}

.btn-mini {
  border-radius: 20px;
  font-size: 12px;
  padding: 7px 12px;
}

.btn-mini-android {
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  box-shadow: 0 4px 12px rgba(18, 168, 88, 0.35);
}

.btn-mini-apple {
  background: linear-gradient(90deg, #444, var(--apple));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-main {
  width: 100%;
  border-radius: 14px;
  font-size: 14px;
  padding: 14px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-main-android {
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  box-shadow: 0 8px 24px rgba(18, 168, 88, 0.38);
}

.btn-main-apple {
  background: linear-gradient(90deg, #444, var(--apple));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.btn-platform {
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 14px;
}

.btn-android {
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  box-shadow: 0 6px 18px rgba(18, 168, 88, 0.32);
}

.btn-apple {
  background: linear-gradient(90deg, #444, var(--apple));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.btn-icon {
  font-size: 16px;
  line-height: 1;
}

/* ── Fixed bottom bar ── */
.download-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 14px calc(env(safe-area-inset-bottom) + 10px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(60, 80, 180, 0.1);
}

.download-bar-inner {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.download-bar .btn-main {
  font-size: 14px;
  padding: 13px 8px;
}

@media (min-width: 768px) {
  .page {
    padding-left: 0;
    padding-right: 0;
  }
}
