/* ============================================================
 * AI 展示区样式 — 绿色能源亮色主题
 * ============================================================ */

/* AI 头部section */
.ai-power {
  background: var(--bg-secondary);
  position: relative;
  padding-bottom: 0 !important;
  margin-bottom: -40px;
}

.ai-power::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(46, 125, 50, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== 展示区通用 ===== */
.ai-showcase-section {
  padding: 40px 60px;
  position: relative;
  overflow: hidden;
}

.ai-showcase-section:nth-child(odd) {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.ai-showcase-section:nth-child(even) {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* 背景光晕 */
.ai-showcase-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.ai-showcase-bg-glow--cyan {
  background: var(--accent-secondary);
  top: -200px;
  right: -100px;
}

.ai-showcase-bg-glow--green {
  background: var(--accent-primary);
  bottom: -200px;
  left: -100px;
}

.ai-showcase-bg-glow--purple {
  background: var(--accent-sky);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.ai-showcase-bg-glow--orange {
  background: var(--accent-warm);
  bottom: -150px;
  right: -50px;
}

/* 展示区主块 */
.ai-showcase-block {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-showcase-block--reverse {
  grid-template-columns: 1fr 420px;
}

.ai-showcase-block--reverse .ai-showcase-info {
  order: 2;
}

.ai-showcase-block--reverse .ai-showcase-canvas-wrapper {
  order: 1;
}

/* 信息区 */
.ai-showcase-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* 标签 */
.ai-showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 125, 50, 0.06);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  width: fit-content;
}

.ai-showcase-tag--green {
  background: rgba(0, 137, 123, 0.06);
  border-color: rgba(0, 137, 123, 0.15);
  color: var(--accent-secondary);
}

.ai-showcase-tag--purple {
  background: rgba(2, 136, 209, 0.06);
  border-color: rgba(2, 136, 209, 0.15);
  color: var(--accent-sky);
}

.ai-showcase-tag--orange {
  background: rgba(239, 108, 0, 0.06);
  border-color: rgba(239, 108, 0, 0.15);
  color: var(--accent-warm);
}

/* 标题 */
.ai-showcase-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

.ai-showcase-title .gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-showcase-title .gradient-green {
  background: linear-gradient(135deg, #00897b, #2e7d32);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-showcase-title .gradient-purple {
  background: linear-gradient(135deg, #0288d1, #00897b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-showcase-title .gradient-orange {
  background: linear-gradient(135deg, #ef6c00, #ff8f00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 描述 */
.ai-showcase-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* 指标组 */
.ai-showcase-metrics {
  display: flex;
  gap: 20px;
  margin-top: var(--spacing-sm);
}

.ai-showcase-metric {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  flex: 1;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.ai-showcase-metric:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ai-showcase-metric-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.ai-showcase-metric-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Canvas 容器 — 深色底让动画清晰可见 */
.ai-showcase-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(46, 125, 50, 0.15);
  background: linear-gradient(135deg, #0d1f12 0%, #0a1a1a 50%, #0f1a0d 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: var(--transition-normal);
}

.ai-showcase-canvas-wrapper:hover {
  border-color: rgba(46, 125, 50, 0.3);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(46, 125, 50, 0.08);
}

.ai-showcase-canvas-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ai-showcase-canvas--forecast { height: 380px; }
.ai-showcase-canvas--equipment { height: 420px; }
.ai-showcase-canvas--dispatch { height: 420px; }
.ai-showcase-canvas--inspection { height: 420px; }

/* 旧AI卡片样式（保留兼容） */
.ai-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: var(--spacing-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(248, 250, 247, 0.8);
}

#grid-canvas {
  width: 100%;
  height: 100%;
}

.ai-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.ai-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.ai-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 28px;
  position: relative;
  z-index: 1;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.12);
}

.ai-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  color: var(--accent-primary);
}

.ai-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-sm);
}

.ai-card-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 14px;
  background: rgba(46, 125, 50, 0.05);
  border-radius: 8px;
  position: relative;
  z-index: 1;
  color: var(--accent-primary);
}

.ai-card-metric .metric-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease infinite;
}
