/* ── 图灵 AI 介绍区 · 腾讯云产品页标准 v3 ── */
.tal-ai {
  --tal-blue: #0052d9;
  --tal-blue2: #0066ff;
  --tal-cyan: #38bdf8;
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0, 82, 217, 0.06), transparent 55%),
    linear-gradient(180deg, #f5f8ff 0%, #fff 50%, #f7f9fc 100%);
  overflow: hidden;
}

.tal-ai .fs-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 滚动入场 */
[data-fs-ai-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.tal-ai.is-revealed [data-fs-ai-reveal] {
  opacity: 1;
  transform: none;
}

.tal-ai.is-revealed .tal-ai-body [data-fs-ai-reveal] {
  transition-delay: 0.1s;
}

/* ── 图4 全宽横幅 ── */
.tal-ai-promo {
  position: relative;
  margin-bottom: clamp(40px, 5vw, 56px);
  overflow: hidden;
}

.tal-ai-promo-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 5% 80%, rgba(167, 243, 208, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 65% at 95% 20%, rgba(186, 230, 253, 0.4), transparent 50%),
    linear-gradient(95deg, #f0faf9 0%, #f8fcfb 35%, #f0f7ff 70%, #f5f8ff 100%);
}

.tal-ai-promo-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.5) 50%, transparent 58%);
  animation: tal-sweep 6s ease-in-out infinite;
}

@keyframes tal-sweep {
  0%, 72% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.tal-ai-promo-grid {
  position: relative;
  z-index: 1;
  display: block;
  padding: clamp(36px, 5vw, 52px) 24px;
  min-height: auto;
}

.tal-ai-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 82, 217, 0.12);
  font-size: 13px;
  font-weight: 700;
  color: var(--tal-blue);
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 82, 217, 0.08);
}

.tal-ai-promo-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tal-blue2), var(--tal-cyan));
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
  animation: tal-pulse 2.2s ease-in-out infinite;
}

.tal-ai-promo-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.tal-ai-title-brand {
  color: #0066ff;
}

.tal-ai-promo-copy p {
  margin: 0;
  max-width: 480px;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.75;
  color: #4e5969;
}

.tal-ai-promo-art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  min-height: 200px;
}

.tal-ai-promo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 380px);
  min-height: 168px;
  padding: 20px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 102, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 4px 24px rgba(0, 102, 255, 0.1),
    0 16px 48px rgba(0, 82, 217, 0.08);
}

.tal-ai-promo-hero {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  object-position: center;
  filter: none;
  animation: tal-hero-float 5s ease-in-out infinite;
}

@keyframes tal-hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── 主标题 + Tab（腾讯云下划线风格）── */
.tal-ai-sec-title {
  margin: 0 0 28px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.tal-ai-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #e5e8ef;
}

.tal-ai-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  padding: 16px 20px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: #4e5969;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.25s;
}

.tal-ai-tab-ico {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f2f4f8;
  color: #86909c;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.tal-ai-tab-ico svg {
  width: 18px;
  height: 18px;
}

.tal-ai-tab:hover {
  color: var(--tal-blue);
}

.tal-ai-tab:hover .tal-ai-tab-ico {
  background: rgba(0, 82, 217, 0.08);
  color: var(--tal-blue);
}

.tal-ai-tab.is-active {
  color: var(--tal-blue);
  border-bottom-color: var(--tal-blue);
}

.tal-ai-tab.is-active .tal-ai-tab-ico {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(56, 189, 248, 0.2));
  color: var(--tal-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.15);
}

/* ── 玻璃面板（图2 左右分栏）── */
.tal-ai-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr);
  gap: 0;
  margin-top: 28px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 24px 64px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tal-ai-panel-left {
  padding: clamp(32px, 4vw, 44px) clamp(28px, 4vw, 40px);
}

.fs-ai-pane {
  display: none;
}

.fs-ai-pane.is-active {
  display: block;
  animation: tal-pane-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tal-pane-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

.tal-ai-panel-left h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: #0f172a;
}

.tal-ai-panel-left > .fs-ai-pane > p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #4e5969;
}

.tal-ai-feats {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.tal-ai-feats li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14px;
  line-height: 1.65;
  color: #4e5969;
}

.tal-ai-feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tal-blue2);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.fs-ai-pane.is-active .tal-ai-feats li {
  animation: tal-feat-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.fs-ai-pane.is-active .tal-ai-feats li:nth-child(1) { animation-delay: 0.06s; }
.fs-ai-pane.is-active .tal-ai-feats li:nth-child(2) { animation-delay: 0.12s; }
.fs-ai-pane.is-active .tal-ai-feats li:nth-child(3) { animation-delay: 0.18s; }

@keyframes tal-feat-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

.tal-ai-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.tal-ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0066ff, #0052d9);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tal-ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.38);
}

.tal-ai-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--tal-blue) !important;
  text-decoration: none !important;
}

.tal-ai-link:hover {
  text-decoration: underline !important;
}

/* ── 右侧视觉（图2 蓝底 + 图3 立方体）── */
.tal-ai-panel-right {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: linear-gradient(160deg, #d4e4ff 0%, #e8f2ff 45%, #f4f9ff 100%);
}

.tal-ai-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tal-ai-sky-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.tal-ai-sky-orb--1 {
  width: 220px;
  height: 220px;
  right: -30px;
  top: -50px;
  background: rgba(0, 102, 255, 0.18);
  animation: tal-orb 8s ease-in-out infinite;
}

.tal-ai-sky-orb--2 {
  width: 180px;
  height: 180px;
  left: 5%;
  bottom: 5%;
  background: rgba(56, 189, 248, 0.15);
  animation: tal-orb 10s ease-in-out infinite reverse;
}

@keyframes tal-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -8px) scale(1.08); }
}

