/* 兰州大学 CAS 登录页（样式参照 LanhuProject 蓝湖设计稿 1920×1080） */
/*
 * 双端隔离约定（修改移动端时请勿动 PC）：
 * - PC：仅 html.cas-login-pc 下的规则 + rem（设计稿 px÷100），不用视口媒体查询
 * - 移动：仅 @media (max-width:800px) 内 html.cas-login-html:not(.cas-login-pc) 规则 + px
 * - :root 只放主题色等公共变量
 */

:root {
  --theme-color: #2e5068;
  --theme-color-hover: color-mix(in srgb, var(--theme-color) 82%, #000);
  /* 顶/底栏背景：对齐 eone-pc-web Mode2 workbench（主题色 40% 透明 + 12px 毛玻璃） */
  --theme-header-bg: color-mix(in srgb, var(--theme-color) 40%, transparent);
  /* LanhuProject/index.css 色值 */
  --lh-text-primary: #333333;
  --lh-text-secondary: #666666;
  --lh-text-muted: #353535;
  --lh-text-error: #de2222;
  --lh-border-input: #999999;
  --lh-border-sep: #a9b3ba;
  --lh-scan-panel-bg: rgba(255, 255, 255, 0.8);
  --lh-rem-design-ratio: 19.2;
  --lh-rem-base-min: 41.72px;
  --lh-rem-base-max: 200px;
  --lh-design-w: 1920;
  --lh-design-h: 1080;
  /* 蓝湖字号/行高（px，移动端直接用；PC 见下方 rem token） */
  --lh-font-12: 12px;
  --lh-font-14: 14px;
  --lh-font-16: 16px;
  --lh-font-20: 20px;
  --lh-font-24: 24px;
  --lh-lh-20: 20px;
  --lh-lh-22: 22px;
  --lh-lh-28: 28px;
  --lh-lh-32: 32px;
  /* 与 eone-pc-web global.less 一致，仅 html.cas-login-html 本页生效 */
  --lh-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
}

html.cas-login-html {
  font-size: 16px;
  font-family: var(--lh-font-family);
}

/* PC rem 根字号与尺寸 token（仅 cas-login-pc，与视口宽度媒体查询解耦） */
html.cas-login-pc.cas-login-html {
  font-size: clamp(
    var(--lh-rem-base-min),
    calc(100vw / var(--lh-rem-design-ratio)),
    var(--lh-rem-base-max)
  );
  /* 顶栏高度：对齐 eone Mode2，1920 下 92px → 0.92rem */
  --lh-header-h: 0.92rem;
  /* Logo 高度：对齐 eone Mode2，1920 下 48px → 0.48rem */
  --lh-header-logo-h: 0.48rem;
  --lh-footer-h: 0.92rem;
  /* 卡片高度由内容自适应（表单无错误提示时自动收起），不再固定 6.2rem */
  --lh-card-h: auto;
  --lh-panel-scan-w: 4.5rem;
  --lh-panel-form-w: 4.5rem;
  /* 蓝湖 box_64：表单内宽 400px、输入 52px、圆角 8px */
  --lh-input-h: 0.52rem;
  --lh-input-radius: 0.08rem;
  --lh-form-inner-w: 4rem;
  --lh-captcha-input-w: 2.3rem;
  --lh-captcha-side-w: 1.58rem;
  --lh-captcha-gap: 0.12rem;
  --lh-captcha-img-max-w: 0.96rem;
  --lh-captcha-img-h: 0.46rem;
  --lh-btn-h: 0.6rem;
  --lh-font-input: 0.14rem;
  --lh-lh-input: 0.2rem;
  --lh-pad-input-y: 0.16rem;
  --lh-pad-input-x: 0.12rem;
  --lh-font-title: 0.24rem;
  --lh-lh-title: 0.32rem;
  --lh-font-btn: 0.2rem;
  --lh-lh-btn: 0.28rem;
  --lh-gap-after-title: 0.2rem;
  --lh-gap-between-fields: 0.12rem;
  --lh-gap-after-captcha: 0.08rem;
  --lh-error-slot-h: 0.28rem;
  --lh-gap-after-error: 0.12rem;
  --lh-gap-after-login: 0.12rem;
  --lh-gap-after-system-tip: 0.16rem;
  /* 表单顶距：标题间距(20px) + 首字段行高(20px)，系统名已移至顶栏不再占位 */
  --lh-form-top-offset: calc(
    var(--lh-gap-after-title) + var(--lh-lh-input)
  );
  --lh-content-h: 9.08rem;
  /* 二次认证弹层（设计稿 720×415、420×220 等 ÷100） */
  --lh-layer-pop-w: 720px;
  --lh-layer-pop-h: 415px;
  --lh-layer-pop-w-md: 420px;
  --lh-layer-pop-h-md: 220px;
  --lh-layer-pop-w-sm: 410px;
  /* 弹层固定设计稿 px（整体由 #layer-pop transform:scale 等比适配屏幕）；输入 40px、圆角 8px、字段间距 12px */
  --lh-layer-input-h: 40px;
  --lh-layer-btn-h: 44px;
  --lh-layer-input-radius: 8px;
  --lh-layer-font: 14px;
  --lh-layer-lh: 20px;
  --lh-layer-pad-y: 10px;
  --lh-layer-captcha-side-w: 132px;
  --lh-layer-captcha-gap: 12px;
  --lh-layer-captcha-img-h: 36px;
  --lh-layer-captcha-img-max-w: 88px;
  --lh-layer-field-gap: 12px;
  --lh-layer-title-font: 20px;
  --lh-layer-title-lh: 28px;
  --lh-layer-btn-font: 16px;
  /* 顶栏系统名称（参照 cas-login-jsp .top-header-title：1.562vw≈30px） */
  --lh-header-sys-name-font: 0.3rem;
  --lh-header-sys-name-lh: 1.25;
  --lh-header-sys-name-weight: 600;
  --lh-header-sys-name-spacing: 0.02em;
  --lh-header-sep-h: 0.32rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.cas-login-page {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #3d4f5c;
  font-family: var(--lh-font-family);
  color: #333;
  box-sizing: border-box;
}

html.cas-login-html body.cas-login-page input,
html.cas-login-html body.cas-login-page button,
html.cas-login-html body.cas-login-page textarea,
html.cas-login-html body.cas-login-page select,
html.cas-login-html .password-mask input,
html.cas-login-html .password-mask button,
html.cas-login-html .password-mask textarea,
html.cas-login-html .password-mask select,
html.cas-login-html #layer-pop input,
html.cas-login-html #layer-pop button,
html.cas-login-html #layer-pop textarea,
html.cas-login-html #layer-pop select,
html.cas-login-html #live-verify-mask input,
html.cas-login-html #live-verify-mask button,
html.cas-login-html #live-verify-mask textarea,
html.cas-login-html #live-verify-mask select {
  font-family: inherit;
}

/* 弹层、弱密码改密、活体认证等：与主界面同一套系统字体（不改动 Logo 图片） */
html.cas-login-html .password-mask,
html.cas-login-html .password-mask .wrap,
html.cas-login-html #layer-pop.layer-pop,
html.cas-login-html #layer-pop .layer-content,
html.cas-login-html #live-verify-mask,
html.cas-login-html .password-success-tip,
html.cas-login-html .ie-box > .ie-tip-box {
  font-family: var(--lh-font-family);
}

html.cas-login-html #live-verify-mask .page-title,
html.cas-login-html #live-verify-mask .qrcode-title,
html.cas-login-html #live-verify-mask p,
html.cas-login-html #live-verify-mask span,
html.cas-login-html #live-verify-mask .qrcode-btn {
  font-family: inherit;
}


/* PC：底栏透出轮播图，不用 body 纯色垫底（避免首屏一大块深色闪一下） */
html.cas-login-pc body.cas-login-page {
  background: transparent;
}

html.cas-login-pc #banner-slide-wrap {
  display: block !important;
}

/* 背景轮播：任意比例下铺满视口，不留空白 */
#banner-slide-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

#banner-slide-wrap #banner-slide-track {
  height: 100vh;
}

#banner-slide-wrap #banner-slide-track img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
}

/* PC 舞台（仅 cas-login-pc，不影响移动端） */
html.cas-login-pc #cas-login-ui-stage.cas-login-ui-stage {
  position: fixed;
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  transform: none;
  transform-origin: center center;
  overflow: visible;
}

html.cas-login-pc #cas-login-ui-stage.cas-login-ui-stage > * {
  pointer-events: auto;
}


html.cas-login-pc #cas-login-ui-stage .lzu-login,
html.cas-login-pc #cas-login-ui-stage .banner-carousel-dots {
  position: absolute;
}

html.cas-login-pc #cas-login-ui-stage .lzu-login {
  top: var(--lh-header-h);
  left: 0;
  right: 0;
  bottom: var(--lh-footer-h);
  width: 100%;
  height: auto;
}

