/* ===== 产业扶持政策专题页 · 页面级样式（仅 industry-policy.html 引入） ===== */
/* 不改动 style.css，避免影响其他页面 */

/* 覆盖全站 scroll-snap：长文页吸附会打断阅读 */
main.doc-main { scroll-snap-type: none; }
main.doc-main > section { scroll-snap-align: none; scroll-margin-top: 88px; }
/* 覆盖 reveal 动画：本页内容量极大，若 JS 加载失败 opacity:0 会隐藏全部标题 */
main.doc-main .section-head,
main.doc-main .lead { opacity: 1 !important; transform: none !important; }

.doc-main .section { padding: 44px 0; }
.doc-main .section-soft { background: var(--bg-soft); }

/* ---------- 文档内标题 ---------- */
.doc-h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-soft);
  color: var(--ink);
  font-weight: 700;
}
.doc-h2 .n {
  display: inline-block;
  min-width: 30px;
  color: var(--blue-2);
  font-weight: 800;
}
.doc-h3 {
  font-size: 17px;
  margin: 26px 0 10px;
  color: var(--blue);
  font-weight: 700;
}
.doc-h4 {
  font-size: 15px;
  margin: 20px 0 8px;
  color: var(--ink);
  font-weight: 700;
}
.doc-main p { margin: 0 0 14px; color: #33383f; }
.doc-main ul, .doc-main ol { margin: 0 0 16px; padding-left: 22px; }
.doc-main li { margin-bottom: 7px; color: #33383f; }
.doc-main b, .doc-main strong { color: var(--ink); }

/* ---------- 答案框（可被 AI 直接摘取的定义段） ---------- */
.answer-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-2);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 22px;
  box-shadow: 0 2px 12px rgba(22, 70, 127, .05);
}
.answer-box p:last-child { margin-bottom: 0; }
.answer-box .ab-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--blue-2);
  background: var(--blue-soft);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* ---------- 页内目录 ---------- */
.doc-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 8px;
}
.doc-toc h3 { margin: 0 0 12px; font-size: 14px; letter-spacing: .06em; color: var(--gray); font-weight: 600; }
.doc-toc ol {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 20px;
  counter-reset: toc;
}
.doc-toc li { margin: 0; font-size: 14px; }
.doc-toc a { color: #33383f; display: block; padding: 4px 0; border-bottom: 1px dashed transparent; }
.doc-toc a:hover { color: var(--blue-2); border-bottom-color: var(--blue-soft); }

/* ---------- 表格 ---------- */
.tbl-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.65;
  min-width: 560px;
}
table.data th,
table.data td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.data th:last-child,
table.data td:last-child { border-right: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data thead th {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid #d6e2f2;
}
table.data tbody tr:nth-child(even) { background: #fbfcfe; }
table.data tbody tr:hover { background: #f4f8fd; }
table.data td:first-child { font-weight: 600; color: var(--ink); }
/* 首列多为中文短语，给最小宽度避免被压成两行 */
table.data th:first-child,
table.data td:first-child { min-width: 108px; }
table.data.num td:not(:first-child),
table.data.num th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
table.data.num td:first-child { text-align: left; }

/* ---------- 提示框 ---------- */
.callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gray-2);
}
.callout:last-child { margin-bottom: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .co-title { display: block; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.callout.warn { background: #fffaf2; border-left-color: #e08a1e; }
.callout.warn .co-title { color: #a86412; }
.callout.info { background: #f4f8fd; border-left-color: var(--blue-2); }
.callout.info .co-title { color: var(--blue); }

/* ---------- 方案卡片 ---------- */
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 0 0 22px;
}
.plan-card > .doc-h2 { margin-top: 0; }
.plan-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plan-meta div { font-size: 13px; color: var(--gray); }
.plan-meta b { display: block; font-size: 19px; color: var(--blue); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq-list { margin: 0; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item .q {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.55;
}
.faq-item .q .qn { color: var(--blue-2); margin-right: 6px; }
.faq-item .a { margin: 0; font-size: 14.5px; color: #3d4249; }
.faq-item .a p { margin: 0 0 10px; }
.faq-item .a p:last-child { margin-bottom: 0; }
.faq-item .a ul { margin: 8px 0 0; padding-left: 20px; }
.faq-item .a li { font-size: 14.5px; }

/* ---------- 术语表 ---------- */
.gloss { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gloss div {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 13px 16px; font-size: 13.5px; line-height: 1.7;
}
.gloss b { display: block; color: var(--blue); margin-bottom: 3px; font-size: 14px; }

/* ---------- 页脚注 ---------- */
.doc-foot {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--gray); line-height: 1.8;
}
.doc-foot p { color: var(--gray); font-size: 13px; margin-bottom: 8px; }
.meta-line { font-size: 13px; color: var(--gray); margin: 0 0 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .doc-toc ol { grid-template-columns: repeat(2, 1fr); }
  .plan-meta { grid-template-columns: repeat(2, 1fr); }
  .gloss { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .doc-main .section { padding: 32px 0; }
  .doc-h2 { font-size: 20px; }
  .doc-toc ol { grid-template-columns: 1fr; }
  .answer-box, .plan-card, .faq-item { padding: 16px 18px; }
  table.data { font-size: 13px; min-width: 480px; }
  table.data th, table.data td { padding: 8px 10px; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .doc-toc { display: none !important; }
  .doc-main .section { padding: 12px 0; page-break-inside: avoid; }
  .tbl-wrap { overflow: visible; border: 0; }
  table.data { min-width: 0; font-size: 10.5pt; }
  .answer-box, .plan-card, .faq-item { box-shadow: none; border-color: #ccc; }
  a { text-decoration: none; color: inherit; }
}
