/* 正式版新增的少量样式（演示版 base.css、extra.css 原样复用，改样式请改这里或由集成阶段合并） */
.msgs{margin:14px 0}
.msgs .msg-line{padding:10px 14px;border-radius:var(--r-s);margin-bottom:8px;background:var(--green-l);color:var(--navy);font-size:14px}
.msgs .msg-line.error{background:#FBEFEB;color:var(--red)}
.msgs .msg-line.warning{background:var(--apricot-l);color:#8a4b00}
.err{color:var(--red);font-size:13px;margin-top:4px}
.form-narrow{max-width:520px}
/* 打印照旧：缴费、邮寄信息两页 720，文章、帮助等页 860（原来是写在标签上的宽度，第三版改成了类名，屏幕上的宽度在 theme.css） */
@media print{.wrap.form-narrow.form-mid{max-width:720px}.wrap.read-narrow{max-width:860px}}
.field{margin-bottom:14px}
.field label{display:block;font-size:14px;color:var(--ink-2);margin-bottom:4px}
.field .req{color:var(--red);margin-left:2px}
.inline-form{display:inline}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px}
.dev-note{font-size:12px;color:var(--ink-2);border:1px dashed var(--line);padding:6px 10px;border-radius:var(--r-s);margin:10px 0}
.placeholder-box{border:1px dashed var(--line);padding:24px;border-radius:var(--r-m);color:var(--ink-2);background:var(--white)}
.mock-cashier{max-width:420px;margin:30px auto;border:1px solid var(--line);border-radius:var(--r-m);padding:24px;text-align:center}
.mock-cashier .qr{width:200px;height:200px;margin:14px auto;border:2px dashed var(--line);display:flex;align-items:center;justify-content:center;color:var(--ink-2);font-size:13px}
.doc-page{max-width:800px;margin:20px auto;padding:30px;border:1px solid var(--line);background:#fff}
/* 申报书标题现在是 h1（原来从 h2 开始，读屏和标题层级都不对，见 D23）；标题居中，签字栏等 h2 不跟着居中 */
.doc-page .doc-title{text-align:center;margin-bottom:6px}
.doc-page .doc-code{text-align:right;font-size:13px;color:var(--ink-2)}
@media print{header.site,footer.site,.no-print{display:none!important}.doc-page{border:0}}
.adm-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.adm-top form{margin-left:auto}
.adm-top .adm-top-actions{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.adm-top .adm-top-actions form{margin-left:0}
/* 测试环境横幅（DEBUG 关闭但打开了模拟通道）：橙色，不用绿色 */
.mock-banner{background:#FFF4E5;color:#8A4B00;border-bottom:1px solid #F3C98B;font-size:13px;line-height:1.5;padding:6px 16px;text-align:center;word-break:break-all}
/* 页头登录状态（P1：只显示打码手机号）和“消息”未读数（P7）：页头多了两项，窄一些的屏幕上让页头换行，不撑出横向滚动 */
.hd-user{white-space:nowrap}
@media (max-width:1100px){.hd-user{display:none}}
@media (max-width:960px){header.site .hd-top{flex-wrap:wrap;height:auto;min-height:64px;row-gap:4px}}
@media (max-width:960px) and (min-width:761px){.site-title{font-size:17px;letter-spacing:0}}
@media (max-width:480px){
  header.site .hd-top{column-gap:6px;padding:6px 16px}
  header.site .site-title{order:9;flex:1 0 100%;max-width:none;margin:0;padding:0 0 2px;border-left:0;font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .brand-mark{width:30px;height:30px;font-size:12px}
  .hd-actions{gap:6px}
  .hd-actions .btn{padding:4px 7px}
  .menu-btn{padding:5px 7px}
}
/* 一排操作按钮里文字很长的（如带项目名称的“待出证”按钮）：按钮内换行，窄屏上不撑出横向滚动 */
.row-actions .btn{white-space:normal;max-width:100%;text-align:left}

/* ===== 2026-11-03 复查修正 ===== */
/* 首页“证书申请”类别：extra.css 的 .cats 4 列写在 base.css 窄屏规则的后面，把它们盖掉了（手机上 4 列、说明一字一行） */
@media (max-width:900px){.cats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.cats{grid-template-columns:1fr}}
/* 通知列表：标题原来一行放不下就省略号（手机上、项目详情右栏里只剩“2026年度…”，几条通知分不清）。
   窄屏和右栏里标题换行（最多三行），日期另起一行；日期本身不折行、不被挤窄。只管日期（time）：合作单位页项目单位的
   备注（span，最长 50 字）这类别的子元素照常换行，原来“非链接子元素一律不折行”让长备注撑出整页横向滚动 */
.news li>time{flex-shrink:0;white-space:nowrap}
@media (max-width:600px){
  .news li{flex-wrap:wrap;row-gap:0}
  .news li a{flex:1 1 100%;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}
}
.side-layout>:last-child .news li{flex-wrap:wrap;row-gap:0}
.side-layout>:last-child .news li a{flex:1 1 100%;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}
/* 申报状态：base.css 只给了审核中、待补充、待缴费、已获证、未通过五种，另外五种显示成纯文字。蓝、灰、橙，不用绿色 */
.st-to_submit{background:#F4F6F9;color:#5B6B7D;box-shadow:inset 0 0 0 1px #D5DCE6}
.st-in_progress{background:#E3EDFB;color:#1E63C8}
.st-cert_pending{background:#FFF7EE;color:#8A4B00;box-shadow:inset 0 0 0 1px #F0C79A}
.st-withdrawn{background:#F2F2F2;color:#777}
/* 待缴费但现在缴不了（对公转账等财务核对、收费标准或邮寄费待定）：等平台处理，和“审核中”一样用灰色 */
.st-wait{background:#EEF2F7;color:#4B5D73}
.st-ended{background:#EEEEEE;color:#555;box-shadow:inset 0 0 0 1px #D9D9D9}
/* 后台列表：表头、按钮、状态、日期不折行；app.js 给每格都很短的列（编号、姓名、步骤、日期、状态、操作）加 nw，
   只让长的项目名称换行（1366 下“处/理”“测/****”“2026-11-/02”这类折行）。表格都在 .tbl-wrap 里，太宽时表格内横向滚动 */
.tbl th,.tbl td.nw,.tbl td .btn,.tbl td .st,.tbl td time{white-space:nowrap}
.tbl td .pill{white-space:nowrap}
/* 个人中心侧栏（extra.css 的 .me-nav）在 800px 以下原来是一行横向滚动：“我的订单”“消息”这些页的当前项、“同意记录”
   “注销账号”（撤回同意、注销账号的入口，要便于找到）都在屏幕外，得往左滑才看得到。改成换行排满（390 下两三行），
   9 项都在屏幕里、当前项一眼看得到，不靠脚本；格子之间用 1px 的缝当分隔线，当前项下边一条蓝线 */
@media (max-width:800px){
  .me-nav{flex-wrap:wrap;overflow:hidden;gap:1px;background:var(--line)}
  .me-nav a{flex:1 0 auto;justify-content:center;align-items:center;gap:4px;padding:8px 10px;border:0;background:var(--white,#fff);font-size:14px}
  .me-nav a.on{box-shadow:inset 0 -3px 0 var(--green)}
}
/* 消息列表：“查看”按钮不再被拉成和整条消息一样高 */
.msg-item{align-items:flex-start}
.msg-item>.btn,.msg-item>form{flex:none;white-space:nowrap}
/* 后台左侧菜单的待办数字（演示版 MENU_ALL）：用 data-n + ::after 画红色角标，菜单文字本身不变（同 base.css 的 .adm-side a em） */
.adm-side a[data-n]::after{content:attr(data-n);flex:none;align-self:center;margin-left:8px;font-style:normal;background:#E8483B;color:#fff;border-radius:999px;font-size:11.5px;padding:0 7px;line-height:20px}
/* 后台页头：上传文件没有经过病毒扫描的提示（VIRUS_SCANNER=noop 且 DEBUG 关闭） */
.adm-main .scan-banner{margin:0 0 12px;border:1px solid #F3C98B;border-radius:var(--r-s);text-align:left}
/* 手机宽度（600px 以下）把表格改成一行一块、每格前面显示列名（td 写 data-label；没写的格不显示列名，如“撤回”按钮）：
   家长端“同意记录”等不再被挤成一字一行（notes/fix-review.md N4；和“我的证书”的 certs.css 同一做法）。
   表格行还是 <tr>，表头视觉隐藏、读屏照样能读。电脑上还是表格 */
@media (max-width:600px){
  .tbl-wrap table.tbl.tbl-stack{min-width:0}
  .tbl.tbl-stack td,.tbl.tbl-stack td.nw{overflow-wrap:anywhere;white-space:normal}
  .tbl-stack thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .tbl-stack,.tbl-stack tbody,.tbl-stack tr,.tbl-stack td{display:block;width:100%}
  .tbl-stack tr{padding:10px 0;border-bottom:1px solid var(--line)}
  .tbl-stack tr:last-child{border-bottom:0}
  .tbl.tbl-stack td{position:relative;border:0;padding:3px 14px 3px calc(14px + 5em);min-height:1.7em}
  .tbl.tbl-stack td::before{content:attr(data-label);position:absolute;left:14px;top:3px;width:4.6em;color:var(--ink-2);font-size:13px}
  .tbl.tbl-stack td:not([data-label]){padding-left:14px}
  .tbl.tbl-stack td:not([data-label])::before{content:none}
}

/* ============ 2026-11-05 前端复查（.brief/audit-frontend.md 第八节 D1—D25） ============ */

/* D24 Logo 的位置：现在画的是“美德”两个字的圆标（占位）；接上传 Logo 的任务在这里放 <img class="brand-logo-img"> */
.brand-logo{overflow:hidden}
.brand-logo .brand-logo-img{display:block;width:100%;height:100%;object-fit:contain}

/* D23 跳到正文：键盘用户第一个 Tab 就能跳过页头导航；平时在左上角露出一条，不被页头盖住 */
.skip-link{position:absolute;left:8px;top:6px;z-index:80;background:var(--green);color:#fff;border-radius:var(--r-s);
  padding:10px 16px;transform:translateY(-160%);transition:transform .15s}
.skip-link:focus{transform:none;color:#fff;text-decoration:none;outline:3px solid #8DB8F2;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.skip-link{transition:none}}

/* D23 出错时聚焦到的提示：程序聚焦（tabindex=-1）也要有清楚的焦点框 */
[role=alert]:focus,.err:focus,.msg-line:focus{outline:3px solid #8DB8F2;outline-offset:2px}

/* D13 手机输入框字号 16px：iOS Safari 聚焦小于 16px 的输入框会自动放大整页 */
@media (max-width:600px){
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),
  select,textarea{font-size:16px}
}

/* D14 右下角浮动客服入口（原来只有页脚里的文字链接，手机页脚很高，要划到底才看得到） */
.cs-fab{position:fixed;right:16px;bottom:20px;z-index:46;display:inline-flex;align-items:center;gap:6px;
  min-height:48px;padding:0 18px;border-radius:999px;background:var(--green);color:#fff;font-size:15px;
  box-shadow:0 6px 20px rgba(30,99,200,.35);text-decoration:none!important;white-space:nowrap}
.cs-fab:hover{background:var(--green-d);color:#fff;text-decoration:none!important}
.cs-fab::before{content:"";width:8px;height:8px;border-radius:50%;background:#fff;opacity:.9}
@media (max-width:600px){footer.site{padding-bottom:78px}}      /* 页脚最后一行不被浮动入口挡住 */
@media (max-width:700px){body:has(.pj-cta) .cs-fab{bottom:84px}}  /* 项目页手机上另有吸底的报名按钮 */

/* D6 手机上“立即报名 / 为孩子申报”吸在屏幕底部（原来在页面 1472—2460px 处） */
.pj-cta-space{display:none}
@media (max-width:700px){
  .pj-cta{position:fixed;left:0;right:0;bottom:0;z-index:45;border-radius:0;font-size:16px;min-height:56px;
    padding:14px 16px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -2px 12px rgba(15,40,80,.18)}
  .pj-start-h{display:none}
  .pj-cta-space{display:block;height:72px}
}

/* D23 触控目标：手机上按钮、标签、导航这类点到的东西不小于 44px（正文里的行内链接不算） */
@media (max-width:600px),(pointer:coarse){
  .btn,.btn-s,.menu-btn,.tabs a,.stage-tabs a,.stage-tabs button,.filter a,.subnav a,.mod,.me-nav a,.adm-side a,
  footer.site a,.chip,.tile,.lk,.pj-stage a,.pj-cta,.cs-fab,.dots button,.tb-link{min-height:44px}
  .btn,.menu-btn,.tabs a,.stage-tabs a,.filter a,.me-nav a,.adm-side a{display:inline-flex;align-items:center;justify-content:center}
  footer.site a{display:flex;align-items:center}
  .tbl .btn-link,.tbl .tbl-act a,.tbl .tbl-act button{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
  .upl-item .btn-link,.file-list .btn-link{min-height:44px}
}

/* D2/D15/D16 后台和前台的长表格：给内容留出最小宽度，太宽时在 .tbl-wrap 里横滑，不把项目名压成一两个字一行；
   最后一列（操作）吸在右边，横滑时也点得到（订单页的“详情”、审核列表的“处理”）。 */
/* D17 文件框自带 250—300px 的宽度，会把项目设置页、证书制作页（1024、768、320）撑出整页横向滚动 */
input[type=file]{max-width:100%;min-width:0}
.adm-main h1,.adm-main h2{overflow-wrap:anywhere}
@media (min-width:1001px){
  .adm-main table.tbl{min-width:820px}
  .adm-main table.tbl.tbl-wide{min-width:1000px}
}
.tbl-wrap{position:relative}
.tbl td.tbl-act,.tbl th.tbl-act{position:sticky;right:0;background:#fff;box-shadow:-6px 0 8px -8px rgba(15,40,80,.35)}
.tbl th.tbl-act{background:#fff}
@media (max-width:600px){.tbl td.tbl-act,.tbl th.tbl-act{position:static;box-shadow:none}}
@media print{.tbl td.tbl-act,.tbl th.tbl-act{position:static;box-shadow:none}}
.tbl td.tbl-desc{min-width:14em}      /* D19 审批页的“说明”列 */

/* D10 上传进度：脚本给上传表单加一条进度条（没有脚本时表单照常提交） */
.upl-progress{margin:8px 0 2px;font-size:13px;color:var(--ink-2)}
.upl-progress .upl-bar{height:8px;border-radius:999px;background:var(--line);overflow:hidden}
.upl-progress .upl-bar i{display:block;height:100%;width:0;background:var(--green);transition:width .2s}
.upl-progress .upl-text{display:block;margin-top:4px}
@media (prefers-reduced-motion:reduce){.upl-progress .upl-bar i{transition:none}}


.mock-cashier .wx-qr{width:max-content;max-width:100%;margin:14px auto;padding:6px;background:#fff;border:1px solid var(--line);line-height:0}
.mock-cashier .wx-qr svg{display:block;max-width:100%;height:auto}
/* 页脚：非政府网站说明、主办方官网。配色同页脚版权的 #5B6B7D（白底对比度 ≥ 4.5） */
footer.site .foot-non-gov{margin:6px 0 0;font-size:12px;color:#5B6B7D}
footer.site .foot-org-link{display:inline;color:#5B6B7D;text-decoration:underline}
