/* =========================================================
   灵犀 AI 官网样式
   主题化：修改 :root 里的变量即可整体换肤/换品牌色
   ========================================================= */
:root {
  /* 品牌主色（改这里换主题） */
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-light: #eef2ff;

  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --text: #1a1a2e;
  --text-soft: #5b5b73;
  --border: #e6e8f0;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 20, 60, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 20, 60, 0.14);
  --maxw: 1120px;

  /* 移动端视口高度用 dvh，避免地址栏跳动 */
  --vh: 100dvh;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* 容器 */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-light); }

.btn-lg { padding: 14px 28px; font-size: 16px; }

/* 焦点样式必须保留（无障碍） */
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* ===================== 导航 ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.brand-mark { color: var(--brand); font-size: 22px; }
.brand-name { letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { font-size: 15px; color: var(--text-soft); font-weight: 500; }
.nav-links > a:hover { color: var(--brand); }
.nav-cta { color: #fff !important; background: var(--brand); padding: 9px 18px; }
.nav-cta:hover { background: var(--brand-dark); }
.nav-partner { color: var(--brand) !important; background: transparent; border: 1.5px solid var(--brand); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.nav-partner:hover { background: var(--brand); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ===================== Hero ===================== */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, var(--brand-light), transparent 60%),
    radial-gradient(700px 400px at 5% 10%, #fdf2ff, transparent 55%);
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero-sub { font-size: 18px; color: var(--text-soft); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-soft); }

/* Hero 演示卡片 */
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-row { display: flex; align-items: flex-end; gap: 10px; }
.chat-row .dot { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-size: 13px; color: #fff; }
.dot.user { background: #94a3b8; }
.dot.ai { background: var(--brand); }
.bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; max-width: 78%; }
.bubble.user { background: var(--bg-alt); border: 1px solid var(--border); }
.bubble.ai { background: var(--brand-light); color: var(--brand-dark); }
.bubble.typing { display: flex; gap: 5px; align-items: center; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: .5; animation: blink 1.2s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; }
.bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ===================== 通用区块 ===================== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--text-soft); font-size: 17px; }

/* 网格 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* 卡片 */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 15px; }

/* 场景 */
.scenario { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.scenario h3 { font-size: 18px; margin-bottom: 8px; color: var(--brand-dark); }
.scenario p { color: var(--text-soft); font-size: 15px; }

/* 定价 */
.pricing .plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 34px; font-weight: 800; margin: 10px 0 16px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--text-soft); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; flex: 1; }
.plan ul li { position: relative; padding-left: 24px; color: var(--text-soft); font-size: 15px; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan .btn { width: 100%; }
.plan.featured { border-color: var(--brand); box-shadow: 0 16px 40px rgba(79,70,229,.18); }
.plan-tag { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.partner-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 30px 40px; background: linear-gradient(120deg, rgba(79,70,229,.08), rgba(79,70,229,.02)); border: 1px solid rgba(79,70,229,.28); border-radius: 18px; }
.partner-cta-text h3 { font-size: 22px; margin-bottom: 8px; }
.partner-cta-text p { color: var(--text-soft); font-size: 15px; margin: 0; }
.partner-cta .btn { white-space: nowrap; }

/* 关于 */
.about-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.about-text h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 16px; }
.about-text p { color: var(--text-soft); font-size: 17px; }
.stats { display: flex; justify-content: center; gap: 48px; margin-top: 32px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 32px; color: var(--brand); }
.stats span { font-size: 14px; color: var(--text-soft); }

