/* 官网样式：颜色取自 design/tokens/a-qinglanglan.json（A 清朗蓝），手机宽度优先 */
:root {
  --canvas: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #EEF1F6;
  --line: #E3E7EE;
  --ink: #111827;
  --ink-2: #4B5565;
  --ink-3: #8A94A6;
  --brand: #1E5EFF;
  --brand-top: #3D7BFF;
  --brand-subtle: #E8EFFF;
  --brand-on-subtle: #1749CC;
  --hero-bg: linear-gradient(180deg, #3D7BFF 0%, #1E5EFF 100%);
  --accent: #FFD25A;
  --warn-subtle: #FFF4E5;
  --phone-frame: #0F172A;
  --phone-ring: transparent;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0B0F17; --surface: #151B26; --surface-2: #1D2532; --line: #263042;
    --ink: #E8ECF3; --ink-2: #A3ADBD; --ink-3: #6B7689;
    --brand: #4C82FF; --brand-subtle: #16244A; --brand-on-subtle: #9DBBFF;
    --hero-bg: linear-gradient(180deg, #1B3D8F 0%, #13274D 100%);
    --warn-subtle: #3A2A10; --phone-frame: #000000; --phone-ring: rgba(255, 255, 255, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--brand); }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* 首屏 */
.hero { background: var(--hero-bg); color: #FFFFFF; }
.hero-grid { display: grid; gap: 40px; padding-top: 56px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 72px; height: 72px; border-radius: 22.37%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55), 0 6px 16px rgba(0, 0, 0, .18); }
.brand h1 { font-size: 24px; font-weight: 700; letter-spacing: .5px; }
.tagline { margin-top: 28px; font-size: 28px; line-height: 1.3; font-weight: 700; }
.tagline span { display: inline-block; }
.sub { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, .82); max-width: 32em; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dl {
  display: inline-flex; align-items: center; gap: 10px; min-width: 168px;
  padding: 10px 18px; border-radius: 12px; text-decoration: none;
  background: #FFFFFF; color: #111827; transition: transform .1s ease-out;
}
.dl svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.dl span { display: flex; flex-direction: column; line-height: 1.25; }
.dl small { font-size: 12px; color: #4B5565; }
.dl b { font-size: 16px; font-weight: 600; }
.dl:not([aria-disabled]):active { transform: scale(.97); }
.dl[aria-disabled] { background: rgba(255, 255, 255, .14); color: #FFFFFF; cursor: default; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.dl[aria-disabled] small { color: rgba(255, 255, 255, .75); }
.hero-phone { display: flex; justify-content: center; margin-bottom: -96px; }
.hero-phone .phone { width: min(280px, 72vw); }

/* 手机外框 */
.phone {
  background: var(--phone-frame); padding: 8px; border-radius: 36px;
  box-shadow: 0 0 0 1px var(--phone-ring), 0 24px 48px rgba(15, 23, 42, .28);
}
.phone img { border-radius: 28px; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; background: #F3F5F9; }

/* 通用区块 */
.section { padding-top: 64px; padding-bottom: 24px; }
#features { padding-top: 136px; }
.section h2 { font-size: 26px; line-height: 1.35; }
.section-sub { margin-top: 8px; color: var(--ink-2); }

.features { display: grid; gap: 14px; margin-top: 28px; }
.feature, .promise {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow);
}
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-subtle); color: var(--brand-on-subtle);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3, .promise h3 { margin-top: 14px; font-size: 18px; }
/* 手机上图标和标题同一行，卡片更紧凑 */
.feature, .promise { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
.feature h3, .promise h3 { margin-top: 0; }
.feature p, .promise p { grid-column: 1 / -1; margin-top: 10px; }
.feature p, .promise p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* 截图：手机上横向滑动，电脑上并排 */
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 28px max(20px, env(safe-area-inset-left)) 24px; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; flex: 0 0 min(220px, 60vw); scroll-snap-align: center; }
.shots figcaption { margin-top: 12px; text-align: center; color: var(--ink-2); font-size: 14px; }
.shots .phone { box-shadow: 0 0 0 1px var(--phone-ring), 0 12px 28px rgba(15, 23, 42, .18); }

.promises { display: grid; gap: 14px; margin-top: 28px; }
.disclaimer {
  margin-top: 20px; padding: 12px 16px; border-radius: 10px;
  background: var(--warn-subtle); color: var(--ink-2); font-size: 14px;
}

.footer { margin-top: 56px; padding: 28px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 14px; }
.footer p { margin-top: 6px; }
.footer p a { color: var(--ink-2); word-break: break-all; }
.links + p { margin-top: 14px; }
.links { display: flex; gap: 20px; }
.links a { color: var(--ink-2); text-decoration: none; }
.links a:hover { color: var(--brand); }

@media (min-width: 640px) {
  .feature, .promise { display: block; }
  .feature h3, .promise h3 { margin-top: 14px; }
  .feature p, .promise p { margin-top: 6px; }
  /* 最后一张卡片占满一行，图标、标题、说明横排 */
  .feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 44px auto 1fr; column-gap: 14px; align-items: center; }
  .feature.wide h3 { margin-top: 0; white-space: nowrap; }
  .feature.wide p { grid-column: auto; margin-top: 0; padding-left: 10px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 72px; gap: 48px; }
  .hero-text { padding-bottom: 72px; }
  .brand img { width: 88px; height: 88px; }
  .brand h1 { font-size: 26px; }
  .tagline { font-size: 44px; }
  .sub { font-size: 17px; }
  .hero-phone { margin-bottom: -140px; align-self: end; }
  .hero-phone .phone { width: 300px; }
  #features { padding-top: 180px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .section h2 { font-size: 30px; }
  .shots { justify-content: center; overflow: visible; }
  .shots { gap: 24px; }
  .shots figure { flex-basis: 196px; }
}
@media (prefers-reduced-motion: reduce) { .dl { transition: none; } }
