/* 智慧晓苏标准门户 · 专业蓝白 + 江南水润 设计系统 */
:root {
  --paper: #FAF9F5;        /* 宣纸白 */
  --mist: #EAF3F6;         /* 烟雨青(浅) */
  --blue: #2B6CB0;         /* 专业蓝 */
  --blue-deep: #1A4F8B;    /* 深蓝 */
  --cyan: #7BA7CB;         /* 烟雨青 */
  --ink: #34495E;          /* 远山墨 */
  --gold: #D4A574;         /* 晨曦金 */
  --seal: #C0392B;         /* 印章红 */
  --text: #243441;
  --muted: #6B7C8C;
  --line: #E3E8EC;
  --ok: #2E8B57;
  --err: #C0392B;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(26, 79, 139, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 79, 139, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

/* 顶部导航 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 245, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--blue-deep); letter-spacing: .5px; }
.brand .seal {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--seal); color: #fff; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; box-shadow: 0 2px 8px rgba(192,57,43,.35);
}
.brand small { display:block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.18; font-weight: 800; color: var(--blue-deep); font-size: 18px; letter-spacing: .5px; }
.brand-name small { font-weight: 600; color: var(--muted); font-size: 10.5px; letter-spacing: .3px; margin-top: 2px; }
@media (max-width: 520px) { .brand-name small { display: none; } }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { background: var(--mist); color: var(--blue-deep); }

/* 通用容器 */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section h2 { font-size: 28px; color: var(--blue-deep); margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 32px; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(123,167,203,.30), transparent 60%),
    radial-gradient(900px 360px at 10% 10%, rgba(212,165,116,.16), transparent 55%),
    linear-gradient(180deg, var(--mist), var(--paper));
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: repeating-linear-gradient(180deg, transparent, transparent 16px, rgba(43,108,176,.05) 17px, transparent 18px);
  -webkit-mask: linear-gradient(180deg, transparent, #000); mask: linear-gradient(180deg, transparent, #000);
  pointer-events: none;
}
.hero-inner { max-width: 1160px; margin: 0 auto; padding: 86px 24px 96px; position: relative; z-index: 1; }
.hero h1 { font-size: 46px; line-height: 1.2; margin: 14px 0 10px; color: var(--blue-deep); font-weight: 800; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--ink); max-width: 760px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: .18s; text-decoration: none;
}
.btn-primary { background: linear-gradient(120deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color:#fff; }
.btn-ghost { background: #fff; color: var(--blue-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--mist); }

/* 统计数字 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat .num { font-size: 36px; font-weight: 800; color: var(--blue); line-height: 1; }
.stat .lbl { color: var(--muted); margin-top: 8px; font-size: 14px; }

/* 卡片网格 */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.card .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--mist); color: var(--blue-deep);
  display: grid; place-items: center; font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; color: var(--blue-deep); font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--mist); color: var(--blue-deep); margin: 3px 4px 0 0; }
