/* ======================
   ARTICLE-DETAIL.CSS — 文章详情页
   ====================== */

.article-detail {
  padding: 0 0 48px;
  background: linear-gradient(180deg, var(--bg-gray-light) 0%, #fff 160px);
}

.article-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.article-crumb {
  margin: 0;
  font-size: 13px;
  flex-wrap: wrap;
}
.article-crumb .breadcrumb-current {
  max-width: min(420px, 55vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-shell {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 28px;
}
.article-shell.article-follow {
  padding-top: 0;
  padding-bottom: 8px;
}

/* ========== 文章头部 ========== */
.article-header {
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--gray-250);
  margin-bottom: 28px;
}

.article-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid var(--color-accent);
  color: var(--color-warning);
  background: rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 650;
}

.article-header h1 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--color-primary);
  font-weight: 750;
  line-height: 1.35;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.article-meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.meta-stage {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 600;
}
.article-scope {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--gray-250, #e2e8f0);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}
.article-scope strong {
  color: var(--text-title);
}

.article-cover {
  position: relative;
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-250);
  background: linear-gradient(145deg, #1a2332 0%, #334155 100%);
}
.article-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.article-cover img.is-placeholder {
  object-fit: cover;
  background: transparent;
}

/* 方案 A2：默认封面居中海报叠字（真实上传封面不叠） */
.article-cover--titled {
  isolation: isolate;
}
.article-cover--titled::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.42) 0%, rgba(10, 16, 28, 0.18) 38%, rgba(10, 16, 28, 0.55) 100%);
}
.article-cover-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px) clamp(18px, 5vw, 56px);
  pointer-events: none;
  text-align: center;
}
.article-cover-caption-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-width: 18em;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 8px 28px rgba(0, 0, 0, 0.35);
}
@media (max-width: 640px) {
  .article-cover img {
    max-height: 280px;
  }
  .article-cover-caption {
    padding: 18px 16px;
  }
  .article-cover-caption-text {
    max-width: 100%;
    font-size: 18px;
    -webkit-line-clamp: 4;
  }
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.meta-author,
.meta-date,
.meta-views {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== 文章正文 ========== */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.95;
  color: var(--gray-700);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body img,
.article-body video,
.article-body iframe {
  max-width: 100%;
  height: auto;
}

.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
}

.article-lead {
  font-size: 16px;
  color: var(--text-title);
  font-weight: 500;
  line-height: 1.85;
  padding: 20px 24px;
  background: var(--bg-gray-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 36px;
}

.article-body h2 {
  font-size: 22px;
  color: var(--color-primary);
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-250);
  position: relative;
}
.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 48px;
  height: 2px;
  background: var(--color-accent);
}

.article-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.article-body h2:first-of-type::before { display: none; }

.article-body h3 {
  font-size: 17px;
  color: var(--color-primary);
  font-weight: 650;
  margin: 24px 0 10px;
}

.article-body p { margin-bottom: 16px; }

.article-body strong { color: var(--text-title); }

.article-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
  list-style: disc;
}

.article-body ul li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.article-body ul li::marker { color: var(--color-accent); }

/* 提示框 */
.article-tip {
  display: flex;
  gap: 14px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.article-tip-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.article-tip-content {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.85;
}

.article-tip-content strong { color: var(--color-primary); }

/* ========== 文章底部 ========== */
.article-footer {
  max-width: 760px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.article-disclaimer {
  background: var(--bg-gray-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.article-disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-white);
}

.article-cta-box {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2c3b52 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.article-cta-box h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #fff;
}
.article-cta-box p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ========== 相关文章（通栏三卡 + 底栏热文/标签） ========== */
.related-section {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(212, 175, 55, 0.06), transparent 55%),
    var(--bg-gray-light);
}
.related-head {
  margin-bottom: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
a.related-card,
.related-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.related-card:hover,
.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.08);
}
.related-card .related-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.related-card-title,
.related-card h3,
.related-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-title);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
a.related-card:hover .related-card-title,
a.related-card:hover h3,
a.related-card:hover h4 {
  color: var(--color-accent-deep);
}
.related-card-excerpt,
.related-card > p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}
.related-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef2f6;
}
.related-card-meta,
.related-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--text-light);
  min-width: 0;
}
.related-card-meta time::after,
.related-card-meta > span + span::before,
.related-meta span + span::before {
  content: none;
}
.related-card-more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--color-accent-deep);
  letter-spacing: 0.02em;
}
.related-card-more::after {
  content: ' →';
  transition: transform 0.2s;
  display: inline-block;
}
a.related-card:hover .related-card-more::after {
  transform: translateX(3px);
}

