/* ============================================================
   AI 早报 · daily 页面专属样式（2026-09-21 v2 主题化）
   - 与 theme.css 配合使用
   - 所有颜色用 CSS 变量驱动
   ============================================================ */

body {
  padding: 70px 16px 40px;
}

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

/* ========== Header（与 archive-header 高度对齐 2026-09-21） ========== */
.header {
  text-align: center;
  padding: 24px 0 20px;
}
.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;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.header .date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.header .stats {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.header .stats span {
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
}
.header .stats .accent {
  background: linear-gradient(135deg, rgba(102,126,234,0.18), rgba(118,75,162,0.18));
  border-color: rgba(102,126,234,0.3);
  font-weight: 600;
  color: var(--text-primary);
}

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

/* ========== Section ========== */
.section {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.section-header {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--surface-divider);
  background: var(--surface-elevated);
  color: var(--text-primary);
}
.section-header .icon { font-size: 18px; }
.section-header .count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  padding: 2px 10px;
  border-radius: 10px;
}

/* ========== News Item ========== */
.news-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--surface-divider);
  transition: background 0.2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--surface-hover); }

.news-item .rank {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: var(--gradient-primary);
  color: var(--text-on-accent);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}
.news-item .rank.top { background: var(--gradient-rank-1); }
.news-item .rank.top2 { background: var(--gradient-rank-2); }
.news-item .rank.top3 { background: var(--gradient-rank-3); }

.news-item h3 {
  display: inline;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  vertical-align: middle;
}
.news-item h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--surface-border);
  transition: border-color 0.2s;
}
.news-item h3 a:hover { border-bottom-color: var(--accent-1); }

.news-item .summary {
  margin-top: 8px;
  margin-left: 34px;
  font-size: 13.5px;
  color: var(--text-tertiary);
  line-height: 1.65;
}
.news-item .summary strong { color: var(--text-primary); }

.news-item .meta {
  margin-top: 10px;
  margin-left: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-faint);
}
.news-item .meta .source {
  background: rgba(102,126,234,0.12);
  color: var(--accent-1);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.news-item .meta .source.official {
  background: rgba(245,87,108,0.14);
  color: var(--accent-danger);
}
.news-item .meta .source.press {
  background: rgba(67,233,123,0.14);
  color: var(--accent-success);
}
.news-item .meta .source.cn {
  background: rgba(79,172,254,0.14);
  color: var(--accent-3);
}
.news-item .meta .time {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 6px;
}
.news-item .meta .magnitude {
  background: rgba(245,87,108,0.16);
  color: var(--accent-danger);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* ========== Highlight (必看) ========== */
.highlight {
  background: var(--highlight-bg);
  border: 1px solid var(--highlight-border);
}
.highlight .news-item { background: rgba(245,87,108,0.04); }

/* ========== Bottom Nav ========== */
.bottom-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 8px;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}
.btn-nav-primary {
  background: var(--gradient-cta);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}
.btn-nav-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102,126,234,0.4);
  color: var(--text-on-accent);
}
.btn-nav-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}
.btn-nav-secondary:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  margin-top: 28px;
  padding: 20px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.8;
}

/* ========== Mobile ========== */
@media (max-width: 600px) {
  .news-item h3 { font-size: 15px; display: block; margin-top: 6px; }
  .news-item .summary, .news-item .meta { margin-left: 0; }
  .section-header { padding: 12px 16px; font-size: 14px; }
  .news-item { padding: 14px 16px; }
}