/*
 * 沙师弟官网：现代 SaaS 风格 + 液态玻璃。
 * 背景是缓慢流动的极光渐变（backdrop.js）和一层点阵；玻璃有追光的镜缘，在 Chromium 里还有边缘折射（site.js 的 lens）。
 * 字体全部用系统无衬线字体，不加载网络字体。
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.4, 0.5, 1);
  --wrap: 1180px;
  /* 字距：拉丁字母的大标题收紧，中文保持默认 */
  --track-h1: -0.04em;
  --track-h2: -0.03em;
  --track-h3: -0.012em;
  --track-ui: 0em;
}

:root:lang(zh) {
  --track-h1: 0.01em;
  --track-h2: 0.01em;
  --track-h3: 0.01em;
  --track-ui: 0.02em;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --page: #05070d;
  --ink: #f4f6fb;
  --ink-2: rgba(226, 232, 245, 0.74);
  --ink-3: rgba(226, 232, 245, 0.52);
  --ink-4: rgba(226, 232, 245, 0.2);
  --hair: rgba(255, 255, 255, 0.12);
  --hair-2: rgba(255, 255, 255, 0.07);
  --fill: rgba(255, 255, 255, 0.06);
  --fill-2: rgba(255, 255, 255, 0.11);
  --solid: #f4f6fb;
  --on-solid: #070912;
  --solid-glow: rgba(160, 190, 255, 0.45);
  --halo: rgba(5, 7, 13, 0.7);
  --accent: #8ab4ff;
  --grad: linear-gradient(92deg, #67e8f9 0%, #818cf8 48%, #c084fc 100%);
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --live: #34d399;
  --warn: #fb7185;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.014) 42%, rgba(255, 255, 255, 0.04)), rgba(10, 14, 26, 0.22);
  --glass-dense: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.045)), rgba(9, 12, 24, 0.55);
  --glass-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -12px 22px -16px rgba(255, 255, 255, 0.14), inset 0 0 26px rgba(255, 255, 255, 0.025);
  --rim-hi: rgba(255, 255, 255, 0.5);
  --rim-lo: rgba(255, 255, 255, 0.07);
  --rim-mid: rgba(255, 255, 255, 0.22);
  --rim-spot: rgba(255, 255, 255, 0.75);
  --sheen: rgba(255, 255, 255, 0.055);
  --frame: rgba(3, 5, 12, 0.45);
  --mock: rgba(255, 255, 255, 0.045);
  --dot: rgba(255, 255, 255, 0.085);
  --glow-a: 0.32;
  /* 背景的三种颜色（0–255）与浓淡，backdrop.js 读取 */
  --bd-a: 37 99 235;
  --bd-b: 124 58 237;
  --bd-c: 6 182 212;
  --bd-alpha: 0.46;
}

:root[data-theme="day"] {
  color-scheme: light;
  --page: #f3f5fa;
  --ink: #0b1020;
  --ink-2: rgba(11, 16, 32, 0.74);
  --ink-3: rgba(11, 16, 32, 0.56);
  --ink-4: rgba(11, 16, 32, 0.22);
  --hair: rgba(11, 16, 32, 0.12);
  --hair-2: rgba(11, 16, 32, 0.07);
  --fill: rgba(11, 16, 32, 0.045);
  --fill-2: rgba(255, 255, 255, 0.7);
  --solid: #0b1020;
  --on-solid: #f5f7fc;
  --solid-glow: rgba(37, 99, 235, 0.35);
  --halo: rgba(243, 245, 250, 0.75);
  --accent: #4f46e5;
  --grad: linear-gradient(92deg, #0891b2 0%, #4f46e5 50%, #9333ea 100%);
  --cyan: #0891b2;
  --blue: #2563eb;
  --violet: #7c3aed;
  --live: #059669;
  --warn: #e11d48;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22) 42%, rgba(255, 255, 255, 0.32)), rgba(240, 244, 252, 0.14);
  --glass-dense: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46) 42%, rgba(255, 255, 255, 0.56)), rgba(240, 244, 252, 0.34);
  --glass-shadow: 0 26px 54px -24px rgba(30, 41, 80, 0.38), 0 2px 6px rgba(30, 41, 80, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -12px 22px -16px rgba(255, 255, 255, 0.7), inset 0 0 26px rgba(255, 255, 255, 0.25);
  --rim-hi: #fff;
  --rim-lo: rgba(255, 255, 255, 0.45);
  --rim-mid: rgba(255, 255, 255, 0.8);
  --rim-spot: #fff;
  --sheen: rgba(255, 255, 255, 0.3);
  --frame: rgba(255, 255, 255, 0.3);
  --mock: rgba(255, 255, 255, 0.5);
  --dot: rgba(11, 16, 32, 0.08);
  --glow-a: 0.22;
  --bd-a: 96 165 250;
  --bd-b: 167 139 250;
  --bd-c: 34 211 238;
  --bd-alpha: 0.4;
}