.tal-ai-sky-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 82, 217, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 82, 217, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 55% 45%, #000 15%, transparent 72%);
}

.tal-ai-float {
  position: absolute;
  left: -4%;
  bottom: 2%;
  width: min(58%, 280px);
  height: auto;
  z-index: 1;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 16px 36px rgba(0, 102, 255, 0.18));
  animation: tal-float-drift 6s ease-in-out infinite;
}

@keyframes tal-float-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.tal-ai-cube {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(170px, 36%);
  height: auto;
  z-index: 0;
  filter: drop-shadow(0 20px 40px rgba(0, 82, 217, 0.22));
  animation: tal-cube-float 5s ease-in-out infinite;
  transition: transform 0.25s ease-out;
  pointer-events: none;
  object-fit: contain;
}

@keyframes tal-cube-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.tal-ai-app {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84%;
  max-width: 360px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.tal-ai.is-revealed .tal-ai-app {
  animation: tal-app-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes tal-app-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* 数字人竖卡（腾讯云图2） */
.tal-ai-dh {
  flex-shrink: 0;
  width: 68px;
  margin-right: -8px;
  margin-top: 24px;
  z-index: 3;
  text-align: center;
}

.tal-ai-dh-screen {
  width: 64px;
  height: 88px;
  margin: 0 auto 6px;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(160deg, #0066ff, #38bdf8);
  box-shadow: 0 12px 32px rgba(0, 82, 217, 0.28);
  overflow: hidden;
}

.tal-ai-dh-orb {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.85), transparent 50%),
    linear-gradient(180deg, #bfdbfe 0%, #60a5fa 50%, #3b82f6 100%);
  animation: tal-dh-breathe 3s ease-in-out infinite;
}

@keyframes tal-dh-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.tal-ai-dh span {
  font-size: 11px;
  font-weight: 700;
  color: var(--tal-blue);
}

.tal-ai-window {
  flex: 1;
  width: 100%;
  min-width: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 20px 56px rgba(0, 82, 217, 0.16),
    0 0 0 1px rgba(0, 82, 217, 0.05);
  overflow: hidden;
}

.tal-ai-window-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #f7f8fa;
  border-bottom: 1px solid #e5e8ef;
}

.tal-ai-window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tal-ai-window-bar i:nth-child(1) { background: #ff5f57; }
.tal-ai-window-bar i:nth-child(2) { background: #febc2e; }
.tal-ai-window-bar i:nth-child(3) { background: #28c840; }

.tal-ai-window-body {
  padding: 16px 14px 12px;
  min-height: 190px;
}

.tal-ai-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fs-ai-bubble {
  max-width: 96%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  animation: tal-bubble 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fs-ai-bubble--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0066ff, #0052d9);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.fs-ai-bubble--ai {
  align-self: flex-start;
  background: #f2f4f8;
  color: #1f2329;
  border-bottom-left-radius: 4px;
}

@keyframes tal-bubble {
  to { opacity: 1; transform: none; }
}

.tal-ai-typing {
  display: flex;
  gap: 5px;
  padding-top: 4px;
  align-items: center;
}

.tal-ai-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9cdd4;
  animation: tal-typing 1.2s ease-in-out infinite;
}

.tal-ai-typing i:nth-child(2) { animation-delay: 0.15s; }
.tal-ai-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes tal-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.tal-ai-mic {
  position: absolute;
  right: 24px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066ff, #0052d9);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 82, 217, 0.42);
  cursor: default;
  z-index: 4;
}

.tal-ai-mic svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.tal-ai-mic-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 102, 255, 0.35);
  animation: tal-mic-pulse 2s ease-out infinite;
}

@keyframes tal-mic-pulse {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes tal-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

/* ── 响应式 ── */
@media (max-width: 960px) {
  .tal-ai-panel {
    grid-template-columns: 1fr;
  }

  .tal-ai-panel-right {
    min-height: 360px;
    order: -1;
  }

  .tal-ai-cube {
    left: 4%;
    width: min(180px, 38%);
    bottom: 12%;
  }

  .tal-ai-app {
    width: 84%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .tal-ai.is-revealed .tal-ai-app {
    animation-name: tal-app-in-m;
  }

  @keyframes tal-app-in-m {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
    to { opacity: 1; transform: translate(-50%, -50%); }
  }
}

@media (max-width: 768px) {
  .tal-ai-promo-grid {
    text-align: left;
    padding-bottom: 24px;
  }

  .tal-ai-promo-copy p {
    margin: 0;
  }

  .tal-ai-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tal-ai-tabs::-webkit-scrollbar {
    display: none;
  }

  .tal-ai-tab {
    flex-shrink: 0;
    min-width: 88px;
    padding: 12px 14px 10px;
  }

  .tal-ai-sec-title {
    text-align: left;
  }

  .tal-ai-cta {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .tal-ai .fs-wrap {
    padding: 0 16px;
  }

  .tal-ai-panel-left {
    padding: 24px 20px;
  }

  .tal-ai-panel-right {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tal-ai-promo-sweep,
  .tal-ai-promo-hero,
  .tal-ai-float,
  .tal-ai-cube,
  .tal-ai-sky-orb,
  .tal-ai-agent-ring,
  .tal-ai-agent-orb,
  .tal-ai-mic-ring,
  .tal-ai-promo-tag::before,
  [data-fs-ai-reveal],
  .tal-ai-app {
    animation: none !important;
    transition: none !important;
  }

  [data-fs-ai-reveal] {
    opacity: 1;
    transform: none;
  }
}
