/* ========================================
   News 模块全新架构 · 主题色 #d53939
   适配 body 大背景，毛玻璃卡片体系
========================================= */

/* ---------- 列表页 ---------- */
.news-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 1rem 1rem 1rem;
}

/* 顶部标题 */
.news-list__header {
  text-align: center;
  margin-bottom: 48px;
}

.news-list__title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 2px;
}

.news-list__subtitle {
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: 300;
}

/* 卡片网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.news-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(213, 57, 57, 0.18);
}

/* 图片 */
.news-card__img-wrap {
  display: block;
  height: 200px;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__img {
  transform: scale(1.06);
}

/* 卡片内容区 */
.news-card__body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.news-card__tag {
  background: #fff0f0;
  color: #d53939;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.news-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
}

.news-card__title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card__title a:hover {
  color: #d53939;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 14px;
}

.news-card__author {
  color: #d53939;
  font-weight: 500;
}

.news-card__excerpt {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 22px;
  flex: 1;
}

/* 阅读更多 */
.news-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #d53939;
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap 0.25s ease;
}

.news-card__readmore .arrow {
  transition: transform 0.25s ease;
}

.news-card__readmore:hover .arrow {
  transform: translateX(4px);
}

/* ---------- 分页 ---------- */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.news-pagination__btn {
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}

.news-pagination__btn:hover {
  background: #d53939;
  border-color: #d53939;
  color: #fff;
}

.news-pagination__btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.news-pagination__info {
  color: #fff;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ---------- 详情页 ---------- */
.news-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 90px 1rem 1rem 1rem;
}

/* 特色大图 */
.news-article__hero {
  margin-bottom: -60px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.news-article__hero img {
  width: 100%;
  display: block;
  max-height: 450px;
  object-fit: cover;
}

/* 正文卡片 */
.news-article__card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 48px 48px 40px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.7);
  position: relative;
  z-index: 2;
}

/* 有 hero 图时卡片上移 */
.news-article__hero + .news-article__card {
  margin-top: -60px;
}

.news-article__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.news-article__tag {
  background: #fff0f0;
  color: #d53939;
  padding: 5px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}

.news-article__tag:hover {
  background: #d53939;
  color: #fff;
}

.news-article__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.news-article__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: #777;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 2px dashed #e0e0e0;
}

.news-article__author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d53939;
  font-weight: 600;
}

.author-icon {
  font-size: 1rem;
}

/* 正文排版 */
.news-article__content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
}

.news-article__content p {
  margin-bottom: 1.6rem;
}

.news-article__content a {
  color: #d53939;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-article__content img {
  max-width: 100%;
  border-radius: 16px;
  margin: 32px 0;
}

/* 返回按钮 */
.news-article__footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}

.news-article__back {
  display: inline-flex;
  align-items: center;
  padding: 10px 26px;
  border: 2px solid #d53939;
  border-radius: 30px;
  color: #d53939;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}

.news-article__back:hover {
  background: #d53939;
  color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-list__title {
    font-size: 2rem;
  }

  .news-article__card {
    padding: 32px 24px;
  }

  .news-article__title {
    font-size: 1.9rem;
  }

  .news-article__hero {
    margin-bottom: 0;
  }

  .news-article__hero + .news-article__card {
    margin-top: 20px;
  }
}