/* 新闻详情页专用样式 */

/* 文章头部 */
.article-header {
  margin-top: 100px;
}

.article-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.article-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.article-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(52, 73, 123, 0.9),
    rgba(52, 73, 123, 0.7)
  );
  z-index: -1;
}

.article-hero-content {
  color: black;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-category {
  background: #00bcd4;
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.article-date,
.read-time {
  color: black;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-title {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.article-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
}

.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-share span {
  font-weight: 500;
  font-size: 0.9rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.share-btn:hover {
  background: #00bcd4;
  transform: translateY(-3px);
}

.article-stats {
  display: flex;
  gap: 20px;
}

.views,
.likes {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* 文章主体布局 */
.article-main {
  padding: 80px 0;
  background: #f8f9fa;
}

.article-layout {
  display: grid;
  /* grid-template-columns: 1fr 300px; */
  gap: 60px;
}

.article-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.content-wrapper {
  padding: 60px;
}

/* 文章正文样式 */
.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.lead-paragraph {
  font-size: 1.3rem;
  font-weight: 500;
  color: #34497b;
  margin-bottom: 40px;
  line-height: 1.7;
}

.article-body h2 {
  font-size: 2rem;
  color: #34497b;
  margin: 50px 0 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #00bcd4;
  position: relative;
}

.article-body h2::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #34497b;
}

.article-body p {
  margin-bottom: 25px;
}

.article-quote {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-left: 5px solid #00bcd4;
  padding: 30px;
  margin: 40px 0;
  border-radius: 0 15px 15px 0;
  position: relative;
}

.article-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #00bcd4;
  font-family: serif;
}

.article-quote p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 15px;
  color: #34497b;
}

.article-quote cite {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

/* 图片画廊 */
.article-image-gallery {
  margin: 50px 0;
}

.gallery-main {
  margin-bottom: 20px;
}

.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnails {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.thumbnail {
  width: 100px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: #00bcd4;
  transform: translateY(-3px);
}

/* 信息框 */
.info-box {
  background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
  border: 1px solid #00bcd4;
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
}

.info-box h3 {
  color: #34497b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box h3 i {
  color: #00bcd4;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 188, 212, 0.2);
}

.info-box li:last-child {
  border-bottom: none;
}

.info-box strong {
  color: #34497b;
}

/* 文章结论 */
.article-conclusion {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
  border-left: 5px solid #34497b;
}

.article-conclusion p {
  font-size: 1.2rem;
  color: #34497b;
  font-weight: 500;
  margin: 0;
}

/* 文章标签 */
.article-tags {
  margin: 50px 0;
  padding: 30px 0;
  border-top: 1px solid #eee;
}

.article-tags h3 {
  color: #34497b;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #e9ecef;
  color: #666;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

/* 作者信息 */
.author-info {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
  margin: 40px 0;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details h3 {
  color: #34497b;
  margin-bottom: 10px;
}

.author-details p {
  color: #666;
  margin-bottom: 15px;
  font-size: 1rem;
}

.author-social {
  display: flex;
  gap: 10px;
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: white;
  border-radius: 50%;
  color: #666;
  transition: all 0.3s ease;
}

.author-social a:hover {
  background: #00bcd4;
  color: white;
  transform: translateY(-3px);
}

/* 文章互动 */
.article-engagement {
  padding: 30px 0;
  border-top: 1px solid #eee;
}

.engagement-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.like-btn,
.bookmark-btn {
  background: transparent;
  border: 2px solid #ddd;
  color: #666;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.like-btn:hover,
.bookmark-btn:hover {
  border-color: #00bcd4;
  color: #00bcd4;
  transform: translateY(-2px);
}

.like-btn.liked {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: white;
}

.bookmark-btn.bookmarked {
  background: #ffd93d;
  border-color: #ffd93d;
  color: #333;
}

/* 分享下拉菜单 */
.share-dropdown {
  position: relative;
}

.share-btn-main {
  background: transparent;
  border: 2px solid #ddd;
  color: #666;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.share-btn-main:hover {
  border-color: #00bcd4;
  color: #00bcd4;
}

.share-options {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.share-dropdown:hover .share-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-option:hover {
  background: #f8f9fa;
  color: #00bcd4;
}

/* 侧边栏 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
  color: #34497b;
  margin-bottom: 20px;
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #00bcd4;
}

/* 目录 */
.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-link {
  color: #666;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 15px;
}

.toc-link:hover,
.toc-link.active {
  color: #00bcd4;
  border-left-color: #00bcd4;
  transform: translateX(5px);
}

/* 相关新闻 */
.related-articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-article {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.related-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-image {
  flex-shrink: 0;
}

.related-image img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.related-content h4 {
  margin-bottom: 8px;
}

.related-content h4 a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.related-content h4 a:hover {
  color: #00bcd4;
}

.related-date {
  color: #999;
  font-size: 0.8rem;
}

/* 新闻订阅小部件 */
.newsletter-widget p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-form input {
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #00bcd4;
}

.newsletter-form button {
  background: #00bcd4;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #0097a7;
  transform: translateY(-2px);
}

/* 热门标签云 */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud {
  background: #f8f9fa;
  color: #666;
  padding: 6px 12px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

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

/* 评论区 */
.comments-section {
  padding: 80px 0;
  background: white;
}

.comments-wrapper h2 {
  color: #34497b;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* 评论表单 */
.comment-form-wrapper {
  margin-bottom: 60px;
}

.comment-form-wrapper h3 {
  color: #34497b;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.comment-form {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00bcd4;
}

.submit-comment-btn {
  background: linear-gradient(45deg, #34497b, #2c3e50);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.submit-comment-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(52, 73, 123, 0.3);
}

/* 评论列表 */
.comments-list {
  margin-bottom: 40px;
}

.comment {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.comment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comment-header h4 {
  color: #34497b;
  font-size: 1.1rem;
}

.comment-date {
  color: #999;
  font-size: 0.9rem;
}

.comment-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.comment-actions {
  display: flex;
  gap: 20px;
}

.reply-btn,
.like-comment-btn {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.reply-btn:hover,
.like-comment-btn:hover {
  color: #00bcd4;
}

.load-more-comments {
  background: transparent;
  border: 2px solid #ddd;
  color: #666;
  padding: 15px 30px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.load-more-comments:hover {
  border-color: #00bcd4;
  color: #00bcd4;
}

/* 推荐文章 */
.recommended-articles {
  padding: 80px 0;
  background: #f8f9fa;
}

.recommended-articles h2 {
  text-align: center;
  color: #34497b;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.recommended-article {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.recommended-article:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.recommended-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.recommended-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recommended-article:hover .recommended-image img {
  transform: scale(1.1);
}

.recommended-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #00bcd4;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.recommended-content {
  padding: 25px;
}

.recommended-content h3 {
  margin-bottom: 15px;
}

.recommended-content h3 a {
  color: #34497b;
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.recommended-content h3 a:hover {
  color: #00bcd4;
}

.recommended-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.recommended-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #999;
  font-size: 0.85rem;
}

/* 阅读进度条 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(45deg, #00bcd4, #0097a7);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    order: -1;
  }

  .sidebar-widget {
    display: none;
  }

  .table-of-contents {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2.2rem;
  }

  .article-subtitle {
    font-size: 1.1rem;
  }

  .article-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-wrapper {
    padding: 40px 30px;
  }

  .article-body h2 {
    font-size: 1.6rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .comment {
    flex-direction: column;
    gap: 15px;
  }

  .recommended-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-hero {
    height: 25vh;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .content-wrapper {
    padding: 30px 20px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .engagement-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-thumbnails {
    flex-wrap: wrap;
  }
}