/* ───────────── 基础 ───────────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  letter-spacing: var(--track-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 点阵：给玻璃一点可折射的细节 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, var(--dot) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 28%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 28%, #000 25%, transparent 80%);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: rgba(99, 102, 241, 0.4);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grow {
  flex: 1;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--solid);
  color: var(--on-solid);
  text-decoration: none;
  transition: top 0.3s var(--ease);
}

.skip:focus {
  top: 16px;
}

.theming,
.theming * {
  transition: color 0.6s, background-color 0.6s, box-shadow 0.6s, border-color 0.6s !important;
}

/* ───────────── 背景 ───────────── */
#backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.no-gl #backdrop {
  display: none;
}

.no-gl body {
  background: radial-gradient(60% 50% at 70% 10%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(55% 45% at 20% 20%, rgba(6, 182, 212, 0.22), transparent 70%), var(--page);
  background-attachment: fixed;
}

main,
.foot {
  position: relative;
  z-index: 1;
}

/* 段落背后的光晕会伸出左右边界：横向裁掉，免得手机上把页面撑宽 */
html,
.hero,
.sec,
.strip-sec {
  overflow-x: clip;
}

/* ───────────── 玻璃 ───────────── */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur, 6px)) saturate(1.7);
  backdrop-filter: blur(var(--blur, 6px)) saturate(1.7);
  box-shadow: var(--glass-shadow);
}

.glass.dense {
  --blur: 16px;
  background: var(--glass-dense);
}

/* 镜缘：一圈会追光的高光 */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 18%) var(--my, -12%), var(--rim-spot), transparent 68%),
    linear-gradient(158deg, var(--rim-hi), var(--rim-lo) 26%, var(--rim-lo) 70%, var(--rim-mid));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* 镜面：一小片游移的光 */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 18%) var(--my, -12%), var(--sheen), transparent 70%);
}

.glow {
  position: absolute;
  z-index: -1;
  width: var(--gs, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  opacity: var(--glow-a);
  pointer-events: none;
}

.cy {
  --c: var(--cyan);
}

.bl {
  --c: var(--blue);
}

.vi {
  --c: var(--violet);
}

/* ───────────── 按钮、徽标 ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: var(--track-ui);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.5s var(--spring), box-shadow 0.35s, background 0.3s;
}

.btn .i {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.btn-solid {
  background: var(--solid);
  color: var(--on-solid);
  box-shadow: 0 14px 34px -14px var(--solid-glow);
}

.btn-glass {
  --blur: 6px;
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn:active {
  transform: scale(0.97);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px 0 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--track-ui);
  color: var(--ink-2);
  --blur: 6px;
}

.badge i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  animation: beacon 2.4s ease-in-out infinite;
}

@keyframes beacon {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}

/* ───────────── 顶栏 ───────────── */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: 14px;
  pointer-events: none;
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-left,
.top-right,
.sheet {
  pointer-events: auto;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 54px;
  padding: 0 7px;
  border-radius: 27px;
  --blur: 8px;
  animation: rise 0.9s var(--ease) both;
}

.top.scrolled .top-left,
.top.scrolled .seg,
.top.scrolled .orb {
  --blur: 16px;
  background: var(--glass-dense);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px 0 5px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--hair);
}

.brand-name {
  font: 650 17px/1 var(--display);
  letter-spacing: -0.01em;
}

:root:lang(zh) .brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-alt {
  font-size: 12px;
  color: var(--ink-3);
}

.top-nav {
  display: flex;
  gap: 2px;
  padding-left: 7px;
  border-left: 1px solid var(--hair);
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}

.top-nav a:hover,
.top-nav a.on {
  background: var(--fill);
  color: var(--ink);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: rise 0.9s 0.08s var(--ease) both;
}

.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 46px;
  padding: 4px;
  border-radius: 23px;
  --blur: 6px;
}

.seg i {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 19px;
  background: var(--fill-2);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: transform 0.55s var(--spring);
}

.seg[data-on="1"] i {
  transform: translateX(100%);
}

.seg[data-on="2"] i {
  transform: translateX(200%);
}

.seg a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 46px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.3s;
}

.seg a:hover,
.seg a[aria-current] {
  color: var(--ink);
}

