/* =========================================================
   瓶礼科技 — 幻灯片式站点
   ========================================================= */

:root {
  --brand: #4d6bfe;
  --brand-strong: #3b56f0;
  --brand-soft: rgba(77, 107, 254, .10);
  --brand-line: rgba(77, 107, 254, .28);

  --bg: #f6f7fb;
  --bg-soft: #f4f5fa;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, .72);
  --text: #0b0e1a;
  --text-2: #363c51;
  --muted: #6a7187;
  --line: rgba(11, 14, 26, .09);
  --line-2: rgba(11, 14, 26, .16);

  --shadow-sm: 0 1px 2px rgba(11, 14, 26, .04), 0 8px 24px -12px rgba(11, 14, 26, .12);
  --shadow-md: 0 2px 4px rgba(11, 14, 26, .03), 0 28px 60px -28px rgba(11, 14, 26, .22);
  --shadow-lg: 0 50px 100px -50px rgba(28, 42, 120, .45);

  --radius: 16px;
  --radius-lg: 20px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --brand: #8098ff;
  --brand-strong: #6f8bff;
  --brand-soft: rgba(128, 152, 255, .12);
  --brand-line: rgba(128, 152, 255, .34);

  --bg: #07090f;
  --bg-soft: #0c1018;
  --surface: #10141d;
  --glass: rgba(19, 24, 35, .66);
  --text: #eef1f8;
  --text-2: #c6cbda;
  --muted: #949cb2;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .35), 0 28px 60px -28px rgba(0, 0, 0, .8);
  --shadow-lg: 0 50px 100px -50px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .4s, color .4s;
}