html.cas-login-pc #cas-login-ui-stage .banner-carousel-dots {
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
}

html.cas-login-pc #cas-login-ui-stage .login-center-wrap {
  max-width: none;
}

/* ========== 顶栏 / 底栏 ========== */

html.cas-login-pc .top-header {
  width: 100%;
  height: var(--lh-header-h);
  min-height: var(--lh-header-h);
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--theme-header-bg) 50%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.cas-login-pc .top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 16.8rem;
  height: 100%;
  padding: 0 0.48rem;
  box-sizing: border-box;
  background: transparent;
}

html.cas-login-pc .top-header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

html.cas-login-pc .top-header-identity {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 8.8rem;
  margin: 0;
  padding: 0;
  color: #ffffff;
}

html.cas-login-pc .top-header-identity-sep {
  flex-shrink: 0;
  width: 2px;
  height: var(--lh-header-sep-h);
  margin: 0 0.2rem;
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

html.cas-login-pc .top-header-identity-name {
  font-size: var(--lh-header-sys-name-font);
  font-weight: var(--lh-header-sys-name-weight);
  line-height: var(--lh-header-sys-name-lh);
  letter-spacing: var(--lh-header-sys-name-spacing);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.cas-login-pc .top-header-logo {
  height: var(--lh-header-logo-h);
  width: auto;
  object-fit: contain;
}

html.cas-login-pc .top-header-logo-mobile {
  display: none;
}

html.cas-login-pc .top-header-nav {
  display: flex;
  align-items: center;
  gap: 0.32rem;
}

html.cas-login-pc .top-header-nav-link {
  color: #fff;
  font-size: 0.2rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  line-height: 0.28rem;
  opacity: 0.95;
}

html.cas-login-pc .top-header-nav-link:hover,
html.cas-login-pc .top-header-nav-link:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

html.cas-login-pc .top-header-nav-link--disabled,
html.cas-login-pc .top-header-nav-link--disabled:hover {
  cursor: default;
  opacity: 0.8;
}

html.cas-login-pc #cas-footer-box.footer-box {
  width: 100%;
  height: var(--lh-footer-h);
  min-height: var(--lh-footer-h);
  box-sizing: border-box;
  margin: 0;
  padding: 0 0.24rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.15rem;
  line-height: 0.22rem;
  color: #fff;
  background: color-mix(in srgb, var(--theme-header-bg) 50%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: fixed;
  z-index: 12;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ========== 背景轮播指示点 ========== */
html.cas-login-pc .banner-carousel-dots {
  position: fixed;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  pointer-events: auto;
}

html.cas-login-pc .banner-carousel-dots .banner-carousel-dot {
width: 0.12rem;
  height: 0.12rem;
  background: #fff;
  border: none;
  cursor: pointer;
  border-radius: 0.1rem;
  box-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.25);
  padding: 0;
}

html.cas-login-pc .banner-carousel-dots .banner-carousel-dot:hover {
background: rgba(255, 255, 255, 0.75);
}

html.cas-login-pc .banner-carousel-dots .banner-carousel-dot.is-active {
height: 0.24rem;
  border-radius: 0.08rem;
}

html.cas-login-pc .lzu-login {
position: absolute;
  top: var(--lh-header-h);
  left: 0;
  right: 0;
  bottom: var(--lh-footer-h);
  width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  transform: none !important;
  -webkit-transform: none !important;
}

html.cas-login-pc .lzu-login > .main {
width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem 0;
  box-sizing: border-box;
}

html.cas-login-pc .login-center-wrap {
position: relative;
  z-index: 15;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: calc(var(--lh-panel-scan-w) + var(--lh-panel-form-w));
  max-width: calc(100vw - 0.48rem);
  height: auto;
  min-height: 0;
  flex-shrink: 0;
  margin: auto;
  pointer-events: auto;
  border-radius: 0.24rem;
  overflow: hidden;
  box-shadow: 0 0.02rem 0.24rem rgba(46, 80, 104, 0.12);
}

html.cas-login-pc .scan-panel-wrap {
width: var(--lh-panel-scan-w);
  flex-shrink: 0;
  background: var(--lh-scan-panel-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 0.24rem 0 0 0.24rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

html.cas-login-pc .scan-panel-qrcode,
html.cas-login-pc #login-qrcode {
position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  overflow: visible;
}

html.cas-login-pc .scan-panel-qrcode .qr-inner,
html.cas-login-pc #login-qrcode .qr-inner {
width: 3.28rem;
  max-width: calc(100% - 0.48rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: -0.4rem;
}

html.cas-login-pc .qr-iamge-box {
display: flex;
  flex-direction: column;
  align-items: center;
  width: 2.8rem;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 0.16rem;
  border: 0.04rem solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

html.cas-login-pc .qr-iamge-box > .relative {
width: 2.3rem;
  height: 2.3rem;
  margin: 0 auto;
  position: relative;
}

html.cas-login-pc .qr-iamge-box .qr-iamge {
width: 100%;
  height: 100%;
  object-fit: contain;
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue,
html.cas-login-pc .qr-iamge-box .qrcode-overdue-scaned {
position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.16rem;
  box-sizing: border-box;
  border-radius: 0.12rem;
  text-align: center;
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue {
background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue-scaned {
background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue[style*='display: block'],
html.cas-login-pc .qr-iamge-box .qrcode-overdue[style*='display:block'],
html.cas-login-pc .qr-iamge-box .qrcode-overdue-scaned[style*='display: block'],
html.cas-login-pc .qr-iamge-box .qrcode-overdue-scaned[style*='display:block'],
html.cas-login-pc .qr-iamge-box .qrcode-overdue-scaned[style*='display: flex'] {
display: flex !important;
}

html.cas-login-pc .qr-iamge-box .qrcode-mask-content {
display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  max-width: 100%;
}

html.cas-login-pc .qr-iamge-box .qrcode-status-icon {
display: block;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: #f4f6f8;
  border: 1px solid #e6eaef;
  position: relative;
  flex-shrink: 0;
}

html.cas-login-pc .qr-iamge-box .qrcode-status-icon::before {
content: '';
  position: absolute;
  left: 50%;
  top: 0.11rem;
  width: 0.02rem;
  height: 0.14rem;
  margin-left: -1px;
  background: #b0bac4;
  border-radius: 1px;
}

html.cas-login-pc .qr-iamge-box .qrcode-status-icon::after {
content: '';
  position: absolute;
  left: 50%;
  bottom: 0.11rem;
  width: 0.04rem;
  height: 0.04rem;
  margin-left: -2px;
  background: #b0bac4;
  border-radius: 50%;
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue .overdue-tip {
margin: 0;
  padding: 0;
  font-size: 0.14rem;
  color: var(--lh-text-secondary);
  line-height: 0.2rem;
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue-scaned .scaned-overdue-tip {
margin: 0;
  padding: 0;
  font-size: 0.17rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue-scaned .scaned-tips {
margin: 0;
  font-size: 0.13rem;
  color: #999;
  line-height: 1.5;
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue-scaned .scaned-img {
width: 0.52rem;
  height: 0.52rem;
  display: block;
  margin: 0;
  object-fit: contain;
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue .qrcode-btn {
display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 0.4rem;
  padding: 0 0.24rem;
  margin: 0;
  box-sizing: border-box;
  font-size: 0.14rem;
  font-weight: 500;
  line-height: 0.2rem;
  color: var(--theme-color);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--theme-color);
  border-radius: var(--lh-input-radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue .qrcode-btn:hover {
color: #ffffff;
  background: var(--theme-color);
  border-color: var(--theme-color);
}

html.cas-login-pc .qr-iamge-box .qrcode-overdue .qrcode-btn:focus {
outline: none;
  box-shadow: 0 0 0 0.02rem rgba(46, 80, 104, 0.25);
}

html.cas-login-pc .scan-panel-qrcode .panel-title,
html.cas-login-pc #login-qrcode .panel-title {
  font-size: 0.22rem;
  font-weight: 500;
  color: var(--lh-text-primary);
  text-align: center;
  line-height: var(--lh-lh-title);
  margin: 0.08rem 0 0.25rem;
  padding: 0;
}

html.cas-login-pc .scan-panel-qrcode .qrcode-title,
html.cas-login-pc #login-qrcode .qr-iamge-box .qrcode-title {
width: 100%;
  margin: 0;
  padding: 0;
  padding-top: 0.05rem;
  font-size: 0.13rem;
  font-weight: 500;
  color: var(--lh-text-muted);
  text-align: center;
  line-height: 0.18rem;
  white-space: normal;
  word-break: keep-all;
  box-sizing: border-box;
}

html.cas-login-pc .scan-app-download {
display: none;
}

html.cas-login-pc .scan-app-download:hover {
text-decoration: underline;
}

html.cas-login-pc .scan-download-box,
html.cas-login-pc .scan-toggle-hidden {
display: none !important;
}

html.cas-login-pc .login-box-wrap {
width: var(--lh-panel-form-w);
  height: auto;
  min-height: 0;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 0 0.24rem 0.24rem 0;
  box-sizing: border-box;
  padding: 0 0.4rem;
  position: relative;
}

/* 关闭左侧扫码区时：仅账号登录，整卡宽度与四角圆角一致 */
html.cas-login-pc .login-center-wrap.cas-login-account-only {
  width: var(--lh-panel-form-w);
}

html.cas-login-pc .login-center-wrap.cas-login-account-only .login-box-wrap {
  width: 100%;
  border-radius: 0.24rem;
}

html.cas-login-pc .login-box-wrap > .login-box,
html.cas-login-pc #login-mima {
position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex !important;
  flex-direction: column;
  box-sizing: border-box;
}

html.cas-login-pc .login-box-wrap > .login-box > .title,
html.cas-login-pc #login-mima > .title {
  font-size: var(--lh-font-title);
  font-weight: 500;
  color: var(--lh-text-primary);
  text-align: center;
  line-height: var(--lh-lh-title);
  margin: 0.16rem 0 0;
  padding: 0;
}

html.cas-login-pc .service-tip-slot {
min-height: 0;
  margin: 0;
  padding: 0;
}

html.cas-login-pc .service-tip-slot:not(:empty) {
margin-top: var(--lh-gap-after-system-tip);
}

html.cas-login-pc .service-tip-box {
margin: 0;
}

html.cas-login-pc .service-tip-box .err-tip,
html.cas-login-pc #tip-system {
font-size: 0.14rem;
  font-weight: 500;
  color: var(--lh-text-primary);
  display: block;
  line-height: 0.2rem;
}

html.cas-login-pc .login-box-wrap #fm1 {
display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: var(--lh-form-inner-w);
  margin: 0.28rem auto;
  box-sizing: border-box;
}

html.cas-login-pc .login-box-wrap #fm1 > input[type='hidden'] {
display: none;
  margin: 0;
  padding: 0;
}

html.cas-login-pc .login-box-wrap #fm1 > .cell {
margin-bottom: 0;
}

html.cas-login-pc .login-box-wrap #fm1 > .cell + .cell {
margin-top: var(--lh-gap-between-fields);
}

html.cas-login-pc .login-box-wrap #fm1 > .code-box {
margin-top: var(--lh-gap-between-fields);
  margin-bottom: 0;
}

html.cas-login-pc .login-box-wrap #fm1 > .err-box.form-err-box {
flex: 0 0 auto;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  box-sizing: border-box;
  overflow: visible;
}

html.cas-login-pc .login-box-wrap #fm1 > .err-box.form-err-box .err-tip-slot {
position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  min-height: var(--lh-error-slot-h);
  box-sizing: border-box;
}

html.cas-login-pc .login-box-wrap #fm1 > .err-box.form-err-box .err-tip {
position: static;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  font-size: 0.14rem;
  color: var(--lh-text-error);
  line-height: var(--lh-lh-input);
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

/* 有内容时：文字顶部留 0.06rem 间距，与上方验证码行分开 */
html.cas-login-pc .login-box-wrap #fm1 > .err-box.form-err-box .err-tip:not(:empty) {
margin-top: 0.06rem;
}

/* 无内容时：隐藏文字，但容器高度仍由 min-height 保持占位 */
html.cas-login-pc .login-box-wrap #fm1 > .err-box.form-err-box .err-tip:empty {
  visibility: hidden;
  pointer-events: none;
}

