/*
 * AI 快讯 SSG 静态页面样式
 *
 * 此文件由 web 包的构建工具自动从 packages/web/public 复制到 dist 输出根目录。
 * 通过 <link rel="stylesheet" href="/ai-news/ai-news.css?v=<hash>"> 在生成的 HTML 中引入。
 */

.ai-news-daily-page,
.ai-news-listing-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
}

.daily-badge,
.listing-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #40babd;
  margin-bottom: 0.25rem;
}

.daily-title,
.listing-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #111827;
}

@media (min-width: 768px) {
  .daily-title,
  .listing-title {
    font-size: 2rem;
  }
}

.listing-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.daily-lead-title {
  font-size: 1rem;
  color: #374151;
  margin: 0.5rem 0;
}

.daily-lead-paragraph {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

.daily-nav,
.listing-nav {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 1.5rem 0;
  font-size: 0.875rem;
}

.nav-link {
  color: #40babd;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

.daily-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .daily-layout {
    grid-template-columns: 1fr 240px;
  }
}

.daily-section {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
}

.daily-section-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #40babd;
}

.daily-section-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.daily-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.daily-item:last-child {
  border-bottom: none;
}

.daily-item-title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem 0;
}

.daily-item-title a {
  color: #2563eb;
  text-decoration: none;
}

.daily-item-title a:hover {
  text-decoration: underline;
}

.daily-item-summary {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0 0 0.25rem 0;
}

.daily-item-source {
  font-size: 0.75rem;
  color: #9ca3af;
}

.daily-archives {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
  height: fit-content;
}

.daily-archives h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.75rem 0;
}

.daily-archives ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.daily-archives li {
  margin-bottom: 0.375rem;
}

.daily-archives a {
  font-size: 0.8rem;
  color: #4b5563;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
}

.daily-archives a:hover,
.daily-archives a.active {
  color: #40babd;
}

.daily-footer,
.listing-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.75rem;
  color: #9ca3af;
}

.timeline-group {
  margin-bottom: 2rem;
}

.timeline-date {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
}

.timeline-items {
  padding-left: 1.5rem;
  border-left: 2px solid #e5e7eb;
}

.news-item-card {
  padding: 0.75rem 0 0.75rem 1rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.news-item-card::before {
  content: "";
  position: absolute;
  left: -0.4375rem;
  top: 1rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #40babd;
}

.item-time {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 0.125rem;
}

.item-title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem 0;
}

.item-title a {
  color: #111827;
  text-decoration: none;
}

.item-title a:hover {
  color: #40babd;
}

.item-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.item-summary {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.no-data {
  text-align: center;
  padding: 3rem 0;
  color: #9ca3af;
  font-size: 0.875rem;
}
