/* 今日库存官网：蓝底居中首屏 + 功能图文左右交替 + 下载收尾 */
:root {
  --brand: #3f66e6;
  --hero-bg: #3f66e6;
  --hero-fg: #ffffff;
  --bg: #ffffff;
  --fg: #1b1f2a;
  --muted: #6a7183;
  --line: #e6e8ee;
  --eyebrow: #2b4fc9;
  --badge: #111318;
  --badge-fg: #ffffff;
  --phone: #11141b;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hero-bg: #2c4bb8;
    --bg: #0f1116;
    --fg: #e8eaf0;
    --muted: #9097a8;
    --line: #262a34;
    --eyebrow: #9db2f7;
    --badge: #f2f3f5;
    --badge-fg: #111318;
    --phone: #2a2e38;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

/* nav */
.nav { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.links a { text-decoration: none; opacity: .82; }
.links a:hover { opacity: 1; }
.nav .store { margin-left: 4px; }

/* App Store button */
.store {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--badge); color: var(--badge-fg);
  border-radius: 12px; padding: 11px 20px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.store svg { width: 18px; height: 18px; fill: currentColor; }
.store.sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.store.sm svg { width: 15px; height: 15px; }
.hero .store { background: #ffffff; color: #111318; }
.store:focus-visible, .links a:focus-visible, .logo:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* phone frame */
.phone {
  width: 260px; flex: none;
  padding: 8px; border-radius: 40px;
  background: var(--phone);
  box-shadow: 0 24px 50px rgba(20, 30, 70, .18);
}
.phone img { width: 100%; border-radius: 32px; }
.phone.s { width: 220px; padding: 7px; border-radius: 34px; }
.phone.s img { border-radius: 27px; }

/* hero */
.hero { background: var(--hero-bg); color: var(--hero-fg); text-align: center; overflow: hidden; }
.hero h1 { font-size: 52px; line-height: 1.2; margin: 32px 0 12px; letter-spacing: .02em; text-wrap: balance; }
.hero .sub { font-size: 19px; opacity: .88; margin: 0 0 24px; }
.trio { display: flex; justify-content: center; align-items: center; gap: 32px; margin-top: 40px; padding-bottom: 48px; }
.trio .phone { box-shadow: 0 24px 50px rgba(10, 20, 60, .28); }

/* features */
.feature {
  display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center;
  padding-block: 44px; border-bottom: 1px solid var(--line);
  max-width: 900px; margin-inline: auto;
}
.feature.r { grid-template-columns: auto 1fr; }
.feature.r .txt { order: 2; }
.feature .phone.s { width: 180px; padding: 6px; border-radius: 28px; }
.feature .phone.s img { border-radius: 23px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; font-weight: 600; color: var(--eyebrow); }
h2 { font-size: 32px; line-height: 1.3; margin: 8px 0 12px; text-wrap: balance; }
.txt p { margin: 0; color: var(--muted); max-width: 30em; }
.pts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.pts li { display: flex; gap: 10px; }
.pts li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); margin-top: .7em; }

/* scenes */
.scenes { padding-block: 40px; text-align: center; border-bottom: 1px solid var(--line); }
.scenes ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); }

/* cta */
.cta { text-align: center; padding-block: 48px; }
.cta p { color: var(--muted); margin: 0 0 24px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 24px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot .sp { margin-left: auto; }
.foot .lang { font-size: 12px; opacity: .7; }

/* support / privacy pages */
.doc-nav { border-bottom: 1px solid var(--line); }
.doc-nav .store { margin-left: auto; }
.doc { max-width: 760px; padding-block: 40px 64px; }
.doc h1 { font-size: 32px; line-height: 1.3; margin: 0 0 8px; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; }
.doc p, .doc li, .doc dd { color: var(--muted); }
.doc p { margin: 0 0 10px; }
.doc b { color: var(--fg); font-weight: 600; }
.doc a { color: var(--eyebrow); }
.doc ol, .doc ul { padding-left: 1.3em; margin: 0 0 10px; display: grid; gap: 6px; }
.doc .meta { font-size: 14px; }
.doc .lead-p { font-size: 17px; }
.contact { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 24px 0 8px; }
.contact .label { font-size: 13px; color: var(--muted); }
.contact .mail { display: inline-block; font-size: 20px; font-weight: 600; color: var(--fg); text-decoration: none; margin: 2px 0 8px; word-break: break-all; }
.contact p { margin: 0; font-size: 14px; }
.faq { margin: 0; }
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; }
@media (max-width: 860px) { .doc { padding-block: 28px 48px; } .doc h1 { font-size: 26px; } }

@media (max-width: 860px) {
  .links { display: none; }
  .nav .store { margin-left: auto; }
  .hero h1 { font-size: 34px; margin-top: 20px; }
  .hero .sub { font-size: 16px; }
  .trio { margin-top: 32px; padding-bottom: 36px; }
  .trio .phone { width: 220px; }
  .trio .phone.s { display: none; }
  .feature, .feature.r { grid-template-columns: 1fr; gap: 24px; padding-block: 36px; }
  .feature .phone.s { width: 170px; }
  .feature.r .txt { order: 0; }
  .feature .phone { margin-inline: auto; }
  h2 { font-size: 26px; }
  .foot .sp { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .store { transition: transform .15s ease; }
  .store:hover { transform: translateY(-1px); }
}