html.cas-login-pc .login-box-wrap #fm1 > .err-box.form-err-box .err-tip[style*='display: none'],
html.cas-login-pc .login-box-wrap #fm1 > .err-box.form-err-box .err-tip[style*='display:none'] {
  visibility: hidden !important;
  pointer-events: none;
}

html.cas-login-pc .login-box-wrap #fm1 > .btn-box {
flex: 0 0 auto;
  margin-top: var(--lh-gap-after-error);
}

html.cas-login-pc .login-box-wrap #fm1 > .password-box {
margin-top: var(--lh-gap-after-login);
}

html.cas-login-pc .cell {
width: 100%;
  height: var(--lh-input-h);
  margin-bottom: 0;
  box-sizing: border-box;
  border: 1px solid var(--lh-border-input);
  border-radius: var(--lh-input-radius);
  transition: border-color 0.2s ease;
  display: flex;
  overflow: hidden;
  background-color: #ffffff;
}

/* 弹层等仍可用主题色聚焦；登录主表单见下方 #fm1 规则 */
html.cas-login-pc .cell.active {
border-color: var(--theme-color);
}

html.cas-login-pc .login-box-wrap #fm1 .cell,
html.cas-login-pc .login-box-wrap #fm1 .code-box .cell,
html.cas-login-pc .login-box-wrap #fm1 .code-box-img-group {
border: 1px solid var(--lh-border-input);
  border-radius: var(--lh-input-radius);
  background-color: #ffffff;
}

html.cas-login-pc .login-box-wrap #fm1 .cell.active,
html.cas-login-pc .login-box-wrap #fm1 .cell:focus-within,
html.cas-login-pc .login-box-wrap #fm1 .code-box-img-group:hover {
border-color: var(--lh-border-input);
  box-shadow: none;
}

html.cas-login-pc .login-box-wrap #fm1 .cell-input > input,
html.cas-login-pc .login-box-wrap #fm1 .cell-input > input.form-control,
html.cas-login-pc .login-box-wrap #fm1 .cell-input > input.error {
border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

html.cas-login-pc .cell > .label {
width: 0.4rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.cas-login-pc .cell > .label > img {
width: 0.18rem;
  height: auto;
}

html.cas-login-pc .cell > .cell-input {
flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

html.cas-login-pc .login-box-wrap #fm1 .cell > .cell-input > input,
html.cas-login-pc .login-box-wrap #fm1 .cell-input > input.form-control {
  height: 100%;
  width: 100%;
  border: 0;
  outline: 0;
  box-sizing: border-box;
  text-indent: 0;
  flex: 1;
  font-size: var(--lh-font-input);
  line-height: var(--lh-lh-input);
  padding: var(--lh-pad-input-y) var(--lh-pad-input-x) var(--lh-pad-input-y) 0;
  color: var(--lh-text-primary);
  text-align: left;
}

html.cas-login-pc .login-box-wrap #fm1 .cell > .cell-input > input::placeholder,
html.cas-login-pc .login-box-wrap #fm1 .cell-input > input::placeholder {
  color: var(--lh-text-secondary);
  font-size: var(--lh-font-input);
  line-height: var(--lh-lh-input);
}

html.cas-login-pc .cell > .cell-input > .eye {
width: 0.2rem;
  height: 0.2rem;
  margin-right: 0.15rem;
  cursor: pointer;
  flex-shrink: 0;
}

html.cas-login-pc .cell > .cell-input > .eye-close {
width: 0.3rem;
  height: 0.2rem;
  margin-right: 0.1rem;
}

html.cas-login-pc .code-box {
  display: flex;
  align-items: stretch;
  gap: var(--lh-captcha-gap);
  width: 100%;
  max-width: var(--lh-form-inner-w);
  margin-bottom: 0;
  box-sizing: border-box;
}

html.cas-login-pc .code-box > .cell#code,
html.cas-login-pc .code-box > .form-row-code {
flex: 1 1 var(--lh-captcha-input-w);
  width: auto;
  max-width: var(--lh-captcha-input-w);
  min-width: 0;
  margin-bottom: 0;
}

html.cas-login-pc .code-box-img-group {
display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 var(--lh-captcha-side-w);
  width: var(--lh-captcha-side-w);
  min-width: var(--lh-captcha-side-w);
  height: var(--lh-input-h);
  padding: 0.02rem 0.06rem 0.02rem 0.04rem;
  gap: 0.06rem;
  border: 1px solid var(--lh-border-input);
  border-radius: var(--lh-input-radius);
  box-sizing: border-box;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

html.cas-login-pc .code-box-img-group > .choose-box {
flex: 0 0 auto;
  width: auto;
  max-width: none;
  font-size: 0.14rem;
  color: var(--theme-color);
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
  padding: 0 0.02rem 0 0;
  line-height: 0.2rem;
  text-align: center;
}

html.cas-login-pc .code-box-img-group > .choose-box:hover {
text-decoration: underline;
}

html.cas-login-pc #verification-code-img {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: var(--lh-captcha-img-max-w);
  height: var(--lh-captcha-img-h);
  max-height: calc(var(--lh-input-h) - 0.06rem);
  margin: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  object-fit: contain;
  object-position: center center;
  display: block;
}

