/* 新闻详情页样式 */
body {
    margin: 0;
}

/* 容器样式 */
.news-detail-container {
  padding: 40px 0 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 面包屑导航 */
.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #2c8af8;
}

/* 文章主体 */
.news-article {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 40px;
}

.article-header {
  padding: 35px 35px 0;
}

.article-category {
  display: inline-block;
  padding: 6px 15px;
  background-color: #e9f5ff;
  color: #2c8af8;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
}

.article-title {
  font-size: 28px;
  line-height: 1.3;
  color: #333;
  margin: 0 0 15px;
}

.article-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
}

.article-cover {
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.article-cover img {
  width: 100%;
  height: auto;
  transition: transform 1.5s;
  transform-origin: center;
}

.article-cover:hover img {
  transform: scale(1.03);
}

.article-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  opacity: 0.7;
}

.article-content {
  padding: 35px;
  line-height: 1.7;
  color: #333;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content h3 {
  font-size: 22px;
  margin: 35px 0 15px;
  color: #222;
  position: relative;
  padding-left: 15px;
}

.article-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #2c8af8;
  border-radius: 2px;
}

.article-content h4 {
  font-size: 18px;
  margin: 25px 0 12px;
  color: #333;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 20px;
}

.article-content li {
  margin-bottom: 8px;
}

/* 图片画廊样式 */
.image-gallery {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.image-gallery .gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  transform: translateY(0);
  cursor: pointer;
}

.image-gallery .gallery-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}

/* 专家介绍样式 */
.expert-profile {
  margin: 30px 0;
  display: flex;
  gap: 25px;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.expert-profile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.expert-profile .expert-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.expert-profile:hover .expert-image {
  transform: scale(1.05);
}

.expert-profile .expert-info {
  flex: 1;
}

.expert-profile .expert-info p {
  margin-bottom: 10px;
}

.expert-profile .expert-info strong {
  color: #2c8af8;
}

.expert-profile .expert-info ul {
  margin: 0 0 15px 20px;
}

.expert-profile .expert-info li {
  padding: 3px 0;
}

.article-footer {
  padding: 25px 35px 35px;
  border-top: 1px solid #eee;
}

.article-tags {
  margin-bottom: 25px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f5f5f5;
  color: #666;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: #2c8af8;
  color: white;
  transform: translateY(-2px);
}

.article-navigation {
  display: flex;
  justify-content: center;
}

.back-to-list {
  display: inline-block;
  padding: 10px 25px;
  background-color: #2c8af8;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(44, 138, 248, 0.3);
}

.back-to-list:hover {
  background-color: #1a7ce0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(44, 138, 248, 0.4);
}

/* 相关新闻 */
.related-news {
  margin-bottom: 40px;
}

.related-title {
  font-size: 20px;
  margin: 0 0 20px;
  color: #333;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.related-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.related-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.related-image {
  width: 120px;
  height: 80px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-info {
  padding: 12px;
  flex: 1;
}

.related-item-title {
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-date {
  font-size: 12px;
  color: #999;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .article-title {
    font-size: 22px;
  }
  
  .article-content {
    padding: 25px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .article-content h3 {
    font-size: 20px;
  }
  
  .article-content h4 {
    font-size: 16px;
  }
  
  .expert-profile {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  
  .expert-profile .expert-image {
    margin-bottom: 15px;
  }
  
  .image-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .news-detail-container {
    padding: 20px 0 40px;
  }
  
  .article-header {
    padding: 20px 20px 0;
  }
  
  .article-title {
    font-size: 20px;
  }
  
  .article-footer {
    padding: 15px 20px 20px;
  }
  
  .related-link {
    flex-direction: column;
  }
  
  .related-image {
    width: 100%;
    height: 120px;
  }
}

/* 通用页面头部和底部样式（可能已在style.css中定义） */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo h1 {
  margin: 0;
  font-size: 22px;
}

.logo a {
  text-decoration: none;
  color: #333;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-item {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-item:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #2c8af8;
  transition: width 0.3s;
}

.nav-item:hover:after,
.nav-item.active:after {
  width: 100%;
}

.nav-item.active {
  color: #2c8af8;
}

/* 移动端适配导航栏样式 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 10px 15px;
  }
  
  .logo {
    margin-bottom: 10px;
  }
  
  .nav-menu {
    width: 100%;
    justify-content: space-around;
    padding: 5px 0;
    gap: 15px;
  }
  
  .nav-item {
    font-size: 14px;
    padding: 5px 0;
  }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
  .nav-menu {
    gap: 10px;
  }
  
  .nav-item {
    font-size: 13px;
  }
  
  .logo h1 {
    font-size: 18px;
  }
}

.footer {
  background-color: #2d3748;
  color: white;
  padding: 50px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 18px;
  margin: 0 0 15px;
}

.footer-column p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
} 