/* AI资讯列表页 - 时间轴样式，与 caip.org.cn/news 风格一致 */
.news-main {
  flex: 1;
  padding: 24px 24px 48px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.news-timeline-layout {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  overflow-x: clip;
}

.news-timeline-hero {
  margin-bottom: 28px;
}

.news-two-col {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.news-timeline-center {
  flex: 1;
  min-width: 0;
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Hero */

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  font-family: inherit;
}

.timeline-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

.timeline-desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #666;
}

/* Timeline */
.news-timeline {
  position: relative;
}

/* Date group */
.tl-date-group {
  margin-bottom: 8px;
}

.tl-date-label {
  position: sticky;
  top: 56px;
  z-index: 10;
  background: var(--color-white);
  padding: 10px 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}

.tl-date-label::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.tl-date-label .tl-date-tag {
  font-size: 0.75rem;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.tl-items {
  border-left: 2px solid var(--color-border);
  margin-left: 4px;
  padding-left: 0;
}

/* Single timeline row: time-node + card */
.tl-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
  position: relative;
  max-width: 100%;
}

.tl-node {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  position: relative;
}

.tl-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: 2px solid var(--color-bg);
  position: absolute;
  left: -6px;
  top: 22px;
}

.tl-node-time {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
  margin-left: 8px;
  white-space: nowrap;
  font-family: inherit;
}

/* Single timeline item (no card) */
.tl-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  flex: 1;
  min-width: 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.tl-item:last-child {
  border-bottom: none;
}

.tl-item:hover {
  color: inherit;
}

.tl-item:hover .tl-item-title {
  color: var(--color-primary);
}

.tl-row:hover .tl-node-dot {
  background: var(--color-primary);
}

.tl-row:hover .tl-node-time {
  color: var(--color-primary);
}

/* Item body (left) */
.tl-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Cover image (right) */
.tl-item-cover {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 50%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-item-cover-placeholder {
  font-size: 1.8rem;
  opacity: 0.5;
}

.tl-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: inherit;
}

.tl-item-summary {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: inherit;
}

.tl-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #ccc;
  font-family: inherit;
}

.tl-item-source {
  background: rgba(37, 99, 235, 0.06);
  padding: 1px 8px;
  border-radius: 8px;
  color: var(--color-primary);
  font-weight: 500;
}

/* Load more */
.timeline-load-more {
  text-align: center;
  padding: 24px 0;
}

.btn-load-more {
  padding: 10px 32px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-load-more:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.04);
}

.btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sidebar */
.news-sidebar {
  flex-shrink: 0;
  width: 320px;
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}

.sidebar-section {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  font-family: inherit;
}

.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-item {
  display: block;
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
  font-family: inherit;
}

.hot-item:hover {
  color: var(--color-primary);
}

.hot-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: inherit;
}

.hot-item-meta {
  font-size: 0.75rem;
  color: #ccc;
  font-family: inherit;
}

.hot-loading {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.loading {
  text-align: center;
  padding: 48px;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .news-two-col {
    flex-direction: column;
    gap: 16px;
    overflow-x: clip;
  }

  .news-timeline-center {
    padding: 16px;
  }

  .news-sidebar {
    width: 100%;
    order: -1;
    padding-left: 0;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 600px) {
  .news-main {
    padding: 16px 12px 40px;
    overflow-x: clip;
  }

  .news-timeline-center {
    padding: 12px;
  }

  .news-timeline-layout {
    overflow-x: clip;
  }

  .tl-node {
    width: 42px;
  }

  .tl-node-time {
    font-size: 0.65rem;
  }

  .tl-item {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .tl-item-cover {
    width: 100%;
    height: 140px;
    order: -1;
  }

  .tl-item-title {
    word-break: break-word;
  }

  .tl-item-summary {
    word-break: break-word;
  }

  .timeline-title {
    font-size: 1.125rem;
  }

  .tl-item-meta {
    flex-wrap: wrap;
  }
}