/* ===== 現象顯影局專用樣式 ===== */

/* CSS 變數定義 */
:root{
  --ph-red-1:#8B0000;
  --ph-red-2:#B22222;
  --ph-red-3:#DC143C;
  --ph-border:#e0e0e0;
  --ph-soft:#f8f9fa;
  /* 新增：設計系統變數 */
  --ph-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --ph-shadow-hover: 0 8px 24px rgba(139, 0, 0, 0.12);
  --ph-radius: 12px;
  --ph-radius-sm: 8px;
  --ph-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   通用樣式
   ========================= */
.modern-phenomenonhighlight { 
  color: var(--ph-red-1); 
}

/* =========================
   頁首區域 - 優化版
   ========================= */
.phenomenon-header {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
  color: white;
  border-top: 4px solid var(--ph-red-1);
  overflow: hidden;
  padding: 4rem 2rem 3rem;
  margin-bottom: 2.5rem;
  border-radius: 0 0 var(--ph-radius) var(--ph-radius);
  box-shadow: var(--ph-shadow);
}

.phenomenon-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(178, 34, 34, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.modern-phenomenonheader-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: modern-phenomenonPulse 4s ease-in-out infinite;
}

@keyframes modern-phenomenonPulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.15); }
}

.modern-phenomenonmicroscope-icon {
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  width: 80px;
  height: 80px;
  background:
    linear-gradient(45deg, transparent 45%, var(--ph-red-1) 45%, var(--ph-red-1) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--ph-red-1) 45%, var(--ph-red-1) 55%, transparent 55%);
  opacity: 0.25;
  filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.3));
}

.modern-phenomenonpage-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modern-phenomenonpage-description {
  font-size: 1.2rem;
  color: #e0e0e0;
  max-width: 800px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  opacity: 0.9;
}

/* =========================
   篩選器 - 優化版
   ========================= */
.modern-phenomenon-simple-filter {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
  border-radius: var(--ph-radius);
  border: 1px solid rgba(224, 224, 224, 0.8);
  box-shadow: var(--ph-shadow);
  transition: var(--ph-transition);
}

.modern-phenomenon-simple-filter:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--ph-red-1);
}

.modern-phenomenon-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.modern-phenomenon-filter-label {
  color: #555;
  font-size: 0.95rem;
  font-weight: 600;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.modern-phenomenon-filter-btn {
  background: var(--ph-soft);
  border: 2px solid transparent;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ph-transition);
  color: #555;
  white-space: nowrap;
}

.modern-phenomenon-filter-btn:hover {
  background: white;
  border-color: var(--ph-red-1);
  color: var(--ph-red-1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.1);
}

.modern-phenomenon-filter-btn.active {
  background: var(--ph-red-1);
  color: white;
  border-color: var(--ph-red-1);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

/* =========================
   卡片網格 - 優化版
   ========================= */
.phenomenon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0 4rem;
}

.phenomenon-card {
  background: white;
  border-radius: var(--ph-radius);
  padding: 2.5rem;
  position: relative;
  border: 1px solid var(--ph-border);
  transition: var(--ph-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--ph-shadow);
  overflow: hidden;
}

.phenomenon-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ph-shadow-hover);
}

/* 新增：卡片頂部邊框 */
.phenomenon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ph-red-1), var(--ph-red-2), var(--ph-red-3));
  opacity: 0.8;
}

.focus-card::before { 
  background: var(--ph-red-1); 
}
.modern-phenomenonchart-card::before { 
  background: var(--ph-red-2); 
}
.modern-phenomenoninsight-card::before { 
  background: var(--ph-red-3); 
}

/* 新增：卡片標題統一 */
.phenomenon-card > h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  color: #222;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modern-phenomenoncard-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ph-red-1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phenomenon-card:hover .modern-phenomenoncard-glow {
  opacity: 1;
}

/* =========================
   現象聚焦項目 - 優化版
   ========================= */
.modern-phenomenonfocus-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: var(--ph-soft);
  border-radius: var(--ph-radius-sm);
  border-left: 4px solid var(--ph-red-1);
  transition: var(--ph-transition);
  border: 1px solid transparent;
}

.modern-phenomenonfocus-item:hover {
  background: white;
  border-color: var(--ph-border);
  transform: translateX(4px);
}

.modern-phenomenonfocus-marker {
  width: 10px;
  height: 10px;
  background: var(--ph-red-1);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
  animation: modern-phenomenonPulseMarker 2.5s ease-in-out infinite;
}

@keyframes modern-phenomenonPulseMarker {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(139, 0, 0, 0);
  }
}

.modern-phenomenonfocus-content h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.15rem;
  font-weight: 600;
}

