/* ==========================================================================
   吉车道官网 · 场景详情页 / 对比表 专用样式
   --------------------------------------------------------------------------
   仅服务以下页面，不改动 site.css（避免影响已有 13 个页面）：
     · solutions/cold-chain.html
     · solutions/concrete-mixing.html
     · solutions/construction-diesel.html
     · solutions/event-power.html
     · solutions/index.html（仅对比表章节）
   依赖 site.css 中定义的变量：--signature / --ink / --ink-2 / --line /
   --line-100 / --bg / --card / --radius / --shadow / --accent
   ========================================================================== */

/* ---------- 长文正文容器 ---------- */
.sc-page { padding: 40px 0 64px; }
.sc-wrap { max-width: 880px; }

/* ---------- 可见面包屑 ---------- */
.crumb {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 18px;
  line-height: 1.6;
}
.crumb a { color: var(--signature); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 6px; color: var(--ink-2); }
.crumb span[aria-current] { color: var(--ink-2); }

/* ---------- H1 / 正文排版 ---------- */
.sc-page h1 {
  font-size: 34px;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 22px;
  letter-spacing: .2px;
}
.sc-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
}
.sc-body p { margin: 0 0 18px; }
.sc-body h2 {
  font-size: 23px;
  line-height: 1.5;
  color: var(--dark);
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--signature);
}
.sc-body h3 { font-size: 18px; margin: 28px 0 12px; color: var(--dark); }
.sc-body ul,
.sc-body ol { margin: 0 0 20px; padding-left: 22px; }
.sc-body li { margin-bottom: 8px; line-height: 1.85; }
.sc-body strong { color: var(--dark); font-weight: 700; }
.sc-body code {
  background: var(--line-100);
  color: var(--signature);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: .92em;
}
.sc-body a { color: var(--signature); text-decoration: underline; }

/* ---------- Answer-first 摘要块 ---------- */
.ans-box {
  position: relative;
  background: #F5F7F3;
  border-left: 4px solid var(--signature);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px 22px 24px;
  margin: 0 0 34px;
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--ink);
}
.ans-box .ans-label {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--signature);
  font-weight: 700;
  margin-bottom: 8px;
}
.ans-box p { margin: 0; }
.ans-box p + p { margin-top: 12px; }

/* ---------- 对比表（移动端横向滚动） ---------- */
.cmp-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 8px 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.cmp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.7;
}
.cmp-table thead th {
  background: var(--signature);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--signature);
}
.cmp-table tbody th,
.cmp-table tbody td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cmp-table tbody th {
  font-weight: 700;
  color: var(--dark);
  background: var(--line-100);
  white-space: nowrap;
}
.cmp-table tbody tr:nth-child(even) > td { background: #FAFCF7; }
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table code { white-space: nowrap; }

/* 对比表章节（用于 solutions/index.html） */
.cmp-section-note {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 980px;
}
.cmp-section-note + .cmp-wrap { margin-top: 22px; }
.cmp-foot {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
  margin-top: 14px;
  max-width: 980px;
}
.cmp-section .cmp-wrap { box-shadow: var(--shadow); }

/* 场景卡片「查看方案」链接 */
.scene-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--signature);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: gap .2s, color .2s;
}
.scene-link:hover { color: var(--primary); gap: 10px; }

/* ---------- FAQ（details / summary） ---------- */
.sc-body .faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--card);
  overflow: hidden;
}
.sc-body .faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  position: relative;
  padding-right: 52px;
}
.sc-body .faq-item > summary::-webkit-details-marker { display: none; }
.sc-body .faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--signature);
  line-height: 1;
}
.sc-body .faq-item[open] > summary::after { content: "−"; }
.sc-body .faq-item > summary:hover { background: var(--line-100); }
.sc-body .faq-item .faq-a {
  padding: 0 24px 20px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}
.sc-body .faq-item .faq-a p { margin: 0 0 12px; }
.sc-body .faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- 底部 CTA ---------- */
.sc-cta-note { line-height: 1.8; }

/* ---------- 内部占位标记（验收可见，上线前去掉） ---------- */
.todo-flag {
  color: var(--accent);
  border-bottom: 2px dashed var(--accent);
  font-size: .95em;
  padding: 0 2px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .sc-page { padding: 26px 0 44px; }
  .sc-page h1 { font-size: 26px; line-height: 1.4; margin-bottom: 18px; }
  .sc-body { font-size: 16px; }
  .sc-body h2 { font-size: 20px; margin: 34px 0 14px; }
  .ans-box { padding: 18px 18px 18px 16px; font-size: 16.5px; margin-bottom: 28px; }
  .cmp-table { font-size: 14px; }
  .cmp-table thead th,
  .cmp-table tbody th,
  .cmp-table tbody td { padding: 11px 12px; }
  .sc-body .faq-item > summary { padding: 15px 18px; padding-right: 44px; font-size: 15.5px; }
  .sc-body .faq-item .faq-a { padding: 0 18px 16px; }
}

