/* ===========================================================
   opt.css — 2026-11-18 GEO/SEO 优化新增组件
   仅新增类，不覆盖既有类；除 .article-body 内的小节外均带命名空间
   =========================================================== */

/* ---------- 1. 文章「法规依据与官方入口」 ---------- */
.article-body .ref-block {
  margin: 34px 0 8px;
  padding: 22px 24px 18px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}
.article-body .ref-block h2 {
  font-size: 18px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.article-body .ref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.article-body .ref-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}
.article-body .ref-list a {
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid rgba(26, 58, 107, .28);
}
.article-body .ref-list a:hover { color: var(--accent-dark); border-bottom-color: currentColor; }
.article-body .ref-list a::after {
  content: "↗";
  font-size: 11px;
  margin-left: 2px;
  vertical-align: super;
  color: var(--text-mute);
}
.article-body .ref-list span { color: var(--text-sub); }
.article-body .ref-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.7;
}

/* ---------- 2. 非文章页 FAQ 区块 ---------- */
.faq-block { max-width: 860px; margin: 0 auto; }
.faq-block > h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  text-align: center;
  margin: 0 0 26px;
  color: var(--primary);
}
.faq-block .faq { margin: 0; }
.faq-block .faq-item { text-align: left; }

/* ---------- 3. 首页「按专题读」 ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.topic-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.topic-col h3 {
  margin: 0;
  font-size: 17px;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.topic-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.topic-col li { margin: 0; }
.topic-col li a {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  display: block;
  padding-left: 15px;
  position: relative;
}
.topic-col li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.topic-col li a:hover { color: var(--accent-dark); }
.topic-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ---------- 4. 关于页「资质核验与业务边界」 ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 46px;
}
.cred-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  padding: 24px 22px;
}
.cred-card h3 { margin: 0 0 12px; font-size: 16.5px; color: var(--primary); }
.cred-card p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--text-sub); }
.cred-card ul { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.9; color: var(--text-sub); }
.cred-card.warn { border-top-color: #d98b8b; }
.cred-card.warn h3 { color: #a8412f; }

/* ---------- 5. 联系页「咨询前准备」 ---------- */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 46px;
}
.prep-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  padding: 24px 24px 20px;
}
.prep-card h3 { margin: 0 0 14px; font-size: 16.5px; color: var(--primary); }
.prep-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prep-card li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
}
.prep-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ---------- 6. 知识库分组 ---------- */
.kb-group { margin-bottom: 46px; }
.kb-group:last-child { margin-bottom: 0; }
.kb-group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 19px;
  color: var(--primary);
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}
.kb-group-title::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: translateY(1px);
}
.kb-group-title em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-mute);
  margin-left: auto;
}

/* ---------- 7. 服务页「延伸阅读」（独立浅色区，置于 CTA 之前） ---------- */
.kb-more {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(34px, 4.4vw, 62px) 0;
}
.kb-more .container { display: block; }

.kb-inline {
  position: relative;
  background: linear-gradient(158deg, #fbfdff 0%, #f5f9fc 60%, #f2f7fb 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0 0 6px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
/* 左侧品牌金线 */
.kb-inline::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light) 55%, rgba(201, 168, 106, .18));
}

.kb-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 30px 18px;
  border-bottom: 1px solid var(--border);
}
.kb-head b {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 18px; font-weight: 700; letter-spacing: .01em;
  color: var(--primary-deep); line-height: 1.3;
}
.kb-head-en {
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  color: var(--gold-deep); text-transform: uppercase;
}
.kb-head-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: none; transition: color .2s ease, gap .2s ease;
}
.kb-head-all:hover { color: var(--accent-dark); gap: 10px; }

.kb-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kb-list li { margin: 0; min-width: 0; }
.kb-list li + li { border-left: 1px solid var(--border); }
.kb-list a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 26px 22px 30px;
  height: 100%;
  text-decoration: none;
  transition: background .2s ease;
}
.kb-list li + li a { padding-left: 26px; }
.kb-list a:hover { background: rgba(26, 58, 107, .035); }

