/* ---- 文章详情页专属样式（SSR 详情页与 JS 详情页共用） ---- */
.art-detail-page .page-banner { height: 120px; }
.art-detail-page .page-banner h1 { font-size: 28px; }
.art-detail-wrap { padding: 48px 0 80px; }

/* 栏目面包屑 */
.art-breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 24px;
  font-size: 14px; color: var(--text-light);
}
.art-breadcrumb a { color: var(--text-light); transition: color .2s; }
.art-breadcrumb a:hover { color: var(--accent); }
.art-breadcrumb .art-cat-link {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 3px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.art-breadcrumb .art-cat-link:hover { background: var(--accent-dark); }
.art-breadcrumb .sep { color: #ccc; }

/* 封面图 */
.art-cover-wrap { margin-bottom: 28px; border-radius: 12px; overflow: hidden; }
.art-cover-wrap img { width: 100%; display: block; }

/* 标题区 */
.art-header { border-bottom: 2px solid var(--border); padding-bottom: 24px; margin-bottom: 32px; }
.art-header h1 { font-size: 30px; color: var(--text-dark); font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.art-meta-row {
  display: flex; gap: 24px; font-size: 14px; color: var(--text-light);
  flex-wrap: wrap; align-items: center;
}
.art-meta-row span { display: flex; align-items: center; gap: 5px; }
.art-meta-row .art-cat-badge {
  display: inline-block; background: rgba(255,122,0,.1); color: var(--accent);
  padding: 2px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
}

/* 正文 */
.art-body { font-size: 16px; color: var(--text-body); line-height: 2; }
.art-body p { margin-bottom: 20px; }
.art-body h2 { font-size: 22px; color: var(--primary); font-weight: 700; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.art-body h3 { font-size: 18px; color: var(--text-dark); font-weight: 700; margin: 28px 0 12px; }
.art-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.art-body blockquote {
  background: var(--bg-light); border-left: 4px solid var(--accent);
  padding: 20px 24px; border-radius: 8px; margin: 24px 0;
  font-size: 15px; color: var(--text-body); font-style: italic;
}
.art-body ul, .art-body ol { margin: 16px 0 20px 20px; }
.art-body ul li { list-style: disc; margin-bottom: 8px; }
.art-body strong { color: var(--primary); }
.art-highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border-radius: 12px; padding: 24px 28px; margin: 32px 0; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.art-highlight p { color: rgba(255,255,255,.85); margin: 0; flex: 1; min-width: 220px; }
.art-highlight .art-hl-btn {
  display: inline-block; padding: 8px 18px;
  background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px;
  font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: all .2s; flex-shrink: 0;
}
.art-highlight .art-hl-btn:hover { background: rgba(255,122,0,.12); border-color: var(--accent); }
.art-seo-link { color: var(--accent); text-decoration: underline; }

/* 底部：分享 + 上下篇 + 相关文章 */
.art-footer-section { margin-top: 48px; }
.art-footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 2px solid var(--border); border-bottom: 2px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}
.art-share { display: flex; align-items: center; gap: 12px; }
.art-share span { font-size: 14px; color: var(--text-light); }
.art-share button {
  width: 36px; height: 36px; border-radius: 8px; background: var(--bg-light);
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: all .2s; color: var(--text-body);
}
.art-share button:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.art-tags { display: flex; gap: 10px; align-items: center; }
.art-tags span { font-size: 14px; color: var(--text-light); }
.art-tags a {
  display: inline-block; background: var(--bg-light); color: var(--primary);
  padding: 4px 14px; border-radius: 14px; font-size: 13px; text-decoration: none;
  transition: all .2s;
}
.art-tags a:hover { background: var(--accent); color: #fff; }

/* 上下篇导航 */
.art-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.art-pn-card {
  display: block; padding: 20px 24px; background: var(--bg-light); border-radius: 10px;
  text-decoration: none; transition: all .2s; border: 1px solid transparent;
}
.art-pn-card:hover { background: #fff; box-shadow: var(--shadow); border-color: var(--accent); }
.art-pn-card.disabled { opacity: .35; pointer-events: none; }
.art-pn-card .pn-label { font-size: 12px; color: var(--text-light); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.art-pn-card .pn-title {
  font-size: 15px; color: var(--primary); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-pn-next { text-align: right; }
.art-pn-next .pn-label { justify-content: flex-end; }

/* 相关文章 */
.art-related { margin-top: 40px; }
.art-related h3 { font-size: 20px; color: var(--primary); font-weight: 700; margin-bottom: 20px; }
.art-related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.art-related-item {
  display: flex; gap: 14px; padding: 16px; background: var(--bg-light);
  border-radius: 8px; text-decoration: none; transition: all .2s;
}
.art-related-item:hover { background: #fff; box-shadow: var(--shadow); }
.art-related-item .ri-num {
  width: 32px; height: 32px; border-radius: 8px; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.art-related-item .ri-info { flex: 1; min-width: 0; }
.art-related-item .ri-info .ri-title {
  font-size: 14px; color: var(--text-dark); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5;
}
.art-related-item .ri-info .ri-meta { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ---- 右侧栏 ---- */
.art-sidebar { position: sticky; top: 92px; }
.art-sidebar-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.art-sidebar-card h3 {
  font-size: 18px; color: var(--primary); font-weight: 700;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
/* 热门文章 */
.art-hot-list {}
.art-hot-item {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: all .2s;
}
.art-hot-item:last-child { border-bottom: none; }
.art-hot-item:hover .art-hot-title { color: var(--accent); }
.art-hot-item .hot-num {
  width: 26px; height: 26px; border-radius: 6px; background: var(--bg-light);
  color: var(--text-light); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.art-hot-item:nth-child(1) .hot-num,
.art-hot-item:nth-child(2) .hot-num,
.art-hot-item:nth-child(3) .hot-num { background: var(--accent); color: #fff; }
.art-hot-item .art-hot-info { flex: 1; min-width: 0; }
.art-hot-item .art-hot-title {
  font-size: 14px; color: var(--text-dark); font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.5; transition: color .2s;
}
.art-hot-item .art-hot-date { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* 咨询卡片 */
.art-consult-card { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.art-consult-card h3 { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
.art-consult-card p { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.8; margin-bottom: 16px; }
.art-consult-info { margin-bottom: 16px; }
.art-consult-info .aci-item {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 14px; color: rgba(255,255,255,.75);
}
.art-consult-info .aci-item .aci-icon { font-size: 16px; flex-shrink: 0; }
.art-consult-card .art-cta-btn {
  display: block; width: 100%; padding: 12px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 8px; font-size: 15px;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  transition: all .2s;
}
.art-consult-card .art-cta-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* 响应式 */
@media (max-width: 768px) {
  .art-detail-page .page-banner { height: 100px; }
  .art-detail-page .page-banner h1 { font-size: 22px; }
  .art-detail-wrap { padding: 24px 0 60px; }
  .article-layout { grid-template-columns: 1fr; }
  .art-sidebar { position: static; }
  .art-header h1 { font-size: 22px; }
  .art-meta-row { gap: 12px; font-size: 13px; }
  .art-body { font-size: 15px; }
  .art-prevnext { grid-template-columns: 1fr; gap: 12px; }
  .art-related-list { grid-template-columns: 1fr; }
  .art-footer-bar { flex-direction: column; align-items: flex-start; }
  .art-share { width: 100%; }
  .art-tags { width: 100%; }
}

/* ===== 评论区 ===== */
.art-comments { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border, #eee); }
.art-comments h3 { font-size: 19px; margin-bottom: 18px; display:flex; align-items:center; gap:8px; }
.cm-count { background: var(--accent); color:#fff; font-size: 13px; padding: 1px 9px; border-radius: 10px; }
.cm-list { display:flex; flex-direction:column; gap:16px; }
.cm-item { background: #f7f8fa; border-radius: 10px; padding: 14px 16px; }
.cm-item.cm-admin { background: #eef4ff; border:1px solid #d6e4ff; }
.cm-reply { margin-left: 36px; background:#fff; border:1px solid #eee; }
.cm-head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.cm-author { font-weight:600; color: var(--text); }
.cm-badge { background: var(--accent); color:#fff; font-size:11px; padding:1px 7px; border-radius:8px; }
.cm-time { margin-left:auto; font-size:12px; color: var(--text-light); }
.cm-body { line-height:1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.cm-empty { color:#999; text-align:center; padding: 24px 0; }
.cm-form { margin-top: 22px; display:flex; flex-direction:column; gap:10px; }
.cm-input { padding:10px 12px; border:1px solid #ddd; border-radius:8px; font-size:14px; max-width:280px; }
.cm-textarea { padding:12px; border:1px solid #ddd; border-radius:8px; font-size:14px; min-height:90px; resize:vertical; font-family:inherit; }
.cm-form-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.cm-tip { font-size:12px; color: var(--text-light); }
.cm-submit { background: var(--accent); color:#fff; border:none; padding:9px 22px; border-radius:8px; cursor:pointer; font-size:14px; }
.cm-submit:hover { opacity:.9; }
.cm-msg { font-size:13px; min-height:18px; }
.cm-msg.cm-ok { color: #2a9d57; }
.cm-msg.cm-err { color: #d9534f; }

/* ===== 分享模态框 ===== */
.share-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); display:none; align-items:center; justify-content:center; z-index:9999; }
.share-modal-overlay.show { display:flex; }
.share-modal { background:#fff; border-radius:14px; padding:28px 30px; width:320px; max-width:90vw; text-align:center; position:relative; }
.share-modal-close { position:absolute; top:10px; right:14px; border:none; background:none; font-size:20px; cursor:pointer; color:#999; }
.share-modal h3 { margin:0 0 16px; font-size:18px; }
.share-qr-wrap { background:#f7f8fa; border-radius:10px; padding:14px; display:flex; justify-content:center; }
.share-qr { width:180px; height:180px; }
.share-tip { margin:14px 0 18px; font-size:13px; color:#888; line-height:1.6; }
.share-copy { width:100%; padding:11px 0; border:none; border-radius:8px; background:var(--accent,#ff7a00); color:#fff; font-size:15px; cursor:pointer; font-weight:600; }
.share-copy:hover { opacity:.9; }

/* 微信内置浏览器分享引导层 */
.wx-guide-overlay { position:fixed; inset:0; background:rgba(0,0,0,.78); display:none; z-index:10000; }
.wx-guide-overlay.show { display:block; }
.wx-guide { position:absolute; top:0; right:0; padding:64px 22px 20px; text-align:right; color:#fff; max-width:300px; }
.wx-guide-arrow { font-size:46px; line-height:1; color:#fff; animation:wxBounce 1.3s infinite; }
.wx-guide-text { margin:10px 0 0 auto; font-size:16px; line-height:1.6; text-align:right; }
.wx-guide-sub { margin:10px 0 0 auto; font-size:13px; color:#ffd9b0; text-align:right; }
@keyframes wxBounce { 0%,100%{ transform:translate(0,0);} 50%{ transform:translate(6px,-10px);} }
@media (max-width: 768px) {
  .art-comments h3 { font-size:17px; }
  .cm-reply { margin-left: 18px; }
}
