:root {
  --ink: #121826;
  --muted: #5c6578;
  --line: #d7deea;
  --paper: #eef2f7;
  --card: #ffffff;
  --accent: #2f5bff;
  --accent-dark: #1e45d4;
  --teal: #0f766e;
  --good: #15803d;
  --shadow: 0 18px 50px rgba(18, 24, 38, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(47, 91, 255, 0.12), transparent 60%),
    radial-gradient(900px 360px at -10% 20%, rgba(15, 118, 110, 0.08), transparent 55%),
    var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  overflow-x: hidden;
  word-break: break-word;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 7vw;
  background: rgba(238, 242, 247, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { border-radius: 9px; }
.nav-brand strong { display: block; font-size: 16px; line-height: 1.1; }
.nav-brand small { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.lg { padding: 13px 22px; min-width: 168px; }
.btn.disabled { opacity: 0.45; pointer-events: none; }

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px;
  align-items: center; padding: 64px 7vw 40px;
}
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(47, 91, 255, 0.1); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.12; letter-spacing: -0.03em; }
.lead { margin: 18px 0 28px; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 280px; background: #1b2233; border-radius: 32px; padding: 12px;
  box-shadow: var(--shadow), 0 0 0 10px rgba(18, 24, 38, 0.04);
}
.phone-notch { width: 86px; height: 8px; margin: 4px auto 10px; background: #0d121c; border-radius: 8px; }
.phone-screen { background: #fff; border-radius: 22px; min-height: 420px; padding: 14px; }
.fake-top { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.fake-top img { border-radius: 6px; }
.fake-modes { display: flex; gap: 6px; margin: 14px 0; font-size: 12px; color: var(--muted); }
.fake-modes span { padding: 5px 8px; border-radius: 999px; background: #f1f4fa; }
.fake-modes .on { background: #e8edff; color: var(--accent); font-weight: 700; }
.fake-msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
.fake-msg.bot { background: #f4f6fb; }
.fake-msg.me { margin-left: auto; background: #2f5bff; color: #fff; }
.fake-chip { font-size: 12px; color: var(--accent); background: #eef2ff; padding: 8px; border-radius: 10px; }
.fake-bar { margin-top: 18px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: #98a2b3; font-size: 13px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 12px 7vw 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stats div { padding: 22px 18px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: none; }
.stats b { display: block; font-size: 28px; letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 13px; }

.features, .catalog, .download { padding: 56px 7vw; }
.sec-head { max-width: 640px; margin-bottom: 28px; }
.sec-head h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.03em; }
.sec-head p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid article, .dl-card, .item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
}
.grid i { font-style: normal; font-size: 22px; }
.grid h3, .dl-card h3, .item h3 { margin: 10px 0 8px; font-size: 17px; }
.grid p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

.catalog { background: rgba(255,255,255,0.45); }
.catalog-bar { display: flex; gap: 10px; max-width: 560px; margin-bottom: 16px; }
.catalog-bar input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 16px; font-size: 15px; outline: none;
}
.catalog-bar input:focus { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--muted);
}
.chip.on { border-color: var(--accent); color: var(--accent); background: #eef2ff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.item { display: flex; flex-direction: column; gap: 6px; min-height: 132px; }
.item .brand { font-size: 12px; color: var(--teal); font-weight: 700; }
.item h3 { margin: 0; font-size: 15px; }
.item .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.stock { font-size: 12px; font-weight: 700; color: var(--good); }
.stock.low { color: #b45309; }
.stock.out { color: #b91c1c; }
.price-lock {
  font-size: 12px; color: var(--muted); background: #f4f6fb;
  border-radius: 999px; padding: 4px 8px;
}
.catalog-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card .ver { font-weight: 700; margin: 12px 0 18px; }
.dl-card .hint { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.dl-card.recommend { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.12); }

.foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 28px 7vw 40px; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; z-index: 50;
}
.hidden { display: none !important; }
.m-dock { display: none; }

@media (max-width: 980px) {
  .hero, .grid, .dl-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero { padding: 28px 16px 20px; gap: 24px; }
  .hero-visual { display: none; }
  .stats div { border-right: 1px solid var(--line); }
  .stats div:nth-child(2n) { border-right: none; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nav { padding: 10px 16px; gap: 10px; }
  .hero, .features, .catalog, .download, .foot { padding-left: 16px; padding-right: 16px; }
  .stats { margin-left: 16px; margin-right: 16px; }
}

@media (max-width: 720px) {
  .nav-download { display: none; }
  .nav-brand strong { font-size: 15px; }
  .nav-brand img { width: 30px; height: 30px; }
  .hero h1 { font-size: 28px; line-height: 1.25; letter-spacing: -0.02em; }
  .lead { font-size: 15px; line-height: 1.7; margin: 12px 0 20px; }
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .btn.lg { min-width: 0; width: 100%; padding: 13px 16px; }
  .hero-note { font-size: 12px; }
  .stats { margin-top: 4px; }
  .stats div { padding: 16px 12px; }
  .stats b { font-size: 22px; }
  .features, .catalog, .download { padding-top: 36px; padding-bottom: 36px; }
  .sec-head { margin-bottom: 18px; }
  .sec-head h2 { font-size: 22px; }
  .sec-head p { font-size: 14px; line-height: 1.6; }
  .grid { gap: 10px; }
  .grid article, .dl-card, .item { padding: 16px; }
  .catalog-bar { flex-direction: column; max-width: none; }
  .catalog-bar input {
    width: 100%; font-size: 16px; border-radius: 14px;
  }
  .catalog-bar .btn { width: 100%; }
  .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .chip { flex: 0 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .item { min-height: 0; }
  .item .row { gap: 8px; flex-wrap: wrap; }
  .catalog-cta { display: grid; grid-template-columns: 1fr; }
  .catalog-cta .btn, .dl-card .btn.lg { width: 100%; }
  .foot {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 32px); text-align: center; }
  .m-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(238, 242, 247, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .m-dock .btn { width: 100%; }
}
