/* ===== 公告/新闻通用样式 ===== */

/* 页面顶部面包屑横条 */
.page-breadcrumb {
  background: transparent;
  border-bottom: none;
  padding: 0;
  margin-bottom: 16px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list li::after {
  content: '/';
  color: #cbd5e1;
  font-size: 12px;
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-list a:hover {
  color: #2d77ff;
}

.breadcrumb-list .current {
  color: #64748b;
  font-weight: 400;
}

/* 内容区域 */
.content-section {
  padding: 20px 0 80px;
  padding-top: 100px;
  position: relative;
  background: #fff;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 50% 60% at 10% 30%, rgba(45, 119, 255, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.content-section .section-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* 页面标题 */
.page-title {
  margin-bottom: 40px;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.page-title p {
  font-size: 15px;
  color: #64748b;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.category-tabs .tab-item {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  background: #fff;
}

.category-tabs .tab-item:hover {
  border-color: #2d77ff;
  color: #2d77ff;
}

.category-tabs .tab-item.active {
  background: #2d77ff;
  color: #fff;
  border-color: #2d77ff;
}

/* 列表容器 */
.list-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

/* 列表项 */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

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

.list-item:hover {
  background: #f8fafc;
}

.list-item-title {
  flex: 1;
  margin-right: 20px;
}

.list-item-title a {
  font-size: 15px;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item-title a:hover {
  color: #2d77ff;
}

.list-item-time {
  font-size: 13px;
  color: #94a3b8;
  white-space: nowrap;
}

/* 分页器 */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.pagination-info {
  font-size: 13px;
  color: #94a3b8;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination li a:hover {
  border-color: #2d77ff;
  color: #2d77ff;
}

.pagination li a.active {
  background: #2d77ff;
  color: #fff;
  border-color: #2d77ff;
}

.pagination li a.page-ellipsis {
  border: none;
  pointer-events: none;
}

/* ===== 详情页 ===== */
.detail-layout {
  display: flex;
  gap: 32px;
}

.detail-main {
  flex: 1;
  min-width: 0;
}

.detail-sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* 详情卡片 */
.detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
}

.detail-card .detail-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 16px;
}

.detail-card .detail-meta {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 24px;
}

.detail-card .detail-meta .meta-source,
.detail-card .detail-meta .meta-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-card .detail-meta .meta-tag {
  display: inline-block;
  padding: 3px 12px;
  background: #2d77ff;
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
  font-weight: 500;
}

.detail-card .detail-content {
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
}

.detail-card .detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.detail-card .detail-content p {
  margin-bottom: 16px;
}

/* 前后篇导航 */
.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
  padding: 0;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.detail-nav-item {
  flex: 1;
  font-size: 14px;
  color: #64748b;
  padding: 16px 24px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-nav-item.nav-prev {
  text-align: left;
  border-right: 1px solid #f1f5f9;
}

.detail-nav-item.nav-next {
  text-align: right;
}

.detail-nav-item a {
  color: #2d77ff;
  text-decoration: none;
  transition: color 0.3s;
}

.detail-nav-item a:hover {
  color: #1a5fe0;
}

/* 侧边栏卡片 */
.sidebar-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

.sidebar-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.sidebar-card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #2d77ff;
  border-radius: 0 3px 3px 0;
}

.sidebar-list {
  padding: 12px 0;
}

.sidebar-list-item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 12px;
  transition: background 0.2s;
}

.sidebar-list-item:hover {
  background: #f8fafc;
}

.sidebar-list-item .item-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}

.sidebar-list-item:nth-child(1) .item-number,
.sidebar-list-item:nth-child(2) .item-number,
.sidebar-list-item:nth-child(3) .item-number {
  background: #2d77ff;
  color: #fff;
}

.sidebar-list-item a {
  flex: 1;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}

.sidebar-list-item a:hover {
  color: #2d77ff;
}

/* 侧边栏列表项扩展 - 带标签和日期 */
.sidebar-item-info {
  flex: 1;
  min-width: 0;
}

.sidebar-item-info a {
  display: block;
  font-size: 14px;
  color: #1e293b;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
  margin-bottom: 6px;
}

.sidebar-item-info a:hover {
  color: #2d77ff;
}

.sidebar-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-tag-sm {
  display: inline-block;
  padding: 1px 8px;
  background: #2d77ff;
  color: #fff;
  font-size: 11px;
  border-radius: 2px;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-item-time {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

/* ===== 新闻首页特殊样式 ===== */
.news-hero {
  display: flex;
  gap: 28px;
  margin-bottom: 48px;
}

.news-hero-banner {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
  background: #f1f5f9;
  display: block;
  text-decoration: none;
}

.news-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.news-hero-banner .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.news-hero-banner .hero-title {
  font-size: 18px;
  font-weight: 600;
}

.news-hero-side {
  width: 400px;
  flex-shrink: 0;
}

/* 新闻分类卡片网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
}

.news-grid-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

.news-grid-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.news-grid-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  position: relative;
  padding-left: 12px;
}

.news-grid-card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: #2d77ff;
  border-radius: 2px;
}

.news-grid-card-more {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.news-grid-card-more:hover {
  color: #2d77ff;
}

/* 响应式 */
@media (max-width: 1024px) {
  .detail-layout {
    flex-direction: column;
  }

  .detail-sidebar {
    width: 100%;
  }

  .news-hero {
    flex-direction: column;
  }

  .news-hero-side {
    width: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .content-section {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .detail-card {
    padding: 24px 20px;
  }

  .detail-card .detail-title {
    font-size: 20px;
  }

  .list-item {
    padding: 16px 20px;
  }

  .news-hero-banner {
    min-height: 200px;
  }

  .page-title h1 {
    font-size: 22px;
  }
}
