/* ============================================================
   轻渡智能官网 全站样式（唯一样式表）V2.0
   设计规范见 docs/design.md §5(V1) + §8(V2)：
   深色主导 AI 工作台美学 · 零外部依赖
   约束：全站禁用 inline style（CSP style-src 'self'）
   ============================================================ */

:root {
  /* 底色三阶 */
  --bg0: #05070f;
  --bg1: #0a0f1e;
  --bg2: #0d1526;
  /* 文字三阶 */
  --t1: #f1f5f9;
  --t2: #94a3b8;
  --t3: #64748b;
  /* 线与面 */
  --stroke: rgba(148, 163, 184, .14);
  --stroke-strong: rgba(148, 163, 184, .3);
  --card: rgba(255, 255, 255, .032);
  --card-hover: rgba(255, 255, 255, .055);
  /* 品牌三色（蓝 / 紫 / 青） */
  --c1: #3b82f6;
  --c2: #8b5cf6;
  --c3: #22d3ee;
  --grad: linear-gradient(120deg, #3b82f6, #8b5cf6);
  --grad3: linear-gradient(120deg, #3b82f6, #8b5cf6, #22d3ee);
  /* 语义色 */
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 16px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  /* 噪点纹理（SVG data-uri，CSP img-src data: 已允许） */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--t1);
  background: var(--bg0);
  line-height: 1.7;
  font-size: 16px;
}

img, svg { display: block; }
a { color: #7db1ff; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

::selection { background: rgba(99, 102, 241, .45); color: #fff; }

:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 通用元素 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 24px rgba(79, 70, 229, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(79, 70, 229, .6), inset 0 1px 0 rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost, .btn-ghost-light {
  background: rgba(255, 255, 255, .06); color: var(--t1);
  border-color: rgba(148, 163, 184, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.btn-ghost:hover, .btn-ghost-light:hover {
  border-color: rgba(148, 163, 184, .6);
  background: rgba(255, 255, 255, .1); color: #fff;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--t2);
  padding: 5px 13px; border: 1px solid var(--stroke); border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px rgba(99, 102, 241, .9); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  color: #8fb3ff; margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1.5px;
  background: var(--grad); border-radius: 2px;
}

.section { position: relative; padding: 96px 0; }
/* 区块节奏：交替抬升底色 */
.section-raised { background: var(--bg1); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.section-soft, .section-dark { background: var(--bg1); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.32; letter-spacing: -.015em; font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--t2); font-size: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.grad-text {
  background: var(--grad3);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* 首屏高亮词渐变流光（动画在 reduced-motion 下关闭） */
.flow { animation: grad-flow 7s ease infinite; }
@keyframes grad-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.num { font-variant-numeric: tabular-nums; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 15, .78);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--stroke);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 52px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(125, 166, 214, .35)); }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--t3); letter-spacing: .08em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--t2); font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: #fff; font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--t1);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 560px at 80% -12%, rgba(139, 92, 246, .34), transparent 62%),
    radial-gradient(860px 500px at 8% 4%, rgba(59, 130, 246, .3), transparent 60%),
    radial-gradient(700px 420px at 55% 110%, rgba(34, 211, 238, .12), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, #080d1c 100%);
  color: var(--t1);
  padding: 96px 0 84px;
}
/* 透视网格 + 噪点（静态叠加层） */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px),
    var(--noise);
  background-size: 46px 46px, 46px 46px, 160px 160px;
  mask-image: radial-gradient(900px 620px at 50% 0%, #000 24%, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 620px at 50% 0%, #000 24%, transparent 80%);
}
/* 极光层（JS 视差 + CSS 漂移） */
.aurora { position: absolute; pointer-events: none; will-change: transform; }
.aurora.a1 {
  top: -220px; right: -160px; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .4), rgba(124, 58, 237, .12) 55%, transparent 75%);
  filter: blur(6px);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}
.aurora.a2 {
  bottom: -260px; left: -180px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .34), rgba(37, 99, 235, .1) 55%, transparent 75%);
  filter: blur(6px);
  animation: aurora-drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 44px, 0) scale(1.1); }
}