.modern-phenomenonfocus-count {
  margin: 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 新增：聚焦計數樣式 */
.modern-phenomenonfocus-count.has-content {
  color: var(--ph-red-1);
  font-weight: 500;
}

.modern-phenomenonfocus-count.empty {
  color: #999;
  font-style: italic;
}

/* 新增：統計摘要優化 */
.modern-phenomenonfocus-summary {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px dashed var(--ph-border);
}

.modern-phenomenonfocus-summary p {
  margin: 0.5rem 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modern-phenomenonfocus-summary strong {
  color: #222;
}

/* =========================
   現象熱點圖樣式（取代顯影工具）
   ========================= */
.phenomenon-heatmap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.heatmap-item {
  padding: 1.25rem;
  background: var(--ph-soft);
  border-radius: var(--ph-radius-sm);
  border: 1px solid var(--ph-border);
  transition: var(--ph-transition);
  position: relative;
  overflow: hidden;
}

.heatmap-item:hover {
  background: white;
  border-color: var(--ph-red-1);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.08);
}

.heatmap-item[data-cold="true"] {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f3f5 100%);
  border-color: #d0d7dd;
}

.heatmap-item[data-cold="true"]:hover {
  border-color: #666;
}

.heatmap-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.phenomenon-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.hot-badge, .cold-badge {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.hot-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: white;
  animation: pulse 2s infinite;
}

.cold-badge {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
}

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

.heatmap-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
  min-height: 24px;
  align-items: center;
}

.heat-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
}

.heat-dot.hot {
  background: var(--ph-red-1);
  box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.2);
}

.heat-dot.normal {
  background: rgba(139, 0, 0, 0.5);
}

.heat-dot.empty {
  background: transparent;
  color: #999;
  font-size: 14px;
  width: auto;
  height: auto;
}

.heat-dot:hover {
  transform: scale(1.3);
  z-index: 2;
}

.heatmap-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
  padding-top: 1rem;
  border-top: 1px dashed var(--ph-border);
}

.stat-total, .stat-recent, .stat-cold {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-total {
  color: #333;
  font-weight: 500;
}

.stat-recent {
  color: var(--ph-red-1);
  font-weight: 500;
}

.stat-cold {
  color: #0984e3;
  font-weight: 500;
}

.heatmap-legend {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: var(--ph-radius-sm);
  border: 1px solid var(--ph-border);
}

.legend-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
  font-size: 0.95rem;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.hot {
  background: var(--ph-red-1);
}

.legend-dot.normal {
  background: rgba(139, 0, 0, 0.5);
}

.legend-dot.empty {
  background: transparent;
  border: 1px solid #999;
}

/* =========================
   顯影成果列表（保留原有樣式）
   ========================= */
.modern-phenomenoninsight-list { 
  margin-top: 1.5rem; 
}

.modern-phenomenoninsight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
  border-radius: 8px;
}

.modern-phenomenoninsight-badge {
  background: var(--ph-red-1);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.modern-phenomenoninsight-item p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* =========================
   現象洞察分析樣式（新增）
   ========================= */
.insight-analysis {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.insight-item {
  background: white;
  border-radius: var(--ph-radius-sm);
  border: 1px solid var(--ph-border);
  padding: 1.5rem;
  transition: var(--ph-transition);
  position: relative;
  overflow: hidden;
}

.insight-item:hover {
  border-color: var(--ph-red-2);
  box-shadow: 0 4px 16px rgba(139, 0, 0, 0.08);
  transform: translateX(2px);
}

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

.insight-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ph-soft);
  border-radius: 50%;
  color: var(--ph-red-1);
}

.insight-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  flex: 1;
}

.insight-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 60px;
  text-align: center;
  white-space: nowrap;
}

.insight-badge.progress {
  background: linear-gradient(135deg, var(--ph-red-1) 0%, var(--ph-red-2) 100%);
  color: white;
}

.insight-badge.hot {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: white;
}

.insight-badge.gap {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
}

.insight-badge.recent {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
}

.insight-text {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.insight-text strong {
  color: #222;
  font-weight: 600;
}

.unexplored-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #666;
  margin: 0.2rem;
}

.insight-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--ph-border);
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

/* =========================
   文章區域 - 優化版
   ========================= */
.modern-phenomenoncontent-section.modern-phenomenonarticles-section {
  background: linear-gradient(135deg, var(--ph-soft) 0%, #f1f3f4 100%);
  padding: 3rem 2.5rem;
  border-radius: var(--ph-radius);
  margin: 3rem 0 5rem;
  border: 1px solid var(--ph-border);
  box-shadow: var(--ph-shadow);
}

.modern-phenomenonsection-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.modern-phenomenonsection-title {
  font-size: 1.8rem;
  color: #222;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

/* 新增：標題裝飾線 */
.modern-phenomenonsection-title::before,
.modern-phenomenonsection-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ph-red-1));
}

