/* 新闻详情页样式 */

/* 顶部导航 */
.news-detail-page header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Banner样式 */
.news-detail-banner {
  height: 300px;
  margin-top: 80px;
}

/* 面包屑导航 */
.breadcrumb-container {
  background-color: #f8f9fa;
  padding: 15px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.breadcrumb a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #00c0e4;
}

.breadcrumb .separator {
  margin: 0 10px;
  color: #999;
}

.breadcrumb .current {
  color: #00c0e4;
  font-weight: 500;
}

/* 新闻详情内容区域 */
.news-detail-content {
  padding: 50px 0 70px;
  background-color: #f9f9f9;
}

.content-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

/* 文章主体部分 */
.article-main {
  flex: 1;
  max-width: 800px;
}

.article {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.article-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.article-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #333;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  color: #888;
  font-size: 14px;
}

.meta-item img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.article-category {
  background: linear-gradient(to right, #00c0e4, #0ae0c0);
  color: #fff;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
}

.article-content {
  line-height: 1.8;
  color: #444;
  font-size: 16px;
}

.article-featured-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 35px 0 20px;
  color: #333;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 25px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-label, .share-label {
  color: #666;
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f0f6ff;
  color: #0065cc;
  border-radius: 15px;
  font-size: 13px;
  transition: all 0.3s;
  text-decoration: none;
}

.tag:hover {
  background-color: #0065cc;
  color: #fff;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.share-icon:hover {
  opacity: 1;
}

.share-icon.wechat {
  background: #09bb07 url('/SmartContractPro/images/paper-plane.svg') center / 16px no-repeat;
}

.share-icon.weibo {
  background: #e6162d url('/SmartContractPro/images/paper-plane.svg') center / 16px no-repeat;
}

.share-icon.qq {
  background: #1f77ef url('/SmartContractPro/images/paper-plane.svg') center / 16px no-repeat;
}

.share-icon.linkedin {
  background: #0077b5 url('/SmartContractPro/images/paper-plane.svg') center / 16px no-repeat;
}

/* 上下文章导航 */
.article-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.nav-prev, .nav-next {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
  flex: 1;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-prev:hover, .nav-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nav-label {
  display: block;
  color: #00c0e4;
  font-size: 14px;
  margin-bottom: 8px;
  position: relative;
}

.nav-prev .nav-label::before {
  content: '←';
  margin-right: 8px;
}

.nav-next .nav-label::after {
  content: '→';
  margin-left: 8px;
}

.nav-title {
  color: #333;
  font-size: 15px;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-next {
  text-align: right;
}

/* 右侧边栏 */
.article-sidebar {
  width: 320px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  height: fit-content;
}

.sidebar-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #00c0e4, #0ae0c0);
}

/* 作者信息 */
.author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.author-bio {
  font-size: 14px;
  color: #777;
  line-height: 1.5;
}

/* 热门文章 */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.post-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.post-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.post-image {
  width: 80px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.post-link:hover .post-image img {
  transform: scale(1.05);
}

.post-info {
  flex: 1;
}

.post-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.3s;
}

.post-link:hover .post-title {
  color: #00c0e4;
}

.post-date {
  font-size: 12px;
  color: #999;
}

/* 文章分类 */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: #444;
  text-decoration: none;
  border-bottom: 1px dashed #eee;
  transition: all 0.3s;
}

.category-link:last-child {
  border-bottom: none;
}

.category-link span {
  color: #999;
  font-size: 13px;
  background-color: #f5f5f5;
  padding: 2px 8px;
  border-radius: 10px;
  transition: all 0.3s;
}

.category-link:hover,
.category-link.active {
  color: #00c0e4;
  padding-left: 5px;
}

.category-link:hover span,
.category-link.active span {
  background-color: #e6f8fc;
  color: #00c0e4;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f5f5f5;
  color: #555;
  border-radius: 15px;
  font-size: 13px;
  transition: all 0.3s;
  text-decoration: none;
}

.tag-item:hover {
  background-color: #00c0e4;
  color: #fff;
}

/* 联系我们 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.contact-icon.phone {
  background: url('/SmartContractPro/images/电话 拨打电话.svg') center / contain no-repeat;
}

.contact-icon.email {
  background: url('/SmartContractPro/images/信封2.svg') center / contain no-repeat;
}

.qrcode {
  margin-top: 15px;
  text-align: center;
}

.qrcode img {
  width: 120px;
  height: 120px;
  border-radius: 5px;
}

.qrcode p {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

/* 相关推荐部分 */
.related-posts {
  background-color: #fff;
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #00c0e4, #0ae0c0);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-image {
  height: 200px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 20px;
}

.related-category {
  display: inline-block;
  font-size: 12px;
  color: #00c0e4;
  margin-bottom: 10px;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px;
  color: #333;
  transition: color 0.3s;
}

.related-card:hover .related-title {
  color: #00c0e4;
}

.related-meta {
  color: #888;
  font-size: 14px;
}

/* 响应式样式 */
@media (max-width: 1200px) {
  .content-wrapper {
    gap: 20px;
  }
  
  .article-sidebar {
    width: 300px;
  }
}

@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .article-sidebar {
    width: 100%;
    position: static;
    margin-top: 30px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article {
    padding: 20px;
  }
  
  .article-title {
    font-size: 24px;
  }
  
  .article-navigation {
    flex-direction: column;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .news-detail-banner {
    height: 200px;
  }
  
  .news-detail-banner h1 {
    font-size: 26px;
  }
  
  .article-title {
    font-size: 20px;
  }
  
  .article-content {
    font-size: 15px;
  }
  
  .article-footer {
    flex-direction: column;
    gap: 15px;
  }
} 