/* ============ AI 售后助手 ============ */

/* ===== HERO ===== */
.ai-hero {
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}
.ai-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 28px;
}
.ai-hero-copy { max-width: 580px; }
.ai-hero-title {
  font-size: clamp(44px, 5vw, 72px);
  margin: 22px 0 24px;
}
.grad-text {
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent-3) 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai-hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0 0 32px;
}
.ai-hero-cta { display: flex; gap: 12px; margin-bottom: 44px; }
.ai-stats {
  display: flex; gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ai-stats > div { display: flex; flex-direction: column; gap: 4px; }
.ai-stats b {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.ai-stats span { font-size: 12px; color: var(--text-dim); }

/* ===== AI Brain 舞台 ===== */
.ai-brain-stage {
  position: relative;
  height: 600px;
  display: flex; align-items: center; justify-content: center;
}
.brain-orbits {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}
.orbit > span {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.orbit-1 {
  width: 320px; height: 320px;
  color: var(--accent-2);
  border-color: rgba(98,189,255,0.25);
  animation: spin 12s linear infinite;
}
.orbit-2 {
  width: 440px; height: 440px;
  color: var(--accent-3);
  border-color: rgba(179,136,255,0.2);
  border-style: dashed;
  animation: spin 18s linear infinite reverse;
}
.orbit-3 {
  width: 560px; height: 560px;
  color: var(--accent);
  border-color: rgba(255,106,44,0.15);
  animation: spin 24s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.brain-core {
  position: relative;
  width: 260px; height: 260px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(255,106,44,0.4));
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.brain-core svg { width: 100%; height: 100%; }
.brain-core::before {
  content: '';
  position: absolute;
  inset: 30%;
  background: radial-gradient(circle, rgba(255,106,44,0.6), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.brain-hex polygon { animation: hexPulse 4s ease-in-out infinite; transform-origin: center; }
.brain-hex polygon:nth-child(2) { animation-delay: -1.3s; }
.brain-hex polygon:nth-child(3) { animation-delay: -2.6s; }
@keyframes hexPulse {
  0%,100% { opacity: .3; }
  50% { opacity: .7; }
}

/* 浮动 chip */
.brain-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(20,28,42,0.92), rgba(13,18,28,0.85));
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 3;
  min-width: 180px;
}
.chip-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.chip-meta { font-size: 10px; color: var(--text-dim); margin-top: 1px; }
.chip-1 { top: 6%;  left: -8%; animation: chipFloat 7s ease-in-out infinite; }
.chip-2 { top: 30%; right: -6%; animation: chipFloat 8s ease-in-out infinite -2s; }
.chip-3 { bottom: 26%; left: -6%; animation: chipFloat 9s ease-in-out infinite -4s; }
.chip-4 { bottom: 8%;  right: -4%; animation: chipFloat 7s ease-in-out infinite -3s; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== 通用 section ===== */
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(36px, 4vw, 56px);
  margin: 16px 0 18px;
}
.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0;
}

/* ===== 痛点 ===== */
.pain-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,93,108,0.06), transparent 70%);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pain-card {
  position: relative;
  padding: 36px 28px 28px;
  background: linear-gradient(180deg, rgba(40,20,24,0.4), rgba(20,12,14,0.4));
  border: 1px solid rgba(255,93,108,0.18);
  border-radius: var(--r-lg);
  transition: transform .3s, border-color .3s;
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,93,108,0.4);
}
.pain-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,93,108,0.4);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.pain-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}
.pain-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0 0 18px;
}
.pain-stat {
  font-size: 13px;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px dashed rgba(255,93,108,0.25);
}

/* ===== 三大支柱 ===== */
.pillars-section { padding-top: 80px; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.pillar-num {
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.pillar-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0 0 18px;
}
.pillar-points {
  list-style: none;
  padding: 0; margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-mid);
}
.pillar-points li {
  padding: 8px 0 8px 22px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.pillar-points li:last-child { border-bottom: 0; }
.pillar-points li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 600;
}
.pillar-demo {
  margin-top: auto;
  background: rgba(11,15,23,0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

/* 知识库 demo */
.kb-search {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  font-size: 12px;
}
.kb-prompt { color: var(--accent-2); }
.kb-query { color: var(--text); font-family: var(--font-mono); }
.kb-cursor {
  width: 7px; height: 13px;
  background: var(--accent-2);
  display: inline-block;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.kb-result { font-size: 12px; }
.kb-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-mid);
}
.kb-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(98,189,255,0.12);
  color: var(--accent-2);
  border: 1px solid rgba(98,189,255,0.25);
  border-radius: 999px;
}