h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -.03em; line-height: 1.16; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--brand); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 背景氛围 ---------- */
.atmos {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.aurora { z-index: 0; }
.atmos::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 40%, #000 6%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 40%, #000 6%, transparent 78%);
}
.aurora {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.a1 {
  width: 54vw; height: 54vw; max-width: 760px; max-height: 760px;
  top: -22vw; right: -12vw;
  background: radial-gradient(circle at 40% 40%, rgba(122, 147, 255, .55), rgba(122, 147, 255, 0) 66%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.a2 {
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  bottom: -24vw; left: -14vw;
  background: radial-gradient(circle at 50% 50%, rgba(165, 139, 255, .42), rgba(165, 139, 255, 0) 66%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.a3 {
  width: 34vw; height: 34vw; max-width: 460px; max-height: 460px;
  top: 44%; left: 46%;
  background: radial-gradient(circle at 50% 50%, rgba(126, 206, 255, .28), rgba(126, 206, 255, 0) 68%);
  animation: drift3 30s ease-in-out infinite alternate;
}
html[data-theme="dark"] .aurora { opacity: .32; }
@keyframes drift1 { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(70px, -40px, 0) scale(1.06); } }
@keyframes drift3 { to { transform: translate3d(-40px, -60px, 0) scale(1.12); } }

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .22;
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .08; }

.cursor-glow {
  position: fixed; z-index: 1;
  width: 520px; height: 520px;
  left: 0; top: 0;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 107, 254, .09), rgba(77, 107, 254, 0) 62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 80;
  height: 82px;
  display: flex; align-items: center; gap: 32px;
  padding: 0 40px;
}
.topbar::before {
  content: ""; position: absolute; inset: 0 0 auto;
  height: 148px;
  background: linear-gradient(to bottom,
    var(--bg) 0%,
    var(--bg) 44%,
    color-mix(in srgb, var(--bg) 55%, transparent) 68%,
    transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(145deg, #7a93ff, #3a4ede);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(61, 86, 240, .6);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 15px; letter-spacing: .01em; }
.brand-text small { font-size: 9px; letter-spacing: .15em; color: var(--muted); }

.topnav { display: flex; align-items: center; gap: 24px; margin-left: 12px; }
.topnav a {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px; color: var(--muted);
  transition: color .2s;
}
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.topnav a:hover, .topnav a.is-active { color: var(--text); }
.topnav a:hover::after, .topnav a.is-active::after { transform: scaleX(1); }

.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--text-2);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--line); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }
html[data-theme="dark"] .icon-sun { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 11px;
  font-size: 13.5px; font-weight: 550; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 26px -14px rgba(77,107,254,.9);
}
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.top-cta { margin-left: 6px; }

/* ---------- 幻灯片骨架 ---------- */
.deck { position: relative; z-index: 2; }

.slide {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 116px 0 96px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.wrap {
  width: min(var(--wrap), 100% - 128px);
  margin-inline: auto;
}

/* 入场动画 */
.js .a {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .85s var(--ease),
    transform .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.js .slide:not(.in) .a { transition-delay: 0ms; }
.js .slide.in .a { opacity: 1; transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px;
  background: currentColor; opacity: .55;
}

.slide-head { max-width: 760px; margin-bottom: 38px; }
.slide-head h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -.032em;
}
.slide-head .lead { margin-top: 14px; }
.slide-head.center { margin-inline: auto; text-align: center; }
.slide-head.center .eyebrow { justify-content: center; }
.slide-head.center .eyebrow::before { display: none; }
.slide-head.center .lead { margin-inline: auto; }

.slide-head.split {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px; align-items: end;
  max-width: none;
}

.lead {
  font-size: 15.4px; line-height: 1.8;
  color: var(--muted);
  max-width: 36em;
}

/* ---------- 封面 ---------- */
.cover { padding-top: 128px; }
.cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px; align-items: center;
}
.cover h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.75rem, 5vw, 4.55rem);
  line-height: 1.06;
  letter-spacing: -.042em;
}
.grad {
  background: linear-gradient(104deg, #4d6bfe 4%, #7d95ff 42%, #a58bff 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .grad {
  background-image: linear-gradient(104deg, #8ba2ff 4%, #a9bcff 46%, #c4aaff 90%);
}
.cover .lead { max-width: 31em; font-size: 15.6px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.cover-visual { position: relative; min-width: 0; }
.visual-inner {
  position: relative;
  width: min(100%, 548px);
  margin-inline: auto;
  will-change: transform;
}
.halo {
  position: absolute; inset: -34% -16% auto;
  height: 140%; width: 128%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(123, 148, 255, .30), rgba(123, 148, 255, 0) 62%);
  filter: blur(10px);
  pointer-events: none;
}

.code-card {
  position: relative; z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev, var(--surface));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform .7s var(--ease);
}
.code-card:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.code-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.win-dots { display: inline-flex; gap: 6px; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.win-dots i:nth-child(1) { background: #ff5f57; }
.win-dots i:nth-child(2) { background: #febc2e; }
.win-dots i:nth-child(3) { background: #28c840; }
.code-file { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.code-status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px;
  color: #12996a; background: rgba(18, 153, 106, .10);
  padding: 3px 8px; border-radius: 999px;
}
.code-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.code-body {
  margin: 0; padding: 20px 18px;
  font-family: var(--font-mono);
  font-size: 12.4px; line-height: 1.95;
  white-space: pre; overflow-x: auto;
  color: var(--text-2);
}
.c-method { color: var(--brand); font-weight: 600; }
.c-key { color: #8a6dff; }
html[data-theme="dark"] .c-key { color: #b39bff; }
.c-str { color: #0f9d70; }
html[data-theme="dark"] .c-str { color: #5ee2b0; }
.c-num { color: #d97706; }
.c-punc { color: var(--muted); }

.code-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 6px; }
.status i {
  width: 5px; height: 5px; border-radius: 50%; background: #12a150;
  box-shadow: 0 0 0 3px rgba(18, 161, 80, .16);
}

.float-card {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 1px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  animation: floaty 7s ease-in-out infinite;
}
.float-card strong { font-size: 15px; letter-spacing: -.02em; }
.float-card span { font-size: 10.5px; color: var(--muted); }
.fc-a { top: -62px; right: -10px; }
.fc-b { top: -62px; left: -10px; animation-delay: -3.4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 76px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--muted);
}
.scroll-hint i {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--line-2), transparent);
  position: relative; overflow: hidden;
}
.scroll-hint i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, var(--brand));
  transform: translateY(-100%);
  animation: hint 2.4s var(--ease) infinite;
}
@keyframes hint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- 数据 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 46px;
  border-block: 1px solid var(--line);
}
.stat { display: block; padding: 24px 6px 20px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 30px; }
.stat b {
  display: inline;
  font-size: clamp(2.3rem, 3.9vw, 3.5rem);
  font-weight: 640; letter-spacing: -.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat i {
  font-style: normal;
  font-size: 1.1rem; font-weight: 500; color: var(--brand);
  margin-left: 4px; letter-spacing: 0;
}
.stat span { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.marquee-wrap { margin-top: 34px; display: flex; align-items: center; gap: 30px; }
.marquee-label {
  flex: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 0 16px;
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
  transition: color .2s;
}
.marquee-track span:hover { color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 服务 ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: 23px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  overflow: hidden;
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px));
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  will-change: transform;
}
.service::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--brand-soft), transparent 62%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.service:hover {
  --lift: -3px;
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}
.service:hover::before { opacity: 1; }
.service > * { position: relative; z-index: 1; }
.svc-icon {
  display: grid; place-items: center;
  width: 41px; height: 41px;
  border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: 14px;
}
.svc-icon svg { width: 20px; height: 20px; }
.service h3 { font-size: 16.5px; letter-spacing: -.02em; }
.service p { margin-top: 7px; font-size: 13.1px; line-height: 1.68; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 14px; }
.tags span {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-2); background: color-mix(in srgb, var(--bg) 60%, transparent);
}

/* ---------- 案例 ---------- */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px));
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
  will-change: transform;
}
.work:hover { --lift: -3px; border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.work-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.work-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 25, .30), rgba(8, 10, 25, 0) 32%);
  pointer-events: none;
}
.work-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.work:hover .work-cover img { transform: scale(1.03); }
.work-no {
  position: absolute; left: 14px; bottom: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(8, 10, 25, .5);
}
.work-body { padding: 15px 17px 18px; }
.kicker {
  font-family: var(--font-mono); font-size: 10.2px;
  color: var(--brand); letter-spacing: .02em;
}
.work-body h3 { margin-top: 6px; font-size: 15.8px; letter-spacing: -.02em; }
.metrics { display: flex; gap: 20px; margin-top: 12px; }
.metrics li { display: flex; flex-direction: column; }
.metrics b { font-size: 16.2px; letter-spacing: -.02em; }
.metrics span { font-size: 10px; color: var(--muted); margin-top: 1px; }

