/* ============================================================
   地震日报 · daily 页面专属样式（v2 主题化 2026-09-21）
   - 与 theme.css 配合使用
   - 所有颜色用 CSS 变量驱动
   - 顶部标题区域与 archive 对齐（无背景）
   ============================================================ */

.container { max-width: 920px; margin: 0 auto; }
body { padding: 70px 16px 0; }

@media (max-width: 600px) {
  body { padding: 62px 10px 0; }
}

/* ========== Header（与 archive-header 高度对齐，2026-09-21 去背景） ========== */
.header {
  text-align: center;
  padding: 24px 0 20px;
  margin-bottom: 8px;
}
.header h1 {
  font-size: 30px;
  font-weight: 800;
  background: var(--gradient-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.header .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 600px) {
  .header h1 { font-size: 26px; }
}

/* ========== Stale Banner ========== */
.stale-banner {
  background: rgba(255, 243, 205, 0.7);
  border: 1px solid rgba(255, 193, 7, 0.6);
  color: #856404;
  padding: 10px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  text-align: center;
}
:root[data-theme="dark"] .stale-banner {
  background: rgba(133, 100, 4, 0.25);
  color: #ffd966;
  border-color: rgba(255, 193, 7, 0.4);
}

/* ========== Stats Grid ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat-card .value {
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .label {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
  font-weight: 500;
}
.stat-card .sublabel {
  color: var(--accent-1);
  font-size: 10px;
  margin-top: 1px;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card .value { font-size: 22px; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
  .stat-card { padding: 10px !important; }
  .stat-card .value { font-size: 20px; }
}

/* ========== Section ========== */
.section {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.section-header {
  background: var(--gradient-primary);
  color: var(--text-on-accent);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .section-header { font-size: 14px; padding: 10px 14px; }
}

/* ========== Text-Chart Row ========== */
.text-chart-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.text-panel {
  flex: 0 0 40%;
  padding: 18px 20px;
}
.chart-panel {
  flex: 1;
  padding: 10px;
  min-height: 300px;
  height: 320px;
}
.chart-panel > div {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 900px) {
  .text-chart-row { flex-direction: column; }
  .text-panel { flex: none; padding: 14px 16px; }
  .chart-panel {
    height: 300px !important;
    min-height: 300px !important;
    flex: none !important;
    width: 100%;
  }
  .chart-panel > div {
    height: 280px !important;
    min-height: 280px !important;
  }
}
@media (max-width: 600px) {
  .chart-panel {
    height: 260px !important;
    min-height: 260px !important;
  }
  .chart-panel > div {
    height: 240px !important;
    min-height: 240px !important;
  }
}

/* ========== Analysis Text ========== */
.analysis-text {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.85;
}
.analysis-text p { margin-bottom: 10px; }
.analysis-text p:last-child { margin-bottom: 0; }
.analysis-text strong { color: var(--text-primary); }
.analysis-text .hl {
  background: linear-gradient(180deg, transparent 55%, rgba(245, 158, 11, 0.45) 55%);
  font-weight: 600;
  padding: 0 2px;
}

@media (max-width: 600px) {
  .analysis-text { font-size: 13px; }
}

/* ========== Table ========== */
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  background: var(--surface-elevated);
  padding: 9px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  border-bottom: 2px solid var(--surface-border);
}
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--surface-divider);
  font-size: 12px;
  color: var(--text-tertiary);
}
tr:hover {
  background: var(--surface-hover);
}
.mag {
  font-weight: 700;
  color: var(--accent-danger);
}
.eq-detail td {
  background: rgba(74, 144, 217, 0.06);
  padding: 0;
}
.detail-content {
  padding: 10px 14px;
  border-left: 3px solid var(--accent-1);
  margin: 3px 10px;
  background: var(--surface);
  border-radius: 4px;
}
.detail-content p {
  margin: 3px 0;
  font-size: 12px;
  color: var(--text-tertiary);
}
.detail-content strong { color: var(--text-primary); }
.toggle-icon {
  color: var(--accent-1);
  cursor: pointer;
  font-size: 11px;
}
.expand-btn {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-on-accent);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 18px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.8;
}