/* ═══════════════════════════════════════════════════════════════
   信息可视化专用样式
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════ 入口页面：主题卡片 ═══════════ */

.visualize-index {
  padding: 3rem 0 5rem;
}

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

.topic-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.topic-card:hover {
  border-color: rgba(197, 166, 104, 0.3);
  box-shadow: 0 8px 32px rgba(197, 166, 104, 0.15),
              0 0 0 1px rgba(197, 166, 104, 0.1);
  transform: translateY(-4px);
}

.topic-card:hover .topic-icon {
  transform: scale(1.15);
}

.topic-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.topic-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #c5a668;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.topic-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.topic-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.module-count::before {
  content: '📊 ';
}

.topic-time::before {
  content: '⏱️ ';
}

.topic-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c5a668;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.topic-card:hover .topic-link {
  border-bottom-color: #c5a668;
}

/* ═══════════ 主题页面：模块列表 ═══════════ */

.group-page {
  padding: 3rem 0 5rem;
}

.group-header {
  text-align: center;
  margin-bottom: 3rem;
}

.group-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #c5a668;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.group-intro {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.module-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.module-card:hover {
  border-color: rgba(197, 166, 104, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.module-preview {
  width: 100%;
  height: 180px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(197, 166, 104, 0.3);
}

.module-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
}

.module-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ═══════════ 可视化模块页面通用布局 ═══════════ */

.module-page {
  min-height: 100vh;
  background: #0a0a0a;
}

.module-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.module-header {
  text-align: center;
  margin-bottom: 3rem;
}

.module-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #c5a668;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.module-header .module-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════ IPO时间轴可视化 ═══════════ */

.timeline-visual {
  position: relative;
  margin: 3rem 0;
  padding: 2rem 0;
}

.timeline-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
}

.timeline-track {
  position: relative;
  height: 120px;
  min-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.timeline-node {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.node-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.node-circle.completed {
  background: #c5a668;
  border-color: #c5a668;
  color: #0a0a0a;
}

.node-circle.current {
  background: transparent;
  border: 3px solid #c5a668;
  box-shadow: 0 0 20px rgba(197, 166, 104, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(197, 166, 104, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(197, 166, 104, 0.6);
  }
}

.node-circle.future {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.3);
}

.timeline-node:hover .node-circle {
  transform: scale(1.2);
}

.timeline-node.active .node-circle {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(197, 166, 104, 0.2);
}

.node-label {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 120px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
}

.node-duration {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
}

/* ═══════════ 详情面板 ═══════════ */

.detail-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  min-height: 300px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.detail-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.detail-header {
  margin-bottom: 2rem;
}

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #c5a668;
  margin-bottom: 0.5rem;
}

.detail-duration {
  display: inline-block;
  background: rgba(197, 166, 104, 0.15);
  color: #c5a668;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.detail-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.detail-section {
  margin-top: 2rem;
}

.detail-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.detail-list li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  padding-left: 1.5rem;
}

.detail-list li::before {
  content: '•';
  color: #c5a668;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* ═══════════ 进度标注 ═══════════ */

.progress-badge {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(197, 166, 104, 0.15);
  border: 1px solid rgba(197, 166, 104, 0.3);
  color: #c5a668;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.progress-badge .pulse {
  width: 8px;
  height: 8px;
  background: #c5a668;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* ═══════════ 响应式设计 ═══════════ */

@media (max-width: 768px) {
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-header h1 {
    font-size: 2rem;
  }

  .timeline-track {
    min-width: 600px;
  }

  .node-label {
    width: 100px;
    font-size: 0.75rem;
  }

  .progress-badge {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .module-container {
    padding: 2rem 1rem 3rem;
  }

  .timeline-track {
    min-width: 500px;
  }

  .node-circle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}