.tag.gold { background: rgba(212,165,116,.18); color: #9a6b2f; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 7px; }
.badge.L1 { background: #eef2f6; color: #5a6b7a; }
.badge.L2 { background: rgba(123,167,203,.22); color: var(--blue-deep); }
.badge.L3 { background: rgba(46,139,87,.16); color: #1f6e44; }

.bg-mist { background: linear-gradient(180deg, #fff, var(--mist)); }

/* 标准文档页 */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.doc-toc { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px; box-shadow: var(--shadow); }
.doc-toc h4 { margin: 6px 8px 10px; color: var(--blue-deep); }
.doc-toc .switch { display: flex; gap: 6px; margin-bottom: 12px; }
.doc-toc .switch button { flex: 1; padding: 8px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--ink); }
.doc-toc .switch button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.markdown { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 44px; box-shadow: var(--shadow); }
.markdown h1 { color: var(--blue-deep); font-size: 30px; border-bottom: 2px solid var(--mist); padding-bottom: 12px; }
.markdown h2 { color: var(--blue-deep); margin-top: 34px; border-left: 4px solid var(--blue); padding-left: 12px; }
.markdown h3 { color: var(--ink); }
.markdown table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.markdown th, .markdown td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; font-size: 14px; }
.markdown th { background: var(--mist); color: var(--blue-deep); }
.markdown code { background: var(--mist); padding: 2px 6px; border-radius: 5px; font-size: 90%; color: var(--blue-deep); }
.markdown pre { background: #0f2233; color: #d6e6f5; padding: 16px; border-radius: 10px; overflow: auto; }
.markdown pre code { background: transparent; color: inherit; }
.markdown blockquote { border-left: 4px solid var(--gold); background: rgba(212,165,116,.08); margin: 12px 0; padding: 8px 16px; color: var(--ink); }

/* 校验器 */
.validator { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.field-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
select, textarea, input { font-family: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); background: #fff; }
select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea.code { width: 100%; min-height: 420px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; line-height: 1.5; white-space: pre; }
.result { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; box-shadow: var(--shadow); min-height: 420px; }
.result .verdict { font-size: 18px; font-weight: 800; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; }
.verdict.ok { background: rgba(46,139,87,.12); color: var(--ok); }
.verdict.err { background: rgba(192,57,43,.10); color: var(--err); }
.err-item { border-left: 3px solid var(--err); padding: 8px 12px; margin: 8px 0; background: #fff5f4; border-radius: 6px; font-size: 14px; }
.err-item code { background: var(--mist); padding: 1px 5px; border-radius: 4px; }

/* 目录筛选 */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.agent-card { display: flex; flex-direction: column; gap: 10px; }
.agent-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.agent-card .dept { color: var(--muted); font-size: 13px; }
.agent-card .meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot.on { background: var(--ok); } .dot.pending { background: var(--gold); }

/* 页脚 */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 30px 0; color: var(--muted); font-size: 14px; }
.footer .nav { height: auto; flex-wrap: wrap; gap: 10px; }

/* 响应式 */
@media (max-width: 880px) {
  .stats, .grid-3, .grid-2, .validator, .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
}
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.muted { color: var(--muted); }

/* ===== 图片化视觉增强（gpt-image-2 生成的江南水润背景）===== */
.hero {
  background:
    linear-gradient(90deg, rgba(250,249,245,.97) 0%, rgba(250,249,245,.82) 36%, rgba(250,249,245,.32) 62%, rgba(234,243,246,.05) 100%),
    url('/assets/img/hero.png') right center / cover no-repeat;
}
@media (max-width: 880px) {
  .hero { background:
    linear-gradient(180deg, rgba(250,249,245,.93), rgba(250,249,245,.85)),
    url('/assets/img/hero.png') center / cover no-repeat; }
}

/* 页面 banner：图片 + 深蓝蒙层 + 白字 */
.page-banner {
  position: relative; color: #fff;
  background: linear-gradient(95deg, rgba(15,34,51,.84), rgba(26,79,139,.55) 55%, rgba(43,108,176,.28)), var(--bg) center / cover no-repeat;
}
.page-banner .container { padding: 76px 24px; position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: 38px; margin: 10px 0 8px; }
.page-banner p { color: rgba(255,255,255,.92); font-size: 17px; max-width: 780px; margin: 0; }
.eyebrow.light { color: #bfe0f0; }

/* 图片卡片：图片 + 蒙层 + 高对比文字 */
.imgcard { position: relative; overflow: hidden; border: none; color: #fff;
  background: var(--img) center / cover no-repeat; min-height: 240px; display: flex; flex-direction: column; }
.imgcard::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(26,79,139,.78), rgba(15,34,51,.82)); transition: .2s; }
.imgcard > * { position: relative; z-index: 1; }
.imgcard h3 { color: #fff; } .imgcard p { color: rgba(255,255,255,.92); }
.imgcard .ic { background: rgba(255,255,255,.18); color: #fff; }
.imgcard:hover::before { background: linear-gradient(155deg, rgba(26,79,139,.68), rgba(15,34,51,.74)); }

/* 浅色图片卡片：图片淡显 + 深色文字 */
.imgcard.soft { color: var(--text); }
.imgcard.soft::before { background: linear-gradient(160deg, rgba(250,249,245,.82), rgba(234,243,246,.90)); }
.imgcard.soft h3 { color: var(--blue-deep); } .imgcard.soft p { color: var(--ink); }
.imgcard.soft .ic { background: rgba(43,108,176,.16); color: var(--blue-deep); }

/* 区块淡纹理背景 */
.sec-elements { background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.88)), url('/assets/img/section-elements.png') center / cover; }
.sec-design { background: linear-gradient(180deg, rgba(250,249,245,.90), rgba(234,243,246,.93)), url('/assets/img/section-design.png') center / cover; }

/* CTA 横幅：图片 + 蒙层 + 白字 */
.cta-band { position: relative; color: #fff; text-align: center;
  background: linear-gradient(120deg, rgba(26,79,139,.82), rgba(15,34,51,.70)), url('/assets/img/cta.png') center / cover no-repeat; }
.cta-band .container { padding: 74px 24px; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 30px; margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 700px; margin: 0 auto 24px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.24); }

/* 页脚：图片 + 深蒙层 + 浅字 */
.footer { position: relative; color: rgba(255,255,255,.86); border-top: none;
  background: linear-gradient(0deg, rgba(15,34,51,.93), rgba(26,79,139,.88)), url('/assets/img/footer.png') center / cover no-repeat; }
.footer a { color: #cfe6f5; }
.footer .muted { color: rgba(255,255,255,.72); }

/* ===== SVG 图标系统（替代 emoji，矢量·可着色·全兼容）===== */
.ic-svg { width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -0.16em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .ic-svg { font-size: 1.05em; margin-right: 0.2em; vertical-align: -0.18em; }
.ic { overflow: hidden; }
.ic .ic-svg { width: 24px; height: 24px; stroke-width: 1.9; }
.brand-logo { width: 36px; height: 36px; display: block; border-radius: 9px; box-shadow: 0 2px 8px rgba(26,79,139,0.28); }
.brand-lockup { height: 40px; width: auto; display: block; }
@media (max-width: 520px) { .brand-lockup { height: 34px; } }
.fill-cur { fill: currentColor; stroke: none; }

/* 生态兼容区块 */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.eco-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.eco-item .ic-svg { width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.eco-item h4 { margin: 0 0 4px; color: var(--blue-deep); font-size: 16px; }
.eco-item p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 880px) { .eco-grid { grid-template-columns: 1fr; } }

/* ===== 标准全文 · 高级阅读体验 ===== */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); z-index: 60; transition: width .1s linear; }

.doc-hero { position: relative; color: #fff;
  background: linear-gradient(100deg, rgba(15,34,51,.88), rgba(26,79,139,.6) 60%, rgba(43,108,176,.34)), var(--bg) center / cover no-repeat; }
.doc-hero .container { padding: 56px 24px 44px; }
.doc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.d-badge { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #eaf3f6; border: 1px solid rgba(255,255,255,.22); }
.d-badge.solid { background: #fff; color: var(--blue-deep); border-color: #fff; }
.d-badge.gold { background: rgba(212,165,116,.2); color: #f3d2a0; border-color: rgba(212,165,116,.4); }
.doc-hero h1 { color: #fff; font-size: 34px; margin: 6px 0; }
.doc-en { color: rgba(255,255,255,.75); font-size: 14px; font-style: italic; margin: 0 0 22px; letter-spacing: .3px; }
.doc-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.doc-meta > div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 12px 14px; }
.doc-meta span { display: block; font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.doc-meta b { font-size: 13.5px; color: #fff; font-weight: 700; line-height: 1.4; }

.doc-toolbar { position: sticky; top: 64px; z-index: 30; background: rgba(250,249,245,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.doc-toolbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
.doc-toolbar .switch { display: flex; gap: 8px; }
.doc-toolbar .switch button { padding: 7px 16px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 14px; }
.doc-toolbar .switch button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.doc-section { padding-top: 30px; }
.doc-section .doc-layout { display: grid; grid-template-columns: 264px 1fr; gap: 36px; align-items: start; }
.doc-section .doc-toc { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; box-shadow: var(--shadow); }
.doc-section .doc-toc h4 { margin: 4px 8px 12px; color: var(--blue-deep); font-size: 15px; }
.toc { display: flex; flex-direction: column; gap: 1px; }
.toc-link { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink); font-size: 13.5px; border-left: 2px solid transparent; transition: .12s; text-decoration: none; }
.toc-link.toc-h3 { padding-left: 22px; font-size: 12.5px; color: var(--muted); }
.toc-link:hover { background: var(--mist); color: var(--blue-deep); }
.toc-link.active { background: var(--mist); color: var(--blue-deep); border-left-color: var(--blue); font-weight: 700; }

.doc-paper { padding: 44px 52px; }
.doc-paper h1:first-child { margin-top: 0; }

.to-top { position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(120deg, var(--blue), var(--blue-deep)); color: #fff; border: none; cursor: pointer;
  box-shadow: var(--shadow-lg); display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; z-index: 40; }
.to-top .ic-svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 880px) {
  .doc-meta { grid-template-columns: 1fr 1fr; }
  .doc-section .doc-layout { grid-template-columns: 1fr; }
  .doc-section .doc-toc { position: static; max-height: none; }
  .doc-paper { padding: 28px 22px; }
  .doc-toolbar { top: 0; }
}

/* ===== 国家标准公文排版（gov-doc）===== */
.doc-paper-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.doc-runhead { display: flex; justify-content: space-between; align-items: center; padding: 8px 52px;
  font-family: "Microsoft YaHei", sans-serif; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: #fbfcfd; }
.doc-runhead span:first-child { font-weight: 700; color: var(--ink); }
.doc-paper.gov-doc { border: none; border-radius: 0; box-shadow: none; padding: 40px 52px 54px; }
.gov-doc { font-family: "SimSun", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", serif; color: #1b1b1b; font-size: 16px; line-height: 1.95; }
.gov-doc > h1 { font-family: "Microsoft YaHei", "Source Han Sans SC", sans-serif; font-weight: 800; text-align: center; font-size: 25px; color: #111; border: none; padding: 0; margin: 10px 0 6px; letter-spacing: 1px; }
.gov-doc h2 { font-family: "Microsoft YaHei", "Source Han Sans SC", sans-serif; font-weight: 800; font-size: 19px; color: #111; border: none; padding: 0; margin: 32px 0 12px; }
.gov-doc h3 { font-family: "Microsoft YaHei", "Source Han Sans SC", sans-serif; font-weight: 700; font-size: 16.5px; color: #1a1a1a; margin: 20px 0 8px; }
.gov-doc h4 { font-family: "Microsoft YaHei", sans-serif; font-weight: 700; font-size: 15px; }
.gov-doc p { text-align: justify; margin: 9px 0; }
.gov-doc strong, .gov-doc b { font-family: "Microsoft YaHei", sans-serif; }
.gov-doc ul, .gov-doc ol { padding-left: 2.2em; margin: 8px 0; }
.gov-doc li { margin: 4px 0; }
.gov-doc hr { border: none; border-top: 1px solid #ccc; margin: 18px 0; }
.gov-doc blockquote { font-family: inherit; border-left: 3px solid var(--cyan); background: #f5faf9; color: #333; margin: 12px 0; padding: 8px 16px; }
.gov-doc code { font-family: ui-monospace, Consolas, "Cascadia Code", monospace; background: #eef2f5; color: var(--blue-deep); padding: 1px 5px; border-radius: 4px; font-size: 90%; }
.gov-doc pre { background: #0f2233; color: #d6e6f5; }
.gov-doc pre code { background: transparent; color: inherit; }
/* 三线表（仅顶线/栏目线/底线） */
.gov-doc table { border-collapse: collapse; width: 100%; margin: 14px 0; border-top: 2px solid #333; border-bottom: 2px solid #333;
  font-family: "Microsoft YaHei", sans-serif; font-size: 14px; }
.gov-doc th, .gov-doc td { border: none; padding: 8px 12px; text-align: left; vertical-align: top; }
.gov-doc thead th { border-bottom: 1.2px solid #333; background: transparent; color: #111; font-weight: 700; }
@media (max-width: 880px) { .doc-paper.gov-doc { padding: 26px 20px 36px; } .doc-runhead { padding: 8px 20px; } }

/* ===== 接入示例 / 交互演示 ===== */
.pg-input { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pg-input input { flex: 1; min-width: 240px; }
.pg-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.pg-stage { min-height: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.bubble { background: var(--mist); color: var(--ink); border-radius: 12px; border-top-left-radius: 4px; padding: 12px 16px; margin-bottom: 12px; font-size: 15px; line-height: 1.7; }
.pg-form { border: 1px dashed var(--cyan); border-radius: 12px; padding: 16px; background: #fbfdfe; }
.pg-form-title { font-weight: 800; color: var(--blue-deep); margin-bottom: 12px; }
.pg-field { display: block; margin-bottom: 12px; }
.pg-field > span { display: block; font-size: 13px; color: var(--ink); margin-bottom: 5px; font-weight: 600; }
.pg-field > span i { color: var(--seal); font-style: normal; }
.pg-field input[type=text], .pg-field input[type=date] { width: 100%; }
.pg-radios { display: flex; gap: 16px; }
.pg-radio { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text); cursor: pointer; }
.pg-result { background: rgba(46,139,87,.1); border: 1px solid rgba(46,139,87,.3); border-radius: 12px; padding: 14px 16px; margin-top: 6px; }
.pg-result-h { font-weight: 800; color: var(--ok); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pg-cite { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.pg-cite b { color: var(--ink); margin-right: 4px; }
.pg-task { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.pg-task h4 { margin: 0 0 12px; color: var(--blue-deep); font-size: 15px; }
.task-flow { list-style: none; margin: 0; padding: 0; }
.task-flow li { position: relative; padding: 8px 0 8px 26px; color: var(--muted); font-size: 13px; font-family: ui-monospace, Consolas, monospace; }
.task-flow li::before { content: ''; position: absolute; left: 6px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: #cbd5dc; }
.task-flow li::after { content: ''; position: absolute; left: 10px; top: 21px; bottom: -2px; width: 1px; background: var(--line); }
.task-flow li:last-child::after { display: none; }
.task-flow li.done { color: var(--ink); } .task-flow li.done::before { background: var(--ok); }
.task-flow li.cur { color: var(--blue-deep); font-weight: 700; }
.task-flow li.cur::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(43,108,176,.18); }
.pg-raw { margin-top: 14px; max-height: 220px; overflow: auto; background: #0f2233; color: #cfe2f3; border-radius: 8px; padding: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; white-space: pre; }
.pg-raw:empty { display: none; }

/* 代码 tabs */
.code-tabs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0f2233; }
.code-tabbar { display: flex; gap: 2px; background: #0b1b29; padding: 8px 8px 0; flex-wrap: wrap; }
.code-tabbar button { background: transparent; color: #9fb6cc; border: none; padding: 9px 18px; border-radius: 8px 8px 0 0; cursor: pointer; font-weight: 700; font-size: 14px; }
.code-tabbar button.active { background: #0f2233; color: #fff; }
.code-pane { display: none; position: relative; }
.code-pane.active { display: block; }
.code-pane pre { margin: 0; padding: 20px 22px; overflow: auto; }
.code-pane code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; line-height: 1.7; color: #d6e6f5; white-space: pre; }
.copy-btn { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.22); }
@media (max-width: 880px) { .pg-grid { grid-template-columns: 1fr; } .pg-task { position: static; } }
