/* ============================================================
   MG.AI · 全局观感精修补丁  mg-polish.css
   ------------------------------------------------------------
   ① 文字加深：macOS 下 -webkit-font-smoothing:antialiased 会让字
      变细变浅 —— 恢复为 auto（次像素渲染），同时加深次要文字色，
      电脑端与手机端都不再"发灰"。
   ② 边界分明齐整：加深统一的描边色 --line，表格补上完整网格线、
      表头底色，卡片 / 面板 / 表格外框一致。
   仅做增量覆盖，不改动原 style.css / motion.css 任何规则。
   ============================================================ */

/* ---------- ① 文字清晰度 ---------- */
:root {
  --muted: #475569 !important;   /* 原 #64748b：次要文字加深 */
  --line: #c9d4e2 !important;    /* 原 #e8edf3：描边更分明 */
}
body {
  -webkit-font-smoothing: auto !important;   /* 关键：不再用 antialiased，字更实 */
  -moz-osx-font-smoothing: auto !important;
  color: #0b1220 !important;
  text-rendering: optimizeLegibility;
}
.txt, .txt p, .txt li { color: #1f2937 !important; }
/* 原本 #94a3b8 / #cbd5e1 的浅底小字，统一加深一档 */
.live-lbl, .live-note, .legal .sign, .quote-univ .src,
.ad-slot, .ad-slot .ad-main, .ad-slot .ad-tag,
.doc-thumb .doc-icon, .ws-hint, .q-num, .step-num {
  color: #64748b !important;
}
.badge { color: #334155 !important; font-weight: 800 !important; }
/* 页脚深色底上的浅字提亮一档（保持不刺眼，但不再发灰） */
.footer { color: #b9c5d4 !important; }
/* 次要说明文字略微加粗，观感更实 */
.t-sub, .crumb, .note, .section-desc, .card p, .hub-card p, .doc-body p {
  font-weight: 600;
}

/* ---------- ② 边界分明齐整 ---------- */
/* 统一的卡片 / 面板 / 区块描边色 */
[class*="card"], [class*="panel"], [class*="box"], [class*="-box"],
.figure, .notice, .q-drawer, .ws-card, .doc-card, .product {
  border-color: var(--line) !important;
}

/* 表格：完整网格线 + 表头底色，横竖都齐整 */
table { border-collapse: collapse !important; }
table th, table td {
  border: 1px solid var(--line) !important;
  padding: 8px 10px;
}
table thead th, table tr:first-child th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  white-space: normal;
}
table tbody tr:nth-child(even) td { background: #fafbfd; }
table tr.total td, table tr.t td { background: #fffbeb !important; font-weight: 800; }

/* 表单控件描边同步加深，边界更清 */
input, select, textarea { border: 1px solid var(--line) !important; }

/* 标题与分隔线更清晰 */
hr, .divider { border-top: 1px solid var(--line) !important; }
h1, h2, h3, h4 { color: #0f172a; font-weight: 800; }