html.cas-login-pc .password-box {
display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

html.cas-login-pc .password-box > a {
text-decoration: none;
}

html.cas-login-pc .password-box > a:hover {
text-decoration: underline;
}

html.cas-login-pc .forget-password {
font-size: 0.14rem;
  line-height: 0.2rem;
  color: var(--theme-color);
}

html.cas-login-pc .btn-box {
width: 100%;
  height: var(--lh-btn-h);
  display: flex;
  margin: 0;
}

html.cas-login-pc .btn-box > button {
  width: 100%;
  height: var(--lh-btn-h);
  background-color: var(--theme-color);
  outline: none;
  border: none;
  color: #ffffff;
  font-size: var(--lh-font-btn);
  font-weight: 500;
  line-height: var(--lh-lh-btn);
  letter-spacing: 0;
  cursor: pointer;
  border-radius: var(--lh-input-radius);
  transition: background-color 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.cas-login-pc .btn-box > button:hover,
html.cas-login-pc .btn-box > button:active {
background-color: var(--theme-color-hover);
}

html.cas-login-pc .login-box-wrap #fm1 > .can-use,
html.cas-login-pc .can-use {
display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  max-width: var(--lh-form-inner-w);
  margin-left: auto;
  margin-right: auto;
  padding-top: 0.24rem;
  box-sizing: border-box;
  font-size: 0.14rem;
  line-height: 0.2rem;
  color: var(--lh-text-primary);
  text-align: center;
}

html.cas-login-pc .can-use > img,
html.cas-login-pc .can-use > .browser-icon {
width: 0.17rem;
  height: 0.17rem;
  margin: 0 0.04rem;
  object-fit: contain;
}

html.cas-login-pc .can-use > span:not(.browser-sep) {
margin-right: 0.04rem;
}

html.cas-login-pc .browser-sep {
display: inline-block;
  width: 1px;
  height: 0.12rem;
  background: var(--lh-border-sep);
  border-radius: 0.08rem;
  margin: 0.06rem 0.12rem;
  vertical-align: middle;
}

html.cas-login-pc .can-use > span:first-child {
margin-right: 0;
}

html.cas-login-pc .change-password {
font-size: 0.14rem;
  margin-top: 0.1rem;
  cursor: pointer;
  color: var(--theme-color);
  font-weight: bold;
}

/* ========== 移动端（≤800px，且非 cas-login-pc，与 PC 完全隔离） ========== */

@media screen and (max-width: 800px) {
  /* 窄屏强制 16px 根字号，避免 cas-login-pc 未卸除时 rem 撑爆布局 */
  html.cas-login-html {
    font-size: 16px !important;
  }

  html.cas-login-html:not(.cas-login-pc) {
    font-size: 16px !important;
    --lh-header-h: 112px;
    --lh-footer-h: 0;
    --lh-input-h: 52px;
    --lh-input-radius: 8px;
    --lh-btn-h: 60px;
    --lh-form-inner-w: 100%;
    --lh-captcha-side-w: 132px;
    --lh-captcha-gap: 12px;
    --lh-captcha-img-h: 46px;
    --lh-captcha-img-max-w: 96px;
    --lh-gap-between-fields: 12px;
    --lh-gap-after-title: 12px;
    --lh-gap-after-system-tip: 12px;
    --lh-gap-after-error: 12px;
    --lh-gap-after-login: 8px;
    --lh-error-slot-h: 20px;
    --lh-pad-input-y: 16px;
    --lh-pad-input-x: 12px;
    /* 弹层移动端（相对主登录略矮） */
    --lh-layer-m-input-h: 40px;
    --lh-layer-m-pad-y: 10px;
    --lh-layer-m-font: 14px;
    --lh-layer-m-lh: 20px;
    --lh-layer-m-gap: 12px;
    --lh-layer-m-captcha-side-w: 132px;
    --lh-layer-m-captcha-img-h: 36px;
    --lh-layer-m-captcha-img-max-w: 88px;
    --lh-layer-m-btn-h: 44px;
    --lh-layer-m-btn-font: 16px;
  }

  html.cas-login-html:not(.cas-login-pc),
  html.cas-login-html:not(.cas-login-pc) body.cas-login-page {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    background: #ffffff;
  }

  html.cas-login-html #banner-slide-wrap {
    display: none !important;
  }

  html.cas-login-html:not(.cas-login-pc) #cas-login-ui-stage.cas-login-ui-stage {
    background: #ffffff;
  }

  #cas-login-ui-stage.cas-login-ui-stage {
    position: static;
    width: 100%;
    min-height: 100vh;
    height: auto;
    transform: none !important;
    pointer-events: auto;
  }

  .banner-carousel-dots {
    display: none !important;
  }

  .top-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: fixed;
    height: 112px;
    min-height: 112px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .top-header-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 28px 24px 24px;
    box-sizing: border-box;
  }

  .top-header-nav {
    display: none;
  }

  .top-header-left {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .top-header-identity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    margin: 0;
    padding: 0;
    color: #2e5068;
  }

  .top-header-identity-sep {
    flex-shrink: 0;
    width: 1px;
    height: 20px;
    margin: 0 15px;
    background: #2e5068;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .top-header-identity-name {
    font-size: 4vw;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #2e5068;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72vw;
  }

  .top-header-logo-pc {
    display: none;
  }

  .top-header-logo-mobile {
    display: block;
    width: auto;
    max-width: 280px;
    height: auto;
    max-height: 56px;
    min-height: 0;
    margin: 0 auto;
    object-fit: contain;
  }

  #cas-footer-box.footer-box {
    display: none !important;
  }

  .lzu-login {
    position: fixed;
    top: 112px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 0 24px;
    box-sizing: border-box;
    z-index: 5;
  }

  .lzu-login > .main {
    padding: 0;
    width: 100%;
    flex: none;
    align-items: stretch;
    justify-content: flex-start;
  }

  /* 移动端：无卡片容器，表单项直接铺在背景上 */
  .login-center-wrap {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  /* 移动端仅展示账号登录，隐藏左侧扫码模块 */
  html.cas-login-html .scan-panel-wrap,
  html.cas-login-html .scan-panel-qrcode,
  html.cas-login-html #login-qrcode,
  html.cas-login-html .login-er,
  html.cas-login-html .scan-download-box {
    display: none !important;
  }

  html.cas-login-html .login-center-wrap {
    display: block;
    flex-direction: column;
  }

  html.cas-login-html .login-box-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .login-box-wrap #fm1 {
    max-width: 100%;
  }

  .login-box-wrap .service-tip-slot {
    margin: 0;
    padding: 0;
    min-height: 0;
  }

  .login-box-wrap .service-tip-slot:not(:empty) {
    margin-top: var(--lh-gap-after-system-tip);
  }

  html.cas-login-html .service-tip-box .err-tip,
  html.cas-login-html #tip-system {
    font-size: var(--lh-font-14);
    font-weight: 500;
    line-height: var(--lh-lh-20);
    color: var(--lh-text-primary);
  }

  html.cas-login-html .login-box-wrap > .login-box > .title,
  html.cas-login-html #login-mima > .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 0;
    padding: 0;
    font-size: var(--lh-font-24);
    font-weight: 500;
    line-height: var(--lh-lh-32);
    letter-spacing: 0;
    color: var(--lh-text-primary);
    text-align: center;
    position: static;
  }

  html.cas-login-html .login-box-wrap > .login-box > .title::after,
  html.cas-login-html #login-mima > .title::after {
    content: '';
    position: static;
    display: block;
    width: 36px;
    height: 3px;
    margin: 8px auto 0;
    background: var(--theme-color);
    border-radius: 2px;
    opacity: 0.85;
  }

  html.cas-login-html .login-box-wrap #fm1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: var(--lh-gap-after-title);
    box-sizing: border-box;
    gap: var(--lh-gap-between-fields);
  }

  html.cas-login-html .login-box-wrap #fm1 > .cell,
  html.cas-login-html .login-box-wrap #fm1 > .code-box,
  html.cas-login-html .login-box-wrap #fm1 > .err-box,
  html.cas-login-html .login-box-wrap #fm1 > .btn-box,
  html.cas-login-html .login-box-wrap #fm1 > .password-box {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .login-box-wrap #fm1 > .can-use {
    display: none !important;
  }

  /* 验证码：左输入 + 右图/换一张（纵向居中） */
  html.cas-login-html .login-box-wrap #fm1 .code-box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--lh-captcha-gap);
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
  }

  html.cas-login-html .login-box-wrap #fm1 .code-box > .cell#code,
  html.cas-login-html .login-box-wrap #fm1 .code-box > .form-row-code {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
  }

  html.cas-login-html .login-box-wrap #fm1 .code-box-img-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 var(--lh-captcha-side-w);
    width: var(--lh-captcha-side-w);
    min-width: var(--lh-captcha-side-w);
    max-width: var(--lh-captcha-side-w);
    height: var(--lh-input-h);
    padding: 3px 8px 3px 6px;
    gap: 6px;
    box-sizing: border-box;
    overflow: hidden;
  }

  html.cas-login-html .login-box-wrap #fm1 #verification-code-img {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: var(--lh-captcha-img-max-w);
    height: var(--lh-captcha-img-h);
    max-height: calc(var(--lh-input-h) - 6px);
    object-fit: contain;
    object-position: center center;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  html.cas-login-html .login-box-wrap #fm1 .code-box-img-group > .choose-box {
    flex: 0 0 auto;
    font-size: var(--lh-font-14);
    line-height: var(--lh-lh-20);
    color: var(--theme-color);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    padding: 0 2px 0 0;
    margin: 0;
  }

  html.cas-login-html .login-box-wrap #fm1 .code-box-img-group > .choose-box:hover {
    text-decoration: underline;
  }

  /* 表单控件：移动端固定 px + flex 行布局（与 PC 结构一致，不依赖 rem） */
  html.cas-login-html .login-box-wrap > .login-box,
  html.cas-login-html #login-mima {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  html.cas-login-html .login-box-wrap #fm1 .cell,
  html.cas-login-html .login-box-wrap #fm1 .code-box .cell {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    height: 52px;
    min-height: 52px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid var(--lh-border-input);
    background-color: #fff;
    overflow: hidden;
  }

  /* 验证码图+换一张：独立边框容器（勿与 .cell 共用 flex 规则） */
  html.cas-login-html .login-box-wrap #fm1 .code-box-img-group {
    border-radius: 8px;
    border: 1px solid var(--lh-border-input);
    background-color: #fff;
  }

  html.cas-login-html .cell > .label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
    height: auto;
    background: transparent;
  }

  html.cas-login-html .cell > .label > img {
    width: 18px;
    height: auto;
  }

  html.cas-login-html .cell > .cell-input {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  html.cas-login-html .login-box-wrap #fm1 .cell-input > input,
  html.cas-login-html .login-box-wrap #fm1 .cell-input > input.form-control,
  html.cas-login-html .login-box-wrap #fm1 .cell > .cell-input > input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: var(--lh-input-h);
    margin: 0;
    padding: var(--lh-pad-input-y) var(--lh-pad-input-x) var(--lh-pad-input-y) 0;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
    font-size: var(--lh-font-14);
    line-height: var(--lh-lh-20);
    color: var(--lh-text-primary);
    text-align: left;
    text-indent: 0;
    box-sizing: border-box;
  }

  html.cas-login-html .login-box-wrap #fm1 .cell-input > input::placeholder,
  html.cas-login-html .login-box-wrap #fm1 .cell > .cell-input > input::placeholder {
    font-size: var(--lh-font-14);
    line-height: var(--lh-lh-20);
    color: var(--lh-text-secondary);
  }

  html.cas-login-html .cell > .cell-input > .eye {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    flex-shrink: 0;
  }

  html.cas-login-html .cell > .cell-input > .eye-close {
    width: 30px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
  }

  html.cas-login-html .login-box-wrap #fm1 > .err-box.form-err-box {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
  }

  html.cas-login-html .login-box-wrap #fm1 > .err-box.form-err-box .err-tip-slot,
  html.cas-login-html .login-box-wrap #fm1 > .err-box.form-err-box .err-tip {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    text-align: left;
    color: var(--lh-text-error);
  }

  /* 有内容时撑开并补足 8px 顶部间距，无内容时整块收起 */
  html.cas-login-html .login-box-wrap #fm1 > .err-box.form-err-box .err-tip:not(:empty) {
    margin-top: 8px;
  }

  html.cas-login-html .login-box-wrap #fm1 > .err-box.form-err-box .err-tip:empty {
    display: none;
  }

  html.cas-login-html .login-box-wrap #fm1 > .btn-box {
    flex: none;
    width: 100%;
    height: var(--lh-btn-h);
    margin-top: var(--lh-gap-after-error) !important;
  }

  html.cas-login-html .login-box-wrap #fm1 > .password-box {
    margin-top: var(--lh-gap-after-login) !important;
  }

  html.cas-login-html .login-box-wrap .btn-box,
  html.cas-login-html .btn-box {
    height: var(--lh-btn-h);
    margin-top: 0;
  }

  html.cas-login-html .login-box-wrap .btn-box > button,
  html.cas-login-html .btn-box > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--lh-btn-h);
    font-size: var(--lh-font-20);
    font-weight: 500;
    line-height: var(--lh-lh-28);
    color: #fff;
    background-color: var(--theme-color);
    border: none;
    border-radius: var(--lh-input-radius);
    cursor: pointer;
  }

  html.cas-login-html .login-box-wrap #fm1 > .password-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    text-align: left;
  }

  html.cas-login-html .forget-password {
    display: inline-block;
    font-size: var(--lh-font-14);
    line-height: var(--lh-lh-20);
    color: var(--theme-color);
    text-align: left;
    text-decoration: none;
  }

  html.cas-login-html .forget-password:hover {
    text-decoration: underline;
  }

  html.cas-login-html .service-tip-box .err-tip,
  html.cas-login-html #tip-system {
    color: var(--lh-text-secondary);
  }

  .login-box-wrap #fm1 > .err-box.form-err-box,
  .login-box-wrap #fm1 > .err-box.form-err-box .err-tip-slot,
  .login-box-wrap #fm1 > .err-box.form-err-box .err-tip {
    height: auto;
    min-height: 0;
    max-height: none;
    font-size: 14px;
    line-height: 20px;
  }

  .service-tip-box .err-tip,
  #tip-system {
    font-size: 14px;
    line-height: 20px;
  }
}