/* 工单 demo */
.ticket-card {
  padding: 12px;
  background: rgba(20,28,42,0.6);
  border: 1px solid var(--line-bright);
  border-radius: 10px;
}
.t-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.t-id { font-size: 11px; color: var(--text-dim); }
.t-pri.urgent {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255,93,108,0.15);
  color: var(--bad);
  border: 1px solid rgba(255,93,108,0.3);
  border-radius: 999px;
}
.t-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.t-meta { font-size: 11px; color: var(--text-dim); margin-bottom: 10px; }
.t-assign {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.t-assign .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.t-assign b { font-size: 13px; }
.t-progress { grid-column: 1 / -1; margin-top: 8px; }
.t-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.t-bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--warn)); }
.t-progress span { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: block; }
.ticket-sub { margin-top: 8px; font-size: 11px; padding-left: 10px; }

/* 远程协助 demo */
.remote-screen {
  background: #06080d;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  overflow: hidden;
}
.remote-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px;
  background: rgba(11,15,23,0.9);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-mid);
}
.remote-view {
  height: 140px;
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(98,189,255,0.06), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0, transparent 6px, rgba(255,255,255,0.02) 6px, rgba(255,255,255,0.02) 7px);
  display: flex; align-items: center; justify-content: center;
}
.remote-arm {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.remote-arm svg { width: 100px; height: 100px; }
.ar-circle {
  position: absolute;
  top: 24px; right: 38%;
  width: 30px; height: 30px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255,106,44,0.6);
  animation: pulse 1.5s ease-in-out infinite;
}
.ar-label {
  position: absolute;
  top: 8px; right: 12%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(11,15,23,0.9);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,106,44,0.4);
}
.remote-foot {
  font-size: 11px;
  color: var(--text-mid);
  padding: 6px 10px;
  background: rgba(11,15,23,0.9);
  border-top: 1px solid var(--line);
}

/* ===== 闭环飞轮 ===== */
.loop-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(98,189,255,0.06), transparent 70%);
}
.loop-canvas {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(11,15,23,0.4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
}

/* ===== 数据安全 ===== */
.security-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11,15,23,0.4);
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sec-points { display: flex; flex-direction: column; gap: 20px; }
.sec-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.sec-icon {
  font-size: 28px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(98,189,255,0.08);
  border: 1px solid rgba(98,189,255,0.25);
  border-radius: 14px;
}
.sec-row h5 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 4px 0 4px;
  color: var(--text);
}
.sec-row p {
  margin: 0;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== Beta CTA ===== */
.beta-section { padding: 60px 28px 100px; }
.cta-wrap {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 60px;
  background:
    radial-gradient(ellipse at center, rgba(255,106,44,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #14191f 0%, #0a0e16 100%);
  border: 1px solid var(--line-bright);
  border-radius: 32px;
  overflow: hidden;
}
.cta-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,106,44,0.18);
}
.cta-ring:nth-child(1) { width: 600px; height: 600px; }
.cta-ring:nth-child(2) { width: 800px; height: 800px; border-color: rgba(98,189,255,0.12); }
.cta-ring:nth-child(3) { width: 1000px; height: 1000px; border-color: rgba(179,136,255,0.08); }
.cta-content { position: relative; max-width: 760px; }
.cta-title {
  font-size: clamp(40px, 5vw, 64px);
  margin: 18px 0 14px;
}
.cta-sub {
  font-size: 17px;
  color: var(--text-mid);
  margin: 0 0 36px;
}
.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.cta-form input {
  background: rgba(11,15,23,0.6);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 12px 20px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.cta-form input::placeholder { color: var(--text-dim); }
.cta-foot { font-size: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .ai-hero-inner { grid-template-columns: 1fr; }
  .ai-brain-stage { height: 480px; }
  .pain-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-menu { display: none; }
  .ai-stats { flex-wrap: wrap; gap: 18px; }
  .cta-wrap { padding: 60px 24px; }
}