/* CTA / 联系 */
.cta { background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; }
.cta h2 { font-size: clamp(26px, 3.6vw, 36px); }
.cta p { opacity: .92; margin-top: 8px; margin-bottom: 28px; }
.cta-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.7); }
.field input:focus, .field textarea:focus { border-color: #fff; background: rgba(255,255,255,.2); outline: none; }
.contact-form .btn { grid-column: 1 / -1; }
.form-hint { grid-column: 1 / -1; font-size: 14px; min-height: 20px; }

/* ===================== 页脚 ===================== */
.footer { background: #0f1020; color: #c9c9d6; padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { font-size: 14px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 14px; color: #c9c9d6; }
.footer-links a:hover { color: #fff; }

/* ===================== 响应式 ===================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .stats { gap: 28px; }
}

/* ===================== 技术底座卡 ===================== */
.tech-card.featured { border-color: var(--brand); box-shadow: 0 16px 40px rgba(79,70,229,.16); }
.tech-card h3 small { font-size: 14px; color: var(--text-soft); font-weight: 500; }

/* ===================== 测评卡 ===================== */
.assess-card { display: flex; flex-direction: column; }
.assess-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.assess-card h3 { font-size: 19px; margin-bottom: 8px; }
.assess-card p { color: var(--text-soft); font-size: 15px; flex: 1; }
.card-link { margin-top: 14px; font-weight: 700; color: var(--brand); }
.card-link:hover { color: var(--brand-dark); }

/* ===================== AI 引擎卡 ===================== */
.engine-card { display: flex; flex-direction: column; position: relative; }
.engine-card.featured { border-color: var(--brand); box-shadow: 0 16px 40px rgba(79,70,229,.18); }
.engine-flag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.engine-card h3 { font-size: 20px; margin-bottom: 10px; }
.engine-card p { color: var(--text-soft); font-size: 15px; flex: 1; margin-bottom: 14px; }
.engine-status {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.status-soon { background: #ecfdf5; color: #047857; }
.status-dev  { background: #fff7ed; color: #c2410c; }
.status-plan { background: var(--bg-alt); color: var(--text-soft); }

/* ===================== 落地路线图 ===================== */
.roadmap { list-style: none; max-width: 760px; margin: 0 auto; position: relative; }
.roadmap::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.roadmap-item { position: relative; padding: 0 0 28px 44px; }
.roadmap-item:last-child { padding-bottom: 0; }
.rm-dot {
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border);
}
.roadmap-item.done .rm-dot { background: var(--brand); border-color: var(--brand); }
.roadmap-item.current .rm-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); }
.rm-phase {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.rm-body h3 { font-size: 19px; margin: 4px 0 6px; }
.rm-body p { color: var(--text-soft); font-size: 15px; }
.roadmap-note { text-align: center; margin-top: 24px; color: var(--text-soft); font-size: 15px; }

/* ===================== 平台卡片（带图片） ===================== */
.workbench-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 28px;
}
.workbench-card.featured { border-color: var(--brand); box-shadow: 0 16px 40px rgba(79,70,229,.18); }
.workbench-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.workbench-logo {
  width: 140px;
  height: 140px;
  margin-bottom: 14px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: 0 8px 24px rgba(20,20,60,.1);
  display: grid;
  place-items: center;
}
.workbench-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.workbench-card h3 { font-size: 19px; margin-bottom: 10px; }
.workbench-card p { color: var(--text-soft); font-size: 15px; }

/* ===================== 合作模式价卡微调 ===================== */
.plan .price { font-size: 30px; }

@media (max-width: 768px) {
  .partner-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 24px; }
  .partner-cta .btn { width: 100%; }
  .nav-partner { display: block; text-align: center; margin-top: 12px; }
}

/* ===================== AI 数字人接待（脚本化 · 免算力） ===================== */
.concierge {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  font-family: inherit;
}
.concierge-bubble {
  position: relative;
  width: 66px;
  height: 66px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 30px rgba(40,40,120,.28);
}
.concierge-avatar {
  display: block;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(40,40,120,.25);
}
.avatar-svg, .avatar-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 面板头像复用同一张照片，确保样式一致 */
.cp-avatar .avatar-photo { width: 100%; height: 100%; object-fit: cover; }
.concierge-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(109,139,255,.6);
  animation: cp-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes cp-pulse {
  0% { transform: scale(.92); opacity: .8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.concierge-panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(30,30,90,.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(120,130,200,.18);
}
.concierge-panel[hidden] { display: none; }
.cp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #6d8bff, #8a5cff);
  color: #fff;
}
.cp-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.7); flex: none; }
.cp-id { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.cp-id strong { font-size: 15px; }
.cp-status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 5px; }
.cp-status i { width: 7px; height: 7px; border-radius: 50%; background: #6dffa6; display: inline-block; box-shadow: 0 0 6px #6dffa6; }
.cp-mute, .cp-close {
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.cp-mute:hover, .cp-close:hover { background: rgba(255,255,255,.32); }
.cp-body {
  position: relative;
  padding: 16px 16px 8px;
  min-height: 132px;
}
.cp-step {
  display: none;
  font-size: 14.5px;
  line-height: 1.7;
  color: #2b2f44;
  animation: cp-fade .35s ease;
}
.cp-step.active { display: block; }
.cp-step b { color: #4338ca; }
@keyframes cp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cp-tools {
  padding: 6px 16px 12px;
  border-top: 1px dashed rgba(120,130,200,.25);
}
.cp-tools-title { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.cp-tool-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cp-tool {
  display: block;
  text-align: center;
  font-size: 13px;
  padding: 9px 4px;
  border-radius: 10px;
  background: #f1f3ff;
  color: #4338ca;
  text-decoration: none;
  border: 1px solid rgba(109,139,255,.25);
  transition: background .2s, transform .2s;
}
.cp-tool:hover { background: #e3e8ff; transform: translateY(-1px); }
.cp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
  gap: 10px;
}
.cp-nav {
  border: none;
  background: #4338ca;
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
}
.cp-nav:disabled { background: #c7c9e0; cursor: not-allowed; }
.cp-dots { display: flex; gap: 6px; }
.cp-dot { width: 7px; height: 7px; border-radius: 50%; background: #d3d6ee; }
.cp-dot.on { background: #4338ca; }
@media (max-width: 480px) {
  .concierge-panel { width: calc(100vw - 28px); right: -4px; }
}



/* ===== SaleHub 数字人 · 对话式分支引导 ===== */
.cp-chat { max-height: 320px; overflow-y: auto; padding: 4px 2px 8px; display: flex; flex-direction: column; gap: 10px; }
.cp-line { max-width: 92%; line-height: 1.65; font-size: 0.86rem; padding: 10px 13px; border-radius: 14px; }
.cp-line-advisor { align-self: flex-start; background: #f3f5ff; color: #1f2540; border-bottom-left-radius: 4px; }
.cp-line-user { align-self: flex-end; background: var(--brand, #5b6cff); color: #fff; border-bottom-right-radius: 4px; }
.cp-line-sys { align-self: center; background: transparent; color: #9aa0b5; font-size: 0.78rem; font-style: italic; }
.cp-options { display: flex; flex-direction: column; gap: 7px; margin: 6px 0 2px; }
.cp-opt {
  text-align: left; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--border, #e3e6f0);
  background: #fff; color: #2a3050; font-size: 0.85rem; cursor: pointer; transition: all .15s; font-family: inherit;
}
.cp-opt:hover { border-color: var(--brand, #5b6cff); background: #f7f8ff; transform: translateX(2px); }
.cp-advisor { text-align: center; margin-top: 8px; padding-top: 10px; border-top: 1px dashed #e3e6f0; }
.cp-advisor-tip { font-size: 0.82rem; color: #2a3050; margin: 0 0 8px; }
.cp-advisor-qr { width: 140px; height: 140px; border-radius: 10px; border: 1px solid #e3e6f0; }
.cp-advisor-note { font-size: 0.74rem; color: #9aa0b5; margin: 6px 0 0; }
.cp-restart { font-size: 0.78rem; color: #9aa0b5; background: none; border: none; cursor: pointer; }
.cp-restart:hover { color: var(--brand, #5b6cff); }
