/* AI智能客服系统页面样式 */

/* 页面特定变量 */
:root {
  --ai-primary: #FF6A00;
  --ai-secondary: #FF8533;
  --ai-light: #FFF5F0;
  --ai-dark: #CC5500;
}

/* 英雄区域 */
.ai-hero-section {
  background: linear-gradient(135deg, var(--ai-light) 0%, #ffffff 100%);
  padding: 120px 0 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.ai-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-hero-left {
  text-align: left;
}

.ai-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.ai-hero-subtitle {
  font-size: 1.5rem;
  color: var(--ai-primary);
  margin-bottom: 2rem;
  font-weight: 600;
  line-height: 1.4;
}

.ai-features {
  margin: 2rem 0;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 106, 0, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--ai-primary);
}

.feature-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.ai-feature span:last-child {
  font-weight: 500;
  color: var(--primary-dark);
}

.ai-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.ai-demo-container {
  width: 100%;
}

.chat-interface {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.chat-header {
  background: var(--ai-primary);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
}

.status-dot.online {
  background: #4CAF50;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.chat-messages {
  padding: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.message {
  margin-bottom: 1rem;
  display: flex;
}

.user-message {
  justify-content: flex-end;
}

.ai-message {
  justify-content: flex-start;
}

.message span {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.user-message span {
  background: var(--ai-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-message span {
  background: #f5f5f5;
  color: var(--primary-dark);
  border-bottom-left-radius: 4px;
}

.typing-indicator {
  padding: 1rem 1.5rem;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.typing-dots {
  display: flex;
  gap: 2px;
}

.typing-dots span {
  width: 4px;
  height: 4px;
  background: var(--ai-primary);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

.ai-hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.ai-hero-section .subtitle {
  font-size: 1.5rem;
  color: var(--ai-primary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.ai-hero-section .description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.ai-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ai-primary {
  background: var(--ai-primary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.btn-ai-secondary {
  background: transparent;
  color: var(--ai-primary);
  padding: 1rem 2.5rem;
  border: 2px solid var(--ai-primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

/* 核心优势区域 */
.ai-advantages-section {
  padding: 80px 0;
  background: #ffffff;
}

.ai-advantages-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 3rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.advantage-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #f0f0f0;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  background: var(--ai-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--ai-primary);
}

.advantage-card h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.advantage-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.advantage-stats {
  text-align: center;
  padding: 1rem;
  background: var(--ai-light);
  border-radius: 8px;
  margin-top: 1rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--ai-primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* 功能特性区域 */
.ai-features-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.ai-features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--ai-primary);
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card .icon {
  color: var(--ai-primary);
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ai-primary);
  font-weight: bold;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
  border: 1px solid #f0f0f0;
}

.feature-icon {
  display: block;
}

.feature-item h4 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.feature-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 客户案例区域 */
.ai-cases-section {
  padding: 80px 0;
  background: white;
}

.ai-cases-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 3rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.case-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.case-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.case-logo {
  width: 60px;
  height: 60px;
  background: var(--ai-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--ai-primary);
}

.case-info h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 0;
}

.case-info .industry {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ai-primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.case-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
}

.case-header {
  margin-bottom: 1.5rem;
}

.case-header h4 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 0 0 0.5rem 0;
}

.case-industry {
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: var(--ai-light);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  display: inline-block;
}

.case-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metric {
  text-align: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ai-primary);
  display: block;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* CTA区域 */
.ai-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-secondary) 100%);
  text-align: center;
  color: white;
}

.ai-cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.ai-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ai-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .ai-hero-left {
    text-align: center;
  }
  
  .ai-hero-right {
    width: 100%;
    max-width: none;
    padding: 0 1rem;
  }
  
  .ai-hero-title {
    font-size: 2.5rem;
  }
  
  .ai-hero-subtitle {
    font-size: 1.2rem;
  }
  
  .ai-cta {
    justify-content: center;
  }
  
  .ai-demo-container {
    max-width: 90%;
    width: 100%;
  }
  
  .ai-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .advantages-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .case-metrics {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .ai-hero-section {
    padding: 80px 0 60px;
  }
  
  .ai-hero-content {
    gap: 1.5rem;
  }
  
  .ai-hero-right {
    padding: 0 0.5rem;
  }
  
  .ai-hero-title {
    font-size: 2rem;
  }
  
  .ai-hero-subtitle {
    font-size: 1rem;
  }
  
  .ai-demo-container {
    max-width: 95%;
    width: 100%;
    margin: 0 auto;
  }
  
  .ai-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .advantage-card,
  .feature-card,
  .feature-item,
  .case-card {
    padding: 1.5rem;
  }
  
  .chat-interface {
    min-height: 300px;
  }
  
  .chat-messages {
    max-height: 250px;
    padding: 0.75rem;
  }
  
  .message {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }
  
  .chat-input {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .ai-cta-section h2 {
    font-size: 2rem;
  }
  
  .ai-cta-section p {
    font-size: 1rem;
  }
}