/* =============================================================================
 * pc-ui-1105.css · PC 端全局 UI 统一补丁（2026-11-05）
 * -----------------------------------------------------------------------------
 * 目标：把 34+ 页实机体检发现的「配色失控 / 卡片规格不一 / 控件割裂」收敛到
 *       项目既有 tokens.css 的暖橙主色体系，与上一轮 h5-ui-1105 / chat-ui-1105
 *       保持同一套观感；不动任何 DOM 结构、JS 与业务逻辑。
 *
 * 作用边界（三重保险，任一不满足即整段不命中）：
 *   ① @media (min-width:481px)          → PC 视口，H5 手机视口零影响
 *   ② body[data-pcui]                   → 只有部署脚本挂过 link 的页面才生效
 *   ③ :not(.h5-app):not(.chat-app)      → H5 SPA 与 AI 对话页（已有 chat-ui-1105）整段让路
 *
 * 回滚：删除模板里的 <link rel=stylesheet href=...pc-ui-1105.css...> 即可，
 *       不影响原 style.css / tokens.css / 各页内联 <style>。
 * 注意：不依赖 tokens.css 变量（记忆中心/运营面板等独立页未加载 tokens），
 *       全部使用字面色值；所有 !important 仅用于压过模板内联 style。
 * ========================================================================== */