/* 场景页 · 相关内容区块 */
.related { background: var(--bg); }
.related h2 { font-size: 22px; margin-bottom: 18px; }
.rel-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rel-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 15px; line-height: 1.7; }
.rel-list a { color: var(--signature); font-weight: 700; text-decoration: none; }
.rel-list a:hover { text-decoration: underline; }
.rel-list span { color: var(--ink-2); }
@media (max-width: 768px) { .rel-list { grid-template-columns: 1fr; } }

/* 案例页 */
.case-meta {
  font-size: 14px;
  color: var(--ink-2);
  margin: -10px 0 24px;
  line-height: 1.7;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 0 0 30px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  line-height: 1.8;
}
.case-card h2 {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--dark);
}
.case-card h2 a { color: var(--dark); text-decoration: none; }
.case-card h2 a:hover { color: var(--signature); }
.case-card .case-tag {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .5px;
  color: var(--signature);
  border: 1px solid var(--signature);
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 10px;
}
.case-card p { margin: 0 0 14px; font-size: 15px; color: var(--ink); }
.case-card .case-more {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--signature);
  text-decoration: none;
}
.case-card .case-more:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* 案例页「带来的变化」成效块 */
.case-result {
  margin: 26px 0 8px; padding: 20px 24px;
  background: var(--line-100); border-left: 4px solid var(--signature);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px; line-height: 1.85;
}
.case-result strong { color: var(--signature); font-weight: 800; }

/* 场景详情页正文首图 */
.scene-figure { margin: 0 0 34px; }
.scene-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.scene-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* 对比表横向滚动容器：窄屏下可左右滑动查看全部列，避免后两列被裁掉 */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.cmp-wrap > .cmp-table { min-width: 640px; }
.cmp-hint { display: none; }
@media (max-width: 700px) {
  .cmp-hint { display: block; font-size: 13px; color: var(--primary); font-weight: 700; margin: 18px 0 -6px; }
}

/* ---------- 8 大场景卡片（与首页 .scene-grid 同一套语言，共享 CSS 此前缺失） ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.scene-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.scene-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(23,52,4,.16); }
.scene-media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--dark); }
.scene-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.scene-card:hover .scene-media img { transform: scale(1.05); }
.scene-body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.scene-no { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: 1px; }
.scene-body h3 { font-size: 17px; color: var(--dark); font-weight: 800; margin: 6px 0 8px; line-height: 1.45; }
.scene-body p { font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.scene-link { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 700; color: var(--primary); }
.scene-link:hover { color: var(--signature); }
@media (max-width: 1180px) { .scene-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .scene-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  {
  .scene-grid { grid-template-columns: 1fr; gap: 16px; }
  .scene-card:hover { transform: none; }

}

/* ---------- 新页统一版式（与全站 subhero 对齐） ---------- */
.sc-article { max-width: 900px; margin: 0 auto; }
.sc-article .related { max-width: 100%; }
.sc-page .case-meta { font-size: 14px; color: var(--ink-2); margin: -6px 0 20px; }
.section .sc-article h2 { font-size: 24px; margin: 40px 0 16px; padding-left: 12px; border-left: 4px solid var(--signature); }

/* ---------- 场景页 Hero 要点卡（替代带文字的招商海报图） ---------- */
.fact-card {
  background: linear-gradient(158deg, #ffffff 0%, #f2f8ea 100%);
  border: 1px solid rgba(151,196,89,.45);
  border-radius: 18px;
  padding: 24px 26px 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  color: var(--dark);
}
.fact-card .fc-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 2px;
  color: var(--signature);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(27,107,46,.12);
}
.fact-card .fc-title::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px;
  background: var(--accent); flex: none;
}
.fact-card ul { list-style: none; margin: 0; padding: 0; }
.fact-card li {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(27,107,46,.16);
}
.fact-card li:last-child { border-bottom: 0; }
.fact-card li b {
  font-size: 14px; font-weight: 800; color: var(--signature);
  line-height: 1.5; white-space: nowrap;
}
.fact-card li span { font-size: 15px; line-height: 1.6; color: #2b3a25; }
@media (max-width: 960px) {
  .fact-card { margin-top: 8px; }
}
@media (max-width: 480px) {
  .fact-card { padding: 20px 20px 4px; }
  .fact-card li { grid-template-columns: 1fr; gap: 4px; }
  .fact-card li b { white-space: normal; }
}