.kb-num {
  flex: 0 0 auto; padding-top: 1px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--gold-deep);
}
.kb-t {
  font-size: 15px; line-height: 1.55; font-weight: 600;
  color: var(--primary); text-decoration: none;
  transition: color .2s ease;
}
.kb-list a:hover .kb-t { color: var(--accent-dark); }
.kb-arrow {
  flex: 0 0 auto; margin-left: auto; margin-top: 3px;
  color: var(--gold-deep); opacity: .5;
  transition: opacity .2s ease, transform .2s ease;
}
.kb-list a:hover .kb-arrow { opacity: 1; transform: translateX(3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .topic-grid, .cred-grid { grid-template-columns: minmax(0, 1fr); }
  .prep-grid { grid-template-columns: minmax(0, 1fr); }
  .kb-list { grid-template-columns: minmax(0, 1fr); }
  .kb-list li + li { border-left: 0; border-top: 1px solid var(--border); }
  .kb-list a, .kb-list li + li a { padding: 16px 24px 18px 26px; }
}
@media (max-width: 640px) {
  .article-body .ref-block { padding: 18px 16px 14px; }
  .article-body .ref-list li { font-size: 14px; }
  .kb-group-title { font-size: 17px; }
  .kb-head { padding: 18px 20px 15px; }
  .kb-head b { font-size: 16.5px; }
  .kb-head-en { display: none; }
  .kb-list a, .kb-list li + li a { padding: 15px 20px 16px 22px; }
  .kb-t { font-size: 14.5px; }
}

/* ---------- 5. 首页「常见问题与知识库」FAQ & Knowledge（版式对齐 chengli.sh.cn） ---------- */
.qa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.qa-main { min-width: 0; }
.qa-main .faq { max-width: none; margin: 0; }

.qa-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-sm);
}
.qa-side-title {
  font-size: 17px; line-height: 1.4; color: var(--primary-deep);
  margin: 0 0 6px;
}
.qa-side-sub {
  font-size: 13px; color: var(--text-sub);
  margin: 0 0 16px; line-height: 1.6;
}
.qa-links { list-style: none; margin: 0; padding: 0; }
.qa-links li + li { border-top: 1px dashed var(--border); }
.qa-links li a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0; text-decoration: none;
  color: var(--text); font-size: 14.5px; line-height: 1.55;
  transition: color .2s;
}
.qa-links li a:hover { color: var(--accent-dark); }
.qa-cat {
  flex: 0 0 auto; margin-top: 2px; padding: 2px 7px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--accent-dark); background: rgba(24, 164, 124, .08);
  border: 1px solid rgba(24, 164, 124, .18); white-space: nowrap;
}
.qa-txt { flex: 1 1 auto; min-width: 0; }
.qa-all {
  display: block; margin-top: 16px; padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 14.5px; font-weight: 600; color: var(--primary); text-decoration: none;
}
.qa-all:hover { color: var(--accent-dark); }

@media (max-width: 980px) {
  .qa-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .qa-side { padding: 22px 20px; }
}
@media (max-width: 560px) {
  .qa-side { padding: 20px 16px; }
  .qa-links li a { font-size: 14px; padding: 10px 0; }
  .qa-cat { font-size: 11px; padding: 2px 6px; }
}

/* ---------- 6. 联系页位置示意图（替代百度地图 iframe） ---------- */
.locmap {
  margin-top: 16px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  overflow: hidden; background: #f3f8fc; box-shadow: var(--shadow-sm);
}
.locmap-svg { display: block; width: 100%; height: auto; font-family: var(--font); }

.locmap-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 14px; flex-wrap: wrap; margin-top: 12px;
  font-size: 13px; line-height: 1.6; color: var(--text-mute);
}
.locmap-foot .lf-links { display: flex; gap: 16px; }
.locmap-foot a {
  color: var(--primary); font-weight: 600; text-decoration: none;
  border-bottom: 1px dashed rgba(26, 58, 107, .28); padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.locmap-foot a:hover { color: var(--accent-dark); border-bottom-color: rgba(14, 125, 94, .4); }

@media (max-width: 560px) {
  .locmap-foot { font-size: 12.5px; }
  .locmap-foot .lf-links { gap: 14px; }
}