.related-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.related-section .widget-card--rank {
  grid-column: 1 / 3;
}
.related-section .widget-card--tags {
  grid-column: 3 / 4;
}
.related-section .widget-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px 18px 16px;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.04);
  height: 100%;
  min-width: 0;
}
.related-section .widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  margin: 0 0 14px;
  padding-left: 12px;
  position: relative;
}
.related-section .widget-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-deep));
}
/* 本月热文内部再分两列 → 整体形成三列：热文|热文|标签 */
.related-section .widget-card--rank .rank-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}
.related-section .rank-list li > a {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
}
.related-section .rank-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
}
.related-section .widget-card--rank .rank-list li:nth-last-child(-n+2) {
  border-bottom: none;
}
.related-section .rank-list .rank-idx {
  flex: 0 0 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  margin-top: 1px;
  background: #eef2f6;
  color: #64748b;
}
.related-section .rank-list li:nth-child(1) .rank-idx {
  background: var(--color-primary);
  color: #fff;
}
.related-section .rank-list li:nth-child(2) .rank-idx {
  background: #2c3b52;
  color: #fff;
}
.related-section .rank-list li:nth-child(3) .rank-idx {
  background: var(--color-accent);
  color: #1a2332;
}
.related-section .rank-list li > a:hover {
  color: var(--color-accent-deep);
}
.related-section .rank-list li em {
  flex-shrink: 0;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: #94a3b8;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ========== 响应式（正文） ========== */
@media (max-width: 768px) {
  .article-header h1 { font-size: 24px; }
  .article-body { font-size: 14px; }
  .article-body h2 { font-size: 19px; }
  .article-lead { font-size: 14px; padding: 16px 18px; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-widgets { grid-template-columns: 1fr 1fr; }
  .related-section .widget-card--rank { grid-column: 1 / -1; }
  .related-section .widget-card--tags { grid-column: 1 / -1; }
  .related-section .widget-card--rank .rank-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }
  a.related-card,
  .related-card {
    padding: 16px 14px 14px;
    border-radius: 12px;
  }
  .related-card-title,
  .related-card h3,
  .related-card h4 { font-size: 14px; }
  .related-card-excerpt,
  .related-card > p {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
    margin-bottom: 12px;
  }
  .related-card-foot { padding-top: 10px; }
  .related-card-more { font-size: 12px; }
  .related-widgets {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .related-section .widget-card--rank,
  .related-section .widget-card--tags {
    grid-column: auto;
  }
  .related-section .widget-card--rank .rank-list {
    grid-template-columns: 1fr;
  }
  .related-section .widget-card--rank .rank-list li:nth-last-child(-n+2) {
    border-bottom: 1px dashed #f1f5f9;
  }
  .related-section .widget-card--rank .rank-list li:last-child {
    border-bottom: none;
  }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   v1.2 阅读体验增强
   ====================================================== */

/* ========== 顶部阅读进度条 ========== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 1100;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent) 0%, #f0d878 50%, var(--color-accent) 100%);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
  transition: width 0.08s linear;
}

/* ========== 字号调节工具条 ========== */
.article-tools {
  max-width: 760px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.article-tools-label {
  font-size: 12px;
  color: var(--text-muted);
}

.font-btn {
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-body);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.font-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.font-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
}

/* 字号档位：3 档（小/中/大），默认中 */
.article-body.fs-sm { font-size: 14px; }
.article-body.fs-sm h2 { font-size: 20px; }
.article-body.fs-sm h3 { font-size: 16px; }

.article-body.fs-md { font-size: 15px; }
.article-body.fs-md h2 { font-size: 22px; }
.article-body.fs-md h3 { font-size: 17px; }

.article-body.fs-lg { font-size: 17px; line-height: 2; }
.article-body.fs-lg h2 { font-size: 24px; }
.article-body.fs-lg h3 { font-size: 18px; }

/* ========== 目录锚点导航（桌面端左侧浮动） ========== */
.article-toc {
  display: none;
  position: fixed;
  top: 96px;
  left: 24px;
  width: 220px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 16px 14px 16px 16px;
  border: 1px solid var(--gray-250);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.06);
  font-size: 13px;
}

.article-toc.show { display: block; }

.article-toc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.article-toc-list { list-style: none; margin: 0; padding: 0; }

.article-toc-list li { margin-bottom: 8px; line-height: 1.5; }

.article-toc-list a {
  display: block;
  color: var(--gray-500);
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  word-break: break-word;
}

.article-toc-list a:hover { color: var(--color-accent); }

.article-toc-list a.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  font-weight: 600;
}

/* h3 子项缩进 */
.article-toc-list a.toc-lvl-3 {
  padding-left: 20px;
  font-size: 12px;
  color: var(--gray-400);
}

/* ========== 分享按钮增强 ========== */
.share-btn-wechat { color: #07c160; }
.share-btn-wechat:hover { background: #07c160; border-color: #07c160; color: #fff; }

.share-btn-weibo { color: #e6162d; }
.share-btn-weibo:hover { background: #e6162d; border-color: #e6162d; color: #fff; }

/* ========== 微信二维码弹窗 ========== */
.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.qr-modal.show {
  opacity: 1;
  visibility: visible;
}

.qr-modal-box {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 0.25s;
}

.qr-modal.show .qr-modal-box { transform: translateY(0); }

.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.qr-modal-close:hover { color: var(--text-title); }

.qr-modal-box h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 18px;
}

.qr-modal-img {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.qr-modal-img img { display: block; width: 200px; height: 200px; }

.qr-modal-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== 响应式（阅读增强） ========== */
@media (max-width: 768px) {
  .article-tools { justify-content: center; }
  .qr-modal-box { padding: 24px 20px; }
  .qr-modal-img img { width: 180px; height: 180px; }
}

/* ========== 上一篇 / 下一篇 ========== */
.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 4px 0 24px;
}
.pager-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  box-sizing: border-box;
}
a.pager-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(26, 35, 50, .08);
  transform: translateY(-1px);
}
.pager-direction {
  font-size: 12px;
  color: var(--text-muted);
}
.pager-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pager-next { text-align: right; }
.pager-disabled { opacity: .55; cursor: default; }

/* ========== 作者资质信任模块 ========== */
.article-author-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 28px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #f8f9fb 0%, #fff 70%);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--color-primary);
  border-radius: 12px;
}
.author-avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar-fallback {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-info { flex: 1; min-width: 0; }
.author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.author-title {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-gray-light);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}
.author-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.author-bio {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-profile-link {
  font-size: 12.5px;
  color: var(--color-primary);
  text-decoration: none;
}
.author-profile-link:hover { text-decoration: underline; }
.author-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.author-actions .btn-solid,
.author-actions .btn-ghost {
  padding: 9px 20px;
  font-size: 13.5px;
  text-align: center;
  text-decoration: none;
}
@media (max-width: 640px) {
  .article-pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .article-author-card { flex-wrap: wrap; }
  .author-actions { flex-direction: row; width: 100%; }
  .author-actions .btn-solid,
  .author-actions .btn-ghost { flex: 1; }
}

/* ======================================================
   CMS 单页（law_page 模型）详情布局
   article_page.php 使用：主内容 + 侧栏（快速导航/团队律师/CTA）
   原模板依赖的 bootstrap 类（row/col-lg-9 等）已移除，改由本站样式承载
   ====================================================== */
.page-detail .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
  padding-top: 28px;
}
.page-detail .detail-main {
  min-width: 0;
}
.page-detail .detail-main .article-header {
  margin-bottom: 24px;
}
.page-detail .detail-side {
  min-width: 0;
}
.page-detail .detail-subnav {
  margin: 0;
  padding: 0;
}
.page-detail .detail-subnav li {
  margin-bottom: 2px;
}
.page-detail .detail-subnav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-body);
  transition: background 0.2s, color 0.2s;
}
.page-detail .detail-subnav a:hover {
  background: var(--bg-gray-light);
  color: var(--color-primary);
}
.page-detail .detail-side-lawyer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.page-detail .detail-side-lawyer:hover {
  background: var(--bg-gray-light);
}
.page-detail .detail-side-lawyer strong {
  font-size: 14px;
  color: var(--text-title);
  font-weight: 600;
}
.page-detail .detail-side-lawyer em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
}
.page-detail .detail-cta p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.page-detail .detail-cta-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}
@media (max-width: 1024px) {
  .page-detail .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
