:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-hover: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --free: #059669;
  --free-bg: #ecfdf5;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.05), 0 18px 40px rgba(15, 23, 42, 0.09);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --surface: #111827;
    --surface-subtle: #1e293b;
    --ink: #f8fafc;
    --muted: #94a3b8;
    --faint: #64748b;
    --line: rgba(255, 255, 255, 0.09);
    --line-hover: rgba(255, 255, 255, 0.2);
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --free: #34d399;
    --free-bg: rgba(16, 185, 129, 0.14);
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.03em;
}
.brand img { border-radius: 7px; display: block; }
.brand b { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .lang-pill {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.nav .lang-pill:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 42px 0 20px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--free-bg);
  color: var(--free);
  font-size: 12.5px;
  font-weight: 700;
}
.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 850;
}
.hero-sub {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
}
.facts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--muted);
  list-style: none;
}
.facts li { display: inline-flex; align-items: center; gap: 4px; }
.facts b { color: var(--ink); font-weight: 700; }
.facts .dot { color: var(--faint); }
.brief-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
.brief-link:hover { text-decoration: underline; }

/* Featured Spotlight Card */
.spotlight {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border-radius: 20px;
  color: #f8fafc;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(56, 189, 248, 0.25), transparent 65%),
    linear-gradient(145deg, #0b152b 0%, #11244d 58%, #0c1a38 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
}
.spotlight-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.spotlight-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 8px;
  vertical-align: 2px;
}
.spotlight h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: inline;
}
.spotlight-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #cbd5e1;
}
.spotlight-cta {
  flex-shrink: 0;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.spotlight:hover .spotlight-cta { background: #3b82f6; }

.spotlight-board {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: center;
}
.rank-list { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.rank-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
}
.rank-num { color: #94a3b8; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-name em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  margin-left: 5px;
}
.val-up { color: #34d399; font-weight: 700; font-variant-numeric: tabular-nums; }
.val-down { color: #fb7185; font-weight: 700; font-variant-numeric: tabular-nums; }
.sparkline { width: 100%; height: 74px; display: block; }
.spotlight-foot {
  margin-top: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* Section Headers */
.section { margin-top: 52px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
.section-more:hover { text-decoration: underline; }

/* Category Filter Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button {
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tabs button:hover { color: var(--ink); background: var(--surface-subtle); }
.tabs button.on {
  background: var(--ink);
  color: var(--bg);
}

/* 4x2 Bento App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-lg);
}
.app-card[hidden] { display: none; }
.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.app-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.app-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.app-cat {
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
}
.free-badge {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--free);
  background: var(--free-bg);
  padding: 2px 8px;
  border-radius: 999px;
}
.app-desc {
  margin: 12px 0 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.app-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.app-open {
  font-weight: 700;
  color: var(--accent);
}
.app-open:hover { color: var(--accent-hover); text-decoration: underline; }
.app-detail {
  color: var(--muted);
  font-weight: 500;
}
.app-detail:hover { color: var(--ink); }

/* Updates Grid */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.update-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.update-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.update-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.update-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 6px;
}
.update-card h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.update-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.update-read {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
}

/* FAQ & About */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.faq-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.faq-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.en-box {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
}
.en-box small {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.en-box h2 { margin: 6px 0 10px; font-size: 19px; }
.en-box p, .en-box li { font-size: 14px; color: var(--muted); line-height: 1.7; }
.en-box a { color: var(--accent); font-weight: 600; }

/* Subpages: Breadcrumb, App Detail, Updates List, Article */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--accent); }

.detail-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.detail-hero-main { display: flex; gap: 18px; align-items: flex-start; max-width: 680px; }
.detail-icon { width: 64px; height: 64px; border-radius: 16px; }
.detail-icon svg { width: 32px; height: 32px; }
.detail-hero h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.detail-hero .subtitle { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cat-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-subtle);
  padding: 3px 10px;
  border-radius: 999px;
}
.detail-cta-group { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.detail-cols {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.panel h2 { margin: 0 0 14px; font-size: 18px; }
.panel ul { margin: 0; padding-left: 20px; color: var(--muted); }
.panel li { margin-bottom: 10px; line-height: 1.65; }
.signup-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 13.5px;
}

.updates-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.update-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.update-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.update-row-date {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.update-row h2 { margin: 6px 0 8px; font-size: 18px; line-height: 1.35; }
.update-row p { margin: 0; font-size: 14px; color: var(--muted); }

/* Article */
.article-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 40px;
  margin-top: 12px;
  box-shadow: var(--shadow-md);
}
.article-wrap h1 { margin: 12px 0 10px; font-size: 28px; line-height: 1.3; letter-spacing: -0.02em; }
.article-summary { margin: 0 0 24px; font-size: 15.5px; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-body h2 { margin: 28px 0 12px; font-size: 19px; }
.article-body h3 { margin: 22px 0 10px; font-size: 16.5px; }
.article-body p { margin: 0 0 14px; color: var(--ink); line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; line-height: 1.75; }
.article-body a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body code {
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}
.related-app-bar {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1060px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
}
@media (max-width: 760px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .nav { gap: 14px; font-size: 13px; }
  .updates-grid, .faq-grid, .detail-cols { grid-template-columns: 1fr; }
  .update-row { grid-template-columns: 1fr; gap: 8px; }
  .article-wrap { padding: 24px 20px; }
  .detail-hero { padding: 22px; }
  .detail-cta-group { align-items: flex-start; width: 100%; }
}
@media (max-width: 560px) {
  .app-grid { grid-template-columns: 1fr; }
  .spotlight-board { grid-template-columns: 1fr; }
}