.orb {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  --blur: 4px;
  transition: transform 0.45s var(--spring);
}

.orb:hover {
  transform: scale(1.06);
}

.orb:active {
  transform: scale(0.94);
}

.orb .i {
  position: absolute;
  transition: opacity 0.4s, transform 0.7s var(--ease);
}

[data-theme="night"] .orb .sun,
[data-theme="day"] .orb .moon {
  opacity: 0;
  transform: rotate(-70deg) scale(0.5);
}

.menu-btn {
  display: none;
}

.sheet {
  position: absolute;
  top: 78px;
  right: max(20px, calc((100% - var(--wrap)) / 2));
  width: min(320px, calc(100% - 40px));
  padding: 8px;
  border-radius: 26px;
  --blur: 20px;
  background: var(--glass-dense);
  transform-origin: top right;
  animation: pop 0.34s var(--ease) both;
}

.sheet[hidden] {
  display: none;
}

.sheet nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.sheet nav a:hover {
  background: var(--fill);
}

.sheet-langs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 4px 4px;
  border-top: 1px solid var(--hair);
}

.sheet-langs a {
  flex: 1;
  padding: 9px 0;
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.sheet-langs a[aria-current] {
  background: var(--fill-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair);
}

/* ───────────── 首屏 ───────────── */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(136px, 19vh, 196px) 0 clamp(64px, 8vw, 110px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy .badge {
  margin-bottom: 30px;
  animation: rise 0.9s var(--ease) both;
}

h1 {
  font: 650 clamp(42px, 6.4vw, 88px) / 1.04 var(--display);
  letter-spacing: var(--track-h1);
  text-wrap: balance;
}

:root:lang(zh) h1 {
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.2;
}

h1 .line {
  display: block;
  animation: rise-blur 1s var(--ease) both;
}

h1 .line + .line {
  animation-delay: 0.12s;
}

@keyframes rise-blur {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(16px);
  }
}

/* 渐变强调 */
.em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.06em;
}

.sub {
  max-width: 40em;
  margin-top: 26px;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: balance;
  animation: fade 1.2s 0.35s both;
}

:root:lang(zh) .sub {
  max-width: 36em;
}

/* 中文短段落按词组断行，不把“做完”拆成“做 / 完” */
:root:lang(zh) .sub,
:root:lang(zh) .lede {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
  animation: rise 1s 0.5s var(--ease) both;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--ink-3);
  animation: fade 1.2s 0.75s both;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.facts .i {
  width: 15px;
  height: 15px;
  color: var(--live);
  stroke-width: 2;
}

/* ───────────── 演示窗口 ───────────── */
.demo {
  position: relative;
  max-width: 1120px;
  margin: clamp(64px, 8vw, 96px) auto 0;
  scroll-margin-top: 90px;
}

.demo-frame {
  position: relative;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) 270px;
  gap: 12px;
  height: 600px;
  padding: 12px;
  border-radius: 36px;
  background: var(--frame);
  box-shadow: inset 0 0 0 1px var(--hair), 0 60px 120px -60px rgba(0, 0, 0, 0.7);
  font-size: 13.5px;
  line-height: 1.6;
}

.js .demo:not([data-ready]) .demo-frame {
  visibility: hidden;
}

.island {
  border-radius: 24px;
  padding: 12px 10px;
}

.demo-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 16px;
}

.demo-brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.demo-brand b {
  font: 600 15px/1 var(--display);
}

.row {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 36px;
  padding: 0 10px;
  border-radius: 18px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
}

.row .i {
  width: 16px;
  height: 16px;
}

.row.new {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair);
  margin-bottom: 8px;
}

.row.me {
  height: 42px;
  color: var(--ink);
}

.avatar {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  box-shadow: inset 0 0 0 1px var(--ink-3);
}

.ver {
  padding: 2px 10px 0;
  font-size: 11px;
  color: var(--ink-3);
}

.demo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  height: 40px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 72%;
  height: 34px;
  padding: 0 15px 0 12px;
  border-radius: 17px;
  font-size: 12.5px;
  --blur: 3px;
}

.chip > i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink-2);
}

.chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip .t-done,
.demo[data-state="done"] .chip .t-new {
  display: none;
}

.demo[data-state="done"] .chip .t-done {
  display: inline;
}

