@charset "UTF-8";
/* =========================================================
   文章详情页样式
   ========================================================= */

/* 文章详情页主区域 */
.article-detail-section {
  padding: 4rem 0 6rem;
  background: #f5f7fa;
  min-height: 70vh;
}

/* 文章卡片容器 */
.article-detail {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
  padding: 4rem 5rem;
  max-width: 960px;
  margin: 0 auto;
}

/* 文章头部：标题 + 元信息 */
.article-header {
  text-align: center;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #f0f2f5;
}

/* 文章标题 */
.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a2a40;
  line-height: 1.55;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

/* 文章副标题 */
.article-subtitle {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* 元信息行 */
.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 1.25rem;
  color: #999;
}

.article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.article-meta .meta-label {
  color: #bbb;
}

/* 文章内容区 */
.article-content {
  font-size: 1.5rem;
  line-height: 2;
  color: #333;
  word-break: break-word;
  min-height: 200px;
}

.article-content p {
  margin-bottom: 1.2rem;
  text-indent: 2em;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-weight: 600;
  color: #1a2a40;
  margin: 2rem 0 1rem;
  line-height: 1.4;
}

.article-content h1 { font-size: 1.8rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content h4 { font-size: 1.1rem; }

.article-content blockquote {
  border-left: 4px solid rgb(41, 101, 211);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f0f4ff;
  border-radius: 0 6px 6px 0;
  color: #555;
  font-style: italic;
}

.article-content ul,
.article-content ol {
  padding-left: 2rem;
  margin-bottom: 1.2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-content table th,
.article-content table td {
  border: 1px solid #e0e5ee;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.article-content table th {
  background: #f0f4ff;
  font-weight: 600;
  color: #333;
}

.article-content table tr:nth-child(even) {
  background: #fafbfd;
}

/* 上一篇 / 下一篇导航 */
.article-nav {
  margin-top: 2.5rem;
  border-top: 2px solid #f0f2f5;
  padding-top: 0;
}

.article-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

.article-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem 1.5rem;
  background: #fafbfd;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.article-nav-item:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(41, 101, 211, 0.1);
}

.article-nav-label {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgb(41, 101, 211), rgb(15, 158, 121));
  padding: 0.2rem 0.75rem;
  border-radius: 3px;
  white-space: nowrap;
  align-self: flex-start;
}

.article-nav-link {
  font-size: 1.25rem;
  color: #333;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-nav-link:hover {
  color: rgb(41, 101, 211);
}

/* 文章不存在提示 */
.article-not-found {
  text-align: center;
  padding: 6rem 0;
  color: #bbb;
  font-size: 1.2rem;
}

.article-not-found a {
  color: rgb(0, 90, 146);
  text-decoration: none;
  margin-top: 1rem;
  display: inline-block;
  font-size: 1rem;
  transition: color 0.3s;
}

.article-not-found a:hover {
  color: rgb(15, 158, 121);
}

/* 响应式：小屏适配 */
@media (max-width: 900px) {
  .article-detail {
    padding: 2.5rem 2rem;
  }
  .article-title {
    font-size: 1.5rem;
  }
  .article-meta {
    gap: 1rem;
    font-size: 0.88rem;
  }
  .article-content {
    font-size: 1rem;
  }
}

/* 文章视频播放器 */
.article-video {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: 560px;
  border-radius: 8px;
  background: #000;
  margin: 2rem auto;
}
