/* ============================================================
   detail.css — 学员成果详情页专属样式
   依赖 style.css 和 results.css（侧边栏）
   ============================================================ */

/* 详情卡片容器 */
.detail-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  padding: clamp(24px, 3vw, 48px) clamp(20px, 3vw, 52px);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* 顶部信息区 */
.detail-top {
  margin-bottom: 20px;
}

/* 日期徽章 */
.detail-badge {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 16px;
  background: #daeaff;
  border-radius: 14.5px;
  font-family: var(--font-en), sans-serif;
  font-size: 16px;
  color: #1c355d;
  line-height: 1;
  margin-bottom: 14px;
}

/* 文章标题 */
.detail-title {
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 40px);
  color: #000;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* 作者信息 */
.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-avatar-wrap {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 4px solid rgba(14,165,233,.2);
  overflow: hidden;
  flex-shrink: 0;
}
.detail-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-author {
  font-family: var(--font-cn);
  font-size: 14px;
  color: #000;
}

/* 分隔线 */
.detail-divider {
  border: none;
  border-top: 1px solid #d9d9d9;
  margin: 20px 0;
}

.detail-body-empty {
  font-family: var(--font-cn);
  font-size: 15px;
  color: #64748b;
  line-height: 1.75;
  margin: 0;
}

/* detail-article 内正文与富文本中的图片（详情主图请在后台详情正文中插入） */
.detail-body {
  font-family: var(--font-cn);
  font-size: 16px;
  color: #333;
  line-height: 1.875;
  margin-bottom: 20px;
}
.detail-body p {
  text-indent: 2em;
  margin-bottom: 8px;
}
.detail-body p:last-child { margin-bottom: 0; }
.detail-body--html {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.detail-body--html img {
  max-width: 100%;
  height: auto;
}
.detail-body--html ul,
.detail-body--html ol {
  margin: 0.5em 0 0.5em 1.5em;
  padding: 0;
}
.detail-body--html table {
  max-width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.detail-body--html td,
.detail-body--html th {
  border: 1px solid #ddd;
  padding: 6px 10px;
}
.detail-body--html iframe,
.detail-body--html video {
  max-width: 100%;
}

/* 文章主图 */
.detail-figure {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
}
.detail-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform .5s ease;
}
.detail-figure:hover .detail-img { transform: scale(1.02); }

/* 上一篇/下一篇导航 */
.detail-nav {
  margin-top: 8px;
}
.detail-nav-item {
  font-family: var(--font-cn);
  font-size: 16px;
  color: #333;
  line-height: 1.875;
  margin: 0;
}
.detail-nav-item + .detail-nav-item { margin-top: 8px; }
.detail-nav-label { color: #333; }
.detail-nav-link {
  color: #333;
  text-decoration: none;
  transition: color .25s;
}
.detail-nav-link:hover { color: var(--primary); }

/* ============================================================
   Responsive — Tablet ≤ 900px
   ============================================================ */
@media (max-width: 900px) {
  .detail-card {
    padding: 24px 20px;
  }
}

/* ============================================================
   Responsive — Mobile ≤ 640px
   ============================================================ */
@media (max-width: 640px) {
  .detail-title { font-size: clamp(18px, 5.5vw, 26px); }
  .detail-badge { font-size: 14px; }
}