.demo-note {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.demo-intro {
  margin-top: auto;
  padding: 0 20px;
  text-align: center;
}

.demo-hello {
  font: 600 clamp(22px, 2.3vw, 30px) / 1.3 var(--display);
  letter-spacing: var(--track-h2);
  text-shadow: 0 0 18px var(--halo);
}

.demo-thread {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  padding: 18px 6px 4px;
  overflow: hidden;
}

.demo:not([data-state="intro"]):not([data-state="typing"]) .demo-intro {
  display: none;
}

.demo:not([data-state="intro"]):not([data-state="typing"]) .demo-thread {
  display: flex;
}

.msg {
  max-width: 88%;
  animation: rise 0.6s var(--ease) both;
}

.msg.me {
  align-self: flex-end;
  padding: 9px 16px;
  border-radius: 20px;
  --blur: 6px;
}

.msg.ai {
  display: flex;
  gap: 12px;
  color: var(--ink);
  text-shadow: 0 0 14px var(--halo);
}

.msg.ai img {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  border-radius: 7px;
}

.msg.thinking,
.demo[data-state="done"] .msg.thinking,
.msg.answer {
  display: none;
}

.demo[data-state="sent"] .msg.thinking,
.demo[data-state="done"] .msg.answer {
  display: flex;
}

.dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: dot 1.2s ease-in-out infinite;
}

.dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot {
  40% {
    transform: translateY(-4px);
    background: var(--ink);
  }
}

.msg-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.msg-body small {
  font-size: 11.5px;
  color: var(--ink-3);
}

.mini {
  border-collapse: collapse;
  width: 100%;
  max-width: 420px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

.mini th,
.mini td {
  padding: 6px 10px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--hair);
}

.mini thead th {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-3);
}

.mini th:first-child {
  text-align: left;
  padding-left: 0;
}

.mini tbody th {
  font-weight: 600;
}

.mini tbody tr:first-child td:nth-child(3) {
  color: var(--warn);
}

.demo[data-state="done"] .mini tbody tr {
  animation: rise 0.6s var(--ease) both;
}

.demo[data-state="done"] .mini tbody tr:nth-child(2) {
  animation-delay: 0.1s;
}

.demo[data-state="done"] .mini tbody tr:nth-child(3) {
  animation-delay: 0.2s;
}

.demo-composer {
  flex: none;
  width: min(560px, 100%);
  margin: 22px auto 0;
  padding: 6px 8px 8px;
  border-radius: 26px;
  --blur: 4px;
}

.demo[data-state="intro"] .demo-composer,
.demo[data-state="typing"] .demo-composer {
  margin-bottom: auto;
}

.ask {
  min-height: 62px;
  padding: 12px 14px 8px;
  font-size: 13.5px;
  line-height: 1.7;
}

.ask .ph {
  color: var(--ink-3);
}

