/* 资讯详情页样式 */

/* 页面标题区域 */
.page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 180px 0 80px;
  color: #fff;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #e94560;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* 资讯详情主体 */
.news-detail-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.news-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

/* 文章内容 */
.news-article {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-header {
  padding: 40px 40px 30px;
  border-bottom: 1px solid #e9ecef;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.article-category {
  background: #e94560;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.article-date,
.article-views {
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 25px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 600;
  color: #1a1a2e;
}

.author-title {
  font-size: 0.85rem;
  color: #6c757d;
}

/* 特色图片 */
.article-featured-image {
  position: relative;
  width: 100%;
}

.article-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  bottom: 0;
  左右: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* 文章内容 */
.article-content {
  padding: 40px;
}

.article-lead {
  font-size: 1.15rem;
  color: #495057;
  line-height: 1.8;
  padding: 25px 30px;
  background: #f8f9fa;
  border-left: 4px solid #e94560;
  margin-bottom: 35px;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 30px 0 15px;
}

.article-content p {
  color: #495057;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.article-image-block {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
}

.article-image-block img {
  width: 100%;
  height: auto;
  display: block;
}

.article-list {
  list-style: none;
  margin: 25px 0;
  padding: 0;
}

.article-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: #495057;
  font-size: 1.05rem;
  border-bottom: 1px dashed #e9ecef;
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list i {
  color: #28a745;
  font-size: 1.1rem;
}

/* 引用块 */
.article-quote {
  margin: 35px 0;
  padding: 30px 35px;
  background: #f8f9fa;
  border-radius: 12px;
  position: relative;
}

.quote-icon {
  font-size: 2rem;
  color: #e94560;
  opacity: 0.3;
  margin-bottom: 10px;
}

.article-quote blockquote {
  font-size: 1.15rem;
  color: #495057;
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 15px;
  border: none;
  padding: 0;
}

.article-quote cite {
  color: #6c757d;
  font-size: 0.95rem;
  font-style: normal;
}

/* 文章标签 */
.article-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

.tag-label {
  color: #6c757d;
  font-size: 0.95rem;
}

.tag-link {
  padding: 6px 14px;
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.tag-link:hover {
  background: #e94560;
  color: #fff;
}

/* 文章底部 */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-label {
  color: #6c757d;
  font-size: 0.9rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.share-btn.weixin {
  background: #07c160;
}

.share-btn.weibo {
  background: #e6162d;
}

.share-btn.qq {
  background: #12b7f5;
}

.share-btn.link {
  background: #6c757d;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn:hover {
  border-color: #e94560;
  color: #e94560;
}

.action-btn.liked {
  background: #e94560;
  border-color: #e94560;
  color: #fff;
}

/* 侧边栏 */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title i {
  color: #e94560;
}

/* 搜索框 */
.search-box {
  display: flex;
  gap: 0;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #e94560;
}

.search-submit {
  width: auto;
  background: #e94560;
  border: none;
  border-radius: 0 8px 8px 0;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.search-submit:hover {
  background: #d63d56;
}

/* 文章目录 */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 5px;
}

.toc-list a {
  display: block;
  padding: 10px 15px;
  color: #495057;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.toc-list a:hover {
  background: #f8f9fa;
  color: #e94560;
}

.toc-list a.active {
  background: #e94560;
  color: #fff;
}

/* 相关文章 */
.related-news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-news-item {
  display: flex;
  gap: 15px;
}

.news-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.news-info h4 {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.news-info h4 a {
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.3s;
}

.news-info h4 a:hover {
  color: #e94560;
}

.news-date {
  font-size: 0.8rem;
  color: #6c757d;
}

/* 热门标签 */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  padding: 8px 16px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.tag-item:hover {
  background: #e94560;
  color: #fff;
}

/* 订阅 */
.subscribe-desc {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-input {
  padding: 12px 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.subscribe-input:focus {
  border-color: #e94560;
}

/* ========== 验证码样式 统一风格 ========== */
.subscribe-captcha {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.captcha-input:focus {
  border-color: #e94560;
}

.captcha-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 关键：不变形 */
  display: flex;
  align-items: center;
  cursor: pointer;
}

.captcha-image img {
  height: 100%;
  border-radius: 8px;
}

/* ========== 订阅按钮 ========== */
.subscribe-btn {
  padding: 12px;
  background: #e94560;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.subscribe-btn:hover {
  background: #d63d56;
}

/* 上一篇/下一篇导航 */
.article-nav {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid #e9ecef;
}

.article-nav-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.nav-prev,
.nav-next {
  flex: 1;
  padding: 25px 30px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-prev:hover,
.nav-next:hover {
  background: #e94560;
}

.nav-prev:hover .nav-label,
.nav-prev:hover .nav-title,
.nav-next:hover .nav-label,
.nav-next:hover .nav-title {
  color: #fff;
}

.nav-next {
  text-align: right;
}

.nav-label {
  display: block;
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.nav-title {
  display: block;
  color: #1a1a2e;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  transition: color 0.3s;
}
/* 禁用状态：保持占位、不变形、变灰 */
.article-nav .disabled {
  opacity: 0.4;
  pointer-events: none;
  /* 禁止点击 */
  cursor: not-allowed;
}
/* 响应式设计 */
@media (max-width: 1200px) {
  .news-detail-wrapper {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .news-detail-wrapper {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    order: -1;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .article-featured-image img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }

  .article-header {
    padding: 25px;
  }

  .article-meta-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .article-title {
    font-size: 1.4rem;
  }

  .article-content {
    padding: 25px;
  }

  .article-lead {
    font-size: 1rem;
    padding: 20px;
  }

  .article-content h2 {
    font-size: 1.3rem;
  }

  .article-footer {
    flex-direction: column;
    gap: 20px;
    padding: 25px;
  }

  .article-nav-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .nav-next {
    text-align: left;
  }
}
