/* ============================================================
   CONTENT DETAIL — 文章内容页
   ============================================================ */

.article {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.article__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: center;
}

.article__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px dashed #e0e0e0;
}

.article__meta-item {
  font-size: 13px;
  color: #999;
}

.article__content {
  font-size: 16px;
  color: #333;
  line-height: 2;
}

.article__content p {
  text-indent: 2em;
  margin-bottom: 16px;
}

.article__footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed #e0e0e0;
  font-size: 13px;
  color: #aaa;
  text-align: right;
  line-height: 1.8;
}

/* 上一篇 / 下一篇 */
.article__nav {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.article__nav-item {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: #f9fafb;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.article__nav-item:hover {
  background: var(--color-primary-lighter);
}

.article__nav-label {
  font-size: 12px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.article__nav-title {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.article__nav-item:hover .article__nav-title {
  color: var(--color-primary);
}

.article__nav-item--next {
  flex-direction: row-reverse;
  text-align: right;
}

/* 附件列表 */
.article__attach {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fafbfc;
  border-radius: var(--radius-sm);
  border: 1px solid #eee;
}

.article__attach-title {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article__attach-title::before {
  content: "📎";
  font-size: 14px;
}

.article__attach-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article__attach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.article__attach-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(25, 96, 55, 0.08);
}

.article__attach-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.article__attach-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article__attach-meta {
  font-size: 12px;
  color: #aaa;
  flex-shrink: 0;
}

.article__attach-dl {
  flex-shrink: 0;
  padding: 5px 14px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  transition: background 0.2s ease;
}

.article__attach-dl:hover {
  background: var(--color-primary-dark);
}

/* 响应式 */
@media (max-width: 900px) {
  .article {
    padding: 24px 20px;
  }
  .article__title {
    font-size: 20px;
  }
  .article__meta {
    gap: 12px;
  }
  .article__nav {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .article {
    padding: 18px 14px;
  }
  .article__title {
    font-size: 18px;
    text-align: left;
  }
  .article__meta {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .article__content {
    font-size: 15px;
  }
}