/* ============================================================
   横渠网渠道版 · XRD 视觉补丁(QX-HQ-INT-2026-001)
   仅覆盖品牌主题变量与渠道元素,不改动产品原有结构与交互。
   适配自原型(hq-patch.css),选择器与 dsh 前端类名一一对应。
   加载方式:xrd-channel 站 index.html <head> 静态引用,主站不受影响。
   ============================================================ */

/* F1/F4:横渠品牌色落到全局变量(浅色电商风) */
:root{
  --bg:#F9FAFB; --bg-canvas:#F9FAFB;
  --accent:#902ce8; --accent-strong:#7c1fd1;
  --accent-border:rgba(144,44,232,.45);
  --accent-tint:rgba(144,44,232,.10);
  --msg-user-border:rgba(144,44,232,.24);
  --focus-ring:rgba(144,44,232,.35);
  --sel:rgba(144,44,232,.18);
  --shadow-accent:0 2px 8px rgba(144,44,232,.35);
  --login-tint:rgba(144,44,232,.075);
  --ok:#1FB866; --ok-ring:rgba(31,184,102,.15);
  --danger:#FF5946;
  --hairline:#E9E9E9; --hairline-soft:#f0f0f2; --hairline-strong:#dcdce0;
}

/* F1:渠道版固定浅色,不开放深色切换 */
.theme-toggle{display:none !important}

/* C2/G1:渠道版无版本切换,顶栏只保留产品能力名 · 渠道方名 */
.topbar-edition{display:none !important}
.topbar-logo{height:22px !important;width:auto}
.topbar-product{font-weight:700;letter-spacing:.2px}
.topbar-product .hq-chan-name{color:var(--accent)}

/* A3:渠道身份 chip(chip + 机构账号 + 免登绿点) */
.hq-chan-chip{
  display:inline-flex;align-items:center;gap:7px;padding:4px 12px 4px 9px;border-radius:999px;
  background:rgba(144,44,232,.10);border:1px solid rgba(144,44,232,.28);
  font-size:11.5px;line-height:1;color:var(--ink-2);white-space:nowrap;
}
.hq-chan-chip .hq-dot{
  width:7px;height:7px;border-radius:50%;background:#1FB866;
  box-shadow:0 0 0 3px rgba(31,184,102,.16);animation:hqPulse 2s infinite;
}
@keyframes hqPulse{50%{box-shadow:0 0 0 5px rgba(31,184,102,.06)}}
.hq-chan-chip b{color:#7c1fd1;font-weight:700}
.hq-chan-chip code{font-family:var(--mono);font-size:10.5px;color:var(--ink-2)}
.hq-chan-chip .hq-sso{color:#1FB866;font-weight:700}

/* 原「内测环境」chip 让位给渠道身份 */
.topbar-chip{display:none !important}

/* G2:底部联合署名状态栏 */
.app{grid-template-rows:52px 1fr 30px !important}
.hq-statusbar{
  display:flex;align-items:center;gap:14px;padding:0 14px;
  background:#fff;border-top:1px solid #E9E9E9;
  font-size:10.5px;color:var(--ink-3);z-index:30;min-width:0;overflow:hidden;white-space:nowrap;
}
.hq-statusbar .sig{display:inline-flex;align-items:center;gap:6px;color:var(--ink-2);font-weight:600}
.hq-statusbar .sig img{width:13px;height:13px}
.hq-statusbar .sep{width:1px;height:12px;background:#E9E9E9;flex:0 0 1px}
.hq-statusbar .right{margin-left:auto;display:inline-flex;gap:14px;align-items:center}
.hq-statusbar .ok{color:#1FB866;font-weight:700}
.hq-statusbar .mono{font-family:var(--mono)}

@media print{ .hq-statusbar{display:none !important} }
