/* AI Daily v2 补充样式（报纸版面基础样式来自 newspaper-prototype.css）
 * 1) 字体和谐：覆写旧版偏大的分区/条目标题字号
 * 2) 自适应布局：news 全局流式网格（auto-fill），主次通过排序 + 首条宽格表达
 */

/* ---------- 字体和谐 ---------- */

/* lead 头条标题：保持报纸头条比例，但收敛上限 */
.lead-story h1 { font-size: clamp(36px, 4.4vw, 62px); }
.lead-story h1.long-title { font-size: clamp(33px, 3.9vw, 55px); }
.lead-story h1.extra-long-title { font-size: clamp(30px, 3.4vw, 48px); }
.lead-story .dek { font-size: clamp(16px, 1.35vw, 19px); }

/* 分区标题（简讯等保留 section-heading 的地方）收敛到栏目标题比例 */
.section-heading h2 { font-size: clamp(19px, 1.7vw, 24px); }
.section-heading > p:last-child { font-size: 11px; }

/* 条目标题 */
.story h3 { font-size: clamp(18px, 1.45vw, 22px); }
.story-body { font-size: 15px; }

/* 今日要闻侧栏 */
.lead-aside h2 { font-size: 21px; }
.aside-item a { font-size: 16px; }

/* 简讯 */
.brief h3 { font-size: 17px; }
.brief p { font-size: 14px; }

/* ---------- 自适应流式网格（主次分明） ---------- */

.news-flow {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--rule-dark);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 28px;
  align-items: start;
}
.news-grid .story {
  grid-column: span 1;
  padding: 0 28px 26px 0;
  border-right: 1px solid var(--rule);
  border-bottom: 0;
  scroll-margin-top: 24px;
}
/* 首条（最重要）占宽格，形成主次 */
.news-grid .story:first-child {
  grid-column: span 2;
}
/* 条数少时（1-2 条）不用满行宽，保持报纸栏宽 */
.news-grid.stories-count-1 { grid-template-columns: minmax(0, 65ch); }
.news-grid.stories-count-1 .story,
.news-grid.stories-count-2 .story:first-child { border-right: 0; }
.news-grid .story:nth-child(2n) { border-right: 0; }

/* type 小标签（eyebrow 风格，替代原分区标题） */
.story-tag {
  margin: 0 0 6px;
  color: var(--accent);
  font: 600 10px/1.2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* 响应式：叠加旧版 1100/720 断点 */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr !important; }
  .news-grid .story { grid-column: span 1 !important; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- 来源行：日期与"待核"标注 ---------- */

.source-line .src-pending {
  color: var(--accent);
}

/* ---------- 历史日报（首页底部） ---------- */

.history-section {
  padding: 40px 0 26px;
}
.history-section .section-heading h2 { font-size: clamp(22px, 2vw, 28px); }
.history-section .section-heading > p a { color: var(--accent); text-underline-offset: 3px; }
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-list li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.hist-date {
  font: 500 13px/1 var(--sans);
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hist-title {
  font: 600 18px/1.3 var(--serif);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-list li:hover .hist-title { color: var(--accent); }

/* ---------- 归档页 ---------- */

.archive-title {
  font: 650 clamp(34px, 3.4vw, 52px)/1 var(--serif);
  letter-spacing: -.03em;
  margin: 0 0 8px;
}
.archive-count { color: var(--ink-soft); font: 500 12px/1 var(--sans); margin: 0 0 34px; }
.archive-month { padding: 26px 0 8px; border-bottom: 1px solid var(--rule-dark); }
.archive-month h2 {
  font: 650 24px/1 var(--serif);
  margin: 0 0 16px;
  color: var(--accent);
}
.archive-month ul { list-style: none; margin: 0; padding: 0; }
.archive-month li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.archive-month li a:first-child {
  font: 500 13px/1 var(--sans);
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.archive-month li a:first-child:hover { color: var(--accent); }
.archive-headline {
  color: var(--ink);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paper-footer {
  padding: 30px 0 60px;
  color: var(--ink-soft);
  font: 500 12px/1 var(--sans);
  letter-spacing: .1em;
}

@media (max-width: 720px) {
  .history-list li { flex-direction: column; gap: 6px; }
  .archive-month li { flex-direction: column; gap: 6px; }
}