.caret {
  display: none;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.demo[data-state="typing"] .caret {
  display: inline-block;
}

.demo[data-state="typing"] .ask .ph {
  display: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.c-line {
  position: relative;
  height: 1px;
  margin: 0 14px;
  background: var(--hair);
  overflow: hidden;
}

.c-line i {
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.8s var(--ease);
}

.demo[data-state="typing"] .c-line i {
  transform: scaleX(1);
}

.tools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 4px 0;
}

.ring {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.ring .i {
  width: 16px;
  height: 16px;
}

.pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 32px;
  padding: 0 8px 0 10px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}

.pick .i {
  width: 15px;
  height: 15px;
}

.pick .chev {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.send {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--solid);
  color: var(--on-solid);
  opacity: 0.28;
  transform: scale(0.93);
  transition: opacity 0.35s, transform 0.5s var(--spring);
}

.send .i {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.demo[data-state="typing"] .send {
  opacity: 1;
  transform: none;
}

.demo-work {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.demo-win {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  height: 40px;
  flex: none;
  padding-right: 6px;
  color: var(--ink-3);
}

.demo-win .i {
  width: 14px;
  height: 14px;
  margin: 0 7px;
}

.demo-work .island {
  padding: 14px 10px 16px;
}

.island h4 {
  padding: 0 10px 12px;
  font: 600 11px/1.4 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.steps {
  padding: 0 10px;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 21px;
  bottom: 0;
  width: 1px;
  background: var(--hair);
  transition: background 0.5s;
}

.steps li.done:not(:last-child)::after {
  background: var(--ink-3);
}

.dot {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.25px var(--ink-3);
  transition: box-shadow 0.4s;
}

.dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.5s var(--spring), background 0.35s;
}

.steps b {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
}

.steps p {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
  overflow-wrap: anywhere;
  opacity: 0;
  transition: opacity 0.4s;
}

.steps .doing b {
  color: var(--ink);
}

.steps .done b {
  color: var(--ink-2);
}

.steps .doing p,
.steps .done p {
  opacity: 1;
}

.steps .doing .dot {
  box-shadow: inset 0 0 0 1.25px var(--accent);
}

.steps .doing .dot::after {
  transform: scale(1);
  background: var(--accent);
  animation: pulse 1.3s ease-in-out infinite;
}

.steps .done .dot {
  box-shadow: inset 0 0 0 1.25px var(--live);
}

.steps .done .dot::after {
  transform: scale(1);
  background: var(--live);
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.report-island {
  flex: 1;
  min-height: 0;
}

.report-empty {
  display: grid;
  place-items: center;
  height: 120px;
  color: var(--ink-4);
}

.report-empty .i {
  width: 28px;
  height: 28px;
}

.report {
  display: none;
  padding: 0 10px;
}

.demo[data-state="done"] .report {
  display: block;
  animation: rise 0.7s 0.2s var(--ease) both;
}

.demo[data-state="done"] .report-empty {
  display: none;
}

.report-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink);
}

.report-name .i {
  width: 15px;
  height: 15px;
  color: var(--ink-2);
}

.report-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bars {
  display: grid;
  gap: 10px;
}

.bar {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.bar-track {
  width: 100%;
  height: 8px;
}

.bar-bg {
  fill: var(--fill);
}

.bar-fill {
  fill: var(--violet);
  transform-box: fill-box;
  transform-origin: left center;
}

.bar-fill.f2 {
  fill: var(--blue);
}

.bar-fill.f3 {
  fill: var(--cyan);
}

.demo[data-state="done"] .bar-fill {
  animation: grow 1.1s 0.35s var(--ease) both;
}

.demo[data-state="done"] .bar-fill.f2 {
  animation-delay: 0.45s;
}

.demo[data-state="done"] .bar-fill.f3 {
  animation-delay: 0.55s;
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.report-cap {
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-3);
}

.demo-replay {
  position: absolute;
  left: 50%;
  bottom: -64px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  --blur: 4px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s, color 0.25s;
}

.demo-replay .i {
  width: 15px;
  height: 15px;
}

.demo[data-state="done"][data-ready] .demo-replay {
  opacity: 1;
  pointer-events: auto;
}

.demo-replay:hover {
  color: var(--ink);
}

/* ───────────── 数据与工具 ───────────── */
.strip-sec {
  position: relative;
  padding: clamp(100px, 11vw, 140px) 0 clamp(24px, 4vw, 40px);
}

.strip-label {
  margin-bottom: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}

.strip {
  display: flex;
  gap: 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.strip-track {
  display: flex;
  flex: none;
  gap: 10px;
  animation: marquee 64s linear infinite;
}

.strip:hover .strip-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-100% - 10px));
  }
}

.tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
}

/* ───────────── 段落通用 ───────────── */
.sec {
  position: relative;
  isolation: isolate;
  padding: clamp(96px, 12vw, 160px) 0;
}

.sec-head {
  max-width: 780px;
  margin-bottom: clamp(44px, 6vw, 68px);
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

:root:lang(zh) .kicker {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.title {
  font: 650 clamp(32px, 4.4vw, 54px) / 1.1 var(--display);
  letter-spacing: var(--track-h2);
  text-wrap: balance;
}

:root:lang(zh) .title {
  font-weight: 600;
  line-height: 1.28;
}

.lede {
  margin-top: 18px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}

.center .lede {
  max-width: 40em;
  margin-inline: auto;
}

/* 出场 */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal-t {
  transform: translateY(40px);
  transition: transform 1.2s var(--ease);
}

.js .reveal-t.in {
  transform: none;
}

/* ───────────── 核心能力 ───────────── */
.g-f1 {
  --gs: 820px;
  left: -300px;
  top: 220px;
}

.g-f2 {
  --gs: 760px;
  right: -260px;
  bottom: 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 28px 26px 24px;
  border-radius: 28px;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%), var(--glass-dense);
}

.k1 {
  --c: var(--cyan);
}

.k2 {
  --c: var(--blue);
}

.k3 {
  --c: var(--violet);
}

.card.wide {
  grid-column: span 2;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 34%, transparent);
}

