/* 「清北芯问」ic-bro.com 品牌样式（仅该域名注入） */
.ic-brand {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}
.ic-brand-title {
  font-size: 26px;
  font-weight: 700;
  color: #0d1b2a;
  letter-spacing: .01em;
  line-height: 1.2;
}
.ic-brand-sub {
  font-size: 13px;
  color: #5b6b7f;
  margin-top: 6px;
}
.ic-brand-tip {
  font-size: 12px;
  color: #8a97a8;
  margin-top: 10px;
  line-height: 1.6;
}
.ic-invite-hint {
  font-size: 12.5px;
  color: #5b6b7f;
  margin-top: 18px;
  text-align: center;
}
.ic-invite-hint a {
  color: #0b4fd8;
  font-weight: 600;
  text-decoration: none;
}
.ic-invite-hint a:hover { text-decoration: underline; }

/* 主色从清华紫换成 IC-Bro 蓝 */
html[data-ic-brand="1"] .t-button--theme-primary,
html[data-ic-brand="1"] .t-button--variant-base.t-button--theme-primary {
  background-color: #0b4fd8;
  border-color: #0b4fd8;
}
html[data-ic-brand="1"] .t-button--theme-primary:hover,
html[data-ic-brand="1"] .t-button--variant-base.t-button--theme-primary:hover {
  background-color: #155ee8;
  border-color: #155ee8;
}

/* 主题色：清华紫 → IC-Bro 深蓝 */
html[data-ic-brand="1"] .login-layout {
  background: #0b1f4b !important;
}
html[data-ic-brand="1"] {
  --td-brand-color: #0b4fd8;
  --td-brand-color-hover: #155ee8;
  --td-brand-color-active: #0a44bd;
  --td-brand-color-focus: rgba(11, 79, 216, .2);
  --td-brand-color-light: rgba(11, 79, 216, .1);
  --td-brand-color-disabled: rgba(11, 79, 216, .4);
}

/* 登录按钮/CTA：覆盖登录页硬编码的清华紫 */
html[data-ic-brand="1"] .submit-button {
  background: #0b4fd8 !important;
  border-color: #0b4fd8 !important;
}
html[data-ic-brand="1"] .submit-button:hover {
  background: #155ee8 !important;
  border-color: #155ee8 !important;
}
html[data-ic-brand="1"] .register-cta {
  display: none !important;
}
html[data-ic-brand="1"] {
  --td-brand-color: #0b4fd8 !important;
  --td-brand-color-hover: #155ee8 !important;
  --td-brand-color-active: #0a44bd !important;
  --td-brand-color-focus: rgba(11, 79, 216, .2) !important;
  --td-brand-color-light: rgba(11, 79, 216, .1) !important;
  --td-brand-color-disabled: rgba(11, 79, 216, .4) !important;
}

/* 新对话页：张奥扬的 IC Bro 小字（在欢迎语下方） */
html[data-ic-brand="1"] .wk-about-note--chat {
  display: none !important;
  max-width: 760px;
  margin: 20px auto 0;
  padding: 0 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: #6b7a90;
}
html[data-ic-brand="1"] .wk-about-note--chat .wk-about-p { margin: 8px 0; }
html[data-ic-brand="1"] .wk-about-note--chat strong { color: #33445c; }

/* 新对话页：老 ic-bro 站点张奥扬那段（欢迎语下方小字） */
.ic-chat-note {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 0 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: #6b7a90;
}

/* 隐藏输入框的「@ 提及知识库」按钮 */
html[data-ic-brand="1"] .kb-btn { display: none !important; }

/* 引用不可点击 / 隐藏「+ 管理」智能体入口 */
html[data-ic-brand="1"] .citation-kb { cursor: default !important; }
html[data-ic-brand="1"] a[href="/platform/agents"] { display: none !important; }

/* 登录页品牌副标题改为长段介绍 */
.ic-brand-sub { line-height: 1.75; margin-top: 8px; }

/* 登录页：标题「清北芯问」+ 长段介绍 */
.form-welcome.ic-login-note {
  font-size: 13px;
  line-height: 1.8;
  color: #5b6b7f;
  text-align: left;
  margin-top: 8px;
}

/* 打开页面时避免白底闪一下 */
html[data-ic-brand],
html[data-ic-brand] body { background: #0b1f4b; }

/* 登录页：替换文案完成前先隐藏表单头，避免「登录」闪一下 */
html[data-ic-brand]:not([data-ic-invite]) .login-layout .form-header { visibility: hidden; }
html[data-ic-brand]:not([data-ic-invite]) .login-layout .form-header.ic-branded { visibility: visible; }
