/* ===== 未来科技风完整样式 ===== */
.ai-box.future-tech {
  --main-color: #00F0FF;
  --bg-color: #0A0E17;
  --text-color: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 240, 255, 0.2);
  
  position: relative;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
  margin: 25px 0;
  transition: all 0.3s ease;
}

/* 头部区域 */
.ai-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

/* AI图标 */
.ai-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  border: 1px solid var(--main-color);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
}

.ai-icon svg {
  width: 28px;
  height: 28px;
}

/* 标题 */
.ai-header h3 {
  color: white;
  margin: 0;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 0 12px var(--main-color);
  font-size: 20px;
  flex-grow: 1;
}

/* 脉冲指示器 */
.ai-pulse {
  display: flex;
  margin-left: auto;
}

.ai-pulse span {
  width: 10px;
  height: 10px;
  background: var(--main-color);
  border-radius: 50%;
  margin: 0 4px;
  opacity: 0.4;
  box-shadow: 0 0 8px var(--main-color);
}

/* 内容区域 */
.ai-content {
  color: var(--text-color);
  line-height: 1.7;
  min-height: 80px;
  font-size: 16px;
  position: relative;
  z-index: 2;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 2px solid var(--main-color);
}

/* 底部区域 */
.ai-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px dashed rgba(0, 240, 255, 0.3);
  position: relative;
  z-index: 2;
}

/* 版本徽章 */
.ai-badge {
  background: rgba(0, 240, 255, 0.15);
  color: var(--main-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
}

/* 操作按钮 */
.ai-action {
  background: transparent;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  padding: 8px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.ai-action svg {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.ai-action:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

/* 科技网格背景 */
.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 25px 25px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ai-box.future-tech {
    padding: 18px;
  }
  
  .ai-header h3 {
    font-size: 18px;
  }
  
  .ai-icon {
    width: 45px;
    height: 45px;
    margin-right: 12px;
  }
  
  .ai-content {
    font-size: 15px;
    padding: 12px;
  }
}
/* ===== 精确还原的科技风UI ===== */
.ai-box.future-tech {
  --main-color: #00F0FF;
  --bg-color: #0A0E17;
  --text-color: rgba(255,255,255,0.8);
  position: relative;
  background: var(--bg-color);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.ai-box.future-tech::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--main-color), transparent);
  animation: scanline 3s linear infinite;
  z-index: 1;
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ai-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.ai-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  border: 1px solid var(--main-color);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.ai-icon svg {
  width: 28px;
  height: 28px;
}

.ai-header h3 {
  color: white;
  margin: 0;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 0 10px var(--main-color);
}

.ai-pulse {
  display: flex;
  margin-left: auto;
}

.ai-pulse span {
  width: 8px;
  height: 8px;
  background: var(--main-color);
  border-radius: 50%;
  margin: 0 3px;
  opacity: 0.4;
  animation: pulse 1.5s infinite ease-in-out;
}

.ai-pulse span:nth-child(2) { animation-delay: 0.2s; }
.ai-pulse span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.ai-content {
  color: var(--text-color);
  line-height: 1.6;
  min-height: 60px;
  font-size: 15px;
}

.typing-effect::after {
  content: "|";
  animation: blink 1s infinite;
  color: var(--main-color);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ai-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed rgba(0, 240, 255, 0.3);
}

.ai-badge {
  background: rgba(0, 240, 255, 0.15);
  color: var(--main-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.ai-action {
  background: transparent;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  padding: 6px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.ai-action svg {
  margin-right: 5px;
  width: 20px;
  height: 20px;
}

.ai-action:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .ai-box.future-tech {
    padding: 15px;
  }
  
  .ai-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }
  
  .ai-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .ai-header h3 {
    font-size: 18px;
  }
}
/* ===== 明亮科技风样式 ===== */
.ai-box.light-tech {
  --main-color: #0066CC;
  --bg-color: #FFFFFF;
  --text-color: #333333;
  --border-color: rgba(0, 102, 204, 0.2);
  
  position: relative;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 102, 204, 0.1);
  margin: 20px 0;
}

.ai-box.light-tech::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--main-color), transparent);
  animation: scanline 3s linear infinite;
}

.ai-box.light-tech .ai-icon {
  background: rgba(0, 102, 204, 0.1);
  border: 1px solid var(--main-color);
  box-shadow: 0 0 15px rgba(0, 102, 204, 0.2);
}

.ai-box.light-tech .ai-header h3 {
  color: var(--text-color);
  text-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
}

.ai-box.light-tech .ai-pulse span {
  background: var(--main-color);
  box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
}

.ai-box.light-tech .ai-content {
  color: var(--text-color);
  background: rgba(0, 102, 204, 0.05);
  border-left: 2px solid var(--main-color);
}

.ai-box.light-tech .ai-badge {
  background: rgba(0, 102, 204, 0.1);
  color: var(--main-color);
}

.ai-box.light-tech .ai-action {
  border: 1px solid var(--main-color);
  color: var(--main-color);
}

.ai-box.light-tech .ai-action:hover {
  background: rgba(0, 102, 204, 0.1);
  box-shadow: 0 0 10px rgba(0, 102, 204, 0.2);
}

.ai-box.light-tech .tech-grid {
  background-image: 
    linear-gradient(rgba(0, 102, 204, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.05) 1px, transparent 1px);
  opacity: 0.4;
}
/* ===== 动画效果增强 ===== */
/* 基础动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 容器入场动画 */
.ai-box {
    animation: fadeIn 0.6s ease-out, slideUp 0.6s ease-out;
    transform-origin: top center;
}

/* 图标悬浮动画 */
.ai-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ai-icon:hover {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 0 8px var(--main-color));
}

/* 脉冲点动画增强 */
.ai-pulse span {
    animation: pulse 1.5s infinite ease-in-out, 
               colorShift 4s infinite alternate;
}

@keyframes colorShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(20deg); }
}

/* 按钮悬浮动画 */
.ai-action {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.ai-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(255,255,255,0.2), 
                transparent);
    transition: all 0.6s ease;
}

.ai-action:hover::before {
    left: 100%;
}

/* 内容区域动画 */
.ai-content {
    transition: all 0.4s ease;
}

/* 网格动画增强 */
.tech-grid {
    animation: gridFlow 12s linear infinite;
}

@keyframes gridFlow {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* 明亮风格特定动画 */
.ai-box.light-tech .ai-action:hover {
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

/* 暗黑风格特定动画 */
.ai-box.future-tech .ai-action:hover {
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* 点击涟漪效果 */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}
/* 打字效果优化 */
.typing-effect {
    min-height: 1.2em; /* 保持高度稳定 */
    overflow: hidden; /* 防止内容跳动 */
    will-change: contents; /* 性能优化 */
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
    color: var(--main-color);
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* 硬件加速优化 */
.ai-content {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}