.hero-inner { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 56px; align-items: center;
}
.hero .eyebrow { color: #8fb3ff; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.22;
  letter-spacing: -.02em; font-weight: 800;
}
.hero .lead { margin-top: 22px; font-size: clamp(1rem, 1.6vw, 1.13rem); color: var(--t2); max-width: 620px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 首屏产品 mockup（纯 CSS 工作台示意） ---------- */

.mockup-wrap { position: relative; perspective: 1400px; }
.mockup {
  position: relative;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(148, 163, 184, .1), rgba(148, 163, 184, .02) 30%),
    var(--bg2);
  border: 1px solid var(--stroke-strong);
  box-shadow:
    0 40px 90px -24px rgba(2, 6, 23, .9),
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 24px 90px -30px rgba(99, 102, 241, .35);
  transform: rotateY(-7deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform .5s ease;
}
.mockup:hover { transform: rotateY(-4deg) rotateX(2deg); }
/* 浏览器窗栏 */
.mk-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .025);
}
.mk-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(148, 163, 184, .35); }
.mk-dot:first-child { background: rgba(248, 113, 113, .75); }
.mk-dot:nth-child(2) { background: rgba(251, 191, 36, .75); }
.mk-dot:nth-child(3) { background: rgba(52, 211, 153, .75); }
.mk-url {
  flex: 1; margin-left: 8px; font-size: 11.5px; color: var(--t3);
  background: rgba(255, 255, 255, .05); border-radius: 6px; padding: 4px 12px;
}
/* 工作台主体：侧边栏 + 内容 */
.mk-body { display: grid; grid-template-columns: 128px 1fr; min-height: 316px; }
.mk-side { border-right: 1px solid var(--stroke); padding: 14px 10px; display: grid; gap: 4px; align-content: start; }
.mk-side .s-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--t3); padding: 7px 9px; border-radius: 8px;
}
.mk-side .s-item .sq { width: 12px; height: 12px; border-radius: 4px; background: rgba(148, 163, 184, .3); flex: none; }
.mk-side .s-item.on { color: #c7d6ff; background: rgba(99, 102, 241, .16); }
.mk-side .s-item.on .sq { background: var(--grad); }
.mk-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mk-title { font-size: 13.5px; font-weight: 700; color: #e2e8f0; }
.mk-title small { font-weight: 400; color: var(--t3); margin-left: 8px; font-size: 11px; }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-stat {
  border: 1px solid var(--stroke); border-radius: 10px; padding: 10px 12px;
  background: rgba(255, 255, 255, .03);
}
.mk-stat .k { font-size: 10.5px; color: var(--t3); }
.mk-stat .v { font-size: 17px; font-weight: 700; color: #e2e8f0; margin-top: 2px; }
.mk-stat .v em { font-style: normal; font-size: 10.5px; color: var(--ok); margin-left: 4px; }
.mk-rows { display: grid; gap: 7px; }
.mk-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  border: 1px solid var(--stroke); border-radius: 9px; padding: 8px 11px;
  background: rgba(255, 255, 255, .022); font-size: 11.5px;
}
.mk-row .r-t { color: #cbd5e1; }
.mk-row .r-t i { font-style: normal; color: var(--t3); margin-left: 6px; font-size: 10.5px; }
.mk-row .r-id { color: var(--t3); font-size: 10.5px; }
.mk-pill { font-size: 10px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.mk-pill.done { color: #6ee7b7; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); }
.mk-pill.doing { color: #93c5fd; background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .35); }
.mk-pill.ai { color: #c4b5fd; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .4); }
/* CSS 柱图 */
.mk-chart { display: flex; align-items: flex-end; gap: 7px; height: 64px; padding: 0 2px; }
.mk-chart i {
  flex: 1; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(99, 102, 241, .85), rgba(59, 130, 246, .25));
}
/* 浮动标签 */
.mk-float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  background: rgba(13, 21, 38, .9);
  border: 1px solid rgba(139, 92, 246, .45);
  box-shadow: 0 14px 40px -10px rgba(2, 6, 23, .8), 0 0 24px -6px rgba(139, 92, 246, .5);
  font-size: 12.5px; color: #dbe4ff; backdrop-filter: blur(8px);
}
.mk-float .ic {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
}
.mk-float .ic svg { width: 14px; height: 14px; }
.mk-float small { display: block; font-size: 10.5px; color: var(--t3); }
.mk-float.f1 { top: -20px; right: -14px; animation: float-y 5.5s ease-in-out infinite; }
.mk-float.f2 { bottom: 46px; left: -26px; animation: float-y 6.5s ease-in-out 1.2s infinite; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 事实条（数字滚动） ---------- */

.facts {
  position: relative;
  border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .018);
}
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 30px 0; }
.fact { text-align: center; }
.fact .v { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: #e2e8f0; }
.fact .v .u { font-size: .55em; font-weight: 600; color: #8fb3ff; margin-left: 3px; }
.fact .k { margin-top: 4px; font-size: 13px; color: var(--t3); }

/* ---------- Bento 能力区 ---------- */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 18px; }
.bn { position: relative; overflow: hidden; }
.bn-a { grid-column: span 2; grid-row: span 2; }
.bn-b, .bn-e, .bn-f { grid-column: span 2; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .4), transparent);
  opacity: .7;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: rgba(139, 92, 246, .4);
  box-shadow: 0 22px 48px -18px rgba(2, 6, 23, .9), 0 0 32px -14px rgba(99, 102, 241, .4);
}

.ability .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(139, 92, 246, .18));
  border: 1px solid rgba(139, 92, 246, .25);
  color: #a5b8ff; margin-bottom: 18px;
}
.ability .ico svg { width: 24px; height: 24px; }
.ability h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; color: #f8fafc; }
.ability p { font-size: 14.5px; color: var(--t2); }

/* 大卡内嵌迷你面板（工单看板示意 / AI 对话示意） */
.mini-panel {
  margin-top: 20px; border: 1px solid var(--stroke); border-radius: 12px;
  background: rgba(5, 7, 15, .55); padding: 14px; display: grid; gap: 9px;
}
.mini-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #cbd5e1; }
.mini-row .tag2 {
  flex: none; font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(139, 92, 246, .16); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, .35);
}
.mini-row .bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .16); overflow: hidden; }
.mini-row .bar i { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
.mini-row:nth-of-type(1) .bar i { width: 86%; }
.mini-row:nth-of-type(2) .bar i { width: 64%; }
.mini-row:nth-of-type(3) .bar i { width: 78%; }
.mini-bubbles { display: grid; gap: 8px; }
.mini-bub {
  max-width: 86%; font-size: 12px; line-height: 1.55; padding: 8px 12px; border-radius: 12px;
}
.mini-bub.u { justify-self: end; background: rgba(59, 130, 246, .2); color: #dbe4ff; border: 1px solid rgba(59, 130, 246, .3); border-bottom-right-radius: 4px; }
.mini-bub.a { justify-self: start; background: rgba(255, 255, 255, .05); color: #cbd5e1; border: 1px solid var(--stroke); border-bottom-left-radius: 4px; }

/* ---------- 增值服务场景 ---------- */

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

.section-raised .card h3, .section-soft .card h3, .section-dark .card h3 { color: #f8fafc; font-size: 16.5px; margin-bottom: 8px; }
.section-raised .card p, .section-soft .card p, .section-dark .card p { color: var(--t2); font-size: 14.5px; }
.card .tag {
  display: inline-block; font-size: 12px; color: #a5b8ff; letter-spacing: .06em;
  border: 1px solid rgba(139, 92, 246, .35); border-radius: 999px; padding: 2px 11px; margin-bottom: 14px;
}
.card .ico { color: #a5b8ff; }

/* ---------- AI 引擎段 ---------- */

.ai-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.ai-points { display: grid; gap: 20px; }
.ai-point { display: flex; gap: 16px; }
.ai-point .n {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #a5b8ff;
  background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(139, 92, 246, .18));
  border: 1px solid rgba(139, 92, 246, .3);
}
.ai-point h3 { font-size: 16.5px; margin-bottom: 6px; color: #f8fafc; }
.ai-point p { font-size: 14.5px; color: var(--t2); }

/* 打字机对话演示（固定高度：消息在卡内滚动，容器不随内容撑高——避免左列拉出大片空白） */
.chat-demo {
  border: 1px solid var(--stroke-strong); border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 90% -10%, rgba(139, 92, 246, .16), transparent 65%),
    rgba(5, 7, 15, .72);
  box-shadow: 0 30px 70px -24px rgba(2, 6, 23, .9), 0 0 40px -18px rgba(99, 102, 241, .4);
  padding: 18px; height: 420px; display: flex; flex-direction: column;
}
.cd-head { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--stroke); margin-bottom: 14px; }
.cd-head .bot {
  width: 28px; height: 28px; border-radius: 9px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 0 16px -2px rgba(99, 102, 241, .7);
}
.cd-head b { font-size: 13.5px; color: #e2e8f0; }
.cd-head small { color: var(--ok); font-size: 11px; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.cd-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.cd-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent; padding-right: 4px; display: grid; gap: 10px; align-content: start; }
.cd-msg { max-width: 88%; font-size: 13px; line-height: 1.6; padding: 9px 13px; border-radius: 13px; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.cd-msg.show { opacity: 1; transform: none; }
.cd-msg.u { justify-self: end; background: rgba(59, 130, 246, .22); color: #dbe4ff; border: 1px solid rgba(59, 130, 246, .32); border-bottom-right-radius: 4px; }
.cd-msg.a { justify-self: start; background: rgba(255, 255, 255, .05); color: #cbd5e1; border: 1px solid var(--stroke); border-bottom-left-radius: 4px; }
.cd-cursor { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #a5b8ff; animation: blink .9s steps(1) infinite; border-radius: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.cd-foot { margin-top: 14px; border-top: 1px solid var(--stroke); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.cd-input {
  flex: 1; font-size: 12.5px; color: var(--t3);
  border: 1px solid var(--stroke); border-radius: 999px; padding: 8px 14px;
  background: rgba(255, 255, 255, .04);
}
.cd-send {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
}
.cd-send svg { width: 15px; height: 15px; }

/* ---------- 套餐 ---------- */

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

.plan { position: relative; display: flex; flex-direction: column; }
/* 角标悬挂卡外（top:-13px），放开 .card 的 overflow 裁切，否则上半截被切 */
.plan { overflow: visible; }
.plan .plan-name { font-size: 18px; font-weight: 700; color: #f8fafc; }
.plan .plan-for { margin-top: 4px; font-size: 13.5px; color: var(--t3); }
.plan .plan-price { margin: 18px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #f8fafc; }
.plan .plan-price small { font-size: 13px; font-weight: 400; color: var(--t3); margin-left: 4px; }
.plan ul { margin: 18px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--t2); }
.plan li svg { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--ok); }
.plan li.no { color: var(--t3); }
.plan li.no svg { color: #475569; }
.plan .btn { width: 100%; }

.plan-hot {
  border-color: transparent;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 24px 60px -20px rgba(2, 6, 23, .9), 0 0 48px -14px rgba(99, 102, 241, .5);
  transform: translateY(-6px);
}
.plan-hot:hover { transform: translateY(-9px); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 14px; border-radius: 999px; letter-spacing: .06em; white-space: nowrap;
  box-shadow: 0 6px 18px -4px rgba(99, 102, 241, .7);
}
.pricing-note { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--t3); }

/* ---------- 信任 ---------- */

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust .t-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.trust .t-head svg { width: 22px; height: 22px; color: #a5b8ff; }
.trust h3 { font-size: 16.5px; color: #f8fafc; }
.trust p { font-size: 14.5px; color: var(--t2); }

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

.cta-band {
  position: relative; overflow: hidden; border-radius: 22px; padding: 68px 48px; text-align: center;
  background:
    radial-gradient(560px 280px at 82% 0%, rgba(139, 92, 246, .38), transparent 62%),
    radial-gradient(480px 260px at 10% 100%, rgba(59, 130, 246, .32), transparent 62%),
    radial-gradient(400px 220px at 50% 120%, rgba(34, 211, 238, .14), transparent 60%),
    var(--bg2);
  border: 1px solid var(--stroke-strong);
  color: var(--t1);
  box-shadow: 0 30px 80px -30px rgba(2, 6, 23, .9);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -.015em; font-weight: 750; }
.cta-band p { margin-top: 12px; color: var(--t2); }
.cta-band .hero-cta { justify-content: center; }

/* ---------- 内页头部 ---------- */

.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(640px 300px at 85% -20%, rgba(139, 92, 246, .3), transparent 60%),
    radial-gradient(520px 280px at 8% 10%, rgba(59, 130, 246, .26), transparent 60%),
    linear-gradient(180deg, var(--bg0), #080d1c);
  color: var(--t1); padding: 72px 0 56px;
  border-bottom: 1px solid var(--stroke);
}
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: -.015em; font-weight: 750; }
.page-hero p { margin-top: 12px; color: var(--t2); max-width: 640px; }

/* ---------- 服务支持 ---------- */

.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.channel { text-align: left; }
.channel .ico {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(139, 92, 246, .18));
  border: 1px solid rgba(139, 92, 246, .25);
  color: #a5b8ff; margin-bottom: 16px;
}
.channel .ico svg { width: 22px; height: 22px; }
.channel h3 { font-size: 16px; margin-bottom: 6px; color: #f8fafc; }
.channel p { font-size: 14px; color: var(--t3); margin-bottom: 14px; }
.channel .val { font-size: 17px; font-weight: 700; color: #e2e8f0; }
.channel .val a { color: inherit; }
.channel .btn { margin-top: 14px; }

.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 20px; margin-bottom: 20px; color: #f8fafc; }
.faq-list { display: grid; gap: 12px; }
.faq { border: 1px solid var(--stroke); border-radius: 12px; background: var(--card); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: #e2e8f0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.faq[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq .faq-body { padding: 0 20px 18px; color: var(--t2); font-size: 14.5px; }
.faq[open] { border-color: rgba(139, 92, 246, .4); }
.faq.is-hidden { display: none; }

.faq-filter { margin-bottom: 22px; display: flex; gap: 12px; }
.faq-filter input {
  flex: 1; max-width: 380px; padding: 11px 16px; border: 1px solid var(--stroke); border-radius: 10px;
  font: inherit; font-size: 14.5px; color: var(--t1); background: rgba(255, 255, 255, .04);
}
.faq-filter input::placeholder { color: var(--t3); }
.faq-filter input:focus { outline: 2px solid #60a5fa; outline-offset: 1px; border-color: transparent; }
.faq-empty { display: none; color: var(--t3); font-size: 14.5px; padding: 8px 2px; }
.faq-empty.show { display: block; }

/* ---------- 关于/法务 ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin: 40px 0 14px; letter-spacing: -.01em; color: #f8fafc; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--t2); font-size: 15.5px; margin-bottom: 12px; }
.prose strong { color: #e2e8f0; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose li { margin-bottom: 6px; }
.prose .muted { color: var(--t3); font-size: 13.5px; }

.contact-list { display: grid; gap: 12px; margin-top: 8px; }
.contact-list li { display: flex; align-items: baseline; gap: 12px; font-size: 15.5px; color: var(--t2); }
.contact-list .k { flex: none; width: 84px; color: var(--t3); font-size: 14px; }

/* ---------- 404 ---------- */

.err { text-align: center; padding: 120px 24px; }
.err .code {
  font-size: 96px; font-weight: 800; letter-spacing: -.04em;
  background: var(--grad3); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-flow 7s ease infinite;
}
.err h1 { font-size: 22px; margin-top: 8px; color: #f8fafc; }
.err p { color: var(--t2); margin: 12px 0 28px; }

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

.site-footer {
  background:
    radial-gradient(720px 320px at 88% 0%, rgba(139, 92, 246, .12), transparent 62%),
    #04060d;
  color: var(--t2); padding: 64px 0 32px;
  border-top: 1px solid var(--stroke);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #f8fafc; font-size: 14.5px; margin-bottom: 14px; }
.site-footer a { color: var(--t2); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 10px; }
.footer-brand p { font-size: 13.5px; margin-top: 14px; max-width: 300px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--stroke);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--t3);
}
.footer-bottom .beian { color: var(--t3); }
.footer-bottom .beian:hover { color: #cbd5e1; }

/* ---------- 客服 widget（自研，LF_CHAT_API 未配置时不渲染） ---------- */

.cw-root { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: none; }
.cw-root.cw-on { display: block; }
.cw-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 20px 12px 14px; border-radius: 999px; border: 1px solid rgba(139, 92, 246, .5);
  background: linear-gradient(135deg, rgba(59, 130, 246, .9), rgba(139, 92, 246, .9));
  color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 14px 36px -10px rgba(99, 102, 241, .8);
  transition: transform .18s ease, box-shadow .18s ease;
  margin-left: auto; /* 与气泡面板右对齐 */
}
.cw-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(99, 102, 241, .95); }
.cw-btn .cw-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center;
}
.cw-btn .cw-avatar svg { width: 15px; height: 15px; }
.cw-badge {
  position: absolute; top: -4px; left: -4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ok); border: 2px solid var(--bg0); box-shadow: 0 0 10px var(--ok);
}
.cw-panel {
  position: absolute; right: 0; bottom: 62px;
  width: min(384px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 140px));
  display: none; flex-direction: column; overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(360px 180px at 90% -10%, rgba(139, 92, 246, .2), transparent 65%),
    rgba(8, 12, 26, .97);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 40px 90px -20px rgba(2, 6, 23, .95), 0 0 50px -20px rgba(99, 102, 241, .5);
  backdrop-filter: blur(14px);
}
.cw-panel.open { display: flex; animation: cw-in .22s ease; }
@keyframes cw-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.cw-head {
  display: flex; align-items: center; gap: 11px; padding: 15px 16px;
  border-bottom: 1px solid var(--stroke);
}
.cw-head .bot {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px -2px rgba(99, 102, 241, .8);
}
.cw-head .bot svg { width: 17px; height: 17px; }
.cw-head b { font-size: 14.5px; color: #f1f5f9; display: block; }
.cw-head small { font-size: 11.5px; color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.cw-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.cw-close {
  margin-left: auto; background: none; border: none; color: var(--t3); cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.cw-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cw-close svg { width: 16px; height: 16px; }
.cw-msgs { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.cw-msg { max-width: 86%; font-size: 13.5px; line-height: 1.6; padding: 10px 13px; border-radius: 13px; }
.cw-msg.u { justify-self: end; background: rgba(59, 130, 246, .24); color: #dbe4ff; border: 1px solid rgba(59, 130, 246, .34); border-bottom-right-radius: 4px; }
.cw-msg.a { justify-self: start; background: rgba(255, 255, 255, .05); color: #cbd5e1; border: 1px solid var(--stroke); border-bottom-left-radius: 4px; }
.cw-msg.a b { color: #e2e8f0; }
.cw-msg.err { justify-self: stretch; text-align: center; font-size: 12.5px; color: #fca5a5; background: rgba(248, 113, 113, .08); border: 1px dashed rgba(248, 113, 113, .4); }
.cw-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.cw-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8fb3ff; animation: cw-dot 1.2s ease infinite; }
.cw-typing i:nth-child(2) { animation-delay: .15s; }
.cw-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cw-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.cw-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.cw-quick button {
  font-size: 12.5px; color: #c7d6ff; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(99, 102, 241, .12); border: 1px solid rgba(139, 92, 246, .35);
  transition: background .15s ease, border-color .15s ease;
}
.cw-quick button:hover { background: rgba(99, 102, 241, .24); border-color: rgba(139, 92, 246, .6); }
.cw-input-row {
  display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .02);
}
.cw-input-row input {
  flex: 1; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, .05);
  color: var(--t1); font: inherit; font-size: 13.5px;
}
.cw-input-row input::placeholder { color: var(--t3); }
.cw-input-row input:focus { outline: 2px solid #60a5fa; outline-offset: 1px; }
.cw-send {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--grad); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -4px rgba(99, 102, 241, .7);
}
.cw-send:hover { filter: brightness(1.12); }
.cw-send svg { width: 16px; height: 16px; }
/* 留资表单 */
.cw-lead { padding: 14px 16px; border-top: 1px solid var(--stroke); display: grid; gap: 9px; background: rgba(255, 255, 255, .02); }
.cw-lead h4 { font-size: 13px; color: #e2e8f0; }
.cw-lead .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cw-lead input {
  padding: 9px 12px; border-radius: 9px; font: inherit; font-size: 13px;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, .05); color: var(--t1);
}
.cw-lead input::placeholder { color: var(--t3); }
.cw-lead input:focus { outline: 2px solid #60a5fa; outline-offset: 1px; }
.cw-lead .btn { padding: 10px 16px; font-size: 13.5px; }
.cw-lead .cw-lead-tip { font-size: 11.5px; color: var(--t3); }
.cw-lead.is-hidden { display: none; }

/* ---------- 滚动渐显与视差 ---------- */

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

/* ---------- 动效可达性 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .mk-float, .flow, .err .code { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .mockup, .card, .btn { transition: none; }
}

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

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .mockup { transform: none; }
  .mockup:hover { transform: none; }
  .mk-float.f2 { left: -8px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bn-a, .bn-b, .bn-e, .bn-f { grid-column: span 2; grid-row: auto; }
  .facts-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 960px) {
  .grid-3, .pricing-grid, .trust-grid, .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 66px;
    background: rgba(5, 7, 15, .97); border-bottom: 1px solid var(--stroke);
    padding: 18px 24px 22px; gap: 18px;
  }
  .nav-links.open { display: grid; }
  .nav-links a { font-size: 15px; }
  .nav-actions .btn-ghost { display: none; }
  .section { padding: 68px 0; }
  .hero { padding: 72px 0 64px; }
}

@media (max-width: 640px) {
  .grid-3, .pricing-grid, .trust-grid, .channel-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bn-a, .bn-b, .bn-e, .bn-f { grid-column: auto; }
  .facts-inner { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .plan-flag { position: static; transform: none; align-self: flex-start; margin-bottom: 10px; }
  .plan-hot { transform: none; }
  .plan-hot:hover { transform: translateY(-4px); }
  .cw-root { right: 14px; bottom: 14px; }
  .cw-panel { right: -6px; }
  .mk-body { grid-template-columns: 104px 1fr; }
  .mk-float { display: none; }
}
