/* agent-geo · AGENT信源群系统 前台公共样式 (V1.71 由 common_css + sidebar_css 抽离) */
:root {
  --primary: #4338ca;
  --primary-dark: #312e81;
  --accent: #ea580c;
  --bg: #ffffff;
  --surface: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg); color: var(--text); margin: 0; line-height: 1.7; font-size: 15px;
}
a { color: var(--primary); text-decoration: none; transition: .15s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--text); margin-top: 0; line-height: 1.3; }
h1 { font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }

.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 99; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 700; color: var(--primary); position: relative; display: inline-flex; align-items: center; text-decoration: none; }
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: -2px; }
/* V1.44 · Logo 双层：文字在下层，图片绝对定位覆盖上层；图挂了 onerror 隐藏 → 露出文字 */
.logo-text { display: inline-block; }
.logo-img { position: absolute; left: 0; top: 50%; transform: translateY(-50%); max-height: 40px; width: auto; max-width: 220px; object-fit: contain; background: transparent; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--text); padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a.active { background: var(--surface); color: var(--primary); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 8px 18px !important; border-radius: 6px !important; }
.nav-cta:hover { background: #c2410c; }
/* V1.64 · 移动端汉堡按钮（默认隐藏，窄屏显示） */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; padding: 10px 16px; }
  .nav-toggle { display: inline-flex; }
  /* 窄屏下菜单折叠为下拉面板，避免挤压重叠 */
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15,23,42,.10);
    padding: 6px 0; z-index: 98;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 20px; border-radius: 0; font-size: 15px; }
  .nav a.active { background: var(--surface); }
  .nav-cta { margin: 8px 16px; text-align: center; padding: 12px 18px !important; border-radius: 8px !important; }
}
/* 平板：菜单项略缩，避免过窄仍挤 */
@media (max-width: 920px) and (min-width: 769px) {
  .nav a { padding: 8px 10px; font-size: 13px; }
  .header-inner { padding: 12px 18px; }
}

