@charset "utf-8";

/* 文章详情页 · 阅读优先的单栏排版 */
.article-detail-body {
  background: #eef2f7;
}

.article-page {
  flex: 1;
  width: 100%;
}

.article-page .detail-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ── 顶部 Hero ── */
.article-hero {
  position: relative;
  padding: clamp(148px, 15vw, 168px) 0 clamp(28px, 4vw, 40px);
  overflow: hidden;
}

.article-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0a56b5 0%, #1a6bc8 38%, #3d86d6 100%);
}

.article-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(0, 40, 100, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.article-hero__inner {
  position: relative;
  z-index: 1;
}

.article-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.article-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s;
}

.article-hero__breadcrumb a:hover {
  color: #fff;
}

.article-hero__breadcrumb__sep {
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.article-hero__breadcrumb [aria-current="page"] {
  color: #fff;
  font-weight: 500;
}

.article-hero__module {
  margin: 14px 0 0;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 40, 100, 0.2);
}

/* ── 正文区 ── */
.article-body {
  padding: 0 0 clamp(48px, 6vw, 72px);
  margin-top: clamp(-20px, -2vw, -12px);
}

.article-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 4px 24px rgba(10, 86, 181, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.article-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #0a56b5 0%, #1a6bc8 60%, #e60012 100%);
}

/* ── 标题区 ── */
.article-card__head {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px) clamp(20px, 3vw, 28px);
  text-align: center;
  border-bottom: 1px solid #f0f2f5;
}

.article-card__title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: bold;
  line-height: 1.45;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: #888;
}

.article-card__date {
  letter-spacing: 0.06em;
}

.article-card__category {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  background: rgba(10, 86, 181, 0.08);
  color: #0a56b5;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.4;
}

/* ── 封面图 ── */
.article-card__cover {
  margin: 0;
  padding: 0 clamp(24px, 4vw, 48px);
}

.article-card__cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f7fa;
}

/* ── 正文内附件下载 ── */
.article-card__content .article-download {
  margin: 0 0 1.15em;
  padding: 0;
}

.article-card__content .article-download__file {
  color: #0a56b5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-card__content .article-download__file:hover {
  color: #084a9a;
}

.article-card__content .article-download__hint {
  color: #666;
}

/* ── 正文内容 ── */
.article-card__content {
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 4vw, 48px);
  font-size: clamp(15px, 1.6vw, 17px);
  color: #333;
  line-height: 1.9;
  word-break: break-word;
}

.article-card__content p {
  margin: 0 0 1.15em;
  text-align: justify;
  text-indent: 2em;
}

.article-card__content p.article-download,
.article-card__content p.editor-figure {
  text-indent: 0;
}

.article-card__content p:last-child {
  margin-bottom: 0;
}

.article-card__content h2,
.article-card__content h3,
.article-card__content h4 {
  margin: 1.6em 0 0.75em;
  color: #1a1a1a;
  font-weight: bold;
  line-height: 1.4;
}

.article-card__content h2 {
  font-size: 1.35em;
  padding-left: 12px;
  border-left: 4px solid #0a56b5;
}

.article-card__content h3 {
  font-size: 1.15em;
}

.article-card__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.article-card__content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 6px;
}

.article-card__content a {
  color: #0a56b5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-card__content a:hover {
  color: #084a9a;
}

.article-card__content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  background: #f7f9fc;
  border-left: 4px solid #0a56b5;
  color: #555;
  border-radius: 0 6px 6px 0;
}

.article-card__content ul,
.article-card__content ol {
  margin: 0 0 1.15em;
  padding-left: 1.6em;
}

.article-card__content li {
  margin-bottom: 0.4em;
}

.article-card__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92em;
}

.article-card__content table th {
  background: #f0f4f9;
  color: #0a56b5;
  font-weight: bold;
}

.article-card__content table td,
.article-card__content table th {
  border: 1px solid #e4e8ee;
  padding: 10px 14px;
  text-align: left;
}

/* ── 文章信息 ── */
.article-card__credits {
  margin: 0 clamp(24px, 4vw, 48px);
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px dashed #e0e4ea;
}

.article-card__credits-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: bold;
  color: #0a56b5;
  letter-spacing: 0.08em;
}

.article-credits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 0;
}

.article-credits-grid dt {
  font-size: 13px;
  color: #999;
  font-weight: normal;
  margin: 0;
}

.article-credits-grid dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  word-break: break-word;
}

/* ── 返回按钮 ── */
.article-card__actions {
  padding: 8px clamp(24px, 4vw, 48px) clamp(28px, 4vw, 40px);
  display: flex;
  justify-content: center;
}

.article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  background: #fff;
  color: #0a56b5;
  border: 1.5px solid #0a56b5;
  border-radius: 24px;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.article-back-btn:hover {
  background: #0a56b5;
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 86, 181, 0.25);
}

.article-back-btn svg {
  flex-shrink: 0;
}

/* ── 空状态 / 错误 ── */
.article-card--empty {
  padding: clamp(60px, 10vw, 100px) 24px;
  text-align: center;
}

.article-card__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(10, 86, 181, 0.08);
  border-radius: 50%;
  color: #0a56b5;
}

.article-card__empty-text {
  margin: 0 0 24px;
  font-size: 16px;
  color: #888;
}

/* ── 平板 ── */
@media (max-width: 992px) {
  .article-card {
    border-radius: 10px;
  }

  .article-credits-grid {
    gap: 12px 20px;
  }
}

/* ── 手机 ── */
@media (max-width: 768px) {
  .article-hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .article-hero__breadcrumb {
    font-size: 13px;
  }

  .article-hero__module {
    letter-spacing: 0.1em;
  }

  .article-body {
    margin-top: -8px;
    padding-bottom: 40px;
  }

  .article-page .detail-wrap {
    padding: 0 12px;
  }

  .article-card {
    border-radius: 8px;
  }

  .article-card__head {
    padding: 24px 20px 18px;
    text-align: left;
  }

  .article-card__title {
    font-size: 21px;
  }

  .article-card__meta {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .article-card__cover {
    padding: 0 16px;
  }

  .article-card__cover img {
    max-height: 240px;
    border-radius: 6px;
  }

  .article-card__content {
    padding: 20px 16px;
    font-size: 15px;
    line-height: 1.85;
  }

  .article-card__content p {
    text-align: left;
  }

  .article-card__credits {
    margin: 0 16px;
    padding: 18px 0;
  }

  .article-credits-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-card__actions {
    padding: 4px 16px 24px;
  }

  .article-back-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .article-hero__breadcrumb {
    font-size: 12px;
    gap: 4px;
  }

  .article-card__title {
    font-size: 19px;
  }
}
