/* ===== 批次400｜中文法规矩阵总表页 =====
   状态色只做辅助：每个状态同时有文字和符号，不依赖辨色也能读。 */
.rm-lead{font-size:17px;line-height:1.75;color:#2c3b4a;margin:14px 0 6px}
.rm-sub{font-size:13.5px;line-height:1.7;color:#5f6780;margin:0 0 4px}
.rm-legend{list-style:none;padding:0;margin:16px 0 8px;display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px}
.rm-legend li{display:flex;gap:9px;align-items:flex-start;margin:0;font-size:14px;color:#2c3b4a}
.rm-legend .rm-k{flex:0 0 auto;width:20px;height:20px;border-radius:6px;display:grid;
  place-items:center;font:600 12px/1 -apple-system,"Segoe UI",sans-serif;margin-top:2px}
.rm-k.p{background:#eef8f1;color:#17693e;border:1px solid #cfe9d9}
.rm-k.r{background:#fdf4e3;color:#8a5a00;border:1px solid #f0dfba}
.rm-k.x{background:#fdecea;color:#a02b25;border:1px solid #f2cdc9}
.rm-k.c{background:#f1f2f6;color:#5b6478;border:1px solid #dfe2ea}
.rm-tw{overflow-x:auto;border:1px solid #e8eaf1;border-radius:12px;background:#fff;margin:16px 0 6px}
.rm-hint{display:none;margin:0 0 18px;font-size:12px;line-height:1.6;color:#5f6780}
@media (max-width:640px){.rm-hint{display:block}}
/* ---- 速览网格 ---- */
table.rm-glance{width:100%;border-collapse:collapse;font-size:13px;min-width:660px;margin:0}
.rm-glance th,.rm-glance td{border-bottom:1px solid #eef0f5;padding:9px 8px;text-align:center}
.rm-glance thead th{font-size:12px;letter-spacing:.02em;
  color:#5f6780;font-weight:600;background:#fbfafd;border-bottom:1px solid #e8eaf1;white-space:nowrap}
.rm-glance th[scope=row],.rm-glance tbody th{text-align:left;font-weight:600;color:#1b2733;
  background:#fff;position:sticky;left:0;z-index:1;white-space:nowrap;font-size:13.5px;
  border-right:1px solid #f1f3f8}
.rm-glance th[scope=row] a{color:#1b2733;text-decoration:none;border-bottom:1px solid #c8bfee}
.rm-glance th[scope=row] a:hover{color:#3d29a4;border-bottom-color:#3d29a4}
.rm-glance tbody tr:last-child th,.rm-glance tbody tr:last-child td{border-bottom:0}
.rm-mk{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:7px;
  font:600 12px/1 -apple-system,"Segoe UI",sans-serif}
.rm-mk.p{background:#eef8f1;color:#17693e;border:1px solid #cfe9d9}
.rm-mk.r{background:#fdf4e3;color:#8a5a00;border:1px solid #f0dfba}
.rm-mk.x{background:#fdecea;color:#a02b25;border:1px solid #f2cdc9}
.rm-mk.c{background:#f1f2f6;color:#5b6478;border:1px solid #dfe2ea}
/* 批次400：勾与叉原来是两个符号字符（U+2713 / U+2715），被视觉体检判为「emoji 当 UI」。
   改成纯 CSS 几何图形（对勾＝两条边框转 -45°，叉＝十字渐变转 +45°），
   字符位留空，语义另由 .rm-sr 与 title 承担，不依赖辨色。 */
.rm-mk.p::before,.rm-k.p::before,.rm-st.p i::before{content:"";display:block;
  width:10px;height:5px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(-45deg) translate(1px,-1px)}
.rm-mk.x::before,.rm-k.x::before,.rm-st.x i::before{content:"";display:block;
  width:11px;height:11px;
  background:linear-gradient(currentColor,currentColor) center/11px 2px no-repeat,
             linear-gradient(currentColor,currentColor) center/2px 11px no-repeat;
  transform:rotate(45deg)}
.rm-mk.p::before,.rm-mk.x::before{margin:0}
.rm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* ---- 每个原料的 8 行表 ---- */
.rm-card{border-top:1px solid #eef0f5;margin:34px 0 0;padding-top:26px}
.rm-card:first-of-type{border-top:0}
.rm-meta{font-size:12.5px;line-height:1.6;color:#5f6780;margin:-4px 0 2px}
.rm-meta b{font-weight:500;color:#3f4855}
.rm-fig{margin:0}
.rm-tw-mat{margin-top:14px}
.rm-cap{margin:0;padding:11px 14px;background:#fbfafd;border-bottom:1px solid #e8eaf1;
  font-size:12.5px;font-weight:600;color:#3f4855}
table.rm-mat{width:100%;border-collapse:collapse;font-size:13.5px;min-width:560px;margin:0}
.rm-mat th{text-align:left;padding:10px 14px;background:#fbfafd;color:#5f6780;font-weight:500;
  font-size:12px;border-bottom:1px solid #e8eaf1;white-space:nowrap}
.rm-mat td{padding:11px 14px;border-bottom:1px solid #f2f3f7;color:#3a4450;line-height:1.65;
  vertical-align:top}
.rm-mat tbody tr:last-child td{border-bottom:0}
.rm-mat td:first-child{font-weight:600;color:#1b2733;white-space:nowrap}
.rm-st{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;
  font-size:12px;line-height:1.5;white-space:nowrap}
.rm-st i{font-style:normal;font-weight:700;display:inline-grid;place-items:center;width:11px;height:12px}
.rm-st.p{background:#eef8f1;color:#17693e}
.rm-st.r{background:#fdf4e3;color:#8a5a00}
.rm-st.x{background:#fdecea;color:#a02b25}
.rm-st.c{background:#f1f2f6;color:#5b6478}
.rm-basis{display:block;font-size:12.5px;color:#5f6780;margin-bottom:3px}
.rm-note{display:block;color:#3a4450}
.rm-watch{margin:14px 0 0;padding:12px 16px;background:#fffbf0;border:1px solid #f2e6c8;
  border-radius:10px;font-size:13px;line-height:1.75;color:#6b5416}
.rm-watch b{font-weight:600}
/* ---- 可说 / 不可说 ---- */
.rm-claims{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 0}
.rm-claims > div{padding:14px 16px;border-radius:10px;border:1px solid #e8eaf1;background:#fcfcfd}
.rm-claims .ok{border-color:#d5ebdd;background:#f7fcf9}
.rm-claims .no{border-color:#f2dcd9;background:#fefaf9}
.rm-claims h4{margin:0 0 8px;font-size:12.5px;font-weight:600;color:#3f4855}
.rm-claims .ok h4{color:#17693e}
.rm-claims .no h4{color:#a02b25}
.rm-claims ul{margin:0;padding-left:17px}
.rm-claims li{margin:0 0 7px;font-size:13px;line-height:1.65;color:#3a4450}
.rm-claims li:last-child{margin-bottom:0}
.rm-verify{margin:14px 0 0;font-size:12.5px;line-height:1.8;color:#5f6780}
.rm-verify b{font-weight:600;color:#3f4855}
.rm-chip{display:inline-block;margin:0 5px 0 0;padding:2px 8px;border-radius:999px;
  background:#f1f2f6;border:1px solid #dfe2ea;font-size:12px;color:#4a5160}
.rm-q{margin:22px 0 0}
.rm-q h3{font-size:15.5px;margin:0 0 8px;color:#1b2733;font-weight:600}
.rm-q p{margin:0;font-size:14.5px;line-height:1.8;color:#3a4450}
.qg-foot{margin:34px 0 0;padding-top:20px;border-top:1px solid #eef0f5;font-size:12.5px;
  line-height:1.7;color:#5f6780}
@media (max-width:767px){
  .rm-legend{grid-template-columns:1fr}
  .rm-claims{grid-template-columns:1fr}
}
/* 单原料表在窄屏改纵向堆叠：三列横滑只能看到 1/3 依据列 */
@media (max-width:560px){
  table.rm-mat{min-width:0}
  .rm-mat thead{display:none}
  .rm-mat tbody tr{display:block}
  .rm-mat td{display:block;border-bottom:0;padding:0 14px}
  .rm-mat td:first-child{background:#fbfafd;padding:10px 14px 6px;border-bottom:1px solid #eef0f5}
  .rm-mat td:nth-child(2){padding:9px 14px 0}
  .rm-mat td:nth-child(3){padding:7px 14px 12px;border-bottom:1px solid #eef0f5}
  .rm-hint-mat{display:none}
}
