/* ==========================================================
   guide.css — 选型指南 / 知识库页面专用样式
   仅作用于 /guide/ 下的页面，不覆盖 site.css 任何既有规则
   ========================================================== */

/* ---------- 面包屑 ---------- */
.gt-crumb {
  background: #fff;
  border-bottom: 1px solid var(--line, #eef0f3);
}
.gt-crumb .container {
  max-width: 900px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-sub, #6b7280);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gt-crumb a { color: var(--text-sub, #6b7280); text-decoration: none; }
.gt-crumb a:hover { color: var(--brand-blue, #165DFF); }
.gt-crumb span { opacity: .45; }
.gt-crumb em { font-style: normal; color: var(--text, #1a1d21); font-weight: 700; }

/* ---------- 正文容器 ---------- */
.gt-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text, #2b3038);
}
.gt-body p { margin: 0 0 18px; }
.gt-body strong, .gt-body b { font-weight: 700; color: #14181d; }
.gt-body a { color: var(--brand-blue, #165DFF); text-decoration: none; border-bottom: 1px solid rgba(22, 93, 255, .28); }
.gt-body a:hover { border-bottom-color: var(--brand-blue, #165DFF); }

.gt-body h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--brand-blue, #165DFF);
  color: #14181d;
}
.gt-body h2:first-of-type { margin-top: 8px; }
.gt-body h3 {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.6;
  margin: 30px 0 12px;
  color: #14181d;
}

.gt-lead { font-size: 15px; color: var(--text-sub, #5b6270); line-height: 1.9; }

/* ---------- 答案胶囊（AI 摘取友好） ---------- */
.gt-capsule {
  position: relative;
  background: linear-gradient(180deg, #f5f8ff 0%, #f8fbff 100%);
  border: 1px solid #dbe6ff;
  border-left: 4px solid var(--brand-blue, #165DFF);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px 22px;
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.9;
  color: #212936;
}
.gt-capsule-lb {
  display: table;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: var(--brand-blue, #165DFF);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ---------- 小节标题（非 h2 语义块） ---------- */
.gt-head {
  max-width: 820px;
  margin: 0 auto 18px;
}
.gt-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #14181d;
  line-height: 1.5;
}

/* ---------- 列表 ---------- */
.gt-body ul, .gt-body ol { margin: 0 0 20px; padding-left: 22px; }
.gt-body li { margin-bottom: 9px; }
.gt-body ul li::marker { color: var(--brand-blue, #165DFF); }

/* ---------- 表格 ---------- */
.gt-table-wrap { overflow-x: auto; margin: 0 0 24px; border-radius: 10px; border: 1px solid #e6e9ee; }
.gt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.75;
  background: #fff;
  min-width: 520px;
}
.gt-table th {
  background: #f4f7fb;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  color: #2b3038;
  border-bottom: 1px solid #e6e9ee;
  white-space: nowrap;
}
.gt-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f3;
  vertical-align: top;
  color: #3a4048;
}
.gt-table tr:last-child td { border-bottom: none; }

/* ---------- 步骤 ---------- */
.gt-steps { counter-reset: gtstep; margin: 0 0 24px; padding: 0; list-style: none; }
.gt-steps li {
  counter-increment: gtstep;
  position: relative;
  padding: 0 0 18px 46px;
  margin: 0;
  border-left: 2px solid #e6ecf5;
  margin-left: 15px;
}
.gt-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.gt-steps li::before {
  content: counter(gtstep);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--brand-blue, #165DFF);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gt-steps li b { display: block; margin-bottom: 4px; }

/* ---------- 提示框 ---------- */
.gt-tip {
  background: #fffaf0;
  border: 1px solid #f3e2bd;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: #5c4a17;
}
.gt-tip b { color: #3d3009; }
.gt-warn {
  background: #fdf3f2;
  border: 1px solid #f4d4d0;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: #6b221b;
}
.gt-warn b { color: #4a140f; }

/* ---------- CTA ---------- */
.gt-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #165DFF 0%, #124cd1 100%);
  border-radius: 12px;
  padding: 24px 26px;
  margin: 36px 0 0;
  color: #fff;
}
.gt-cta b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.gt-cta span { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.gt-cta .btn { flex: 0 0 auto; background: #fff; color: #165DFF !important; border: none; }
.gt-cta .btn:hover { background: #f0f5ff; }

/* ---------- 卡片网格（索引页） ---------- */
.gt-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 8px auto 0;
}
.gt-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.gt-card:hover {
  box-shadow: 0 8px 24px rgba(22, 93, 255, .1);
  border-color: #c3d6ff;
  transform: translateY(-2px);
}
.gt-card-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue, #165DFF);
  background: #eef4ff;
  padding: 3px 9px;
  border-radius: 4px;
}
.gt-card b { font-size: 16.5px; font-weight: 700; color: #14181d; line-height: 1.5; }
.gt-card span:last-child { font-size: 13.5px; color: var(--text-sub, #6b7280); line-height: 1.75; }

/* ---------- 相关阅读 ---------- */
.gt-rel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.gt-rel a {
  display: block;
  padding: 16px 18px;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}
.gt-rel a:hover { border-color: #c3d6ff; box-shadow: 0 4px 14px rgba(22, 93, 255, .08); }
.gt-rel b { display: block; font-size: 15px; font-weight: 700; color: #14181d; margin-bottom: 5px; line-height: 1.5; }
.gt-rel span { font-size: 13px; color: var(--text-sub, #6b7280); line-height: 1.7; }

.gt-note {
  max-width: 820px;
  margin: 28px auto 0;
  font-size: 13px;
  line-height: 1.85;
  color: #8a919c;
  padding-top: 18px;
  border-top: 1px solid #eef0f3;
}

/* ---------- FAQ：默认展开，答案始终可见（GEO 要求内容可直接读取） ---------- */
.gt-faq { max-width: 820px; margin: 0 auto; }
.gt-faq-item {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
}
.gt-faq-q {
  font-size: 16px;
  font-weight: 700;
  color: #14181d;
  line-height: 1.65;
  margin-bottom: 10px;
  position: relative;
  padding-left: 24px;
}
.gt-faq-q::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: #eef4ff;
  color: var(--brand-blue, #165DFF);
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.gt-faq-a {
  font-size: 15px;
  line-height: 1.92;
  color: #3d434d;
  padding-left: 24px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
  .gt-body { font-size: 15.5px; line-height: 1.9; padding: 0 2px; }
  .gt-body h2 { font-size: 19px; margin-top: 34px; }
  .gt-body h3 { font-size: 16.5px; }
  .gt-capsule { padding: 16px 18px 18px; font-size: 15.5px; }
  .gt-cards, .gt-rel { grid-template-columns: 1fr; gap: 12px; }
  .gt-cta { padding: 20px; gap: 16px; }
  .gt-cta .btn { width: 100%; text-align: center; }
  .gt-table { font-size: 13.5px; }
}

/* ===== 移动端表格适配（2026-11-02）===== */
@media (max-width: 640px) {
  .gt-table { min-width: 0; font-size: 13px; line-height: 1.7; }
  .gt-table th, .gt-table td { padding: 10px 9px; }
  .gt-table th { white-space: normal; }
}
@media (max-width: 640px) {
  .gt-col-fix td:nth-child(2) { white-space: nowrap; }
  .gt-col-fix td:first-child { min-width: 92px; }
}