.modern-phenomenonsection-title::after {
  background: linear-gradient(90deg, var(--ph-red-1), transparent);
}

.modern-phenomenonarticles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  /* 新增：文章計數器 */
  counter-reset: article-counter;
}

/* =========================
   文章卡片 - 優化版
   ========================= */
.modern-phenomenonarticle-card {
  background: white;
  border-radius: var(--ph-radius);
  padding: 2rem;
  border: 1px solid var(--ph-border);
  transition: var(--ph-transition);
  position: relative;
  overflow: hidden;
  /* 新增：卡片動畫和編號 */
  animation: modern-phenomenonArticleAppear 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
  animation-delay: calc(var(--index, 0) * 0.1s);
  counter-increment: article-counter;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 新增：卡片編號 */
.modern-phenomenonarticle-card::before {
  content: counter(article-counter);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(139, 0, 0, 0.05);
  line-height: 1;
  z-index: 1;
}

.modern-phenomenonarticle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ph-shadow-hover);
  border-color: var(--ph-red-1);
}

/* 新增：側邊裝飾線 */
.modern-phenomenonarticle-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--ph-red-1), var(--ph-red-3));
  opacity: 0;
  transition: var(--ph-transition);
}

.modern-phenomenonarticle-card:hover::after {
  opacity: 1;
}

/* 新增：卡片出現動畫 */
@keyframes modern-phenomenonArticleAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 文章卡片連結 */
.modern-phenomenonarticle-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  position: relative;
  z-index: 2;
}

.modern-phenomenonarticle-link:focus-visible {
  outline: 3px solid rgba(139, 0, 0, .35);
  outline-offset: 3px;
  border-radius: var(--ph-radius);
}

.modern-phenomenonarticle-card h3 {
  margin-bottom: 1rem;
  color: #222;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
}

/* 新增：標題下劃線 */
.modern-phenomenonarticle-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--ph-red-1);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.modern-phenomenonarticle-card:hover h3::after {
  width: 80px;
}

.modern-phenomenonarticle-excerpt {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  /* 新增：佔滿剩餘空間 */
  flex: 1;
}

.modern-phenomenonarticle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ph-border);
  margin-top: auto;
}

.modern-phenomenonarticle-domain {
  background: rgba(139, 0, 0, 0.1);
  color: var(--ph-red-1);
  padding: 0.4rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.modern-phenomenonarticle-tag {
  background: rgba(0, 102, 204, 0.1);
  color: #0066cc;
  padding: 0.4rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.modern-phenomenonarticle-date {
  background: #f5f5f5;
  color: #666;
  padding: 0.4rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: auto;
  /* 新增：日期圖示 */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-phenomenonarticle-date::before {
  content: "📅";
  font-size: 0.9rem;
}

.modern-phenomenonarticle-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.modern-phenomenonarticle-card:hover .modern-phenomenonarticle-glow {
  left: 100%;
}

/* 保留原有的動畫延遲 */
.modern-phenomenonarticle-card:nth-child(1) { animation-delay: 0.1s; }
.modern-phenomenonarticle-card:nth-child(2) { animation-delay: 0.2s; }
.modern-phenomenonarticle-card:nth-child(3) { animation-delay: 0.3s; }
.modern-phenomenonarticle-card:nth-child(4) { animation-delay: 0.4s; }
.modern-phenomenonarticle-card:nth-child(5) { animation-delay: 0.5s; }

/* =========================
   空狀態 - 優化版
   ========================= */
.modern-phenomenoncoming-soon-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(241, 243, 244, 0.6) 100%);
  border-radius: var(--ph-radius);
  border: 2px dashed var(--ph-border);
}

.modern-phenomenonscanning-animation {
  width: 100px;
  height: 100px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.modern-phenomenonscanning-animation::before,
.modern-phenomenonscanning-animation::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.modern-phenomenonscanning-animation::before {
  width: 80px;
  height: 80px;
  border: 3px solid var(--ph-red-1);
  border-top-color: transparent;
  animation: modern-phenomenonRotate 2s linear infinite;
}

.modern-phenomenonscanning-animation::after {
  width: 60px;
  height: 60px;
  border: 3px solid var(--ph-red-2);
  border-top-color: transparent;
  animation: modern-phenomenonRotate 1.5s linear infinite reverse;
}

@keyframes modern-phenomenonRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================
   單篇文章頁面樣式（完整保留）
   ========================= */
#phenomenon-article .inner-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 返回導航 */
.modern-phenomenon-back-nav {
  margin-bottom: 2rem;
}

.modern-phenomenon-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ph-soft);
  border-radius: 8px;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid var(--ph-border);
}

