/* ============================================================
   rfq.模具设计.中国 — 文章/产品详情页骨架样式（本站独立实现）
   必需结构：breadcrumb / summary-box / tag-text / update-time
             h2[id]×≥3 / table.data / conclusion / details / related / toc-aside
   ============================================================ */

/* ---- 详情页外壳：桌面两列（正文 + 右侧 TOC 吸顶） ---- */
.detail-shell {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 268px;
  gap: 44px; align-items: start;
}
.detail-main { min-width: 0; }

/* TOC 侧栏 */
.toc-aside { position: sticky; top: calc(var(--nav-h) + 20px); padding-top: 26px; }
.toc-aside .toc-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; background: var(--bg-soft);
}
.toc-aside h4 { font-size: 13px; color: var(--ink-3); letter-spacing: .8px; margin: 0 0 10px; }
.toc-aside ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc-aside li { counter-increment: toc; }
.toc-aside a {
  display: block; padding: 6px 8px; border-radius: 6px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  border-left: 2px solid transparent;
}
.toc-aside a:hover { background: #fff; color: var(--brand); }
.toc-aside a.active { color: var(--brand); border-left-color: var(--brand); background: #fff; font-weight: 600; }

/* ---- 文章头 ---- */
.article-head { padding-top: 8px; }
.article-head h1 { margin-bottom: 12px; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  font-size: 13.5px; color: var(--ink-3); margin-bottom: 16px;
}
.tag-text { display: inline-flex; flex-wrap: wrap; gap: 7px; }
.tag-text .tag { font-size: 12.5px; }
.update-time { display: inline-flex; align-items: center; gap: 6px; }
.update-time::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.lead {
  font-size: 16.5px; color: var(--ink-2); line-height: 1.85;
  border-left: 3px solid var(--line-2); padding: 4px 0 4px 16px; margin: 0 0 24px;
}

/* ---- 摘要盒 ---- */
.summary-box {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--cyan-soft) 100%);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 24px 26px; margin: 0 0 30px;
}
.summary-box h2, .summary-box h3 { font-size: 17px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.summary-box h3::before {
  content: ""; width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--cyan));
}
.summary-box ol { margin: 0; padding-left: 20px; }
.summary-box li { margin-bottom: 9px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.summary-box li:last-child { margin-bottom: 0; }
.summary-box li b { color: var(--ink); }

/* ---- 正文 ---- */
.article-body { font-size: 16px; line-height: 1.9; color: var(--ink); }
.article-body h2 {
  margin: 44px 0 16px; padding-bottom: 10px; position: relative;
  border-bottom: 1px solid var(--line);
}
.article-body h2::before {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}
.article-body h3 { margin: 28px 0 10px; }
.article-body p { margin: 0 0 16px; color: var(--ink-2); }
.article-body p strong, .article-body li strong { color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); }
.article-body li { margin-bottom: 8px; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }

