/* ============================================================
   StorePilot｜张小喜 — 产品官网
   视觉主张：深海墨蓝的秩序感。墨蓝 hero + 纯白纸面 + 单一品牌蓝。
   不用卡片阴影，用细线、字号和留白建立层级。
   ============================================================ */

:root {
  --ink: #0b1b33;
  --ink-2: #102a57;
  --paper: #ffffff;
  --paper-2: #f5f7fb;
  --blue: #2e75ff;
  --line: rgba(11, 27, 51, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #5f6d85;
  --dim: #98a3b6;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------------- 通用 ---------------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.section {
  padding: clamp(72px, 9vw, 128px) 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.section-paper {
  max-width: none;
  background: var(--paper-2);
}
.section-paper > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}
.section-head .lead {
  margin-top: 16px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--muted);
  max-width: 560px;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: #245fd6; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; border-radius: 8px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.link-arrow span { transition: transform 0.18s ease; }
.link-arrow:hover span { transform: translateX(4px); }

.ticks li {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
  font-size: 14.5px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------------- 导航 ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 16px 24px;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  padding: 12px 24px;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-radius: 13px;
}
/* S 用形状蒙版：只取轮廓，颜色由 background 控制，缩放不糊 */
.brand-s {
  width: 68%;
  height: 68%;
  background: #fff;
  -webkit-mask: url("assets/brand-s.png") center / contain no-repeat;
  mask: url("assets/brand-s.png") center / contain no-repeat;
}
.brand-word {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-word em {
  font-style: normal;
  font-weight: 600;
  opacity: 0.92;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links { color: var(--muted); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; }
.nav:not(.scrolled) .btn-ghost { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.nav:not(.scrolled) .btn-ghost:hover { border-color: #fff; color: #fff; }


/* 未滚动时（深色 hero 上）logo 文字转白 */
.nav:not(.scrolled) .brand-word { color: #fff; }
.nav.scrolled .brand-word { color: var(--ink); }
.nav:not(.scrolled) .brand-mark { background: #fff; }
.nav:not(.scrolled) .brand-s { background: var(--ink); }

/* ---------------- HERO ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(160deg, #071733 0%, #0b2352 58%, #0a1b3c 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 156px 24px 80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(120% 90% at 20% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 20%, #000 30%, transparent 78%);
}

.hero-mark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  height: 76vh;
  width: auto;
  opacity: 0.09;
  filter: drop-shadow(0 0 80px rgba(46, 117, 255, 0.55));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  top: 8%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 117, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero .eyebrow { color: rgba(159, 182, 217, 0.9); }

.hero h1 {
  font-size: clamp(42px, 6.6vw, 86px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 760px;
}
.hero h1 .accent { color: #7fb2ff; }

.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.72);
  max-width: 500px;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-ghost { border-color: rgba(255, 255, 255, 0.26); color: #fff; }
.hero-cta .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }

.hero-stats {
  margin: clamp(48px, 6vw, 76px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
  max-width: 820px;
}
.hero-stats dt {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-stats dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------------- 两条路径 ---------------- */

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.path { position: relative; }
.path-no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
}
.path h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 12px 0 14px; }
.path-desc { font-size: 15px; color: var(--muted); max-width: 460px; text-wrap: pretty; }
.path .ticks { margin-top: 18px; }

/* ---------------- 产品 ---------------- */

.products { border-top: 1px solid var(--line); }
.product {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(32px, 4.5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.product:hover { border-bottom-color: var(--blue); }
.product-no {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(11, 27, 51, 0.12);
  line-height: 1;
  transition: color 0.2s ease;
}
.product:hover .product-no { color: var(--blue); }
.product-body { max-width: 640px; }
.product h3 { font-size: clamp(22px, 2.6vw, 32px); }
.product-line {
  margin-top: 10px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink);
  font-weight: 500;
}
.product-desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
}
.product-facts {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.product-facts div { min-width: 90px; }
.product-facts dt { font-size: 12px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.product-facts dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; }

/* ---------------- 链路 ---------------- */

.chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding: 0;
}
.chain li {
  padding: 30px 24px 0 0;
  border-right: 1px solid var(--line);
}
.chain li:last-child { border-right: 0; }
.chain-no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
}
.chain h4 { font-size: 20px; margin: 10px 0 10px; }
.chain p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ---------------- 定价 ---------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.plan { display: flex; flex-direction: column; }
.plan-main { border-top: 2px solid var(--blue); padding-top: 26px; margin-top: -28px; }
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 600; }
.plan-price {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 10px 0 18px;
}
.plan-price span { font-size: 14px; font-weight: 500; color: var(--dim); margin-left: 4px; }
.plan .ticks { flex: 1; margin-bottom: 24px; }
.plan .btn { width: 100%; }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: linear-gradient(150deg, #071733 0%, #0b2352 60%, #0a1b3c 100%);
  color: #fff;
  padding: clamp(72px, 9vw, 120px) 24px;
}
.cta-inner { max-width: var(--max); margin: 0 auto; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.15; max-width: 720px; }
.cta-inner > p {
  margin-top: 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
}
.cta-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn-ghost { border-color: rgba(255, 255, 255, 0.26); color: #fff; }
.cta-actions .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ---------------- 页脚 ---------------- */

.footer { background: var(--paper-2); padding: 64px 24px 24px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}
.footer-brand .brand-word { font-size: 19px; color: var(--ink); }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: var(--dim); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h5 {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 9px 0;
}
.footer-cols a:hover { color: var(--blue); }
.footer-bottom {
  max-width: var(--max);
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dim);
}

/* ---------------- 动效 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-word { font-size: 18px; }
  .nav-inner { gap: 12px; }
  .nav-actions { margin-left: auto; }

  .hero { padding-top: 112px; }
  .hero-mark { height: 52vh; right: -22%; opacity: 0.07; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .paths { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; }
  .product { grid-template-columns: 1fr; gap: 10px; }
  .product-no { font-size: 34px; }
  .product-facts { gap: 26px; }

  .chain { grid-template-columns: 1fr 1fr; }
  .chain li { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .chain li:nth-child(2n) { border-bottom: 1px solid var(--line); }

  .plans { grid-template-columns: 1fr; gap: 36px; }
  .plan-main { padding-top: 20px; margin-top: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