@media (min-width: 481px) {

/* ---------------------------------------------------------------- 0. 画布 */
body[data-pcui]:not(.h5-app):not(.chat-app) {
  background-color: #F7F8FA !important;
  background-image: none !important;
  color: #1B1F27;
}

/* ------------------------------------------------------------ 1. 卡片规格 */
body[data-pcui]:not(.h5-app):not(.chat-app) .card:not(.bg-gradient-primary),
body[data-pcui]:not(.h5-app):not(.chat-app) .panel,
body[data-pcui]:not(.h5-app):not(.chat-app) .hall-card,
body[data-pcui]:not(.h5-app):not(.chat-app) .uc-side,
body[data-pcui]:not(.h5-app):not(.chat-app) .stat {
  border: 1px solid #E7E9EE !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .05) !important;
  background-color: #FFFFFF;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .card:not(.bg-gradient-primary):hover,
body[data-pcui]:not(.h5-app):not(.chat-app) .hall-card:hover {
  box-shadow: 0 8px 22px rgba(16, 24, 40, .09) !important;
  border-color: #F3D3C7 !important;
}

/* ------------------------------------------------------------ 2. 按钮规格 */
body[data-pcui]:not(.h5-app):not(.chat-app) button,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn,
body[data-pcui]:not(.h5-app):not(.chat-app) a.btn-main,
body[data-pcui]:not(.h5-app):not(.chat-app) input[type=submit] {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* 主操作：统一实色哑光橙（与 H5 / 对话框主按钮同值），白字、轻投影 */
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-primary,
body[data-pcui]:not(.h5-app):not(.chat-app) button.primary,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-main,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-add-record,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-add-med,
body[data-pcui]:not(.h5-app):not(.chat-app) .ai-insight-btn,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-take,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-success,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-block.btn-primary,
body[data-pcui]:not(.h5-app):not(.chat-app) button[id=btn],
body[data-pcui]:not(.h5-app):not(.chat-app) button[style*="#10B981"],
body[data-pcui]:not(.h5-app):not(.chat-app) button[style*="#10b981"],
body[data-pcui]:not(.h5-app):not(.chat-app) button[style*="#059669"],
body[data-pcui]:not(.h5-app):not(.chat-app) button[style*="#34D399"],
body[data-pcui]:not(.h5-app):not(.chat-app) button[style*="#6d28d9"] {
  background: #C24A28 !important;
  background-image: none !important;
  border: 1px solid #C24A28 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(194, 74, 40, .16) !important;
  min-height: 38px;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-primary:hover,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-main:hover,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-take:hover,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-success:hover,
body[data-pcui]:not(.h5-app):not(.chat-app) button.primary:hover {
  background: #A8431F !important;
  border-color: #A8431F !important;
}

/* 次级操作：白底 + 浅橙描边 + 深橙字（原红色/蓝色描边按钮收敛） */
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-outline-primary,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-miss,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-secondary,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-warning,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-info,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-light {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid #F3D3C7 !important;
  color: #A8431F !important;
  box-shadow: none !important;
}
/* 橙色 hero 上的白描边按钮不能被染成橙底，保持白色 */
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-outline-light {
  border-color: rgba(255, 255, 255, .8) !important;
  color: #FFFFFF !important;
}

/* 小按钮：尺寸不退化，圆角随主体系 */
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-sm {
  font-size: 13px !important;
  border-radius: 8px !important;
  min-height: 32px;
}

/* 顶部「退出」裸链接 → 收成浅橙 pill */
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-logout {
  border-radius: 999px !important;
  padding: 4px 10px !important;
  background: #FCEEE9 !important;
  border: 1px solid #F3D3C7 !important;
  font-size: 13px !important;
}

/* ------------------------------------------------------------ 3. 表单控件 */
body[data-pcui]:not(.h5-app):not(.chat-app) input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=file]),
body[data-pcui]:not(.h5-app):not(.chat-app) select,
body[data-pcui]:not(.h5-app):not(.chat-app) textarea,
body[data-pcui]:not(.h5-app):not(.chat-app) .form-control,
body[data-pcui]:not(.h5-app):not(.chat-app) .form-select {
  background: #FFFFFF !important;
  border: 1px solid #DDE1E7 !important;
  border-radius: 10px !important;
  color: #1B1F27 !important;
  font-size: 14px !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) input:focus,
body[data-pcui]:not(.h5-app):not(.chat-app) select:focus,
body[data-pcui]:not(.h5-app):not(.chat-app) textarea:focus,
body[data-pcui]:not(.h5-app):not(.chat-app) .form-control:focus,
body[data-pcui]:not(.h5-app):not(.chat-app) .form-select:focus {
  border-color: #E8613C !important;
  box-shadow: 0 0 0 3px rgba(232, 97, 60, .12) !important;
  outline: none !important;
}

/* ------------------------------------------------------------ 4. 表格 */
body[data-pcui]:not(.h5-app):not(.chat-app) table {
  background: #FFFFFF !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px;
  font-size: 14px !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) th {
  background: #F7F8FA !important;
  color: #5A6270 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #E7E9EE !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) td {
  padding: 10px 12px !important;
  border-bottom: 1px solid #EEF0F3 !important;
  font-size: 14px !important;
}

/* -------------------------------------------------- 5. 徽章 / 标签 / 状态 */
body[data-pcui]:not(.h5-app):not(.chat-app) .badge,
body[data-pcui]:not(.h5-app):not(.chat-app) .status-tag,
body[data-pcui]:not(.h5-app):not(.chat-app) .demo-badge,
body[data-pcui]:not(.h5-app):not(.chat-app) .urgency,
body[data-pcui]:not(.h5-app):not(.chat-app) .badge-preference,
body[data-pcui]:not(.h5-app):not(.chat-app) .urgen {
  border-radius: 999px !important;
  padding: 3px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: #FCEEE9 !important;
  background-image: none !important;
  border: 1px solid #F3D3C7 !important;
  color: #A8431F !important;
}
/* 语义色保留但降饱和：绿/黄/青/红 → 柔和底 + 深字 */
body[data-pcui]:not(.h5-app):not(.chat-app) .badge.bg-success,
body[data-pcui]:not(.h5-app):not(.chat-app) .badge.text-bg-success {
  background: #F3F8F5 !important; color: #1F9D63 !important; border-color: #DCEAE1 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .badge.bg-warning,
body[data-pcui]:not(.h5-app):not(.chat-app) .status-tag.bg-warning,
body[data-pcui]:not(.h5-app):not(.chat-app) .badge.text-bg-warning {
  background: #FFF7ED !important; color: #B7791F !important; border-color: #FBE3BC !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .badge.bg-info,
body[data-pcui]:not(.h5-app):not(.chat-app) .status-tag.bg-info,
body[data-pcui]:not(.h5-app):not(.chat-app) .badge.text-bg-info {
  background: #F0F7FB !important; color: #0B4A6F !important; border-color: #CFE6F5 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .badge.bg-danger,
body[data-pcui]:not(.h5-app):not(.chat-app) .urgency.urgent {
  background: #FDECEA !important; color: #B42318 !important; border-color: #F6CFC9 !important;
}

/* ------------------------------------------------------------ 6. 告警块 */
body[data-pcui]:not(.h5-app):not(.chat-app) .alert-high {
  background: #FFF7ED !important; border-left: 3px solid #F08363 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .alert-medium {
  background: #F7F9FB !important; border-left: 3px solid #9AA5B4 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .alert-critical {
  background: #FDF2F2 !important; border-left: 3px solid #D92D20 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .alert-low {
  background: #F3F8F5 !important; border-left: 3px solid #1F9D63 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .demo-banner {
  background: #FDF7F4 !important;
  border: 1px solid #F3D3C7 !important;
  border-radius: 12px !important;
  color: #A8431F !important;
}

/* ------------------------------------------------------- 7. 卡片标题条 */
/* 住院看板砖红实色条 / 预警中心粉红条 → 浅橙底 + 深橙字 + 左侧橙 accent */
body[data-pcui]:not(.h5-app):not(.chat-app) .card-header:not(.bg-gradient-primary) {
  background: #FCEEE9 !important;
  background-image: none !important;
  color: #A8431F !important;
  border: 0 !important;
  border-left: 3px solid #E8613C !important;
  border-radius: 14px 14px 0 0 !important;
  padding: 12px 18px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .card-header h1,
body[data-pcui]:not(.h5-app):not(.chat-app) .card-header h2,
body[data-pcui]:not(.h5-app):not(.chat-app) .card-header h3,
body[data-pcui]:not(.h5-app):not(.chat-app) .card-header h4,
body[data-pcui]:not(.h5-app):not(.chat-app) .card-header h5,
body[data-pcui]:not(.h5-app):not(.chat-app) .card-header strong,
body[data-pcui]:not(.h5-app):not(.chat-app) .card-header span {
  color: #A8431F !important;
}

/* ------------------------------------------------- 8. 可读性 / 信息密度 */
body[data-pcui]:not(.h5-app):not(.chat-app) .text-muted,
body[data-pcui]:not(.h5-app):not(.chat-app) small,
body[data-pcui]:not(.h5-app):not(.chat-app) .sub,
body[data-pcui]:not(.h5-app):not(.chat-app) .desc,
body[data-pcui]:not(.h5-app):not(.chat-app) .hall-lead,
body[data-pcui]:not(.h5-app):not(.chat-app) .meta,
body[data-pcui]:not(.h5-app):not(.chat-app) .lb,
body[data-pcui]:not(.h5-app):not(.chat-app) .muted,
body[data-pcui]:not(.h5-app):not(.chat-app) .tip {
  color: #5A6270 !important;
}
/* 需求大厅卡片：标题/描述/元信息恢复层级，不再挤成一行小字 */
body[data-pcui]:not(.h5-app):not(.chat-app) .hall-card {
  padding: 16px 18px !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .hall-card .title {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .hall-card .desc {
  font-size: 14px !important;
  line-height: 1.65 !important;
  margin: 8px 0 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .hall-card .meta {
  font-size: 13px !important;
  line-height: 1.7 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .pager-line a {
  border-radius: 8px !important;
  padding: 5px 11px !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .pager-line a.active {
  background: #C24A28 !important;
  color: #FFFFFF !important;
  border-color: #C24A28 !important;
}

/* ------------------------------------------- 9. /services 老绿蓝皮肤收敛 */
body[data-pcui]:not(.h5-app):not(.chat-app) .page-banner {
  background: linear-gradient(135deg, #E8613C 0%, #F08363 100%) !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) h2[style*="#0b8a5e"],
body[data-pcui]:not(.h5-app):not(.chat-app) h3[style*="#0b8a5e"] {
  color: #A8431F !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) a[style*="#0b8a5e"],
body[data-pcui]:not(.h5-app):not(.chat-app) a[style*="#4a90d9"] {
  background: #C24A28 !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
}

/* 个人中心订单「申请售后」等自定义按钮：红字红边 → 橙字橙边 */
body[data-pcui]:not(.h5-app):not(.chat-app) .pc-ord-btn,
body[data-pcui]:not(.h5-app):not(.chat-app) .btn-outline-danger:not(.btn-danger) {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid #F3D3C7 !important;
  color: #A8431F !important;
}

/* ----------------------------------------------- 10. Agent 记忆中心面板 */
/* 整页橙红通铺已由 0 段改为浅灰底；hero 卡必须补回实色暖橙，
   否则原来是「橙底 + 半透明白卡 + 白字」，底变浅灰后白字会消失。
   用 div.hero 精确命中：首页的 .hero 是 <section>，不受影响。 */
body[data-pcui]:not(.h5-app):not(.chat-app) div.hero {
  background: linear-gradient(135deg, #E8613C 0%, #C24A28 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #F3D3C7 !important;
  box-shadow: 0 10px 30px rgba(194, 74, 40, .20) !important;
  backdrop-filter: none !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) div.hero h1,
body[data-pcui]:not(.h5-app):not(.chat-app) div.hero p,
body[data-pcui]:not(.h5-app):not(.chat-app) div.hero .emoji,
body[data-pcui]:not(.h5-app):not(.chat-app) div.hero .muted,
body[data-pcui]:not(.h5-app):not(.chat-app) div.hero a {
  color: #FFFFFF !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .quick-actions .action-card {
  background: linear-gradient(135deg, #C24A28, #A8431F) !important;
  color: #FFFFFF !important;
  border: 1px solid #C24A28 !important;
  box-shadow: 0 6px 20px rgba(194, 74, 40, .18) !important;
}
/* 次级两块改白底深橙字：浅橙渐变上的白字只有 ~1.9:1，读不清 */
body[data-pcui]:not(.h5-app):not(.chat-app) .quick-actions .action-card:nth-child(2),
body[data-pcui]:not(.h5-app):not(.chat-app) .quick-actions .action-card:nth-child(3) {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid #F3D3C7 !important;
  color: #A8431F !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .05) !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .quick-actions .action-card .text .title,
body[data-pcui]:not(.h5-app):not(.chat-app) .quick-actions .action-card .text .desc {
  color: inherit !important;
  opacity: 1 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .sync-status {
  color: #A8431F !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .profile-summary {
  background: #F7F8FA !important;
  border-left: 3px solid #F08363 !important;
}

/* ------------------------------------------------- 11. 岗位门户登录页 */
body[data-pcui]:not(.h5-app):not(.chat-app) .sub b {
  color: #A8431F !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .card:has(> .logo) {
  border-radius: 18px !important;
  box-shadow: 0 16px 44px rgba(16, 24, 40, .12) !important;
  border: 1px solid #E7E9EE !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .card:has(> .logo)::before {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #E8613C, #F08363);
}
body[data-pcui]:not(.h5-app):not(.chat-app) .card:has(> .logo) { position: relative; }
body[data-pcui]:not(.h5-app):not(.chat-app) .msg.ok { color: #1F9D63 !important; }
body[data-pcui]:not(.h5-app):not(.chat-app) .msg.err { color: #B42318 !important; }

/* --------------------------------------------------- 12. 运营监控面板 */
body[data-pcui]:not(.h5-app):not(.chat-app) .card h3,
body[data-pcui]:not(.h5-app):not(.chat-app) .k .label {
  color: #5A6270 !important;
  font-size: 13px !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .num.ok { color: #1F9D63 !important; }
body[data-pcui]:not(.h5-app):not(.chat-app) .num.warn { color: #B7791F !important; }
body[data-pcui]:not(.h5-app):not(.chat-app) .num.crit { color: #B42318 !important; }
body[data-pcui]:not(.h5-app):not(.chat-app) .pill.OK {
  background: #F3F8F5 !important; color: #1F9D63 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .pill.WARN {
  background: #FFF7ED !important; color: #B7791F !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .pill.CRIT {
  background: #FDECEA !important; color: #B42318 !important;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .panel h2 {
  font-size: 16px !important;
  color: #1B1F27 !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #E7E9EE !important;
}

/* ----------------------------------------------- 13. 通知中心裸 HTML 页 */
body[data-pcui]:not(.h5-app):not(.chat-app) .pcui-shell {
  max-width: 720px;
  margin: 40px auto;
  padding: 32px 36px !important;
  background: #FFFFFF;
  border: 1px solid #E7E9EE;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
}
body[data-pcui]:not(.h5-app):not(.chat-app) .pcui-shell h1 {
  font-size: 22px;
  color: #1B1F27;
  margin-bottom: 12px;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .pcui-shell p {
  color: #5A6270;
  font-size: 15px;
  line-height: 1.8;
}
body[data-pcui]:not(.h5-app):not(.chat-app) .pcui-shell a {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  background: #C24A28;
  color: #FFFFFF !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ------------------------------------------- 14. 可访问性 / 动效偏好 */
@media (prefers-reduced-motion: reduce) {
  body[data-pcui]:not(.h5-app):not(.chat-app) *,
  body[data-pcui]:not(.h5-app):not(.chat-app) *::before,
  body[data-pcui]:not(.h5-app):not(.chat-app) *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

} /* /@media (min-width:481px) */
