/* ============================================================
   zhengce-jiedu.css —— 条款文档式新骨架（左锚点目录 + 右条款）
   ============================================================ */

/* ---------- 首屏：通栏实景压字 ---------- */
.jd-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.jd-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.jd-hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,50,56,.25) 0%, rgba(21,50,56,.72) 78%);
}
.jd-hero-inner {
  position: relative; z-index: 2;
  padding: 90px 0 150px;
  max-width: 760px;
}
.jd-kicker {
  display: inline-block;
  background: rgba(255,206,51,.9);
  color: #153238; font-weight: 700;
  border-radius: 20px; padding: 5px 16px;
  font-size: 14px;
}
.jd-title {
  color: #fff;
  font-size: 42px; line-height: 1.3;
  margin: 16px 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.jd-sub {
  color: rgba(255,255,255,.92);
  font-size: 16.5px; line-height: 1.95;
}
.jd-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.jd-ghost { border-color: #fff; color: #fff; }
.jd-hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 120px; z-index: 1;
}

/* ---------- 折线分割兜底 ---------- */
.split { line-height: 0; overflow: hidden; }
.split svg { display: block; width: 100%; height: 70px; }

/* ---------- 文档主体网格 ---------- */
.jd-doc { background: #F6FAF7; padding: 70px 0 40px; }
.jd-doc-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* 左侧 sticky 目录 */
.jd-toc {
  position: sticky; top: 96px;
  background: #fff;
  border: 1px solid #E3EEE7;
  border-radius: 14px;
  padding: 22px;
}
.jd-toc h2 { font-size: 17px; color: #153238; margin-bottom: 14px; }
.jd-toc a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #2E4A50; font-size: 14.5px;
}
.jd-toc a span {
  width: 26px; height: 26px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #EAF6EF; color: #1c6b4b;
  border-radius: 8px; font-weight: 700; font-size: 13px;
}
.jd-toc a:nth-child(3n) span { background: #EAF3FA; color: #24495e; }
.jd-toc a:nth-child(4n) span { background: #FFF7DC; color: #8a6d1a; }
.jd-toc a:hover { background: #F6FAF7; }

/* 右侧条款文档 */
.jd-papers { display: grid; gap: 26px; }
.jd-paper {
  position: relative;
  background: #fff;
  border: 1px solid #E3EEE7;
  border-radius: 16px;
  padding: 30px 32px 26px;
}
.jd-paper-no {
  position: absolute; top: 24px; right: 28px;
  font-size: 46px; font-weight: 800;
  color: #EAF6EF; line-height: 1;
}
.jd-paper:nth-of-type(2) .jd-paper-no { color: #EAF3FA; }
.jd-paper:nth-of-type(3) .jd-paper-no { color: #FFF7DC; }
.jd-paper h2 { font-size: 21px; color: #153238; margin-bottom: 12px; padding-right: 60px; }
.jd-paper p { color: #58727A; line-height: 2.05; font-size: 15.5px; margin-bottom: 10px; }

/* 材料清单 */
.jd-list {
  background: #EAF6EF;
  border: 1px dashed #41B383;
  border-radius: 16px;
  padding: 28px 32px;
}
.jd-list h2 { font-size: 19px; color: #1c6b4b; margin-bottom: 16px; }
.jd-list ul { list-style: none; display: grid; gap: 10px; }
.jd-list li {
  display: flex; align-items: center; gap: 12px;
  color: #2E4A50; font-size: 15px;
}
.jd-box {
  width: 18px; height: 18px; flex: none;
  border: 2px solid #41B383; border-radius: 5px;
  background: #fff;
}
.jd-list-note { margin-top: 16px; color: #5c7a68; font-size: 13.5px; }

/* ---------- 本地图文条 ---------- */
.jd-strip { background: #fff; padding: 60px 0; }
.jd-strip-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
}
.jd-strip figure { margin: 0; }
.jd-strip img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; }
.jd-strip figcaption { margin-top: 8px; color: #8AA3AA; font-size: 13.5px; }
.jd-strip h2 { font-size: 22px; color: #153238; margin-bottom: 12px; }
.jd-strip p { color: #58727A; line-height: 2; font-size: 15.5px; margin-bottom: 10px; }

/* ---------- 提示条 ---------- */
.notice {
  margin: 46px 0;
  background: #FFF7DC;
  border: 1px dashed #FFCE33;
  border-radius: 12px;
  padding: 18px 24px;
  color: #5c4a12; line-height: 1.9; font-size: 15px;
}

/* ---------- 延伸卡 ---------- */
.jd-link-grid { gap: 16px; }
.jd-link {
  display: block;
  background: #fff;
  border: 1px solid #E3EEE7;
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  border-left: 4px solid #41B383;
  transition: transform .2s ease, box-shadow .2s ease;
}
.jd-link:nth-child(3n+2) { border-left-color: #4493C4; }
.jd-link:nth-child(3n) { border-left-color: #FFCE33; }
.jd-link strong { display: block; color: #153238; font-size: 16px; margin-bottom: 4px; }
.jd-link span { color: #8AA3AA; font-size: 13.5px; }
.jd-link:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(21,50,56,.12); }

/* ---------- CTA ---------- */
.jd-cta { position: relative; overflow: hidden; margin-top: 20px; }
.jd-cta > img { width: 100%; height: 300px; object-fit: cover; display: block; }
.jd-cta-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,50,56,.85), rgba(21,50,56,.4));
}
.jd-cta-inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8%; color: #fff;
}
.jd-cta-inner h2 { font-size: 28px; margin-bottom: 10px; }
.jd-cta-inner p { opacity: .92; margin-bottom: 16px; max-width: 480px; line-height: 1.8; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .jd-doc-grid { grid-template-columns: 1fr; }
  .jd-toc { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .jd-toc h2 { grid-column: 1 / -1; }
  .jd-strip-grid { grid-template-columns: 1fr; }
  .jd-title { font-size: 32px; }
}
@media (max-width: 640px) {
  .jd-actions { flex-direction: column; align-items: stretch; }
  .jd-actions .btn { width: 100%; }
}