/* ---------- 流程 ---------- */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  padding-top: 34px;
}
.process::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 0;
  height: 1px; background: var(--line-2);
}
.process::after {
  content: ""; position: absolute; top: 5px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), rgba(165, 139, 255, .8));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease) .25s;
}
.slide.in .process::after { transform: scaleX(1); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -32px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.step-no {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .1em; color: var(--brand);
}
.step h3 { margin-top: 7px; font-size: 16px; }
.step p { margin-top: 6px; font-size: 12.6px; line-height: 1.7; color: var(--muted); }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chips-row span {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px; color: var(--text-2);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- 客户评价（聊天框） ---------- */
.chat-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 48px;
  align-items: center;
}
.chat-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.95rem, 3.3vw, 2.9rem);
  letter-spacing: -.035em;
}
.chat-copy .lead { margin-top: 14px; max-width: 24em; }
.chat-note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px;
  font-size: 11.5px; color: var(--muted);
}
.note-avatars { display: inline-flex; }
.note-avatars i {
  display: grid; place-items: center;
  width: 26px; height: 26px; margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--brand-soft); color: var(--brand);
  font-style: normal; font-size: 9.5px; font-weight: 600;
}
.note-avatars i:first-child { margin-left: 0; }

.chat-card {
  display: flex; flex-direction: column;
  width: min(100%, 580px);
  height: clamp(480px, 66vh, 590px);
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.chat-head .win-dots { margin-right: 2px; }
.chat-title { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.chat-title strong { font-size: 12.5px; letter-spacing: .01em; }
.chat-title span { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--muted); }
.online { width: 5px; height: 5px; border-radius: 50%; background: #17b26a; box-shadow: 0 0 0 3px rgba(23, 178, 106, .14); }
.chat-replay {
  display: grid; place-items: center;
  width: 28px; height: 28px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chat-replay svg { width: 16px; height: 16px; }
.chat-replay:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }

.chat-body {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 13px;
  padding: 16px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}
.chat-body::-webkit-scrollbar { display: none; }
.chat-date {
  align-self: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  font-size: 9px; color: var(--muted);
}
.chat-msg {
  display: none; align-items: flex-start; gap: 8px;
  max-width: 88%;
}
.chat-msg.show {
  display: flex;
  animation: msgIn .42s var(--ease) both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.avatar {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  font-size: 10px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
}
.av-b { background: rgba(31, 157, 141, .12); color: #1f9d8d; }
.av-c { background: rgba(224, 118, 58, .12); color: #d9722f; }
.av-brand { background: linear-gradient(145deg, #7a93ff, #3a4ede); color: #fff; }
.bubble-wrap { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg-name { font-size: 9px; color: var(--muted); }
.bubble {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px;
  background: var(--surface);
  font-size: 12.7px; line-height: 1.68; color: var(--text-2);
}
.msg-time { font-size: 8.5px; color: var(--muted); opacity: .8; }
.chat-msg.me { margin-left: auto; flex-direction: row-reverse; }
.chat-msg.me .bubble-wrap { align-items: flex-end; }
.chat-msg.me .bubble {
  background: linear-gradient(135deg, #5b7cff, #4d6bfe);
  border-color: transparent;
  color: #fff;
  border-radius: 12px 4px 12px 12px;
}
.chat-typing {
  display: none;
  align-self: flex-start;
  margin-left: 38px;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px;
  background: var(--surface);
}
.chat-typing.on { display: flex; }
.chat-typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite ease-in-out;
}
.chat-typing i:nth-child(2) { animation-delay: .16s; }
.chat-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-foot { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 42px; padding: 0 6px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11.5px; color: var(--muted);
  transition: border-color .2s, color .2s;
}
.chat-cta:hover { border-color: var(--brand-line); color: var(--brand); }
.chat-send {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  flex: none;
}
.chat-send svg { width: 14px; height: 14px; }

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 56px; align-items: center;
}
.about-copy h2 { margin-top: 14px; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.about-copy .lead { margin-top: 16px; }
.values { margin-top: 28px; display: grid; gap: 18px; }
.values li { padding-left: 15px; border-left: 2px solid var(--brand-line); }
.values h3 { font-size: 14.5px; }
.values p { margin-top: 3px; font-size: 12.6px; color: var(--muted); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 17px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.panel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.panel-body { padding: 20px 20px 18px; }
.panel-comment { font-family: var(--font-mono); font-size: 11.5px; color: var(--brand); }
.panel-body ul { display: grid; gap: 11px; margin-top: 15px; }
.panel-body li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.8px; line-height: 1.6; color: var(--text-2);
}
.panel-body li svg { width: 14px; height: 14px; margin-top: 3px; flex: none; color: var(--brand); }
.panel-note {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.panel-foot {
  display: flex; justify-content: space-between;
  padding: 10px 17px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}

/* ---------- 联系 ---------- */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 4.3vw, 3.55rem);
  letter-spacing: -.038em;
}
.contact .lead { margin-top: 16px; max-width: 32em; }
.mail-row { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.mail {
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 580; letter-spacing: -.03em;
  background: linear-gradient(to right, var(--brand), #a58bff) no-repeat 0 100% / 100% 1px;
  padding-bottom: 4px;
  transition: background-size .35s var(--ease);
}
.mail:hover { background-size: 0 1px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass); color: var(--muted);
  font-size: 11.5px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }

.meta-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  margin-top: 24px;
  font-size: 12.5px; color: var(--muted);
}
.meta-row > span { display: inline-flex; align-items: center; gap: 7px; }
.meta-row svg { width: 15px; height: 15px; color: var(--brand); }
.meta-row a:hover { color: var(--brand); }

.contact .cta { justify-content: center; margin-top: 30px; }

.deck-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  width: 100%; margin-top: 56px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--muted);
  font-family: var(--font-mono);
}
.deck-foot a { color: var(--brand); }

/* ---------- 右侧导航 ---------- */
.dots {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 70;
  display: flex; flex-direction: column; gap: 4px;
}
.dots button {
  position: relative;
  width: 28px; height: 28px; padding: 0;
  border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dots button i {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--line-2);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s;
}
.dots button:hover i { background: var(--text-2); }
.dots button[aria-current="true"] i { width: 6px; height: 20px; background: var(--brand); }
.dots button span {
  position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 10.5px; color: var(--text-2); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.dots button:hover span, .dots button:focus-visible span {
  opacity: 1; transform: translateY(-50%) translateX(0);
}

/* ---------- 底部控制 ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: 2px; background: transparent;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--brand), #a58bff);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}

.chrome {
  position: fixed; inset: auto 0 0; z-index: 70;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: .06em;
  pointer-events: none;
}
.chrome::before {
  content: ""; position: absolute; inset: 0 0 -1px;
  background: linear-gradient(to top, var(--bg) 30%, color-mix(in srgb, var(--bg) 55%, transparent) 70%, transparent);
  pointer-events: none; z-index: -1;
}
.chrome-hint { display: inline-flex; align-items: center; gap: 6px; }
.chrome-hint em { font-style: normal; opacity: .5; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg);
  font-family: var(--font-mono); font-size: 10px; color: var(--text-2);
}
.chrome-right { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.chrome-label {
  min-width: 64px; text-align: right;
  font-family: var(--font-sans); font-size: 11px; letter-spacing: .02em;
  color: var(--muted);
}
.counter { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.counter b { color: var(--text); font-weight: 600; font-size: 12px; }
.counter span { opacity: .5; }
.nav-btn {
  display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--text-2);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.nav-btn svg { width: 15px; height: 15px; }
.nav-btn:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }
.nav-btn:disabled { opacity: .3; pointer-events: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 78px; z-index: 100;
  transform: translate(-50%, 10px);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 12px; color: var(--text);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 1600px) {
  :root { --wrap: 1360px; }
}
@media (max-width: 1200px) {
  .wrap { width: calc(100% - 112px); }
  .fc-a { right: -2%; }
  .fc-b { left: -3%; }
}

@media (max-width: 1000px) {
  .topnav { display: none; }
  .cover-grid { grid-template-columns: minmax(0, 1fr); gap: 54px; }
  .cover-visual { max-width: 470px; width: 100%; margin-inline: auto; }
  .cover { padding-top: 112px; }
  .slide-head.split { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .slide-head.split .lead { max-width: 36em; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .chat-grid { grid-template-columns: 1fr; gap: 32px; }
  .chat-card { justify-self: start; max-width: 620px; }
  .panel { max-width: 560px; }
  .dots { display: none; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
  .process::before, .process::after { display: none; }
  .step::before { top: -14px; left: 0; }
  .stat + .stat { padding-left: 20px; }
}

@media (max-width: 760px) {
  html { scroll-snap-type: y proximity; }
  .wrap { width: calc(100% - 40px); }
  .topbar { height: 68px; padding: 0 20px; gap: 12px; }
  .top-cta { display: none; }
  .top-actions { gap: 2px; }
  .slide { padding: 92px 0 88px; min-height: 100svh; }
  .cover { padding-top: 100px; }
  .cover h1 { font-size: clamp(2.35rem, 9.4vw, 3.3rem); }
  .cover .lead { font-size: 14.5px; }
  .cta { gap: 10px; }
  .cta .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }
  .fc-a { top: 2%; right: 0; }
  .fc-b { bottom: 0; left: 0; }
  .services, .works { grid-template-columns: minmax(0, 1fr); }
  .slide-head h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 4px 16px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .stat + .stat { padding-left: 4px; }
  .marquee-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .marquee { width: 100%; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .step::before { top: -12px; }
  .chat-card { height: 720px; max-width: none; }
  .chat-copy .lead { font-size: 14px; }
  .contact .mail { font-size: 1.15rem; }
  .meta-row { flex-direction: column; align-items: center; gap: 10px; }
  .deck-foot { flex-direction: column; gap: 6px; text-align: center; align-items: center; }
  .chrome { display: none; }
  .float-card { display: none; }
  .code-card { transform: none; }
  .code-body { font-size: 10.5px; padding: 16px 14px; }
  .cover-visual { margin-top: 4px; }
  .toast { bottom: 70px; }
}

@media (max-width: 420px) {
  .cover h1 { font-size: 2.15rem; }
  .mail-row { flex-direction: column; gap: 14px; }
}

/* 低矮屏幕 */
@media (max-height: 820px) and (min-width: 761px) {
  .chat-card { height: clamp(470px, 69vh, 560px); }
  .chat-body { gap: 10px; padding: 12px 16px; }
  .bubble { font-size: 12.2px; line-height: 1.62; padding: 8px 11px; }
  .msg-name { font-size: 8.6px; }
  .msg-time { font-size: 8px; }
  .chat-typing { padding: 8px 11px; }
  .slide { padding: 96px 0 78px; }
  .cover { padding-top: 100px; }
  .cover h1 { font-size: clamp(2.6rem, 4.9vw, 4.4rem); }
  .cover .lead { font-size: 14.5px; }
  .slide-head { margin-bottom: 28px; }
  .slide-head h2 { font-size: clamp(1.8rem, 2.9vw, 2.5rem); }
  .lead { font-size: 14px; }
  .service { padding: 17px 18px 16px; }
  .service p { font-size: 12.2px; }
  .svc-icon { margin-bottom: 11px; }
  .work-body { padding: 12px 14px 14px; }
  .stats { margin-top: 34px; }
  .stat b { font-size: clamp(2.1rem, 3.3vw, 2.9rem); }
  .values { margin-top: 22px; gap: 14px; }
  .contact h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
  .deck-foot { margin-top: 40px; }
}

/* ---------- 打印 / 导出 PDF ---------- */
@media print {
  html { scroll-snap-type: none; }
  .atmos, .cursor-glow, .topbar, .dots, .chrome, .progress, .toast, .scroll-hint { display: none !important; }
  body { background: #fff; }
  .slide { min-height: auto; padding: 40px 0; page-break-after: always; break-after: page; }
  .js .a { opacity: 1 !important; transform: none !important; }
  .code-card { transform: none !important; }
  .process::after { transform: scaleX(1) !important; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .a { opacity: 1; transform: none; }
  .service, .work { transform: none !important; }
}
