/* ============================================
   * 开封市中心医院 - 新闻相关页面CSS样式文件
   * 包含新闻列表页、新闻详情页特有样式
   * 版本: 1.0.0
   * 最后更新: 2025-12-10
   ============================================ */

/* ============================================
   5. 新闻列表页 (news.html) 特有样式
   ============================================ */
.news-list-section {
  background: linear-gradient(0deg, var(--page-bg-light) 0%, rgba(255, 254, 250, 0.2) 100%);
  padding: 20px 0 60px;
}

/* 新闻卡片样式 */
.news-card {
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-card:hover {
  background-color: rgba(250, 240, 232, 0.5);
  transform: translateX(5px);
  text-decoration: none;
}

.news-date-large {
  font-size: 60px;
      line-height: 50px;
      color: var(--theme-color);
      font-weight: bold;
}

.news-day-large {
  font-size: 60px;
  line-height: 50px;
  color: var(--theme-color);
  font-weight: bold;
}

.news-month-large {
  font-size: 20px;
  color: #666;
}

.news-content-large {
  flex: 1;
  padding: 0 30px;
}

.news-title-large {
  font-size: 20px;
  line-height: 30px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.news-summary-large {
  font-size: 14px;
  color: #999;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  margin-bottom: 0;
}

.news-image {
  width: 220px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

/* 分页样式 */
.pagination-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination-custom .page-link {
  color: var(--theme-color);
  border: 1px solid #ddd;
  padding: 8px 16px;
  margin: 0 2px;
  border-radius: 4px;
}

.pagination-custom .page-item.active .page-link {
  background-color: var(--theme-color);
  border-color: var(--theme-color);
  color: white;
}

.pagination-custom .page-link:hover {
  background-color: #f8f9fa;
  border-color: #ddd;
}

/* ============================================
   6. 新闻详情页 (news-detail.html) 特有样式
   ============================================ */
.news-detail-section {
  background-color: #fff;
  padding: 60px 0 100px;
}

/* 新闻标题样式 */
.news-detail-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.news-detail-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.4;
}

.news-detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary-color);
  font-size: 16px;
  margin-top: 20px;
}

.news-date-meta {
  margin-right: 20px;
}

.news-source {
  color: var(--theme-color);
  border-left: 1px solid var(--border-color);
  padding-left: 20px;
}

.news-source i {
  margin-right: 8px;
}

/* 新闻内容样式 */
.news-detail-content {
  color: var(--text-color);
  line-height: 1.8;
  font-size: 17px;
}

.news-detail-content p {
  margin-bottom: 1.5rem;
  text-indent: 2em;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image-caption {
  text-align: center;
  font-size: 14px;
  color: var(--light-color);
  margin-top: -20px;
  margin-bottom: 30px;
}

/* 免责声明 */
.news-disclaimer {
  background-color: #f9f9f9;
  border-left: 4px solid var(--theme-color);
  padding: 15px 20px;
  margin: 40px 0;
  font-size: 14px;
  color: var(--light-color);
  line-height: 1.6;
}

/* 导航按钮 */
.news-navigation {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.news-nav-btn {
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
  max-width: 45%;
}

.news-nav-btn:hover {
  background-color: #f5f5f5;
  text-decoration: none;
  transform: translateY(-2px);
}

.news-nav-btn.prev {
  text-align: left;
}

.news-nav-btn.next {
  text-align: right;
}

.news-nav-btn i {
  font-size: 20px;
  margin: 0 10px;
}

.news-nav-btn .nav-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.news-nav-btn .nav-text {
  font-size: 14px;
  color: var(--secondary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

/* 分享按钮 */
.news-share {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.share-title {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-wechat {
  background-color: #09bb07;
}

.share-weibo {
  background-color: #e6162d;
}

.share-qq {
  background-color: #12b7f5;
}

/* 相关新闻 */
.related-news {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-title {
  font-size: 22px;
  color: var(--text-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--theme-color);
}

.related-list {
  list-style: none;
  padding: 0;
}

.related-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.related-item:last-child {
  border-bottom: none;
}

.related-link {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.related-link:hover {
  color: var(--theme-color);
  text-decoration: none;
}

.related-link-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-link-date {
  color: var(--light-color);
  font-size: 14px;
  margin-left: 20px;
}

/* ============================================
   新闻页面响应式调整
   ============================================ */
@media (max-width: 992px) {
  /* 新闻列表页 */
  .news-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-date-large {
    margin-bottom: 15px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
  }

  .news-day-large {
    font-size: 40px;
    line-height: 40px;
    margin-right: 15px;
  }

  .news-content-large {
    padding: 0;
    margin-bottom: 15px;
    width: 100%;
  }

  .news-image {
    width: 100%;
    height: 200px;
  }

  .news-title-large {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* 新闻列表页 */
  .news-day-large {
    font-size: 36px;
    line-height: 36px;
  }

  .news-month-large {
    font-size: 18px;
  }

  .news-title-large {
    font-size: 17px;
  }

  /* 新闻详情页 */
  .news-detail-title {
    font-size: 22px;
  }

  .news-detail-meta {
    flex-direction: column;
    gap: 10px;
  }

  .news-source {
    border-left: none;
    padding-left: 0;
  }

  .news-navigation {
    flex-direction: column;
    gap: 20px;
  }

  .news-nav-btn {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  /* 新闻列表页 */
  .news-image {
    height: 180px;
  }

  .news-title-large {
    font-size: 16px;
  }

  /* 新闻详情页 */
  .news-detail-section {
    padding: 30px 0 60px;
  }

  .news-detail-title {
    font-size: 20px;
  }

  .news-detail-content {
    font-size: 15px;
  }

  .news-detail-content p {
    text-indent: 1.5em;
  }

  .related-title {
    font-size: 20px;
  }
}