/* 新闻详情页面样式 */

/* 使用网站主色调变量 */
:root {
  --news-primary: var(--color-primary, #00476b);
  --news-secondary: var(--color-secondary, #3b82f6);
  --news-accent: var(--color-accent, #2563eb);
  --news-light: var(--color-light, #f9fafb);
  --news-dark: var(--color-dark, #1e293b);
}

/* 布局样式 */
.news-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.news-detail-main {
  flex: 0 0 calc(66.666% - 1.333rem);
  max-width: calc(66.666% - 1.333rem);
}

.news-detail-sidebar {
  flex: 0 0 calc(33.333% - 0.666rem);
  max-width: calc(33.333% - 0.666rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* 相关新闻侧边栏样式 */
.related-news-sidebar {
  margin-bottom: 2rem;
}

.related-news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-news-sidebar-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid rgba(0, 71, 107, 0.08);
  transition: all 0.3s;
}

.related-news-sidebar-item:hover {
  box-shadow: 0 4px 12px rgba(0, 71, 107, 0.1);
  transform: translateY(-2px);
}

.related-news-sidebar-image {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}

.related-news-sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-news-sidebar-item:hover .related-news-sidebar-image img {
  transform: scale(1.05);
}

.related-news-sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-news-sidebar-date {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.related-news-sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.related-news-sidebar-title a {
  color: var(--news-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.related-news-sidebar-title a:hover {
  color: var(--news-primary);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .news-detail-main {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .news-detail-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .news-detail-grid {
    flex-direction: column;
  }
  
  .news-detail-title {
    font-size: 1.75rem;
  }
  
  .news-detail-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .related-news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-detail-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .news-detail-title {
    font-size: 1.5rem;
  }
  
  .news-detail-content {
    padding: 1.5rem;
  }
  
  .news-detail-footer {
    padding: 1.5rem;
  }
  
  .news-detail-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .sidebar-card {
    padding: 1.25rem;
  }
  
  .sidebar-card h3 {
    font-size: 1.125rem;
  }
  
  .news-search-input {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .recent-news-item {
    flex-direction: row;
  }
  
  .recent-news-thumbnail {
    width: 60px;
    min-width: 60px;
    height: 60px;
  }
  
  .event-item {
    padding: 0.75rem;
  }
  
  .event-date,
  .event-location {
    font-size: 0.75rem;
  }
  
  .event-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .news-detail-title {
    font-size: 1.25rem;
  }
  
  .news-detail-content {
    font-size: 1rem;
  }
  
  .sidebar-card {
    padding: 1rem;
  }
  
  .sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .newsletter-input {
    font-size: 0.9rem;
  }
  
  .newsletter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .recent-news-title a {
    font-size: 0.875rem;
  }
  
  .tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
}

/* 新闻详情卡片 */
.news-detail-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: visible;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 71, 107, 0.08);
}

/* 新闻详情标题区域 */
.news-detail-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(0, 71, 107, 0.1);
}

.news-category-badge {
  display: inline-block;
  background-color: var(--news-primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.news-detail-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--news-dark);
  margin-bottom: 1.5rem;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.news-detail-meta .news-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.news-detail-meta .news-meta-item i {
  color: var(--news-primary);
}

/* 新闻详情图片 */
.news-detail-image {
  width: 100%;
  margin: 0;
}

.news-detail-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 新闻详情内容 */
.news-detail-content {
  padding: 2rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--news-dark);
}

.news-intro {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--news-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 71, 107, 0.1);
}

.news-detail-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--news-dark);
  margin: 2rem 0 1rem;
}

.news-detail-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--news-dark);
  margin: 1.75rem 0 1rem;
}

.news-detail-content p {
  margin-bottom: 1.5rem;
}

/* 引用样式 */
.news-quote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--news-primary);
  background-color: var(--news-light);
  font-style: italic;
  color: #4b5563;
}

/* 特性列表 */
.news-features-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.news-features-list li {
  margin-bottom: 0.75rem;
  position: relative;
}

.news-features-list li::before {
  content: "✓";
  color: var(--news-primary);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

/* 统计数据区域 */
.news-detail-stats {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--news-light);
  border-radius: 8px;
  border: 1px solid rgba(0, 71, 107, 0.08);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--news-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* 文章底部信息 */
.news-detail-footer {
  padding: 2rem;
  border-top: 1px solid rgba(0, 71, 107, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-tags h4, .news-share h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--news-dark);
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background-color: var(--news-light);
  color: var(--news-primary);
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(0, 71, 107, 0.15);
}

.tag:hover {
  background-color: var(--news-primary);
  color: white;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-facebook {
  background-color: #1877f2;
}

.share-email {
  background-color: var(--news-primary);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 相关新闻区域 */
.related-news {
  margin-top: 2rem;
}

.related-news-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--news-dark);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.related-news-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background-color: var(--news-primary);
  border-radius: 2px;
}

.related-news-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid rgba(0, 71, 107, 0.08);
}

.related-news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-news-image {
  height: 160px;
  overflow: hidden;
}

.related-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-news-item:hover .related-news-image img {
  transform: scale(1.05);
}

.related-news-content {
  padding: 1.5rem;
}

.related-news-category {
  display: inline-block;
  background-color: var(--news-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.related-news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--news-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.related-news-date {
  font-size: 0.875rem;
  color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .news-detail-title {
    font-size: 1.75rem;
  }
  
  .news-detail-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .news-detail-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .news-detail-title {
    font-size: 1.5rem;
  }
  
  .news-detail-content {
    padding: 1.5rem;
  }
  
  .news-detail-footer {
    padding: 1.5rem;
  }
  
  .news-detail-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .share-buttons {
    justify-content: center;
  }
}

/* 新闻导航样式 */
.news-navigation {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 71, 107, 0.1);
  overflow: visible;
  position: relative;
}

.news-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.news-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: #fff;
  border: 1px solid rgba(0, 71, 107, 0.15);
  border-radius: 6px;
  color: var(--news-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}

.news-nav-link:hover {
  background-color: var(--news-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 71, 107, 0.2);
}

.news-nav-link i {
  font-size: 1rem;
}

.news-nav-back {
  background-color: var(--news-light);
}

.news-nav-back:hover {
  background-color: var(--news-primary);
  color: white;
}

/* 悬停显示标题的提示框 */
.news-nav-prev::after,
.news-nav-next::after {
  content: attr(data-title);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #333333;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 400;
  white-space: normal;
  max-width: 300px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 1000;
  pointer-events: none;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.news-nav-prev::after {
  left: 30%;
}

.news-nav-next::after {
  left: 70%;
}

.news-nav-link:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 15px);
}

/* 新闻导航响应式设计 */
@media (max-width: 768px) {
  .news-nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .news-nav-link {
    width: 100%;
    justify-content: center;
  }
  
  .news-nav-prev::after,
  .news-nav-next::after {
    display: none;
  }
}