/* AI 落地页主题色（默认 DeepSeek；可由面板切换） */
:root {
  --surface: #f7f8fc;
  --surface-accent: #f3f5ff;
  --accent: #4d6bfe;
  --accent-hover: #3b57e8;
  --accent-soft: #eef1ff;
  --green: var(--accent);
  --ai-outline: color-mix(in srgb, var(--accent) 45%, white);
}

.hero-v2 h1 span { color: var(--accent); }
a:hover { color: var(--accent); }
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline-color: var(--ai-outline);
}

.cta {
  background:
    radial-gradient(ellipse 70% 80% at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--accent-soft) 70%, white);
}
.explorer-visual {
  background: color-mix(in srgb, var(--accent-soft) 55%, white);
  border-color: color-mix(in srgb, var(--accent) 14%, #e6e8ea);
}
.cap-diagram {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 16%, #e6e8ea);
}
.accent-tile {
  border-color: color-mix(in srgb, var(--accent) 28%, #e6e8ea);
}
.fog {
  background: var(--surface);
}
.fit-split {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 10%, #e6e8ea);
}

/* 主题色面板 */
.ai-theme-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: min(292px, calc(100vw - 28px));
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e6e8ea;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(17, 20, 23, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 14px 12px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ai-theme-panel[hidden] { display: none !important; }
.ai-theme-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1199;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  background: #171a1d;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17, 20, 23, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ai-theme-fab::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}
.ai-theme-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ai-theme-panel-head strong {
  font-size: 13px;
  color: #1b1f23;
  font-weight: 600;
}
.ai-theme-close {
  border: 0;
  background: transparent;
  color: #8a929b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.ai-theme-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 10px;
}
.ai-theme-swatch {
  border: 1px solid #e6e8ea;
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.ai-theme-swatch:hover {
  transform: translateY(-1px);
  border-color: #cfd4da;
}
.ai-theme-swatch.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.ai-theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: block;
}
.ai-theme-swatch span {
  display: block;
  font-size: 11px;
  color: #5c6570;
  line-height: 1.3;
}
.ai-theme-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #eef0f2;
}
.ai-theme-custom label {
  font-size: 12px;
  color: #5c6570;
  flex: 1;
}
.ai-theme-custom input[type="color"] {
  width: 36px;
  height: 28px;
  border: 1px solid #e6e8ea;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.ai-theme-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #8a929b;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .ai-theme-panel,
  .ai-theme-fab {
    right: 12px;
    bottom: 12px;
  }
}

/* —— 克制动效 —— */
.ai-motion .hero-eyebrow,
.ai-motion .hero-v2 h1,
.ai-motion .hero-v2-lead,
.ai-motion .hero-v2-actions,
.ai-motion .network-art,
.ai-motion .hero-service {
  opacity: 0;
  transform: translateY(18px);
  animation: aiRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ai-motion .hero-eyebrow { animation-delay: 0.05s; }
.ai-motion .hero-v2 h1 { animation-delay: 0.14s; }
.ai-motion .hero-v2-lead { animation-delay: 0.24s; }
.ai-motion .hero-v2-actions { animation-delay: 0.34s; }
.ai-motion .network-art { animation-delay: 0.42s; }
.ai-motion .hero-service { animation-delay: 0.55s; }

@keyframes aiRise {
  to { opacity: 1; transform: translateY(0); }
}

.ai-motion .network-art svg path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: aiDraw 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}
.ai-motion .network-art svg circle {
  transform-origin: center;
  transform-box: fill-box;
  animation: aiFloat 5.5s ease-in-out 1s infinite alternate;
}
.ai-motion .network-art svg circle:nth-of-type(2) {
  animation-delay: 1.25s;
  animation-duration: 6.2s;
}
.ai-motion .network-art svg circle:nth-of-type(3) {
  animation-delay: 1.5s;
  animation-duration: 5.8s;
}

@keyframes aiDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes aiFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.ai-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ai-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.ai-motion .explorer-copy,
.ai-motion .explorer-visual {
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.ai-motion .explorer.is-switching .explorer-copy,
.ai-motion .explorer.is-switching .explorer-visual {
  opacity: 0.35;
  transform: translateY(6px);
}

.ai-motion .scene-card,
.ai-motion .cap-visual-card,
.ai-motion .process-step {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.ai-motion .scene-card:hover,
.ai-motion .cap-visual-card:hover {
  transform: translateY(-3px);
}

.ai-motion .capability-switch button {
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ai-motion .btn,
.ai-motion .nav-cta {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}
.ai-motion .btn:hover,
.ai-motion .nav-cta:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .ai-motion .hero-eyebrow,
  .ai-motion .hero-v2 h1,
  .ai-motion .hero-v2-lead,
  .ai-motion .hero-v2-actions,
  .ai-motion .network-art,
  .ai-motion .hero-service,
  .ai-motion .network-art svg path,
  .ai-motion .network-art svg circle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .ai-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ai-motion .explorer.is-switching .explorer-copy,
  .ai-motion .explorer.is-switching .explorer-visual {
    opacity: 1;
    transform: none;
  }
}