/* 提示块 */
.callout {
  border-radius: var(--radius-s); padding: 18px 20px; margin: 22px 0;
  font-size: 14.8px; line-height: 1.8; background: var(--bg-soft);
  border: 1px solid var(--line);
}
.callout p:last-child { margin-bottom: 0; }
.callout .ct { font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.callout.warn { background: var(--amber-soft); border-color: #f0dcb4; }
.callout.warn .ct { color: var(--amber); }
.callout.key { background: var(--brand-soft); border-color: #caddfa; }
.callout.key .ct { color: var(--brand); }
.callout.ok { background: var(--green-soft); border-color: #c9e6d5; }
.callout.ok .ct { color: var(--green); }

/* 要点清单 */
.keypoints { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; background: #fff; }
.keypoints h3 { margin: 0 0 12px; font-size: 16.5px; }
.keypoints ul { margin: 0; padding-left: 20px; }
.keypoints li { margin-bottom: 7px; color: var(--ink-2); }
.keypoints li:last-child { margin-bottom: 0; }

/* 分步 */
.steps { counter-reset: st; margin: 22px 0; }
.steps .step {
  counter-increment: st; position: relative; z-index: 0;
  padding: 0 0 20px 52px; margin-left: 13px;
}
/* 连接线用 ::after 单独绘制，置于圆圈之后（z-index 更低），避免穿过数字 */
.steps .step::after {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0;
  width: 2px; background: var(--line); z-index: 0;
}
.steps .step:last-child { padding-bottom: 0; }
.steps .step:last-child::after { display: none; }
.steps .step::before {
  content: counter(st); position: absolute; left: -14px; top: 0; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px #fff;
}
.steps .step h4 { font-size: 15.5px; margin: 3px 0 6px; }
.steps .step p { font-size: 14.5px; margin: 0; }

/* ---- 结论区 ---- */
.conclusion {
  background: #0d2038; color: #dce8f5; border-radius: var(--radius);
  padding: 30px 30px 26px; margin: 40px 0 0;
}
.conclusion h2, .conclusion h3 { color: #fff; font-size: 19px; margin: 0 0 14px; display: flex; align-items: center; gap: 9px; }
.conclusion h3::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--cyan);
}
.conclusion p, .conclusion li { color: #b9cbdf; font-size: 15px; }
.conclusion ul { padding-left: 20px; }
.conclusion strong { color: #fff; }

/* ---- FAQ ---- */
.faq-list { margin: 22px 0; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  margin-bottom: 10px; background: #fff; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 15px 44px 15px 18px; font-size: 15.5px; font-weight: 600;
  color: var(--ink); position: relative; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details[open] summary { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.faq-body { padding: 16px 18px 18px; font-size: 14.8px; color: var(--ink-2); line-height: 1.8; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---- 相关推荐 ---- */
.related { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; margin: 0 0 18px; }
.related .grid { gap: 16px; }

/* ---- CTA ---- */
.cta-band {
  margin: 44px 0 0; padding: 32px 30px;
  background: linear-gradient(120deg, var(--brand) 0%, #0a86c9 60%, var(--cyan) 100%);
  border-radius: var(--radius); color: #fff;
}
.cta-band h2 { color: #fff; font-size: 22px; margin: 0 0 10px; }
.cta-band p { color: rgba(255, 255, 255, .9); font-size: 15px; margin: 0 0 18px; }
.cta-band .btn { background: #fff; color: var(--brand); }
.cta-band .btn:hover { background: var(--brand-soft); color: var(--brand-dark); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn { width: auto; }

/* ---- 产品属性表 ---- */
.props-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0; }
.props-list .row {
  display: grid; grid-template-columns: 168px minmax(0, 1fr);
  border-bottom: 1px solid var(--line); font-size: 14.8px;
}
.props-list .row:last-child { border-bottom: 0; }
.props-list .row:nth-child(odd) { background: #fbfdff; }
.props-list .k { padding: 12px 16px; font-weight: 600; color: var(--ink); background: var(--bg-soft); }
.props-list .v { padding: 12px 16px; color: var(--ink-2); }

/* ---- 文章底部导航 ---- */
.detail-foot { padding: 40px 0 0; }
.detail-foot .meta-note { font-size: 13px; color: var(--ink-3); line-height: 1.8; }

/* ---- 响应式：≤1080 收为单列，TOC 不再吸顶；≤640 完全隐藏 TOC ---- */
@media (max-width: 1080px) {
  .detail-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc-aside { position: static; padding-top: 0; }
  .toc-aside .toc-box { background: #fff; }
}

@media (max-width: 640px) {
  .detail-shell { padding: 0 18px; }
  .sidebar, .toc-aside { display: none; }
  .article-head h1 { font-size: 23px; }
  .lead { font-size: 15.5px; padding-left: 13px; }
  .summary-box { padding: 20px 18px; }
  .summary-box li { font-size: 14.5px; }
  .article-body { font-size: 15.5px; line-height: 1.85; }
  .article-body h2 { margin: 34px 0 14px; font-size: 21px; }
  .article-body h3 { font-size: 17.5px; }
  .steps .step { padding-left: 40px; }
  .steps .step::before { left: -12px; width: 23px; height: 23px; font-size: 12px; }
  .conclusion { padding: 24px 20px; }
  .cta-band { padding: 26px 20px; }
  .cta-band h2 { font-size: 19px; }
  .props-list .row { grid-template-columns: minmax(0, 1fr); }
  .props-list .k { padding-bottom: 4px; }
}
/* ---- SGO：AI 摘录问答区 ---- */
.answer-box {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 24px 26px; margin: 0 0 30px; background: #fbfdff;
}
.answer-box > h2 { font-size: 19px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.qa-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.qa-item:last-child { border-bottom: 0; padding-bottom: 0; }
.qa-q {
  font-size: 15.5px; color: var(--brand); margin: 0 0 6px;
  display: flex; align-items: baseline; gap: 8px; font-weight: 700;
}
.qa-q::before { content: "Q"; font-size: 12px; color: #fff; background: var(--brand);
  border-radius: 4px; padding: 1px 6px; flex: none; font-weight: 700; }
.qa-a { margin: 0; font-size: 14.8px; color: var(--ink-2); line-height: 1.85; }

@media (max-width: 640px) {
  .answer-box { padding: 18px 16px; }
  .qa-q { font-size: 15px; }
  .qa-a { font-size: 14.5px; }
}