/* 弹框样式设置 */
html.cas-login-pc .layer-mask {
  display: none;
  z-index: 99999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  opacity: 0.5;
}

html.cas-login-pc .layer-pop {
display: none;
  z-index: 100000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* PC 弹窗尺寸（设计稿固定 px，随 #layer-pop 整体 transform:scale 缩放；JS showLayer 以 px 写入） */
html.cas-login-pc #layer-pop.layer-pop {
  width: var(--lh-layer-pop-w);
  height: var(--lh-layer-pop-h);
  max-width: calc(100vw - 48px);
  max-height: max-content;
  font-size: 14px;
}

html.cas-login-pc .layer-pop .layer-content {
height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

html.cas-login-pc .layer-close {
position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  float: none;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--theme-color);
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease;
}

html.cas-login-pc .layer-close {
width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
}

html.cas-login-pc .layer-close:hover {
background: var(--theme-color-hover);
  color: #fff;
}

html.cas-login-pc .layer-content > .safety {
padding: 0;
  height: 100%;
  box-sizing: border-box;
}

html.cas-login-pc .layer-content > .safety > .safety-container {
display: flex;
  align-items: stretch;
  height: 100%;
  width: 100%;
  min-height: 0;
}

html.cas-login-pc .layer-content > .safety > .safety-container::after {
display: none;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right {
flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 44px 36px 32px;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left {
display: flex;
  flex-direction: column;
  align-items: stretch;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm {
width: 100%;
  max-width: 360px;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .container {
width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  box-sizing: border-box;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .container > .alert-card,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .container > .alert-card {
width: 100%;
  max-width: none;
  margin-top: 0;
  background: transparent;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .container > .alert-card > .alert-header,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .container > .alert-card > .alert-header {
justify-content: flex-start;
  padding: 0;
  margin: 0 0 12px;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .container > .alert-card > .alert-body,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .container > .alert-card > .alert-body {
padding: 0;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .container > .alert-card > .alert-body > .alert-message,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .container > .alert-card > .alert-body > .alert-message {
font-size: 14px;
  line-height: 24px;
  margin: 0;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .title,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .title,
html.cas-login-pc .layer-pop .layer-content .alert-title {
  text-align: left;
  font-size: var(--lh-layer-title-font);
  font-weight: 600;
  color: var(--theme-color);
  line-height: var(--lh-layer-title-lh);
  margin: 0 0 var(--lh-layer-field-gap);
  padding: 0;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .safe-info,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .safe-info {
  font-size: var(--lh-layer-font);
  color: var(--lh-text-secondary);
  line-height: var(--lh-layer-lh);
  margin: 0 0 var(--lh-layer-field-gap);
  padding: 0;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right {
display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border-left: 1px solid var(--lh-border-sep);
  /* 覆盖通用内边距：上下收紧(上0.36与左列标题接近对齐)，把高度让给二维码容器 */
  padding: 36px 20px 10px;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .wechat-login-section {
flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .container {
width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  box-sizing: border-box;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .container > .alert-card > .alert-body > .alert-actions {
justify-content: flex-start;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .wechat-login-section > .wechat-header {
display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .wechat-login-section > .wechat-header > .wechat-icon-img {
width: 22px;
  height: 18px;
  margin: 0 8px 0 0;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .wechat-login-section > .wechat-header > .wechat-title {
text-align: left;
  font-size: 20px;
  font-weight: 600;
  color: var(--theme-color);
  line-height: 28px;
  margin: 0;
  padding: 0;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .wechat-login-section > .wechat-qrcode-container {
width: 240px;
  /* 3:4 比例匹配微信登录页 300x400 原始设计尺寸，iframe 内容由 JS 等比缩放适配(缩放比0.8)，保证底部文字不被裁剪。
     高度上限 = 弹窗高400px − 右列上下内边距46px − 标题行28px及下间距6px */
  height: 320px;
  position: relative;
  margin: 10px 0 0;
  /* border: 1px solid #E4E7ED; */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  overflow: hidden;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .wechat-login-section > .wechat-qrcode-container > iframe {
/* 弹框为设计稿 px 布局 + #layer-pop 整体 transform:scale 适配，iframe 按微信页面 300x400 原始尺寸
   固定渲染并相对容器中心对齐（外围白边由容器 overflow:hidden 均匀裁剪），随弹框整体等比缩放，无需单独缩放 */
width: 300px;
  height: 400px;
  max-width: none;
  max-height: none;
  border: none;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-right > .wechat-login-section > .wechat-qrcode-container > .loading-container {
position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .cell-phone,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .cell-phone {
  display: flex;
  align-items: center;
  height: var(--lh-layer-input-h) !important;
  min-height: var(--lh-layer-input-h);
  line-height: var(--lh-layer-lh);
  border: 1px solid var(--lh-border-input);
  padding: 0 var(--lh-pad-input-x);
  font-size: var(--lh-layer-font);
  border-radius: var(--lh-layer-input-radius);
  margin-bottom: var(--lh-layer-field-gap);
  color: var(--lh-text-primary);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .err-tip,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .err-tip {
font-size: 12px;
  font-weight: bold;
  color: var(--lh-text-error);
  display: block;
  margin-bottom: 5px;
  margin-top: 0;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .success-tip,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .success-tip {
font-size: 12px;
  font-weight: bold;
  color: #2d9ea6;
  display: block;
  margin-bottom: 5px;
  min-height: 10px;
  margin-top: 0;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .cell,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .cell {
height: var(--lh-layer-input-h);
  min-height: var(--lh-layer-input-h);
  margin-bottom: var(--lh-layer-field-gap);
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--lh-border-input);
  border-radius: var(--lh-layer-input-radius);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .cell[style],
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .code-box > .cell[style] {
width: auto !important;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .cell .cell-input,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .cell .cell-input {
  flex: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-sizing: border-box;
}

html.cas-login-pc .layer-pop #phoneAuthForm .cell-input input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: var(--lh-layer-pad-y) var(--lh-pad-input-x);
  font-size: var(--lh-layer-font);
  line-height: var(--lh-layer-lh);
  box-sizing: border-box;
  text-align: left;
  text-indent: 0;
}

html.cas-login-pc .layer-pop #phoneAuthForm .cell-input input::placeholder {
  font-size: var(--lh-layer-font);
  line-height: var(--lh-layer-lh);
  text-align: left;
}

html.cas-login-pc .layer-pop #phoneAuthForm > .cell[style*='border: 0'] {
border: 1px solid var(--lh-border-input) !important;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .cell > .cell-input > .verification-code,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .cell > .cell-input > .verification-code {
  font-size: var(--lh-layer-font);
  line-height: var(--lh-layer-lh);
  background: var(--theme-color);
  border-radius: 0;
  padding: 0 14px;
  margin: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 弹层图形验证码：与主登录 #fm1 .code-box 同结构、同风格 */
html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .code-box,
html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > .code-box {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--lh-layer-captcha-gap);
  margin-bottom: var(--lh-layer-field-gap);
  box-sizing: border-box;
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .code-box > .cell,
html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > .code-box > .cell,
html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > .code-box > .form-row-code {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  max-width: none;
  height: var(--lh-layer-input-h);
  min-height: var(--lh-layer-input-h);
  margin: 0 !important;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--lh-layer-input-radius);
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .code-box > .cell > .cell-input,
html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > .code-box > .cell > .cell-input {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 100%;
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .code-box > .cell > .cell-input input,
html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > .code-box > .cell > .cell-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: var(--lh-layer-pad-y) var(--lh-pad-input-x);
  font-size: var(--lh-layer-font);
  line-height: var(--lh-layer-lh);
  color: var(--lh-text-primary);
  box-sizing: border-box;
  text-align: left;
  text-indent: 0;
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .code-box > .cell > .cell-input input::placeholder {
  color: var(--lh-text-secondary);
  font-size: var(--lh-layer-font);
  line-height: var(--lh-layer-lh);
  text-align: left;
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left .code-box-img-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 var(--lh-layer-captcha-side-w);
  width: var(--lh-layer-captcha-side-w);
  min-width: var(--lh-layer-captcha-side-w);
  height: var(--lh-layer-input-h);
  padding: 4px 8px 4px 6px;
  gap: 8px;
  border: 1px solid var(--lh-border-input);
  border-radius: var(--lh-layer-input-radius);
  box-sizing: border-box;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left .code-box-img-group:hover {
  border-color: var(--lh-border-input);
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left .code-box-img-group > .code-img,
html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left .code-box-img-group > img {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: var(--lh-layer-captcha-img-max-w);
  height: var(--lh-layer-captcha-img-h);
  max-height: calc(var(--lh-layer-input-h) - 6px);
  margin: 0;
  border: none;
  border-radius: 0;
  object-fit: contain;
  cursor: pointer;
  display: block;
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left .code-box-img-group > .choose-box {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 2px 0 0;
  color: var(--theme-color);
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  text-align: right;
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left .code-box-img-group > .choose-box:hover {
  text-decoration: underline;
}

html.cas-login-pc .layer-content > .safety > .cell>.label-select {
height: 40px;
}

html.cas-login-pc .layer-content > .safety > .cell>.label-select > select {
height: 40px;
  width: 65px;
  line-height: 40px;
  border: none;
  padding-left: 15px;
  color: #666666;
  font-size: 14px;
  /* -webkit-appearance:none;
  -webkit-border-radius: 0px; */
}

html.cas-login-pc .layer-content > .safety > .cell>.label-select > select:hover {
border: none;
}

html.cas-login-pc .layer-content > .safety > .cell>.label-select > select:focus {
border: none;
  outline: none;
}

html.cas-login-pc .layer-content > .safety > .cell>.label-select > .select-box> .option-row {
height: 40px;
  width: 65px;
  box-shadow: 0 0;
}

html.cas-login-pc .option {
height: 40px;
  line-height: 40px;
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .btn-box,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .btn-box {
width: 100%;
  height: var(--lh-layer-btn-h);
  display: flex;
  align-items: center;
  margin: 8px 0 0;
  justify-content: stretch;
  position: relative;
  border-radius: var(--lh-layer-input-radius);
}

html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .btn-box > button,
html.cas-login-pc .layer-content > .safety > .safety-container > .safety-left > .btn-box > button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--lh-layer-btn-h);
  font-size: var(--lh-layer-btn-font);
  line-height: var(--lh-lh-22);
  background-color: var(--theme-color);
  outline: none;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  font-weight: normal;
}

html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .btn-box > button:hover,
html.cas-login-pc .layer-pop .layer-content > .safety > .safety-container > .safety-left > .btn-box > button:hover {
background-color: var(--theme-color-hover);
}

html.cas-login-pc .again-send-active {
cursor: pointer;
}

html.cas-login-pc .layer-content > .safety-info {
padding: 40px 75px;
}

html.cas-login-pc .layer-content > .safety-info > .safe-info {
font-size: 14px;
  color: var(--lh-text-secondary);
  line-height: 24px;
}

html.cas-login-pc .layer-content > .safety-info >.btn-box {
width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 20px;
  justify-content: space-between;
  position: relative;
  border-radius: 4px;
}

html.cas-login-pc .layer-content > .safety-info > .btn-box > button {
width: 80px;
  height: 30px;
  background-color: var(--theme-color);
  outline: none;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  margin: auto;
}

html.cas-login-pc .layer-pop .layer-content > .safety-info > .btn-box > button:hover {
background-color: var(--theme-color-hover);
}

html.cas-login-pc .separator {
display: flex;
  align-items: center;
  margin: 20px 0px 16px 0;
}

html.cas-login-pc .separator::before,
html.cas-login-pc .separator::after {
content: "";
  flex: 1;
  height: 1px;
  background-color: #9AA5B8;
}

html.cas-login-pc .separator span {
padding: 0 10px;
  font-size: 14px;
  color: #9AA5B8;
}

html.cas-login-pc .wechat-auth {
display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

html.cas-login-pc .wechat-icon {
width: 24px;
}

html.cas-login-pc .wechat-text {
font-size: 14px;
  color: #707070;
}

/* 标题样式 */
html.cas-login-pc .page-title {
  font-size: 24px;
  color: #333333;
  margin: 40px 0px;
  font-weight: bold;
  text-align: center;
}

html.cas-login-pc .qrcode-wrapper {
width: 210px;
  /* 3:4 匹配微信登录页 300x400 原始设计尺寸，iframe 内容由 JS 等比缩放适配，保证底部文字不被裁剪 */
  height: 280px;
  background: #FFFFFF;
  border-radius: 5px 5px 5px 5px;
  margin: 0px auto;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

html.cas-login-pc .qrcode-wrapper > iframe {
/* 弹框整体 transform:scale 适配，iframe 固定 300x400 顶部对齐水平居中，随弹框整体缩放，无需单独缩放 */
width: 300px;
  height: 400px;
  max-width: none;
  max-height: none;
  border: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

html.cas-login-pc .qrcode-img {
padding: 6px;
  display: block; /* 防止图片底部有间隙 */
}

html.cas-login-pc .guide-text {
font-size: 16px;
  color: #333333 ;
  margin: 30px;
  text-align: center;
}

html.cas-login-pc .phone-auth-btn {
display: inline-flex;
  align-items: center;
  color: #1677ff;
  font-size: 15px;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.2s;
}

html.cas-login-pc .phone-auth-btn:hover {
color: #0f5fcc;
}

html.cas-login-pc .phone-icon {
margin-right: 6px;
  font-size: 16px;
}

html.cas-login-pc .phonesSeparator {
display: flex;
  align-items: center;
  margin: 30px 0px 15px 0;
}

html.cas-login-pc .phonesSeparator span {
color: #9AA5B8;
  font-size: 14px;
  padding: 0px 18px;
}

html.cas-login-pc .phonesSeparator::before,
html.cas-login-pc .phonesSeparator::after {
content: "";
  flex: 1;
  height: 1px;
  background-color: #9AA5B8;
}

html.cas-login-pc .qr-status {
margin-top: 18px;
  font-size: 15px;
  color: #6a7fa5;
}

html.cas-login-pc .qr-status .refresh {
color: #317bff;
  cursor: pointer;
  text-decoration: none;
  margin-left: 8px;
}

html.cas-login-pc .qr-status .refresh:hover {
text-decoration: underline;
}

html.cas-login-pc .qr-expired-overlay {
position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  color: #333333;
  white-space: nowrap; /* 同一行显示 */
}

html.cas-login-pc .qr-expired-overlay .refresh {
color: #317bff;
  text-decoration: none;
  cursor: pointer;
}

html.cas-login-pc .qr-expired-overlay .refresh:hover {
text-decoration: underline;
}

html.cas-login-pc .success-overlay {
transform: translate(0%, 0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  inset: 0;
}

html.cas-login-pc .success-icon {
width: 60px;
  height: 60px;
  margin-bottom: 16px;
  position: relative;
  top: 24%;
}

html.cas-login-pc .success-icon img {
width: 100%;
  height: 100%;
  object-fit: contain;
}

html.cas-login-pc .success-text {
font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-top: 40px;
}

html.cas-login-pc .loading-container {
display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 254px;
    background: #f5f5f5;
    border-radius: 8px;
}

html.cas-login-pc .loading-spinner {
width: 40px;
    height: 40px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #07C160;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

html.cas-login-pc .loading-text {
color: #666;
    font-size: 14px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

html.cas-login-pc .container {
width: 100%;
  max-width: 500px;
}

html.cas-login-pc .alert-card {
background: white;
  margin-top: 45px;
}

html.cas-login-pc .layer-pop .alert-card {
margin-top: 0;
  background: transparent;
}

html.cas-login-pc .layer-pop .alert-header {
color: var(--theme-color);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

html.cas-login-pc .alert-icon {
font-size: 28px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

html.cas-login-pc .layer-pop .alert-title {
font-size: 20px;
  font-weight: 600;
  color: var(--theme-color);
  line-height: 28px;
}

html.cas-login-pc .layer-pop .alert-body {
padding: 0;
}

html.cas-login-pc .layer-pop .alert-message {
color: var(--lh-text-secondary);
  line-height: 24px;
  margin: 0;
  font-size: 14px;
}

html.cas-login-pc .layer-pop .alert-message .wechat-icon {
margin-right: 6px;
  vertical-align: middle;
}

html.cas-login-pc .alert-actions {
display: flex;
  justify-content: flex-end;
  gap: 12px;
}

html.cas-login-pc .btn {
padding: 9px 9px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 15px;
}

html.cas-login-pc .layer-pop .btn-primary {
background: var(--theme-color);
  color: #fff;
}

html.cas-login-pc .layer-pop .btn-primary:hover {
background: var(--theme-color-hover);
  box-shadow: 0 4px 12px rgba(46, 80, 104, 0.25);
}

html.cas-login-pc .btn-secondary {
background: #f0f0f0;
  color: #666;
}

html.cas-login-pc .btn-secondary:hover {
background: #e0e0e0;
}

html.cas-login-pc .layer-pop .wechat-icon {
color: var(--theme-color);
}

html.cas-login-pc .layer-pop .cell-input #secondaryloginphonecaptcha {
  border: none;
  border-radius: 0;
  padding: var(--lh-layer-pad-y) var(--lh-pad-input-x);
  margin: 0;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  font-size: var(--lh-layer-font);
  line-height: var(--lh-layer-lh);
  box-sizing: border-box;
  text-align: left;
  text-indent: 0;
}

html.cas-login-pc .layer-pop .cell-input #secondaryloginphonecaptcha::placeholder {
  font-size: var(--lh-layer-font);
  line-height: var(--lh-layer-lh);
  text-align: left;
}

html.cas-login-pc .layer-pop .cell-input #sendSecondaryloginphonecaptchaBtn {
  background-color: var(--theme-color) !important;
  color: #fff;
  border-radius: 0;
  padding: 0 14px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

html.cas-login-pc .layer-pop #phoneAuthForm > .code-box > .cell:hover,
html.cas-login-pc .layer-pop #phoneAuthForm > .code-box > .cell:focus-within,
html.cas-login-pc .layer-pop .code-box > .cell:hover,
html.cas-login-pc .layer-pop .code-box > .cell:focus-within {
  border-color: var(--lh-border-input);
  box-shadow: none;
}

html.cas-login-pc .layer-pop .cell-input #sendSecondaryloginphonecaptchaBtn:hover {
background-color: var(--theme-color-hover) !important;
}

/* ========== 弹层：仅移动端（≤800px，与 PC html.cas-login-pc 规则隔离） ========== */
/* UA 识别兜底：部分手机浏览器(电脑版网页模式/横屏/折叠屏)视口宽度>800，媒体查询不命中，
   由头部脚本按 UA 打的 html.cas-login-mobile 类在此强制隐藏微信扫码右栏 */
html.cas-login-html.cas-login-mobile #layer-pop .layer-content > .safety > .safety-container > .safety-right {
  display: none !important;
}
@media screen and (max-width: 800px) {
  /* 遮罩 + 弹窗基础定位（移动端无 cas-login-pc，必须单独写） */
  html.cas-login-html #layer-mask.layer-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.5;
  }

  html.cas-login-html #layer-pop.layer-pop {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    margin: 0;
    width: calc(100vw - 32px) !important;
    max-width: 400px;
    height: auto !important;
    max-height: 88vh;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    line-height: 1.5;
  }

  html.cas-login-html body.cas-login-page.cas-login-layer-open {
    overflow: hidden;
  }

  html.cas-login-html body.cas-login-page.cas-login-layer-open .lzu-login {
    pointer-events: none;
  }

  html.cas-login-html #layer-pop .layer-content {
    height: auto;
    max-height: calc(88vh - 2px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    box-sizing: border-box;
  }

  html.cas-login-html #layer-pop .layer-content > .safety {
    height: auto;
  }

  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-left,
  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-right {
    flex: none;
    width: 100%;
    max-width: none;
    padding: 40px 16px 16px;
    box-sizing: border-box;
  }

  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-right {
    order: 2;
    border-left: none;
    border-top: 1px solid var(--lh-border-sep);
    padding: 16px 16px 20px;
  }

  /* 移动端二次认证弹窗：强制隐藏微信扫码右栏，仅保留左侧手机号验证表单
     （PC 端 html.cas-login-pc 不受影响；!important 确保覆盖 JS 弹出后的行内样式） */
  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-right {
    display: none !important;
  }

  html.cas-login-html #layer-pop .safety-right .alert-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: var(--theme-color);
  }

  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-left {
    order: 1;
    padding: 20px 16px 16px;
  }

  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm,
  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-left > .container {
    max-width: none;
    width: 100%;
  }

  html.cas-login-html #layer-pop #phoneAuthForm {
    display: flex;
    flex-direction: column;
    gap: var(--lh-layer-m-gap);
  }

  html.cas-login-html #layer-pop .layer-content .alert-title,
  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .title {
    font-size: var(--lh-font-20);
    line-height: var(--lh-lh-28);
    margin: 0;
    padding-right: 32px;
    font-weight: 600;
    color: var(--theme-color);
    text-align: left;
  }

  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-left > #phoneAuthForm > .safe-info {
    font-size: var(--lh-layer-m-font);
    line-height: var(--lh-layer-m-lh);
    margin: 0;
    color: var(--lh-text-secondary);
  }

  html.cas-login-html #layer-pop #phoneAuthForm > .cell-phone {
    display: flex;
    align-items: center;
    height: var(--lh-layer-m-input-h);
    min-height: var(--lh-layer-m-input-h);
    line-height: var(--lh-layer-m-lh);
    margin: 0;
    padding: 0 var(--lh-pad-input-x);
    font-size: var(--lh-layer-m-font);
    border: 1px solid var(--lh-border-input);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--lh-text-primary);
    background: #f5f6f8;
    text-align: left;
  }

  html.cas-login-html #layer-pop #phoneAuthForm > .cell[style*='border: 0'] {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    height: var(--lh-layer-m-input-h) !important;
    min-height: var(--lh-layer-m-input-h) !important;
    margin: 0 !important;
    border: 1px solid var(--lh-border-input) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-sizing: border-box;
    background: #fff;
  }

  html.cas-login-html #layer-pop #phoneAuthForm > .btn-box {
    width: 100%;
    height: var(--lh-layer-m-btn-h);
    margin: 4px 0 0;
  }

  html.cas-login-html #layer-pop #phoneAuthForm > .btn-box > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--lh-layer-m-btn-h);
    font-size: var(--lh-layer-m-btn-font);
    line-height: var(--lh-lh-22);
    border-radius: var(--lh-input-radius);
    border: none;
    color: #fff;
    background: var(--theme-color);
  }

  html.cas-login-html #layer-pop .err-tip,
  html.cas-login-html #layer-pop .success-tip {
    display: block;
    font-size: 13px;
    line-height: 20px;
    margin: -4px 0 0;
  }

  html.cas-login-html #layer-pop #phoneAuthForm > .cell-phone,
  html.cas-login-html #layer-pop #phoneAuthForm .cell-input input,
  html.cas-login-html #layer-pop #secondarylogincaptcha,
  html.cas-login-html #layer-pop #secondaryloginphonecaptcha {
    text-align: left !important;
    text-indent: 0 !important;
  }

  /* 弹层输入框：蓝湖 14/20 + 上下各 10px（40px 高） */
  html.cas-login-html #layer-pop #phoneAuthForm .cell-input input,
  html.cas-login-html #layer-pop #secondarylogincaptcha,
  html.cas-login-html #layer-pop #secondaryloginphonecaptcha {
    height: var(--lh-layer-m-input-h) !important;
    min-height: var(--lh-layer-m-input-h) !important;
    max-height: var(--lh-layer-m-input-h) !important;
    line-height: var(--lh-layer-m-lh) !important;
    padding: var(--lh-layer-m-pad-y) var(--lh-pad-input-x) !important;
    font-size: var(--lh-layer-m-font) !important;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box !important;
  }

  html.cas-login-html #layer-pop #phoneAuthForm .cell-input input::placeholder,
  html.cas-login-html #layer-pop #secondarylogincaptcha::placeholder,
  html.cas-login-html #layer-pop #secondaryloginphonecaptcha::placeholder {
    font-size: var(--lh-layer-m-font);
    line-height: var(--lh-layer-m-lh);
    color: var(--lh-text-secondary);
    text-align: left;
  }

  /* 弹层图形验证码：左输入 + 右图/换一张（同行不换行） */
  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-left .code-box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--lh-captcha-gap);
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  html.cas-login-html #layer-pop .code-box > .cell,
  html.cas-login-html #layer-pop .code-box > .form-row-code {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: none;
    height: var(--lh-layer-m-input-h);
    min-height: var(--lh-layer-m-input-h);
    margin: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 8px;
    border: 1px solid var(--lh-border-input);
    background-color: #fff;
    overflow: hidden;
  }

  html.cas-login-html #layer-pop .code-box > .cell .cell-input {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
  }

  html.cas-login-html #layer-pop .code-box > .cell .cell-input input,
  html.cas-login-html #layer-pop #secondarylogincaptcha {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--lh-text-primary);
  }

  html.cas-login-html #layer-pop .code-box-img-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 var(--lh-layer-m-captcha-side-w);
    width: var(--lh-layer-m-captcha-side-w);
    min-width: var(--lh-layer-m-captcha-side-w);
    max-width: var(--lh-layer-m-captcha-side-w);
    height: var(--lh-layer-m-input-h);
    padding: 4px 8px 4px 6px;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--lh-border-input);
    background-color: #fff;
    box-sizing: border-box;
    overflow: hidden;
  }

  html.cas-login-html #layer-pop .code-box-img-group > .code-img,
  html.cas-login-html #layer-pop .code-box-img-group > img {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: var(--lh-layer-m-captcha-img-max-w);
    height: var(--lh-layer-m-captcha-img-h);
    max-height: calc(var(--lh-layer-m-input-h) - 4px);
    margin: 0;
    border: none;
    object-fit: contain;
    cursor: pointer;
    display: block;
  }

  html.cas-login-html #layer-pop .code-box-img-group > .choose-box {
    flex: 0 0 auto;
    width: auto;
    font-size: var(--lh-font-14);
    line-height: var(--lh-lh-20);
    color: var(--theme-color);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    padding: 0;
    margin: 0;
  }

  html.cas-login-html #layer-pop .code-box-img-group > .choose-box:hover {
    text-decoration: underline;
  }

  /* 短信验证码：左输入 + 右「获取验证码」，中间分隔线 */
  html.cas-login-html #layer-pop #phoneAuthForm > .cell[style*='border: 0'] .cell-input {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: var(--lh-layer-m-input-h) !important;
    gap: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
  }

  html.cas-login-html #layer-pop #phoneAuthForm > .cell[style*='border: 0'] .cell-input #secondaryloginphonecaptcha {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
  }

  html.cas-login-html #layer-pop #phoneAuthForm > .cell[style*='border: 0'] .cell-input #sendSecondaryloginphonecaptchaBtn,
  html.cas-login-html #layer-pop #phoneAuthForm > .cell[style*='border: 0'] .cell-input .verification-code {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: auto !important;
    min-width: 118px;
    max-width: none;
    height: var(--lh-layer-m-input-h) !important;
    min-height: var(--lh-layer-m-input-h) !important;
    max-height: var(--lh-layer-m-input-h) !important;
    margin: 0;
    padding: 0 10px;
    border: none;
    border-left: 1px solid var(--lh-border-input) !important;
    border-radius: 0;
    font-size: var(--lh-font-14);
    font-weight: 500;
    line-height: var(--lh-lh-20);
    letter-spacing: 0;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch;
    box-sizing: border-box;
    background-color: var(--theme-color) !important;
    color: #fff !important;
    cursor: pointer;
  }

  html.cas-login-html #layer-pop #phoneAuthForm > .cell[style*='border: 0'] .cell-input #sendSecondaryloginphonecaptchaBtn:hover,
  html.cas-login-html #layer-pop #phoneAuthForm > .cell[style*='border: 0'] .cell-input .verification-code:hover {
    background-color: var(--theme-color-hover) !important;
  }

  /* 安全提醒正文：与标题左对齐，去掉微信图标占位 */
  html.cas-login-html #layer-pop .safety-right .container,
  html.cas-login-html #layer-pop .safety-right .alert-card,
  html.cas-login-html #layer-pop .safety-right .alert-body {
    padding: 0;
    margin: 0;
    text-align: left;
  }

  html.cas-login-html #layer-pop .safety-right .alert-header {
    padding: 0;
    margin: 0 0 8px;
    justify-content: flex-start;
  }

  html.cas-login-html #layer-pop .alert-message {
    text-align: left;
    padding: 0;
    margin: 0;
    text-indent: 0;
    font-size: 14px;
    line-height: 22px;
  }

  html.cas-login-html #layer-pop .alert-message .wechat-icon,
  html.cas-login-html #layer-pop .alert-message i.fab,
  html.cas-login-html #layer-pop .alert-message i {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }

  html.cas-login-html #layer-pop .alert-message span,
  html.cas-login-html #layer-pop .alert-message #bindInfo,
  html.cas-login-html #layer-pop .alert-message #bindPhoneInfo {
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: inline;
  }

  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-right > .wechat-login-section {
    padding-top: 0;
  }

  html.cas-login-html #layer-pop .layer-content > .safety > .safety-container > .safety-right > .wechat-login-section > .wechat-qrcode-container {
    width: 180px;
    /* 3:4 匹配微信登录页原始比例，内容由 JS 等比缩放适配 */
    height: 240px;
  }

  html.cas-login-html #layer-pop .layer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 30;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--theme-color);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    float: none;
  }
}