.footer { background: #1e293b; color: #cbd5e1; padding: 50px 24px 30px; margin-top: 0; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.footer a { color: #94a3b8; display: block; padding: 4px 0; font-size: 13px; }
.footer a:hover { color: var(--primary); }
.footer .copy { max-width: 1200px; margin: 30px auto 0; padding-top: 24px; border-top: 1px solid #334155; text-align: center; font-size: 12.5px; }

/* V1.15 · footer 紧贴 main：main 末尾自带 padding-bottom 由 .footer 接管 */
main { padding: 0; }
main > section:last-child,
main > div:last-child,
main > .section:last-child { margin-bottom: 0; padding-bottom: 0; }

.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 60px 28px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: 40px; margin: 0 0 16px; line-height: 1.2; }
.hero p { font-size: 16px; opacity: .9; margin: 0 0 24px; }
.hero-cta { background: var(--accent); color: #fff; padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 600; display: inline-block; }
.hero-cta:hover { background: #c2410c; color: #fff; transform: translateY(-2px); }
@media (max-width: 768px) { .hero-inner { grid-template-columns: 1fr; } .hero h1 { font-size: 28px; } }

.section { padding: 60px 28px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin: 0 0 8px; }
.section-title p { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 768px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px; transition: .2s; }
.card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(67,56,202,.1); }
.card img { border-radius: 6px; margin-bottom: 12px; }
/* V1.39 · 首页「⭐ 推荐阅读」网格卡片图片等高（.grid-3 > .card-featured > img）
   固定高度 + object-fit:cover 裁剪，防止不同封面尺寸导致卡片高度错位 */
.grid-3 > .card-featured > img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card h3 { margin: 0 0 8px; }
.card .meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.card .cta { color: var(--primary); font-weight: 500; }

.btn-large { background: var(--primary); color: #fff; padding: 14px 36px; border-radius: 8px; display: inline-block; font-weight: 600; }
.btn-large:hover { background: var(--primary-dark); color: #fff; }

.list-page { padding: 30px 28px 60px; }
.list-page-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
@media (max-width: 920px) { .list-page-inner { grid-template-columns: 1fr; } }
.list-main { min-width: 0; }
.sidebar-cat { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.sidebar-cat h4 { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.sidebar-cat a { display: block; padding: 8px 12px; color: var(--text); border-radius: 6px; font-size: 14px; }
.sidebar-cat a:hover, .sidebar-cat a.active { background: var(--surface); color: var(--primary); }
.list-item { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.list-item img { border-radius: 6px; height: 110px; object-fit: cover; }
.list-item .meta { color: var(--muted); font-size: 12px; }
.list-item h3 { margin: 4px 0 8px; }
.list-item .summary { color: var(--muted); font-size: 14px; }
@media (max-width: 768px) { .list-item { grid-template-columns: 1fr; } }

.detail-page { padding: 40px 28px; }
.detail-inner { max-width: 1180px; margin: 0 auto; }
.detail-inner.h1 { font-size: 32px; margin: 0 0 14px; }
.detail-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 920px) { .detail-with-sidebar { grid-template-columns: 1fr; } }
.detail-main { min-width: 0; }
.detail-inner h1 { font-size: 32px; margin: 0 0 14px; }
.detail-meta { color: var(--muted); font-size: 13px; margin: 16px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-body { font-size: 16px; line-height: 1.9; }
.article-body p { margin: 16px 0; }
.article-body h2, .article-body h3 { margin: 28px 0 12px; }
.article-body img { border-radius: 6px; margin: 16px auto; }

.team-card { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.team-card img { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; }
.team-card .title { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }

/* V1.15 · 团队列表加宽：4 列 → 3 列，padding 加大；hover 浮起效果 */
.team-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-list-grid { grid-template-columns: 1fr; } }
.team-card-rich {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 24px; text-align: center;
  transition: all .25s; position: relative; overflow: hidden;
}
.team-card-rich::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 84px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #4338ca) 100%);
  opacity: .08; pointer-events: none;
}
.team-card-rich:hover {
  transform: translateY(-4px); border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(67,56,202,.14);
}
.team-card-rich .tc-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  margin: 0 auto 16px; overflow: hidden;
  background: var(--surface); border: 4px solid #fff;
  box-shadow: 0 6px 20px rgba(15,23,42,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: var(--primary); font-weight: 700;
  position: relative;
}
.team-card-rich .tc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card-rich .tc-name { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.team-card-rich .tc-title { font-size: 13px; color: var(--primary); margin-bottom: 14px; font-weight: 500; }
.team-card-rich .tc-intro { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 16px; min-height: 44px; }
.team-card-rich .tc-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 13px; font-weight: 500; text-decoration: none; padding: 6px 14px; background: rgba(59,130,246,.08); border-radius: 99px; transition: .15s; }
.team-card-rich .tc-link:hover { background: var(--primary); color: #fff; }

/* V1.15 · 团队详情：大头像 + 信息卡 + 时间线 */
.team-detail-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  padding: 60px 28px 40px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.team-detail-hero .tdh-avatar {
  width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--surface); border: 6px solid #fff; overflow: hidden;
  box-shadow: 0 12px 36px rgba(15,23,42,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--primary); font-weight: 700;
}
.team-detail-hero .tdh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-detail-hero h1 { margin: 0 0 8px; font-size: 30px; }
.team-detail-hero .tdh-title { color: var(--primary); font-size: 15px; font-weight: 500; margin-bottom: 18px; }
.team-detail-hero .tdh-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.team-detail-hero .tdh-tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(59,130,246,.1); color: var(--primary);
  border-radius: 99px; font-size: 12.5px;
}
.team-detail-body { max-width: 880px; padding: 48px 28px 56px; margin: 0 auto; }
.team-detail-body h2 {
  font-size: 20px; font-weight: 700; color: var(--text);
  margin: 36px 0 16px; padding-left: 14px;
  border-left: 4px solid var(--primary); line-height: 1.4;
}
.team-detail-body h2:first-child { margin-top: 0; }
.team-detail-body p { margin: 14px 0; line-height: 1.85; color: #334155; font-size: 15.5px; }
.team-detail-cta-card {
  margin: 48px auto 0; max-width: 560px;
  padding: 28px 32px; text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #4338ca) 100%);
  color: #fff; border-radius: 14px; box-shadow: 0 12px 28px rgba(67,56,202,.18);
}
.team-detail-cta-card h3 { margin: 0 0 6px; color: #fff; font-size: 18px; }
.team-detail-cta-card p { color: rgba(255,255,255,.85); margin: 0 0 18px; font-size: 13.5px; }
.team-detail-back { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* V1.15 · 资讯列表重设计：左侧主列表 + 右侧粘性侧栏 */
.article-list-card {
  display: flex; gap: 18px;
  padding: 18px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px;
  transition: all .2s;
}
.article-list-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(67,56,202,.08); transform: translateY(-1px); }
.article-list-card .alc-body { flex: 1; min-width: 0; }
.article-list-card .alc-title {
  font-size: 17px; font-weight: 600; color: var(--text);
  line-height: 1.5; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-list-card:hover .alc-title { color: var(--primary); }
.article-list-card .alc-summary {
  font-size: 13.5px; color: var(--muted); line-height: 1.7;
  margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-list-card .alc-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted-2, #94a3b8); flex-wrap: wrap; }
.article-list-card .alc-meta .al-tag {
  display: inline-block; padding: 2px 10px;
  background: rgba(59,130,246,.08); color: var(--primary);
  border-radius: 99px; font-size: 11.5px;
}
.article-list-card .alc-thumb {
  flex-shrink: 0; width: 168px; height: 112px;
  border-radius: 10px; object-fit: cover; background: var(--surface);
}
@media (max-width: 600px) {
  .article-list-card { flex-direction: column-reverse; }
  .article-list-card .alc-thumb { width: 100%; height: 180px; }
}

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat-tab {
  display: inline-block; padding: 7px 18px;
  background: #fff; border: 1px solid var(--border);
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  border-radius: 99px; text-decoration: none;
  transition: all .15s;
}
.cat-tab:hover { color: var(--primary); border-color: var(--primary); }
.cat-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* 侧栏粘性 */
.sidebar-col { position: sticky; top: 84px; align-self: start; }
.sidebar-block {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 14px;
}
.sub-h { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.top-list, .latest-list { list-style: none; padding: 0; margin: 0; }
.top-list li, .latest-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
}
.top-list li:last-child, .latest-list li:last-child { border-bottom: none; }
.top-list .rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--surface); color: var(--muted);
  font-size: 11.5px; font-weight: 700; flex-shrink: 0;
}
.top-list .rank:nth-child(-n+3) { background: var(--accent); color: #fff; }
.top-list .rank-title { font-size: 13.5px; color: var(--text); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.top-list a:hover .rank-title { color: var(--primary); }
.rank-meta { font-size: 11.5px; color: var(--muted-2, #94a3b8); margin-top: 2px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 99px;
  font-size: 12.5px; color: var(--muted); text-decoration: none;
  transition: .15s;
}
.tag-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-pill .tag-count {
  background: rgba(255,255,255,.5); padding: 0 6px;
  border-radius: 99px; font-size: 11px;
}
.tag-pill:hover .tag-count { background: rgba(255,255,255,.2); color: #fff; }

.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 22px; margin-bottom: 10px; }
.faq-item .q { font-weight: 600; font-size: 16px; cursor: pointer; color: var(--text); }
.faq-item .a { color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: none; }
.faq-item.open .a { display: block; }
.faq-item .q::after { content: '+'; float: right; color: var(--primary); font-weight: 400; }
.faq-item.open .q::after { content: '-'; }

.form-section { padding: 40px 28px; }
.form-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
.form-card h2 { margin: 0 0 18px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 5px; font-weight: 500; color: var(--text); }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; transition: .15s; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(67,56,202,.15); }

/* 三个转化组件复用通用模板样式（自动 fallback） */
.conversion-wechat { position: fixed; right: 20px; bottom: 24px; z-index: 998; }
.wf-toggle { background: var(--primary); color: #fff; border: 0; padding: 12px 22px; border-radius: 28px; cursor: pointer; box-shadow: 0 4px 16px rgba(67,56,202,.4); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; transition: .2s; }
.wf-toggle:hover { background: var(--primary-dark); transform: translateY(-2px); }
.wf-panel { position: absolute; right: 0; bottom: 60px; width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.15); padding: 22px; display: none; text-align: center; }
.wf-panel.open { display: block; }
.wf-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.wf-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.wf-qr, .wf-qr-placeholder { width: 180px; height: 180px; border-radius: 8px; margin: 0 auto 12px; }
.wf-qr { object-fit: contain; }
.wf-qr-placeholder { background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.wf-id { font-size: 13px; color: var(--muted); }
.wf-close { position: absolute; top: 8px; right: 12px; background: 0; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; }

.conversion-popup { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; z-index: 999; }
.conversion-popup.show { display: flex; }
.cp-card { background: #fff; border-radius: 16px; padding: 32px; max-width: 380px; width: 90%; position: relative; }
.cp-close { position: absolute; top: 12px; right: 16px; background: 0; border: 0; font-size: 22px; cursor: pointer; color: #94a3b8; }
.cp-title { margin: 0 0 6px; font-size: 22px; }
.cp-sub { color: #64748b; margin: 0 0 18px; }
.cp-card input, .cp-card textarea { width: 100%; padding: 11px 14px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.cp-card input:focus, .cp-card textarea:focus { outline: none; border-color: var(--primary); }
.cp-submit { width: 100%; padding: 13px; background: var(--primary); color: #fff; border: 0; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.cp-tips { text-align: center; font-size: 12px; color: #94a3b8; margin: 12px 0 0; }

.conversion-banner { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); color: #fff; z-index: 997; padding: 10px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.cb-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cb-text strong { font-size: 14px; }
.cb-text span { font-size: 12px; opacity: .85; margin-left: 10px; }
.cb-actions { display: flex; align-items: center; gap: 12px; }
.cb-qr { width: 28px; height: 28px; border-radius: 4px; }
.cb-btn { background: #fff; color: var(--primary); border: 0; padding: 6px 14px; border-radius: 4px; font-weight: 500; cursor: pointer; font-size: 13px; }
.cb-close { background: 0; border: 0; color: #fff; font-size: 18px; cursor: pointer; opacity: .7; }
@media (max-width: 768px) { .cb-text span { display: none; } }

/* ============================================================
 * V1.4 通用骨架配套样式（KPI / 双列 / 推荐卡 / 问答卡 / 排行榜）
 * ============================================================ */
.kpi-section { background: linear-gradient(180deg, var(--surface), #ffffff); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; text-align: center; transition: .2s; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(67,56,202,.1); border-color: var(--primary); }
.kpi-num { font-size: 40px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.kpi-label { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.kpi-link { font-size: 13px; font-weight: 500; }
.kpi-card.kpi-cta { background: var(--accent); color:#fff; }
.kpi-card.kpi-cta .kpi-num,
.kpi-card.kpi-cta .kpi-label,
.kpi-card.kpi-cta .kpi-link { color:#fff; }
.kpi-card.kpi-cta .kpi-link { text-decoration: underline; }
@media (max-width: 920px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpi-grid { grid-template-columns: 1fr; } }

.brand-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.meta-pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); }

.card-featured { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb, #fff); position: relative; }
.card-featured::before { content: '⭐ 推荐'; position: absolute; top: 12px; right: 12px; background: #f59e0b; color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.card-summary { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 6px 0 12px; }

/* 双列布局（最新文章+排行 / 推荐问答+热门问答 共用） */
.dual-col { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.dual-col-side { background: var(--surface); border-radius: 14px; padding: 24px; }
@media (max-width: 920px) { .dual-col { grid-template-columns: 1fr; } .dual-col-side { order: -1; } }
.sub-h { margin: 0 0 14px; font-size: 18px; color: var(--text); }
.sec-more { text-align: center; margin-top: 28px; }
.sec-more a { color: var(--primary); font-weight: 500; }

/* 文章双列里的 left list */
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { border-bottom: 1px solid var(--border); }
.article-list li:last-child { border-bottom: 0; }
.article-list a { display: grid; grid-template-columns: 1fr 130px; gap: 16px; padding: 16px 0; color: var(--text); }
.article-list a:hover .al-title { color: var(--primary); }
.al-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.al-summary { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.al-meta { color: var(--muted); font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.al-tag { background: #fef3c7; color: #b45309; padding: 1px 8px; border-radius: 999px; font-weight: 500; }
.al-thumb { width: 130px; height: 90px; object-fit: cover; border-radius: 6px; }
@media (max-width: 600px) { .article-list a { grid-template-columns: 1fr; } .al-thumb { display: none; } }

/* 阅读排行 */
.top-list { list-style: none; padding: 0; margin: 0; counter-reset: trk; }
.top-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #cbd5e1; align-items: center; }
.top-list li:last-child { border-bottom: 0; }
.top-list .rank { flex: 0 0 30px; height: 28px; line-height: 28px; text-align: center; border-radius: 6px; font-weight: 700; font-size: 13px; background: #cbd5e1; color: #fff; font-variant-numeric: tabular-nums; }
.top-list li:nth-child(1) .rank { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.top-list li:nth-child(2) .rank { background: linear-gradient(135deg, #f97316, #ea580c); }
.top-list li:nth-child(3) .rank { background: linear-gradient(135deg, #f59e0b, #d97706); }
.top-list a { flex: 1; display: block; color: var(--text); }
.top-list a:hover .rank-title { color: var(--primary); }
.rank-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; line-height: 1.5; }
.rank-meta { color: var(--muted); font-size: 12px; }

/* 问答 */
.faq-stack { display: flex; flex-direction: column; gap: 10px; }
.faq-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.faq-card[open] { border-color: var(--primary); }
.faq-card summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-q { font-weight: 600; color: var(--text); font-size: 15px; }
.faq-eyebrow { background: #fef3c7; color: #b45309; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.faq-a { color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); line-height: 1.8; font-size: 14px; }
.faq-popular { list-style: none; padding: 0; margin: 0; }
.faq-popular li { border-bottom: 1px dashed #cbd5e1; }
.faq-popular li:last-child { border-bottom: 0; }
.faq-popular a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--text); }
.faq-popular .qp-q { font-size: 14px; flex: 1; line-height: 1.5; }
.faq-popular .qp-meta { color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* 团队 */
.team-card-fallback { width: 100px; height: 100px; border-radius: 50%; background: var(--surface); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--primary); font-weight: 700; }

/* Hero 内嵌子元素 */
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.55); }
.hero-cta-ghost:hover { background: rgba(255,255,255,.12); color: #fff !important; }
.hero-figure { display: flex; justify-content: center; align-items: center; }
.hero-figure-fallback { font-size: 96px; background: rgba(255,255,255,.12); width: 240px; height: 240px; border-radius: 32px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }

/* Hero 来自 hero_blocks 渲染时的样式 */
.hero-rich { background: var(--hero-bg, #1e40af); color: #fff; padding: 60px 28px; }
.hero-rich .hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-rich .hero-title { color: #fff; font-size: 40px; margin: 0 0 14px; line-height: 1.2; font-weight: 700; }
.hero-rich .hero-sub { font-size: 16px; opacity: .92; margin: 0 0 24px; color: #fff; }
.hero-rich .hero-btn { background: var(--accent); color: #fff; padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 600; display: inline-block; }
.hero-rich .hero-btn:hover { background: #c2410c; }
.hero-right img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.18); }
@media (max-width: 768px) { .hero-rich .hero-inner { grid-template-columns: 1fr; } .hero-rich .hero-title { font-size: 28px; } }

/* V1.10 升级：纯图模式固定兼顾桌面/移动端的合适高度 · 用 clamp() 自适应
 *   - 桌面：280px~520px（看屏高，最常见 50vh ≈ 540，取上限 520 防超屏）
 *   - 移动：220px~360px
 *   - 图片 100% × 100% + object-fit:cover 保证铺满不变形
 */
/* V1.11 #11：前台 Hero 纯图模式改 background-image + background-size:cover
   - 固定高度：桌面端 clamp(320, 56vh, 560)、移动端 clamp(220, 42vh, 380)
   - 图片 cover 铺满 → 无变形、无留白
   - background-position:center 默认居中
   - 不再用 <img>，避免右侧有时多出 4px 间隙（baseline 对齐）
*/
.hero-image {
  width: 100%;
  height: clamp(320px, 56vh, 560px);
  background-color: var(--hero-bg, #f5f7fa);
  background-image: var(--hero-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: block;
  position: relative;
}
@media (max-width: 768px) {
  .hero-image { height: clamp(220px, 42vh, 380px); }
}
@media (max-width: 480px) {
  .hero-image { height: clamp(200px, 38vh, 320px); }
}

/* Hero 未配置/未启用时的兜底块（V1.6 新增 · 修复"内页广告未启用文字跑版"）
   - 纯左对齐、单列布局、无配图
   - 标题居中且不溢出
   - 副标题居中且不遮挡
   - 移动端自动收缩内边距 + 字号 */
.hero-fallback { background: var(--hero-bg, #1e40af); color: #fff; padding: 50px 28px; text-align: center; }
.hero-fallback .hero-inner { max-width: 900px; margin: 0 auto; display: block; }
.hero-fallback .hero-left { display: block; text-align: center; }
.hero-fallback .hero-title {
  color: #fff; font-size: 32px; margin: 0 0 12px; line-height: 1.3; font-weight: 700;
  word-break: break-word; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-fallback .hero-sub { color: rgba(255,255,255,.92); font-size: 15px; margin: 0; line-height: 1.7; }
@media (max-width: 768px) {
  .hero-fallback { padding: 36px 18px; }
  .hero-fallback .hero-title { font-size: 22px; -webkit-line-clamp: 3; }
  .hero-fallback .hero-sub { font-size: 14px; }
}

/* 区块 CTA */
.hero-cta-section { text-align: center; }

/* 内容空兜底 */
.empty-block { max-width: 480px; margin: 0 auto; text-align: center; padding: 30px 20px; background: var(--surface); border-radius: 14px; }
.empty-emoji { font-size: 64px; margin-bottom: 16px; }
.empty-block h3 { margin: 0 0 8px; }
.empty-block p { color: var(--muted); margin: 0; }

/* ============================================================
 * V1.5 侧栏 / 标签云 / 相关阅读 / 类目 chip / 分页
 * ============================================================ */
.sidebar-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sidebar-block { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.sidebar-block .sub-h { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600; }

/* 类目 chip 条 */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-tab { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text); font-size: 13px; transition: .15s; }
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; background: var(--surface); color: var(--text); border-radius: 999px; font-size: 12.5px; border: 1px solid transparent; transition: .15s; line-height: 1.5; }
.tag-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-count { display: inline-block; min-width: 18px; text-align: center; padding: 0 5px; background: rgba(67,56,202,.12); color: var(--primary); border-radius: 999px; font-size: 11px; font-variant-numeric: tabular-nums; }
.tag-pill:hover .tag-count { background: rgba(255,255,255,.25); color: #fff; }

/* 详情页标签条 */
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 30px 0 0; padding: 16px 0; border-top: 1px solid var(--border); }
.tag-label { color: var(--muted); font-size: 13px; margin-right: 4px; }

/* 最新列表 */
.latest-list { list-style: none; padding: 0; margin: 0; }
.latest-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #e2e8f0; }
.latest-list li:last-child { border-bottom: 0; }
.latest-list a { flex: 1; color: var(--text); font-size: 13.5px; line-height: 1.5; }
.latest-list a:hover { color: var(--primary); }

/* 关联阅读网格 */
.related-section { margin: 40px 0 0; padding-top: 30px; border-top: 1px solid var(--border); }
.related-h { font-size: 20px; margin: 0 0 18px; }
.related-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; transition: .2s; color: var(--text); }
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(67,56,202,.1); }
.related-thumb { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; background: var(--surface); }
.related-thumb-empty { display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--muted); }
.related-title { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-meta { color: var(--muted); font-size: 12px; }

/* 相关问答（紧凑列表） */
.related-list-compact { list-style: none; padding: 0; margin: 0; }
.related-compact-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; color: var(--text); margin-bottom: 8px; transition: .15s; }
.related-compact-item:hover { border-color: var(--primary); color: var(--primary); }
.rc-q { flex: 1; font-size: 14px; line-height: 1.5; }
.rc-meta { color: var(--muted); font-size: 12px; flex-shrink: 0; align-self: center; }

/* 分页 */
.pagination { font-size: 14px; }
.pagination .page-link { padding: 7px 16px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--primary); }
.pagination .page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-cur { padding: 7px 14px; color: var(--muted); }

/* ===== 侧边栏（sidebar_css 抽离）===== */
/* ============================================================
 * V1.33 共享侧栏 + 问答/团队列表/详情布局
 * V1.35 起全站统一使用（仅 common 通用模板）
 * 依赖 Theme::style() 注入的 CSS 变量（--primary/--accent/--text/--muted/--border/--surface）
 * ============================================================ */

/* ---- 主区 + 右侧栏两栏网格 ---- */
.faq-with-sidebar, .team-with-sidebar, .team-detail-with-sidebar {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start;
}
@media (max-width: 920px) {
  .faq-with-sidebar, .team-with-sidebar, .team-detail-with-sidebar { grid-template-columns: 1fr; }
}
.list-main, .detail-main { min-width: 0; }

/* ---- 右侧粘性栏 ---- */
.sidebar-col { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sidebar-block { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.sidebar-block .sub-h {
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 600; color: var(--text);
}
.top-list, .latest-list { list-style: none; padding: 0; margin: 0; }
.top-list li, .latest-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.top-list li:last-child, .latest-list li:last-child { border-bottom: 0; }
.top-list .rank {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 5px; background: var(--surface, #f1f5f9); color: var(--muted); font-size: 11.5px; font-weight: 700; flex-shrink: 0;
}
.top-list li:nth-child(1) .rank { background: var(--primary); color: #fff; }
.top-list li:nth-child(2) .rank { background: var(--primary); color: #fff; opacity: .85; }
.top-list li:nth-child(3) .rank { background: var(--primary); color: #fff; opacity: .7; }
.top-list a, .latest-list a { flex: 1; color: var(--text); text-decoration: none; }
.rank-title { font-size: 13.5px; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-list a:hover .rank-title { color: var(--primary); }
.latest-list a { font-size: 13.5px; line-height: 1.5; }
.latest-list a:hover { color: var(--primary); }
.rank-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---- 问答参考列表（左侧，点击进详情） ---- */
.faq-ref-list { display: flex; flex-direction: column; gap: 12px; }
.faq-ref-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; color: var(--text); text-decoration: none; transition: all .2s;
}
.faq-ref-item:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: 0 6px 20px rgba(15,23,42,.07); }
.faq-ref-item .q-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); font-size: 15px; font-weight: 700;
}
.faq-ref-item .q-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.6; }
.faq-ref-item .q-badge {
  flex-shrink: 0; padding: 2px 9px; border-radius: 99px; font-size: 11px;
  background: color-mix(in srgb, var(--accent, #fbbf24) 20%, #fff); color: var(--accent, #b45309); font-weight: 600;
}
.faq-ref-item .q-arrow { color: var(--muted); flex-shrink: 0; font-size: 16px; }

/* ---- 团队横排（每人一行：左头像右姓名/职务/擅长） ---- */
.team-row-list { display: flex; flex-direction: column; gap: 14px; }
.team-row {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; color: var(--text); text-decoration: none; transition: all .2s;
}
.team-row:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.team-row .tr-avatar {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--surface, #f1f5f9); border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--primary); font-weight: 700;
}
.team-row .tr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-row .tr-info { flex: 1; min-width: 0; }
.team-row .tr-name { font-size: 17px; font-weight: 700; color: var(--text); }
.team-row .tr-title { color: var(--primary); font-size: 13px; font-weight: 500; margin: 3px 0 6px; }
.team-row .tr-specialty { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.team-row .tr-arrow { color: var(--muted); flex-shrink: 0; font-size: 16px; }

/* ---- 团队详情：擅长一句话 + 左右布局 ---- */
.team-detail-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.tdh-specialty-line {
  margin: 14px auto 0; max-width: 720px;
  padding: 14px 20px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, #fff);
  color: var(--text); font-size: 14.5px; line-height: 1.75; text-align: center;
}
