/* =========================================================
   小觅智能 · 官网样式
   纯静态，无构建、无外部依赖
   ========================================================= */

:root {
  --ink: #161a2e;
  --body: #4a5070;
  --muted: #737a90;
  --line: #e6e8f2;
  --line-soft: #eef0f7;
  --bg: #ffffff;
  --bg-tint: #f6f7fc;
  --brand: #5a4bd1;
  --brand-2: #21bfa8;
  --brand-ink: #2e2570;
  --grad: linear-gradient(118deg, #5a4bd1 0%, #7c66e6 46%, #21bfa8 100%);
  --grad-soft: linear-gradient(118deg, rgba(90, 75, 209, .09), rgba(33, 191, 168, .09));
  --shadow: 0 1px 2px rgba(22, 26, 46, .04), 0 12px 32px -18px rgba(22, 26, 46, .28);
  --radius: 16px;
  --wrap: 1140px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -.01em;
  font-weight: 600;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

table { border-collapse: collapse; width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(90, 75, 209, .7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(90, 75, 209, .8); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: #cfd3e6; background: #fafbff; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 20px -18px rgba(22, 26, 46, .5);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { border-radius: 9px; }

/* 横版品牌 logo */
.brand-logo {
  height: 34px;
  width: auto;
  border-radius: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--body);
}
.nav-links a { position: relative; padding: 6px 0; transition: color .16s ease; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: right .22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-cta { height: 38px; padding: 0 18px; font-size: 13.5px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-mesh {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 720px;
  pointer-events: none;
  background:
    radial-gradient(52% 46% at 18% 12%, rgba(90, 75, 209, .17), transparent 62%),
    radial-gradient(44% 42% at 82% 6%, rgba(33, 191, 168, .16), transparent 64%),
    radial-gradient(40% 40% at 62% 44%, rgba(124, 102, 230, .1), transparent 70%);
  filter: blur(6px);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 1px 2px rgba(22, 26, 46, .04);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(33, 191, 168, .18);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-top: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 20px;
  font-size: 16px;
  max-width: 30em;
  color: var(--body);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-note {
  margin-top: 26px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* 文案逐项入场 */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-copy > * { animation: heroIn .7s cubic-bezier(.22, .8, .28, 1) both; }
.hero-copy > .pill { animation-delay: .04s; }
.hero-copy > h1 { animation-delay: .1s; }
.hero-copy > .lede { animation-delay: .18s; }
.hero-copy > .hero-actions { animation-delay: .26s; }
.hero-copy > .hero-note { animation-delay: .34s; }

/* ---- Hero 右侧：真机截图 + 双版本说明 ---- */

.device-panel {
  position: relative;
  border-radius: 24px;
  padding: 30px 26px 24px;
  background: linear-gradient(150deg, #f2f1fd 0%, #eef7f6 100%);
  border: 1px solid #e3e4f3;
  box-shadow: 0 30px 60px -34px rgba(22, 26, 46, .38);
  overflow: hidden;
}

.phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.phone {
  margin: 0;
  width: 30%;
  flex-shrink: 0;
  border-radius: 18px;
  border: 5px solid #1b1f33;
  background: #1b1f33;
  overflow: hidden;
  box-shadow: 0 18px 34px -18px rgba(22, 26, 46, .55);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
}

/* 中间主图略大，形成主次层次 */
.phone-main {
  width: 38%;
  border-width: 6px;
  --lift: -8px;
  transform: translateY(var(--lift));
  box-shadow: 0 24px 44px -18px rgba(22, 26, 46, .6);
}

/* 三块机身缓慢浮动，错开节奏；--lift 保证主图基准位移不被动画覆盖 */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(var(--lift, 0px)); }
  50% { transform: translateY(calc(var(--lift, 0px) - 9px)); }
}

.phones .phone {
  animation: phoneFloat 7s ease-in-out infinite;
}
.phones .phone:nth-child(1) { animation-delay: .5s; animation-duration: 8s; }
.phones .phone:nth-child(2) { animation-delay: 0s; }
.phones .phone:nth-child(3) { animation-delay: 1.1s; animation-duration: 8.6s; }

/* 截图切换：上滑淡入，模拟页面前进 */
@keyframes slotIn {
  from { opacity: 0; transform: translateY(16px) scale(1.015); }
  to { opacity: 1; transform: none; }
}
.phone img.slot-in {
  animation: slotIn .55s cubic-bezier(.22, .8, .28, 1) both;
}

/* 轮播状态条 */
.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  min-height: 18px;
}

.stage-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-ink);
  background: #fff;
  border: 1px solid #e3e4f3;
  border-radius: 999px;
  padding: 3px 12px;
  transition: opacity .3s ease;
}
.stage-name.is-fading { opacity: 0; }

.dots { display: flex; align-items: center; gap: 6px; }

.dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c6c9dd;
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}
.dots button:hover { background: #a7abcb; }
.dots button.is-active {
  width: 20px;
  background: var(--grad);
}
.dots button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.versions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.version {
  background: #fff;
  border: 1px solid #e3e4f3;
  border-radius: 12px;
  padding: 12px 14px;
}

.version-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.version-name span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.version-desc {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--body);
}

/* ---------------- 数据带 ---------------- */

.stats {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line-soft);
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.stat {
  text-align: center;
  padding: 6px 4px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.stat b span { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.stat > span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* ---------------- 章节通用 ---------------- */

.section { padding: 92px 0; }
.section-tint { background: var(--bg-tint); }

.sec-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.sec-head-left { margin-left: 0; text-align: left; }

.sec-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--brand);
  background: var(--grad-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.sec-head h2 { font-size: clamp(24px, 2.7vw, 34px); font-weight: 600; }
.sec-sub { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ---------------- 卡片 ---------------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #d8dcee;
  box-shadow: var(--shadow);
}

.card h3 { font-size: 17px; font-weight: 600; }
.card p { margin-top: 10px; font-size: 14px; color: var(--body); }

.card-lg { padding: 28px 26px; }

.card-accent {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.card-accent h3 { color: #fff; }
.card-accent p { color: rgba(255, 255, 255, .9); }
.loop {
  font-size: 17px !important;
  font-weight: 500;
  letter-spacing: .01em;
  margin-top: 14px !important;
}

/* ---------------- 四级能力 ---------------- */

.levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.level {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.level::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: .85;
}
.level:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.level-step { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.level-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--grad-soft);
  border-radius: 6px;
  padding: 1px 7px;
}
.level h3 { margin-top: 12px; font-size: 16.5px; }
.level p { margin-top: 10px; font-size: 13.5px; }
.level ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.level ul li {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg-tint);
  border-radius: 6px;
  padding: 2px 9px;
}

.levels-foot {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------------- 数据网络 ---------------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.metrics > div {
  background: var(--bg-tint);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.metrics b {
  display: block;
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.metrics b span { font-size: 13px; color: var(--muted); font-weight: 500; }
.metrics > div > span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.split-media { position: relative; }
.shot {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(22, 26, 46, .45);
  width: 100%;
}
.shot-sm {
  position: absolute;
  right: -14px;
  bottom: -34px;
  width: 52%;
  border: 4px solid #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px -22px rgba(22, 26, 46, .45);
}

/* ---------------- 架构 ---------------- */

.arch {
  margin-top: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.arch-title { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.arch-layers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.arch-layers span {
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  padding: 14px 6px;
  border-radius: 10px;
  background: var(--grad);
  opacity: .92;
}
.arch-layers span:nth-child(2) { opacity: .82; }
.arch-layers span:nth-child(3) { opacity: .72; }
.arch-layers span:nth-child(4) { opacity: .62; }
.arch-layers span:nth-child(5) { opacity: .52; }
.arch-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------------- 里程碑 ---------------- */

.timeline { position: relative; padding-left: 26px; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), rgba(33, 191, 168, .8), var(--line));
  border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 28px 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -26px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(90, 75, 209, .1);
}
.timeline li.done::before { background: var(--grad); border-color: transparent; }

.tl-when {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--brand);
  background: var(--grad-soft);
  border-radius: 999px;
  padding: 2px 10px;
}
.timeline h3 { margin-top: 8px; font-size: 16px; }
.timeline p { margin-top: 6px; font-size: 14px; color: var(--body); }

/* ---------------- 联系 ---------------- */

.contact { padding-bottom: 96px; }

.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(120deg, #231d52 0%, #3a2f86 52%, #12695f 100%);
  border-radius: 24px;
  padding: 52px 48px;
  color: rgba(255, 255, 255, .82);
}
.contact-inner .sec-no {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
.contact-inner h2 { color: #fff; font-size: clamp(23px, 2.5vw, 31px); }
.contact-inner .sec-sub { color: rgba(255, 255, 255, .68); }

.contact-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.contact-label {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 2px;
}
.contact-value { font-size: 14.5px; color: #fff; margin-bottom: 16px; }
.contact-value:last-child { margin-bottom: 0; }

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

.foot { border-top: 1px solid var(--line-soft); padding: 26px 0; background: var(--bg-tint); }
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.foot-brand img { border-radius: 7px; }
.foot-copy { font-size: 12.5px; color: var(--muted); }

/* ---------------- 入场动效 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .level { transition: none; }
  .phones .phone { animation: none; }
  .phone img.slot-in { animation: none; }
  .hero-copy > * { animation: none; }
}

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

@media (max-width: 1024px) {
  .section { padding: 76px 0; }
  .hero-inner { gap: 40px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .stat:nth-child(3n) { border-right: 0; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 18px; font-size: 13.5px; }
  .split { gap: 40px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -28px rgba(22, 26, 46, .6);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-cta { display: none; }

  .hero { padding: 52px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .device-panel { order: -1; padding: 20px 18px 18px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { margin-bottom: 40px; }
  .shot-sm { right: 0; bottom: -28px; width: 46%; }
  .arch-layers { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .brand-logo { height: 28px; }
  .section { padding: 62px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; }
  .stat b { font-size: 22px; }
  .levels { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .arch-layers { grid-template-columns: repeat(2, 1fr); }
  .sec-head { margin-bottom: 34px; }
  .arch, .contact-card { padding: 22px 18px; }
  .card { padding: 22px 20px; }
  .phones { gap: 8px; }
  .phone { border-width: 4px; border-radius: 14px; }
  .phone-main { border-width: 4px; }
  .versions { grid-template-columns: 1fr; }
}