.card-icon .i {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.card-title {
  margin-top: 10px;
  font: 650 21px/1.3 var(--display);
  letter-spacing: var(--track-h3);
}

:root:lang(zh) .card-title {
  font-weight: 600;
  font-size: 20px;
}

.card-body {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

.card.wide .card-body {
  max-width: 38em;
}

/* 卡片里的小样 */
.mock {
  margin-top: auto;
  padding: 14px;
  border-radius: 18px;
  background: var(--mock);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.mock-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.md-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.m-ask {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.m-tag {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.m-sql {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--fill);
  font: 11px/1.5 var(--mono);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.md-chart {
  min-width: 0;
}

.m-cap {
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.m-bars {
  width: 100%;
  height: auto;
  overflow: visible;
}

.m-bars .mb {
  fill: url(#mbg);
}

.mb-top {
  stop-color: var(--cyan);
}

.mb-bottom {
  stop-color: var(--blue);
  stop-opacity: 0.55;
}

.m-bars text {
  fill: var(--ink-3);
  font: 10px var(--sans);
}

.mock-report {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mr-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.mr-title .i {
  width: 15px;
  height: 15px;
}

.mr-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mr-line {
  width: 100%;
  height: 56px;
}

.mr-line .area {
  fill: color-mix(in srgb, var(--blue) 26%, transparent);
}

.mr-line .stroke {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  height: 28px;
  padding: 0 12px 0 9px;
  border-radius: 14px;
  font-size: 11.5px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.m-btn .i {
  width: 13px;
  height: 13px;
}

.mock-files {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
}

.mock-files ul {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mock-files li,
.mf-out {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mock-files li span,
.mf-out span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-files .i {
  width: 15px;
  height: 15px;
}

.mf-arrow {
  color: var(--ink-3);
}

.mf-out {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--violet) 20%, transparent);
  color: var(--ink);
}

.mock-web {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mw-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mw-group {
  flex: none;
  padding: 2px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--cyan);
}

[data-theme="night"] .mw-group {
  color: #04121a;
}

.mw-tab {
  min-width: 0;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  background: var(--fill);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--hair);
}

.mw-grid i {
  height: 16px;
  background: var(--page);
  opacity: 0.9;
}

.mw-grid i.hit {
  background: color-mix(in srgb, var(--cyan) 40%, var(--page));
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.mw-consent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.mw-consent .i {
  width: 14px;
  height: 14px;
  color: var(--live);
  stroke-width: 2;
}

.mock-sched {
  display: grid;
  gap: 2px;
  padding: 6px;
}

.mock-sched li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0 10px;
  padding: 7px 8px;
  border-radius: 12px;
}

.mock-sched li:first-child {
  background: color-mix(in srgb, var(--blue) 18%, transparent);
}

.ms-when {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ms-what {
  grid-row: 2;
  color: var(--ink-2);
}

.ms-where {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  justify-self: end;
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
}

.mock-mem {
  display: grid;
  gap: 10px;
}

.mock-mem li {
  padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--violet) 70%, transparent);
}

.mock-mem p {
  color: var(--ink);
}

.mock-mem small {
  font-size: 11px;
  color: var(--ink-3);
}

.mock-pro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.mp-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.mp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mp-from {
  font-weight: 600;
  color: var(--ink);
}

.mp-tag {
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--warn);
}

.mp-text {
  font-size: 12.5px;
  line-height: 1.65;
}

.mp-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mp-actions span {
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  box-shadow: inset 0 0 0 1px var(--hair);
}

.mp-actions .mp-yes {
  color: var(--on-solid);
  background: var(--solid);
  box-shadow: none;
}

.mp-feed {
  display: grid;
  gap: 10px;
}

.mp-feed li {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.mp-feed .i {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--violet);
}

/* ───────────── 使用场景 ───────────── */
.g-u1 {
  --gs: 760px;
  right: -280px;
  top: 120px;
}

.day-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 44px);
  max-width: 920px;
}

.day-list::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--blue) 50%, var(--violet) 90%, transparent);
  opacity: 0.45;
}

.slot {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 52px;
}

.slot::before {
  content: "";
  position: absolute;
  left: 99px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--page);
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--page), 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent);
}

