/* ===== 丝路智慧 品牌样式（由 newapi-web 反代注入） ===== */
:root { color-scheme: light !important; }

html, body {
  background: linear-gradient(160deg, #F2F7FE 0%, #E7F1FD 40%, #D5E8FB 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
}

/* 主按钮 → 品牌蓝 */
.semi-button-primary {
  background-color: #2B6BF3 !important;
  border-color: #2B6BF3 !important;
}
.semi-button-primary:hover {
  background-color: #1F5AE0 !important;
  border-color: #1F5AE0 !important;
}
.semi-button-primary:active {
  background-color: #1A4ECB !important;
  border-color: #1A4ECB !important;
}

/* 卡片质感：白底大圆角轻阴影 */
.semi-card {
  border-radius: 16px !important;
  box-shadow: 0 10px 36px rgba(43, 107, 243, 0.10) !important;
}

/* 输入框圆角 */
.semi-input-wrapper {
  border-radius: 8px !important;
}

/* 链接主色 */
a { color: #2B6BF3; }

/* ===== 登录页：插画背景 + 右侧白色圆角卡片 ===== */
html.slzh-auth .slzh-auth-root {
  background: url('/brand/login-bg.png') center center / cover no-repeat !important;
}

html.slzh-auth .slzh-auth-card {
  position: absolute !important;
  right: 6vw !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 420px !important;
  max-width: 92vw;
  margin: 0 !important;
  padding: 40px 36px !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 64px rgba(28, 72, 160, 0.16) !important;
}

@media (max-width: 860px) {
  html.slzh-auth .slzh-auth-card {
    position: static !important;
    transform: none !important;
    margin: 96px auto 0 !important;
  }
}

/* ===== 公共页顶部导航：禁止滚动收缩缩放，保持固定尺寸 ===== */
header.pointer-events-none > div.pointer-events-auto {
  max-width: 80rem !important;
  padding: 0 1rem !important;
}
@media (min-width: 768px) {
  header.pointer-events-none > div.pointer-events-auto {
    padding: 0 1.5rem !important;
  }
}
header.pointer-events-none > div.pointer-events-auto > nav {
  height: 4rem !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

/* ===== 登录页「返回主页」链接 ===== */
.slzh-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 18px;
  font-size: 13px;
  color: #5B6B84 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.slzh-auth-back:hover {
  color: #2B6BF3 !important;
}

/* ===== 控制台顶部「返回主页」按钮 ===== */
.slzh-home-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  height: 28px;
  padding: 0 10px;
  margin-left: 4px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #2B6BF3 !important;
  background: rgba(43, 107, 243, 0.08);
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.slzh-home-link:hover {
  background: rgba(43, 107, 243, 0.16);
  color: #1F5AE0 !important;
}
