/* 2026 Report Design Spec Styles */

/* Base Layout Constraints */
.slide-header {
  height: 140px;
  margin-bottom: 20px;
}
.slide-content {
  height: calc(100vh - 160px);
  max-height: 800px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Typography Standards - Unified Corporate Spec */
p, li {
  font-size: 24px;
  line-height: 1.65;
  color: var(--text-2);
}
.text-small { font-size: 22px !important; }
.text-base { font-size: 22px !important; }
.text-large { font-size: 26px !important; }

.h1 {
  font-size: 88px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.h3, h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

/* Highlighting */
mark.hl {
  background: var(--accent-light, rgba(88, 166, 255, 0.15));
  color: var(--accent, #1a73e8);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  line-height: 1.2;
}

/* Utilities */
.border-divider {
  border-left: 2px solid var(--border, rgba(0,0,0,0.1));
  padding-left: 32px;
  margin-left: 16px;
}
.grid { display: grid; gap: 40px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.flex-center { display: flex; align-items: center; justify-content: center; text-align: center; }
.flex-column { display: flex; flex-direction: column; }
.justify-center { justify-content: center; }

/* 微图表 - 缩减式进度条 / 发光柱状图 */
.css-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 240px;
  margin-top: 20px;
}
.css-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 8px 8px 0 0;
  min-width: 60px;
  transition: height 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: white;
  padding-top: 10px;
  font-weight: bold;
  font-size: 24px;
}
.css-bar.dimmed {
  background: var(--border);
  opacity: 0.5;
  color: transparent;
}
.css-bar-horiz-container {
  width: 100%;
  height: 48px;
  background: var(--border);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 24px;
}
.css-bar-horiz {
  height: 100%;
  background: var(--accent);
  display: flex;
  align-items: center;
  padding-left: 20px;
  color: white;
  font-weight: bold;
  border-radius: 24px;
}

/* Semantic Micro-animations */
.micro-icon {
  display: inline-block;
  width: 54px;
  height: 54px;
  vertical-align: middle;
  margin-right: 20px;
  position: relative;
}
.micro-icon.micro-inline {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

/* 1. micro-pulse (激活) */
.micro-pulse::before {
  content: '';
  position: absolute;
  inset: 16px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* 2. micro-target (精准) */
.micro-target::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 4px solid var(--accent);
  border-radius: 50%;
}
.micro-target::after {
  content: '';
  position: absolute;
  inset: 20px;
  background: var(--accent);
  border-radius: 50%;
  animation: pop 1.5s infinite;
}
@keyframes pop {
  0%, 100% { transform: scale(0.8); }
  50% { transform: scale(1.3); }
}

/* 3. micro-orbit (多维) */
.micro-orbit::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 3px dashed var(--accent);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}
.micro-orbit::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit 4s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes orbit {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateY(24px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateY(24px) rotate(-360deg); }
}

/* 4. micro-gear (机制/系统) */
.micro-gear::before {
  content: '⚙';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--accent);
  animation: spin 5s linear infinite;
}

/* 5. micro-growth (增长/效能) */
.micro-growth {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
}
.micro-growth div {
  width: 12px;
  background: var(--accent);
  border-radius: 6px;
  animation: grow 1.5s ease-out infinite alternate;
}
.micro-growth div:nth-child(1) { height: 16px; animation-delay: 0s; }
.micro-growth div:nth-child(2) { height: 32px; animation-delay: 0.2s; }
.micro-growth div:nth-child(3) { height: 48px; animation-delay: 0.4s; }
@keyframes grow { 0% { transform: scaleY(0.4); } 100% { transform: scaleY(1); } }

/* 6. micro-timer (时间控制/压缩) */
.micro-timer::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 4px solid var(--accent);
  border-radius: 50%;
}
.micro-timer::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 3px; height: 18px;
  background: var(--accent);
  transform-origin: bottom center;
  margin-top: -18px;
  border-radius: 2px;
  animation: spin 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

/* 7. micro-shield (安全防御 - 纯几何升级版) */
.micro-shield::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 10px;
  right: 10px;
  bottom: 6px;
  border: 4px solid var(--accent);
  border-top-width: 5px;
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
}
.micro-shield::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  bottom: 14px;
  background: var(--accent);
  opacity: 0.2;
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
  animation: shieldPulse 1.5s ease-in-out infinite alternate;
}
@keyframes shieldPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* 8. micro-bars (算力/监控) */
.micro-bars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.micro-bars div {
  width: 10px;
  background: var(--accent);
  border-radius: 5px;
  animation: bounce 1.2s infinite;
}
.micro-bars div:nth-child(1) { height: 24px; animation-delay: 0s; }
.micro-bars div:nth-child(2) { height: 44px; animation-delay: 0.2s; }
.micro-bars div:nth-child(3) { height: 28px; animation-delay: 0.4s; }
.micro-bars div:nth-child(4) { height: 48px; animation-delay: 0.6s; }
@keyframes bounce { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1.4); } }

/* 9. micro-scan (雷达/定位) */
.micro-scan::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}
.micro-scan::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 45%; height: 3px;
  background: var(--accent);
  transform-origin: left center;
  animation: spin 2s linear infinite;
}

/* Text & Spacing Helpers */
.kicker {
  font-family: var(--font-mono, monospace);
  font-size: 20px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.dim { color: var(--text-2); }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 48px; }
.mt-xl { margin-top: 64px; }
.mb-m { margin-bottom: 32px; }
.list-spaced li { margin-bottom: 24px; }
.large-num { font-size: clamp(80px, 8vw, 120px); font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.text-center { text-align: center; }
