/* ==========================================================
   超级个体 AI 官网 · 白色主题 + 科技感蓝色点缀 + 粒子暗花纹
   ========================================================== */

:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: rgba(37, 99, 235, 0.12);
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 50px rgba(37, 99, 235, 0.12);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-2);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景：科技感蓝色点缀 + 粒子暗花纹 ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 点阵暗花纹（底层静态纹理） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(37, 99, 235, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 85%);
  opacity: 0.75;
}

/* 蓝色光晕点缀 */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 380px at 12% 8%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(700px 460px at 88% 18%, rgba(37, 99, 235, 0.13), transparent 72%),
    radial-gradient(800px 520px at 50% 105%, rgba(96, 165, 250, 0.14), transparent 72%);
}

/* ---------- 通用 ---------- */
main, .nav, .foot { position: relative; z-index: 2; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section { padding: 104px 0; }

.head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.head h2 {
  font-size: 38px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 14px;
}

.head p { font-size: 17px; line-height: 1.8; color: var(--muted); }

.tag {
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--line);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.grad {
  background: linear-gradient(120deg, var(--blue-600), var(--blue-500) 60%, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.34);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(37, 99, 235, 0.44); }

.btn-ghost {
  color: var(--blue-600);
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(37, 99, 235, 0.22);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--blue-600); background: #fff; }

.btn-light {
  color: var(--blue-700);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}
.btn-light:hover { transform: translateY(-3px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow 0.3s ease;
  z-index: 50;
}
.nav.scrolled { box-shadow: 0 10px 34px rgba(37, 99, 235, 0.1); }

.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 42px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
  position: relative;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  transition: width 0.28s ease;
}
.nav-links > a:not(.btn):hover { color: var(--blue-600); }
.nav-links > a:not(.btn):hover::after { width: 100%; }

.btn-nav { padding: 11px 24px; font-size: 14px; color: #fff !important; }

/* ---------- 主视觉 ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 148px 24px 92px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero h1 {
  font-size: 62px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero-sub {
  max-width: 820px;
  font-size: 19px;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 38px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- 调度台 ---------- */
.console {
  width: min(880px, 100%);
  margin-top: 66px;
  text-align: left;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.07), rgba(96, 165, 250, 0.05));
  border-bottom: 1px solid var(--line);
}
.cdot { width: 11px; height: 11px; border-radius: 50%; background: #dbeafe; border: 1px solid rgba(37,99,235,.25); }
.console-bar em {
  margin-left: 12px;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue-700);
}

.console-input {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 10px;
  font-size: 16px;
  color: var(--ink);
}
.who {
  flex: none;
  padding: 4px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.typed { font-weight: 600; }
.caret {
  width: 2px; height: 20px;
  background: var(--blue-600);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.console-out { padding: 12px 22px 6px; }

.task {
  display: grid;
  grid-template-columns: 30px 74px 1fr 120px 56px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.045);
  border: 1px solid rgba(37, 99, 235, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease, background 0.45s ease, border-color 0.45s ease;
}
.task.on {
  opacity: 1;
  transform: none;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}
.task .ico { font-size: 17px; }
.task b { font-size: 15px; color: var(--ink); }
.task em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.task s {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-600);
  opacity: 0;
  transition: opacity 0.4s ease 0.5s;
}
.task.on s { opacity: 1; }

.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  overflow: hidden;
}
.bar i {
  display: block;
  width: 0; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), #60a5fa);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.task.on .bar i { width: 100%; }

.console-foot {
  padding: 14px 22px 20px;
  font-size: 13.5px;
  color: var(--blue-700);
  border-top: 1px dashed rgba(37, 99, 235, 0.18);
  margin-top: 6px;
}

/* ---------- 卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow);
}
.card:hover::before { transform: scaleX(1); }

.card-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 15px;
  font-size: 25px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(96, 165, 250, 0.16));
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.card h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.card p { font-size: 15px; line-height: 1.85; color: var(--muted); }

/* ---------- 全流程 ---------- */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.flow::before {
  content: "";
  position: absolute;
  top: 39px;
  left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, rgba(37,99,235,.35), rgba(96,165,250,.5), rgba(37,99,235,.35));
  z-index: 0;
}

.flow-item { position: relative; z-index: 1; text-align: center; }

.node {
  width: 78px; height: 78px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-size: 30px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.09);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.flow-item:hover .node {
  transform: translateY(-6px) scale(1.07);
  border-color: var(--blue-600);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.14));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.22);
}
.flow-item h4 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.flow-item p { font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ---------- 对话调度 ---------- */
.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.demo-text h2 {
  font-size: 36px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin-bottom: 18px;
}
.demo-text > p { font-size: 16.5px; line-height: 1.9; color: var(--muted); }

.check { list-style: none; margin-top: 26px; }
.check li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.check li::before {
  content: "✓";
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.1);
}