.slot-time {
  padding-top: 2px;
  text-align: right;
  font: 600 20px/1.2 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.slot-role {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.bubble.me {
  display: table;
  max-width: 640px;
  padding: 11px 18px;
  border-radius: 22px;
  --blur: 6px;
  font-size: 15.5px;
  line-height: 1.7;
}

.bubble.ai {
  display: flex;
  gap: 12px;
  max-width: 660px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  text-shadow: 0 0 14px var(--halo);
}

.bubble.ai img {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 2px;
  border-radius: 7px;
}

.slot .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.slot .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.fineprint {
  margin-top: 48px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ───────────── 上手 ───────────── */
.g-h1 {
  --gs: 760px;
  left: 20%;
  top: 30%;
}

.steps3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  padding: 30px 28px 30px;
  border-radius: 28px;
}

.step-n {
  display: inline-block;
  margin-bottom: 26px;
  font: 650 15px/1 var(--mono);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  margin-bottom: 12px;
  font: 650 21px/1.35 var(--display);
  letter-spacing: var(--track-h3);
}

:root:lang(zh) .step h3 {
  font-weight: 600;
  font-size: 20px;
}

.step p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

.steps3 .reveal:nth-child(2),
.grid3 .reveal:nth-child(3n + 2),
.bento .reveal:nth-child(3n + 2) {
  transition-delay: 0.08s;
}

.steps3 .reveal:nth-child(3),
.grid3 .reveal:nth-child(3n),
.bento .reveal:nth-child(3n) {
  transition-delay: 0.16s;
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 16px;
  padding: clamp(28px, 4.5vw, 52px);
  border-radius: 32px;
}

.duo-title {
  margin-bottom: 14px;
  font: 650 clamp(24px, 2.6vw, 32px) / 1.25 var(--display);
  letter-spacing: var(--track-h2);
}

:root:lang(zh) .duo-title {
  font-weight: 600;
}

.duo-copy p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.duo-art {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}

.node .i {
  width: 52px;
  height: 52px;
  padding: 14px;
  border-radius: 16px;
  color: var(--accent);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.link {
  position: relative;
  height: 1px;
  margin-top: -26px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 9px);
}

.link i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: travel 3s var(--ease) infinite;
}

@keyframes travel {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}

.handoff {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(340px, 100%);
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--mock);
  box-shadow: inset 0 0 0 1px var(--hair), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

.h-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.h-body {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.h-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.h-actions span {
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px var(--hair);
}

.h-actions .h-yes {
  color: var(--on-solid);
  background: var(--solid);
  box-shadow: none;
}

/* ───────────── 安全 ───────────── */
.g-s1 {
  --gs: 820px;
  left: -300px;
  top: 10%;
}

.g-s2 {
  --gs: 760px;
  right: -260px;
  bottom: 0;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tcard {
  padding: 28px 26px;
  border-radius: 26px;
}

.ticon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.ticon .i {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.tcard h3 {
  margin-bottom: 10px;
  font: 650 19px/1.35 var(--display);
  letter-spacing: var(--track-h3);
}

:root:lang(zh) .tcard h3 {
  font-weight: 600;
  font-size: 18px;
}

.tcard p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ───────────── 更多特性 ───────────── */
.dgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  border-top: 1px solid var(--hair);
}

.ditem {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
}

.dicon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.ditem h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.ditem p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ───────────── 价格 ───────────── */
.g-p1 {
  --gs: 780px;
  left: 50%;
  top: 8%;
  translate: -50% 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border-radius: 28px;
}

.plan.featured {
  background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 72%), var(--glass-dense);
}

.plan-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.plan-price {
  margin-top: 14px;
  font: 650 clamp(32px, 3.6vw, 44px) / 1.1 var(--display);
  letter-spacing: var(--track-h2);
}

:root:lang(zh) .plan-price {
  font-weight: 600;
}

.plan-unit {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
}

.plan-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}

.plan-points li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.plan-points .i {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--live);
  stroke-width: 2;
}

.plan-cta {
  margin-top: auto;
  padding-top: 28px;
}

.plan-cta .btn {
  width: 100%;
}

/* 正文里的链接（常见问题、收尾、隐私政策） */
.qa p a,
.closing-mail a,
.legal-doc a:not(.nf-link) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ───────────── 常见问题 ───────────── */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 840px;
  margin-inline: auto;
}

.qa {
  border-radius: 22px;
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 22px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary .i {
  color: var(--ink-3);
  transition: transform 0.45s var(--spring), color 0.25s;
}

.qa summary:hover .i {
  color: var(--ink);
}

.qa[open] summary .i {
  transform: rotate(45deg);
}

.qa p {
  padding: 0 24px 22px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ───────────── 收尾 ───────────── */
.g-c1 {
  --gs: 760px;
  left: -200px;
  top: -100px;
}

.g-c2 {
  --gs: 820px;
  right: -260px;
  bottom: -200px;
}

.closing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(44px, 7vw, 84px) clamp(24px, 6vw, 72px);
  border-radius: 36px;
  text-align: center;
  background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 70%), var(--glass-dense);
}

