body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; margin: 0; color: #222; background: #f6f7f9; }
header { background: #1f3a5f; color: #fff; padding: 12px 24px; display: flex; align-items: baseline; gap: 12px; }
header .logo { color: #fff; text-decoration: none; font-size: 18px; font-weight: 600; }
header .tag { font-size: 12px; opacity: .7; }
main { max-width: 1180px; margin: 20px auto; padding: 0 20px; }
h2 { font-size: 20px; margin: 0 0 16px; }
h3 { font-size: 16px; margin: 28px 0 10px; padding-left: 8px; border-left: 3px solid #1f3a5f; }
section { background: #fff; padding: 16px 20px; border-radius: 6px; margin-bottom: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { border: 1px solid #e2e5ea; padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: #eef1f5; }
td.name { font-weight: 600; min-width: 150px; }
td.std { color: #555; }
td.hot { background: #fff6e5; }
.flash { background: #e8f4ea; border: 1px solid #b6dfc0; padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; }
form.new { margin-bottom: 16px; }
button { padding: 5px 14px; background: #1f3a5f; color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
input, textarea { padding: 4px 6px; border: 1px solid #ccc; border-radius: 3px; }
.hint { color: #888; font-size: 12px; }
.meta { color: #555; font-size: 13px; }

/* 页脚 + ICP 备案号（2026-11-06 备案上线预留）：管局要求备案号挂在网站底部、
   可点击跳工信部 beian.miit.gov.cn；没拿到号前页脚为空块，不影响布局。 */
.site-footer { text-align: center; padding: 24px 0 32px; font-size: 12px; color: #888; }
.site-footer a { color: #888; text-decoration: none; }
.site-footer a:hover { color: #1f3a5f; text-decoration: underline; }
/* 编号下方那条独立的工信部入口：与备案号分两行，便于管局抽查时一眼可见 */
.site-footer .icp-gov { margin-top: 4px; }
.empty { color: #888; }
ol li { font-size: 13px; margin-bottom: 4px; }
a.btn { display: inline-block; padding: 5px 14px; background: #1f3a5f; color: #fff; border-radius: 4px; text-decoration: none; font-size: 13px; margin-left: 6px; }
a.btn.off { background: #bbb; pointer-events: none; }
pre.doc { background: #fafbfc; border: 1px solid #e2e5ea; padding: 12px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; font-family: "Microsoft YaHei", monospace; max-height: 460px; overflow: auto; }
.tree { font-size: 13px; line-height: 1.8; max-height: 260px; overflow: auto; border: 1px solid #e2e5ea; padding: 8px 12px; margin-top: 8px; }
.tree .lv1 { font-weight: 600; color: #1f3a5f; margin-top: 4px; }
.tree .lv2 { padding-left: 16px; color: #555; }
.tree .lv3 { padding-left: 32px; color: #777; }
.bad { color: #c0392b; }
.good { color: #1e8449; }
details { margin: 10px 0; }
summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #1f3a5f; }
textarea.editor { width: 100%; font-family: "Microsoft YaHei", monospace; font-size: 13px; line-height: 1.7; padding: 10px; border: 1px solid #ccd; border-radius: 4px; box-sizing: border-box; }
button.ghost { background: #fff; color: #1f3a5f; border: 1px solid #1f3a5f; }

/* 章节富文本编辑器（P0 #10） */
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: #f6f8fa; border: 1px solid #ccd; border-bottom: none;
  border-radius: 4px 4px 0 0; padding: 6px 8px; }
.rte-toolbar button { background: #fff; border: 1px solid #ccd; border-radius: 4px;
  padding: 2px 9px; font-size: 13px; cursor: pointer; }
.rte-toolbar button:hover { background: #eef3f9; border-color: #1f3a5f; }
.rte-body { min-height: 380px; max-height: 640px; overflow: auto; background: #fff;
  border: 1px solid #ccd; border-radius: 0 0 4px 4px; padding: 14px 16px;
  font-size: 13px; line-height: 1.8; font-family: "Microsoft YaHei", sans-serif; }
.rte-body:focus { outline: 2px solid #cfe0f3; }
.rte-body p { margin: 6px 0; }
.rte-body h4.rte-sec { color: #1f3a5f; border-left: 3px solid #1f3a5f; padding-left: 8px;
  margin: 14px 0 6px; font-size: 14px; }
.rte-body table.rte-table { border-collapse: collapse; margin: 8px 0; width: 100%; }
.rte-body table.rte-table th, .rte-body table.rte-table td {
  border: 1px solid #ccd; padding: 4px 8px; font-size: 12.5px; }
.rte-body table.rte-table th { background: #eef3f9; }
.rte-source-wrap { border: 1px solid #ccd; border-radius: 0 0 4px 4px; padding: 8px 10px; background: #fff; }
textarea.rte-source { width: 100%; font-family: "Microsoft YaHei", monospace; font-size: 13px;
  line-height: 1.7; padding: 8px; border: 1px solid #dde; border-radius: 4px; box-sizing: border-box; }

/* 修订辅助（P1 #21）：矛盾点定位与一键重写 */
.rev-box { border: 1px solid #e8c6c6; background: #fffafa; border-radius: 6px;
  padding: 10px 14px; margin: 12px 0; }
.rev-head { margin-bottom: 8px; font-size: 13px; }
.rev-form { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; font-size: 13px; }
.rev-ck { font-size: 12.5px; color: #444; }
.rev-form button { padding: 4px 10px; font-size: 12.5px; }

/* ---- 账号体系（2026-10-14 P0-1）：顶部用户信息与账号管理页 ---- */
header .who { font-size: 13px; opacity: .85; margin-left: auto; }
header a.nav-link { color: #fff; font-size: 13px; opacity: .85; text-decoration: none; }
header a.nav-link:hover { opacity: 1; text-decoration: underline; }
button.mini { padding: 3px 9px; font-size: 12px; }
form.card { background: #f7f9fc; border: 1px solid #e2e8f0; padding: 14px 16px;
  border-radius: 6px; display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
form.card label { font-size: 12.5px; color: #555; display: flex; flex-direction: column; gap: 4px; }

/* ---- 后台任务进度条（2026-10-14 P0-2）----
   生成/重写/自检/导出都改成异步了，进度在顶部常驻显示，可离开页面 */
.taskbar { position: sticky; top: 0; z-index: 50; background: #fff8e6;
  border-bottom: 2px solid #d9a441; padding: 8px 18px 10px; }
.taskbar-inner { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; }
.taskbar-inner b { color: #8a5a00; }
.taskbar-msg { color: #555; flex: 1; }
.taskbar-pct { font-weight: bold; color: #8a5a00; min-width: 42px; text-align: right; }
.taskbar-track { height: 6px; background: #ecd9ae; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.taskbar-fill { height: 100%; width: 0; background: #d9a441; transition: width .4s ease; }
.taskbar-tip { font-size: 12px; color: #777; margin-top: 5px; }
.taskbar-tip.ok  { color: #1e8449; font-weight: bold; }
.taskbar-tip.bad { color: #c0392b; font-weight: bold; }

/* ---------- 文档页：内测说明 / 保密承诺 / 服务协议（2026-11-01 阶段一） ----------
   目的：这些条款要让种子客户真读得进去，所以排版上留足行距、
        红线条款用独立色块框出来，不放长篇法条。 */
.doc-wrap { max-width: 820px; line-height: 1.75; }
.doc-wrap p { margin: 10px 0; }
.doc-wrap h4 { font-size: 14.5px; color: #1f3a5f; margin: 20px 0 6px; }
.doc-wrap ol, .doc-wrap ul { padding-left: 22px; margin: 8px 0; }
.doc-wrap li { margin: 5px 0; }
/* 章节跳转条 */
.doc-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 22px;
           padding: 10px 14px; background: #fff; border: 1px solid #e2e5ea; border-radius: 6px; }
.doc-nav a { color: #1f3a5f; font-size: 13.5px; text-decoration: none; }
.doc-nav a:hover { text-decoration: underline; }
/* 表格：承诺 / 价格 */
.doc-table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13.5px; }
.doc-table th, .doc-table td { border: 1px solid #e2e5ea; padding: 8px 10px;
                               text-align: left; vertical-align: top; }
.doc-table th { background: #eef3f9; font-weight: 600; }
/* 红线条款色块：只用于必须看见的地方 */
.warn-box { background: #fffafa; border: 1px solid #e8c6c6; border-left: 4px solid #c0392b;
            border-radius: 5px; padding: 12px 16px; margin: 12px 0; }
.warn-box p { margin: 8px 0; }

/* 首页「内测说明」入口卡片：常驻提醒，不弹窗、不强制勾选 */
.notice-card { background: #fff; border: 1px solid #e2e5ea; border-left: 4px solid #1f3a5f;
               border-radius: 6px; padding: 12px 18px; margin-bottom: 22px; }
.notice-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.notice-head b { font-size: 14.5px; color: #1f3a5f; }
.notice-head a { font-size: 13px; color: #1f3a5f; }
.notice-card ul { padding-left: 20px; margin: 6px 0; }
.notice-card li { font-size: 13.5px; color: #444; margin: 4px 0; line-height: 1.6; }
/* 微信二维码（联系方式：扫码/私发，不放明文手机号） */
.notice-card img.qr { width: 160px; height: 160px; border: 1px solid #e2e5ea;
                      border-radius: 4px; display: block; margin-bottom: 8px; }
