/* ===== 全局样式（浅色主题） ===== */
:root {
  --bg-primary: #eef2f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #0284c7;
  --accent-dim: #e0f2fe;
  --accent-glow: rgba(2, 132, 199, 0.22);
  --gold: #d97706;
  --gold-dim: #fef3c7;
  --red: #dc2626;
  --red-dim: #fee2e2;
  --green: #16a34a;
  --green-dim: #dcfce7;
  --purple: #9333ea;
  --purple-dim: #f3e8ff;
  --pink: #db2777;
  --pink-dim: #fce7f3;
  --border-soft: rgba(148, 163, 184, 0.25);
  --panel-width: 360px;
  --topbar-height: 56px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ===== 顶部导航栏 ===== */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.logo h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: border-color var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 14px;
  width: 220px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px 10px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-box button:hover {
  color: var(--accent);
}

.filter-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
}

/* ===== 主体布局 ===== */
.main-container {
  display: flex;
  height: calc(100vh - var(--topbar-height));
  position: relative;
}

/* ===== 左侧时间轴面板 ===== */
.timeline-panel {
  width: var(--panel-width);
  min-width: var(--panel-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  width: var(--panel-width);
  min-width: var(--panel-width);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.timeline-panel.collapsed {
  min-width: 0;
  width: 0;
  overflow: hidden;
  border-right: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.panel-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.collapse-btn, .close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collapse-btn:hover, .close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.timeline-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scroll-behavior: smooth;
}

.timeline-list::-webkit-scrollbar {
  width: 4px;
}

.timeline-list::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

/* 时间轴条目 */
.timeline-item {
  display: flex;
  align-items: flex-start;
  padding: 14px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
  gap: 12px;
}

.timeline-item:hover {
  background: rgba(2, 132, 199, 0.06);
}

.timeline-item.active {
  background: rgba(2, 132, 199, 0.1);
  border-left-color: var(--accent);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-item.active .timeline-dot {
  box-shadow: 0 0 14px var(--accent-glow);
  transform: scale(1.3);
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-year {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 2px;
  line-height: 1.4;
}

.timeline-location {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.timeline-category {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-top: 4px;
}

/* 分类颜色 */
.cat-civilization .timeline-dot { background: var(--gold); }
.cat-civilization .timeline-category { background: var(--gold-dim); color: var(--gold); }
.cat-civilization.active { border-left-color: var(--gold); background: rgba(217, 119, 6, 0.1); }

.cat-empire .timeline-dot { background: var(--red); }
.cat-empire .timeline-category { background: var(--red-dim); color: var(--red); }
.cat-empire.active { border-left-color: var(--red); background: rgba(220, 38, 38, 0.1); }

.cat-revolution .timeline-dot { background: var(--purple); }
.cat-revolution .timeline-category { background: var(--purple-dim); color: var(--purple); }
.cat-revolution.active { border-left-color: var(--purple); background: rgba(147, 51, 234, 0.1); }

.cat-exploration .timeline-dot { background: var(--green); }
.cat-exploration .timeline-category { background: var(--green-dim); color: var(--green); }
.cat-exploration.active { border-left-color: var(--green); background: rgba(22, 163, 74, 0.1); }

.cat-religion .timeline-dot { background: var(--pink); }
.cat-religion .timeline-category { background: var(--pink-dim); color: var(--pink); }
.cat-religion.active { border-left-color: var(--pink); background: rgba(219, 39, 119, 0.1); }

/* ===== 地图区域 ===== */
.map-container {
  flex: 1;
  position: relative;
  background: var(--bg-primary);
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Leaflet 浅色主题 */
.leaflet-container {
  background: #e8eef5;
}

.leaflet-control-zoom a {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: var(--border-soft) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-tertiary) !important;
  color: var(--accent) !important;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
  color: #64748b !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: var(--accent) !important;
}

/* 自定义标记 */
.custom-marker {
  background: none !important;
  border: none !important;
}

.marker-pulse {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 12px var(--accent-glow);
  will-change: transform, opacity;
}

.marker-pulse::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===== 国家信息卡片（悬停显示） ===== */
.country-info-card {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 320px;
  max-height: calc(100% - 140px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  z-index: 1000;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(24px);
  will-change: transform, opacity;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  /* 不用 overflow:hidden，避免裁剪二级浮层 */
}

.country-info-card.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent-dim), var(--bg-tertiary));
  border-bottom: 1px solid var(--border-soft);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

/* 锁定状态指示 */
.country-info-card.pinned {
  border-left: 3px solid var(--accent);
  box-shadow: 0 16px 56px rgba(15, 23, 42, 0.22);
}

.info-card-flag {
  font-size: 36px;
  line-height: 1;
}

.info-card-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.info-card-name-en {
  font-size: 12px;
  color: var(--text-muted);
}

.info-card-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.info-card-close:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.2);
}

.info-card-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  scroll-behavior: smooth;
}

.info-card-body::-webkit-scrollbar {
  width: 4px;
}

.info-card-body::-webkit-scrollbar-track {
  background: transparent;
}

.info-card-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

/* 简介区 */
.info-card-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

/* 信息网格 */
.info-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.info-card-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-card-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-card-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 历史事件时间轴区 */
.info-card-events-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-card-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.info-card-event {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-soft);
}

.info-card-event:last-child {
  border-bottom: none;
}

.info-card-event-year {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  min-width: 50px;
  flex-shrink: 0;
}