.closing-card .badge {
  margin-bottom: 26px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.closing-card .lede {
  max-width: 34em;
}

.closing-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.closing-mail {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ───────────── 页脚 ───────────── */
.foot {
  padding: 46px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair-2);
}

.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px 40px;
  align-items: center;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.foot-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.foot-brand b {
  display: block;
  font: 600 16px/1.3 var(--display);
}

.foot-brand b span {
  font-weight: 400;
  color: var(--ink-3);
}

.foot-brand small {
  font-size: 13px;
  color: var(--ink-3);
}

.foot-langs {
  display: flex;
  gap: 4px;
}

.foot-langs a {
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}

.foot-langs a:hover,
.foot-langs a[aria-current] {
  color: var(--ink);
  background: var(--fill);
}

.foot-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.foot-meta a {
  text-decoration: none;
}

.foot-meta a:hover,
.foot-meta a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-tm {
  grid-column: 1 / -1;
  max-width: 72em;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ───────────── 隐私政策 ───────────── */
.legal {
  padding: clamp(116px, 15vh, 160px) 0 clamp(64px, 8vw, 110px);
}

.legal-doc {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 60px) clamp(22px, 5vw, 64px);
  border-radius: 32px;
}

.legal-title {
  font: 650 clamp(30px, 4vw, 46px) / 1.15 var(--display);
  letter-spacing: var(--track-h2);
}

:root:lang(zh) .legal-title {
  font-weight: 600;
}

.legal-updated {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-3);
}

.legal-intro {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-2);
}

.legal-sec {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--hair);
}

.legal-sec h2 {
  margin-bottom: 14px;
  font: 600 20px/1.4 var(--display);
}

.legal-sec p,
.legal-sec li {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.legal-sec p + p,
.legal-sec p + ul,
.legal-sec ul + p {
  margin-top: 12px;
}

.legal-sec ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 1.25em;
  list-style: disc;
}

.legal-sec li::marker {
  color: var(--accent);
}

.legal-sec strong {
  font-weight: 600;
  color: var(--ink);
}

/* 最后一节是联系方式：公司名、地址、邮箱各一行，排得紧一些 */
.legal-sec:last-of-type p + p {
  margin-top: 4px;
}

.legal-back {
  margin-top: 44px;
}

/* ───────────── 404 ───────────── */
.nf {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
}

.nf-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hair);
}

.nf-code {
  margin-bottom: 30px;
  font: 650 64px/1 var(--display);
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nf-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(980px, 100%);
}

.nf-item {
  padding: 26px 24px;
  border-radius: 26px;
  text-align: left;
}

.nf-item h1 {
  font: 600 21px/1.35 var(--display);
  letter-spacing: -0.01em;
}

.nf-item p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.nf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
}

.nf-link .i {
  width: 15px;
  height: 15px;
  transition: transform 0.4s var(--spring);
}

.nf-link:hover .i {
  transform: translateX(3px);
}

/* ───────────── 窄屏 ───────────── */
@media (max-width: 1100px) {
  .demo-frame {
    grid-template-columns: minmax(0, 1fr) 256px;
  }

  .demo-side {
    display: none;
  }
}

@media (max-width: 980px) {
  .top-nav,
  .seg {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .bento,
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card.wide:last-child {
    grid-column: auto;
  }

  .steps3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nf-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
  }
}

@media (max-width: 760px) {
  .demo-frame {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 540px;
    padding: 10px;
    border-radius: 30px;
  }

  .demo-work {
    display: none;
  }

  .demo-intro {
    padding-top: 40px;
  }

  .mock-data,
  .mock-pro,
  .duo,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-list::before {
    left: 66px;
  }

  .slot {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 32px;
  }

  .slot::before {
    left: 61px;
  }

  .slot-time {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .brand-alt {
    display: none;
  }

  .hero-copy .badge {
    height: auto;
    min-height: 34px;
    padding: 6px 14px;
    font-size: 12px;
    line-height: 1.5;
  }

  .bento,
  .grid3,
  .dgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card.wide {
    grid-column: auto;
  }

  .card,
  .tcard,
  .step,
  .plan {
    padding: 24px 22px;
    border-radius: 24px;
  }

  .legal-doc {
    border-radius: 24px;
  }

  .btn {
    height: 48px;
    padding: 0 22px;
  }

  .tools .pick:first-of-type span {
    display: none;
  }

  .demo-note {
    display: none;
  }

  .chip {
    max-width: 100%;
  }

  .qa summary {
    padding: 18px 20px;
    font-size: 16px;
  }

  .qa p {
    padding: 0 20px 20px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--glass-dense);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }

  .strip {
    flex-wrap: wrap;
    justify-content: center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .strip-track {
    flex-wrap: wrap;
    justify-content: center;
    width: min(var(--wrap), calc(100% - 40px));
    animation: none !important;
  }

  .strip-track[aria-hidden] {
    display: none;
  }
}