.modern-phenomenon-back-btn:hover {
  background: #ffeaea;
  color: var(--ph-red-1);
  border-color: var(--ph-red-1);
  transform: translateX(-3px);
}

/* 文章標頭 */
.modern-phenomenon-article-header {
  background: linear-gradient(135deg, #fff 0%, #fff9f9 100%);
  padding: 2.5rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  border: 1px solid #ffeaea;
  border-top: 4px solid var(--ph-red-1);
  position: relative;
  overflow: hidden;
}

.modern-phenomenon-article-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ph-red-1), var(--ph-red-2), var(--ph-red-3), var(--ph-red-1));
}

.modern-phenomenon-article-title {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: #222;
  line-height: 1.3;
}

.modern-phenomenon-article-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  border-left: 3px solid var(--ph-red-1);
  padding-left: 1rem;
}

/* 文章元數據 */
.modern-phenomenon-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--ph-border);
}

.modern-phenomenon-article-date {
  background: var(--ph-soft);
  color: #666;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.modern-phenomenon-article-domain {
  background: #ffeaea;
  color: var(--ph-red-1);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.modern-phenomenon-article-phenomenon {
  background: #e8f4ff;
  color: #0066cc;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 閱讀時間 */
.modern-phenomenon-reading-time {
  color: #888;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 文章內容 */
.modern-phenomenon-article-content {
  line-height: 1.8;
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 4rem;
}

.modern-phenomenon-article-content h2 {
  margin: 2.5rem 0 1.5rem 0;
  font-size: 1.5rem;
  color: var(--ph-red-1);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ffeaea;
}

.modern-phenomenon-article-content h3 {
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
  color: var(--ph-red-2);
}

.modern-phenomenon-article-content p {
  margin-bottom: 1.5rem;
}

.modern-phenomenon-article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--ph-soft);
  border-left: 4px solid var(--ph-red-1);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

/* 圖片樣式 - 不裁剪 */
.modern-phenomenon-article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--ph-border);
}

/* 文章導航 */
.modern-phenomenon-article-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0;
  padding: 1.5rem;
  background: var(--ph-soft);
  border-radius: 12px;
  border: 1px solid #eaeaea;
}

.modern-phenomenon-nav-prev,
.modern-phenomenon-nav-next {
  flex: 1;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.modern-phenomenon-nav-prev {
  text-align: left;
  padding-right: 1rem;
  border-right: 1px dashed var(--ph-border);
}

.modern-phenomenon-nav-next {
  text-align: right;
  padding-left: 1rem;
}

.modern-phenomenon-nav-prev:hover,
.modern-phenomenon-nav-next:hover {
  transform: translateX(3px);
}

.modern-phenomenon-nav-prev:hover {
  transform: translateX(-3px);
}

.modern-phenomenon-nav-label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.modern-phenomenon-nav-title {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* =========================
   相關文章
   ========================= */
.modern-phenomenon-related-articles {
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--ph-soft) 0%, #f1f3f4 100%);
  border-radius: 12px;
  border-top: 4px solid var(--ph-red-1);
}

.modern-phenomenon-related-articles h3 {
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-phenomenon-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.modern-phenomenon-related-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eaeaea;
  transition: all 0.3s ease;
  display: block;
}

.modern-phenomenon-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(139, 0, 0, 0.1);
  border-color: var(--ph-red-1);
}

.modern-phenomenon-related-card h4 {
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.4;
}

.modern-phenomenon-related-card p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.modern-phenomenon-related-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #999;
}

.modern-phenomenon-related-domain {
  background: #ffeaea;
  color: var(--ph-red-1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.modern-phenomenon-no-related {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-style: italic;
  grid-column: 1 / -1;
}

/* =========================
   Tooltip 樣式
   ========================= */
.phenomenon-tooltip {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: min(360px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.phenomenon-tooltip .tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phenomenon-tooltip h4 {
  margin: 0;
  font-size: 14px;
}

.phenomenon-tooltip p {
  margin: 10px 0 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

.phenomenon-tooltip .tooltip-close {
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.phenomenon-tooltip .tooltip-close:hover {
  color: var(--ph-red-1);
}

/* =========================
   減少動畫偏好
   ========================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .modern-phenomenonheader-glow,
  .modern-phenomenonfocus-marker,
  .modern-phenomenonscanning-animation::before,
  .modern-phenomenonscanning-animation::after,
  .hot-badge {
    animation: none !important;
  }
  
  .modern-phenomenonarticle-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}