.info-card-event-title {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.info-card-no-events {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 0;
}

/* 地图图例 */
.map-legend {
  position: absolute;
  bottom: 24px;
  left: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  z-index: 500;
  font-size: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.map-legend h3 {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-label {
  color: var(--text-secondary);
}

/* 年份指示器 */
.year-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 18px;
  z-index: 500;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

/* ===== 右侧详情面板 ===== */
.detail-panel {
  width: 0;
  min-width: 0;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 100;
}

.detail-panel.open {
  width: 420px;
  min-width: 420px;
}

.detail-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.detail-content::-webkit-scrollbar {
  width: 4px;
}

.detail-content::-webkit-scrollbar-track {
  background: transparent;
}

.detail-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 12px;
  padding: 40px;
}

.detail-placeholder p {
  color: var(--text-muted);
  font-size: 14px;
}

.detail-placeholder .sub {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* 详情内容样式 */
.detail-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-meta-item {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.detail-meta-item.year {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

.detail-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
}

.detail-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.detail-content ul, .detail-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.detail-content li {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.detail-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.detail-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 14px;
  margin: 12px 0;
  background: var(--accent-dim);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.detail-content em {
  color: var(--accent);
  font-style: normal;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  :root { --panel-width: 300px; }
  .detail-panel.open { width: 380px; min-width: 380px; }
}

@media (max-width: 900px) {
  .main-container { flex-direction: column; }
  .timeline-panel {
    width: 100%;
    min-width: 100%;
    max-height: 300px;
  }
  .timeline-panel.collapsed { max-height: 0; min-width: 0; width: 0; }
  .map-container { height: 50vh; }
  .detail-panel.open { width: 100%; min-width: 100%; max-height: 50vh; }
}

/* ===== 动画 ===== */
@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.detail-content.animating {
  animation: slideInRight 0.35s ease;
}

.timeline-item {
  animation: fadeIn 0.3s ease;
}

/* 搜索无结果 */
.no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* 国家边界高亮 */
.country-highlight {
  stroke: var(--accent) !important;
  stroke-width: 2px !important;
  stroke-opacity: 0.8 !important;
}

/* 时间轴年份跳转 */
.timeline-jump {
  text-align: center;
  padding: 8px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-tertiary);
  position: sticky;
  top: 0;
  z-index: 2;
}

/* ===== 地图国家名标签（永久中文标注） ===== */
.leaflet-tooltip.country-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  /* 白色描边，让文字在任意底色上都清晰可读 */
  text-shadow:
    -1px -1px 0 #fff, 1px -1px 0 #fff,
    -1px 1px 0 #fff, 1px 1px 0 #fff,
    0 0 4px #fff, 0 0 4px #fff;
  white-space: nowrap;
  pointer-events: none;
}

.leaflet-tooltip.country-label::before {
  display: none !important;
}

/* ===== 三级交互样式 ===== */

/* 时间轴事件条目 hover 激活态 */
.info-card-event.active {
  background: rgba(2, 132, 199, 0.08);
  border-radius: 6px;
  padding-left: 4px;
  transition: background 0.2s ease;
}

/* 时间轴事件条目 已展开（三级）态 */
.info-card-event.expanded {
  background: rgba(2, 132, 199, 0.13);
  border-radius: 6px;
  padding-left: 4px;
  border-bottom: 1px solid var(--accent-dim) !important;
  transition: background 0.2s ease;
}

/* 二级浮层：同期事件预览 */
/* 注意：此元素被动态移动到 country-info-card 内，故相对于卡片定位 */
.event-preview {
  position: absolute;
  left: calc(100% + 12px);
  top: 60px;
  width: 260px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.14);
  z-index: 1100;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.event-preview.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.event-preview-inner {
  padding: 10px 12px;
  max-height: 240px;
  overflow-y: auto;
}

.event-preview-inner::-webkit-scrollbar {
  width: 3px;
}
.event-preview-inner::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.preview-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.preview-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease;
  font-size: 12px;
}

.preview-item:hover {
  background: var(--accent-dim);
}

.preview-year {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  min-width: 44px;
  flex-shrink: 0;
}

.preview-cat {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.preview-title {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
  flex: 1;
  /* 覆盖上面 .preview-title 的 margin */
  margin-bottom: 0;
}

/* 三级展开：事件完整详情（显示在卡片右侧） */
.event-detail-expanded {
  position: absolute;
  left: calc(100% + 12px);
  top: 60px;
  width: 340px;
  max-height: calc(100vh - 140px);
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.18);
  z-index: 1100;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.event-detail-expanded.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.detail-expanded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.detail-expanded-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-secondary);
  padding: 2px 10px;
  border-radius: 12px;
}

.detail-expanded-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.detail-expanded-close:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.2);
}

.detail-expanded-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.detail-expanded-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-expanded-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.detail-expanded-desc p {
  margin-bottom: 8px;
}

.detail-expanded-desc h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 10px 0 4px;
}

.detail-expanded-desc blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 10px;
  margin: 8px 0;
  background: rgba(2, 132, 199, 0.06);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}

.detail-expanded-desc ul {
  padding-left: 18px;
  margin-bottom: 8px;
}

.detail-expanded-desc li {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 三级面板滚动条 */
.event-detail-expanded::-webkit-scrollbar {
  width: 4px;
}
.event-detail-expanded::-webkit-scrollbar-track {
  background: transparent;
}
.event-detail-expanded::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}