.chat {
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
}
.chat-head strong { display: block; font-size: 15px; color: var(--ink); }
.chat-head small { font-size: 12.5px; color: #16a34a; }
.live {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

.msg { margin-bottom: 16px; }
.msg p { font-size: 14.5px; line-height: 1.75; border-radius: 14px; }
.msg.user { text-align: right; }
.msg.user p {
  display: inline-block;
  max-width: 88%;
  padding: 13px 18px;
  color: #fff;
  text-align: left;
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
}
.msg.ai p {
  padding: 14px 18px;
  color: var(--ink-2);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-bottom-left-radius: 4px;
}
.msg.ai p.list { margin-top: 10px; color: var(--muted); line-height: 2; }
.msg.ai p.ok { margin-top: 10px; color: var(--blue-700); font-weight: 700; background: rgba(37, 99, 235, 0.1); }

/* ---------- 岗位矩阵 ---------- */
.role {
  padding: 28px 18px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.role:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.16);
}
.role span { display: block; font-size: 32px; margin-bottom: 12px; }
.role h4 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.role p { font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 74px 40px;
  text-align: center;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, var(--blue-600) 45%, #60a5fa 100%);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.3);
}
.cta::before {
  content: "";
  position: absolute;
  top: -40%; right: -8%;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 70%);
}
.cta h2 { position: relative; font-size: 38px; font-weight: 900; letter-spacing: -0.8px; margin-bottom: 16px; }
.cta p {
  position: relative;
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.85;
  opacity: 0.92;
}
.cta .btn { position: relative; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 40px;
  padding: 54px 0 46px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.foot-logo { height: 40px; width: auto; margin-bottom: 16px; }
.foot p { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.foot small { font-size: 13px; color: var(--muted); }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero h1 { font-size: 50px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 26px 8px; }
  .flow::before { display: none; }
}

@media (max-width: 900px) {
  .nav { padding: 0 18px; }
  .nav-links > a:not(.btn) { display: none; }
  .section { padding: 76px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; gap: 38px; }
  .head h2, .demo-text h2 { font-size: 28px; }
  .cta h2 { font-size: 27px; }
  .cta { padding: 54px 24px; }
  .hero { padding: 124px 20px 72px; }
  .hero h1 { font-size: 38px; letter-spacing: -0.8px; }
  .hero-sub { font-size: 16px; }
  .task { grid-template-columns: 26px 62px 1fr 46px; }
  .task .bar { display: none; }
  .console { margin-top: 46px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .task { grid-template-columns: 24px 1fr 44px; }
  .task em { display: none; }
}

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

/* ==========================================================
   对话演示框（「立即预约使用」按钮下方）
   ========================================================== */
.book-demo {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 30px 76px rgba(37, 99, 235, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.bd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.07), rgba(96, 165, 250, 0.03));
}
.bd-head strong { display: block; font-size: 15px; color: var(--ink); }
.bd-head small { font-size: 12.5px; color: #16a34a; }

.bd-replay {
  margin-left: auto;
  flex: none;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: #fff;
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.bd-replay:hover {
  background: rgba(37, 99, 235, 0.07);
  border-color: var(--blue-600);
  transform: translateY(-1px);
}

.bd-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(37, 99, 235, 0.02);
}
.bd-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  overflow: hidden;
}
.bd-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), #60a5fa);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.bd-progress em {
  flex: none;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-700);
}

.bd-body {
  padding: 22px;
  min-height: 300px;
  max-height: 460px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.bd-body::-webkit-scrollbar { width: 6px; }
.bd-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
}

.bd-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: rgba(37, 99, 235, 0.035);
  font-size: 15px;
  color: var(--ink);
  min-height: 58px;
}

/* 消息：复用 .msg 气泡，另加一行渐入动画 */
.bd-body .msg { animation: msgIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 思考中：三点动画 */
.dots { display: inline-flex; align-items: center; gap: 4px; height: 18px; }
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.5);
  animation: dotBounce 1.2s infinite;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* 岗位执行行 */
.bd-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.05);
  animation: msgIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bd-line .ico { flex: none; font-size: 16px; }
.bd-line b { flex: none; min-width: 42px; font-size: 14px; color: var(--ink); }
.bd-line em { flex: 1; font-style: normal; font-size: 13px; color: var(--muted); }
.bd-line s {
  flex: none;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.1);
}

@media (max-width: 900px) {
  .bd-head { padding: 14px 16px; }
  .bd-progress { padding: 10px 16px; }
  .bd-body { padding: 16px; min-height: 260px; max-height: 400px; }
  .bd-input { padding: 13px 16px; font-size: 14px; }
  .bd-replay { padding: 7px 12px; font-size: 12px; }
  .bd-line em { font-size: 12px; }
}

@media (max-width: 560px) {
  .bd-head strong { font-size: 13.5px; }
  .bd-head small { display: none; }
  .bd-line b { min-width: 36px; }
  .bd-line em { display: none; }
}

/* ==========================================================
   点击「立即预约使用」的提示弹层
   ========================================================== */
.toast-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.toast-mask.show { opacity: 1; visibility: visible; }

.toast {
  position: relative;
  width: min(430px, 100%);
  padding: 42px 34px 30px;
  text-align: center;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 32px 84px rgba(37, 99, 235, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.toast-mask.show .toast { opacity: 1; transform: none; }

/* 顶部点阵装饰 */
.toast::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 96px;
  background-image: radial-gradient(rgba(37, 99, 235, 0.28) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
  pointer-events: none;
}

.toast-ico {
  position: relative;
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(96, 165, 250, 0.2));
  border: 1px solid rgba(37, 99, 235, 0.18);
  animation: pulse 2.4s infinite;
}

.toast h3 {
  position: relative;
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.toast p {
  position: relative;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 26px;
}
.toast p b { color: var(--blue-600); font-weight: 700; }

.toast-ok {
  position: relative;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-radius: 13px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.toast-ok:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(37, 99, 235, 0.44); }

.toast-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-600);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.toast-close:hover { background: rgba(37, 99, 235, 0.16); transform: rotate(90deg); }

@media (max-width: 560px) {
  .toast { padding: 34px 22px 24px; }
  .toast-ico { width: 64px; height: 64px; font-size: 28px; margin-bottom: 16px; }
  .toast h3 { font-size: 20px; }
  .toast p { font-size: 14px; margin-bottom: 22px; }
}

