/* 学生端登录页视觉对齐参考图（不改功能，仅覆盖样式） */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #0a2f45;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  overflow-x: hidden;
}

#main {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 0 40px;
  box-sizing: border-box;
  background-color: #08233f;
  background-image:
    linear-gradient(90deg, rgba(5, 38, 58, 0.62) 0%, rgba(7, 65, 73, 0.34) 42%, rgba(9, 69, 77, 0.10) 68%, rgba(5, 37, 47, 0.20) 100%),
    linear-gradient(0deg, rgba(5, 40, 58, 0.35), rgba(5, 40, 58, 0) 42%),
    linear-gradient(180deg, rgba(3, 25, 43, 0.55) 0%, rgba(3, 25, 43, 0) 120px),
    url("https://images.unsplash.com/photo-1564981797816-1043664bf78d?auto=format&fit=crop&w=2200&q=88");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#main .bd,
#main #LoginSlideUl {
  display: none !important;
}

/* ===== Header：两行（品牌导航 + 通知公告） ===== */
#header.stu-header,
#header {
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative !important;
  z-index: 5;
  background: rgba(4, 31, 50, 0.42);
  border-bottom: 0;
  overflow: visible !important;
  backdrop-filter: blur(10px);
}

.stu-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-sizing: border-box;
}

#header h1 {
  margin: 0 !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  flex: 1;
  min-width: 0;
}

#header .login_logo {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}

#header .login_imgnew,
#header .login_img1 {
  display: flex !important;
  align-items: center;
  height: auto !important;
  float: none !important;
}

#header .login_right,
#header .login_imgnew img,
#header .login_img1 img {
  max-height: 44px !important;
  width: auto !important;
  vertical-align: middle;
}

.stu-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
}

.stu-header-actions a {
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
  text-align: center;
}

.stu-header-actions a span {
  display: block;
  color: inherit !important;
  font-size: inherit !important;
}

.stu-header-actions a small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.stu-header-actions a:hover {
  opacity: 1;
}

.stu-header-actions a:hover small {
  color: #ffbd57;
}

.stu-header-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.32);
  align-self: center;
}

.stu-header-lang span {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 12px !important;
  font-weight: 600;
}

.stu-lang-caret {
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 13px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px !important;
  font-style: normal;
}

#header .ssfgx,
#header > div[style*="position: absolute"] {
  display: none !important;
}

/* 第二行：通知公告条 */
.stu-header-announce,
#Tongzhi.stu-header-announce {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 42, 58, 0.55);
  color: #fff;
  box-sizing: border-box;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.stu-header-announce:not(.hide),
#Tongzhi.stu-header-announce:not(.hide),
.stu-header-announce.news:not(.hide) {
  display: flex !important;
}

.stu-announce-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: #ffdc91;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.stu-announce-label i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 189, 87, 0.24);
  position: relative;
}

.stu-announce-label i::before {
  content: "";
  position: absolute;
  inset: 3px 4px 3px 3px;
  border: 1.5px solid #ffdc91;
  border-radius: 2px 2px 2px 0;
  box-sizing: border-box;
}

.stu-announce-label small {
  color: rgba(255, 220, 145, 0.75);
  font-size: 9px;
  font-weight: 600;
}

.stu-announce-body,
.stu-header-announce .news_func {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
}

.stu-announce-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stu-announce-new {
  flex: none;
  padding: 3px 6px;
  border-radius: 5px;
  background: #ff8d5e;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.stu-announce-title,
.stu-header-announce .titlea {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 12px !important;
  font-weight: 650;
  white-space: nowrap !important;
  text-overflow: ellipsis;
  text-decoration: none !important;
  line-height: 1.4 !important;
  height: auto !important;
  -webkit-line-clamp: 1 !important;
  display: block !important;
}

.stu-announce-title:hover {
  color: #b9eff3 !important;
}

.stu-announce-date {
  flex: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  white-space: nowrap;
}

.stu-header-announce.news a.stu-announce-more,
.stu-announce-more {
  flex: none;
  flex-shrink: 0;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  padding-left: 0 !important;
  color: #b9eff3 !important;
  font-size: 11px !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}

.stu-announce-more:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.stu-announce-more::after {
  content: " →";
}

/* ===== Main content: guide left + login card right ===== */
#content {
  width: 1110px !important;
  max-width: 1110px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 25px auto 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 750px 430px;
  gap: 23px;
  align-items: start;
  justify-content: center;
  background: transparent !important;
  background-image: none !important;
  position: relative;
  z-index: 2;
}

#content #LoginErrorMsg {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative !important;
  border-radius: 8px;
  margin-bottom: 8px;
}

#content #LoginErrorMsg.hide {
  display: none !important;
}

/* 左侧欢迎标题（真实元素，回退到 university 名） */
#content .welcome-title {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin: 8px 0 0;
  text-shadow: 0 2px 18px rgba(0, 22, 38, 0.28);
}

#content .welcome-title .welcome-title-zh {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 760;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

#content .welcome-title .welcome-title-name {
  display: inline-block;
  margin-left: 8px;
}

#content .welcome-title .welcome-title-en {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

#content .right_text {
  grid-column: 1;
  grid-row: 3;
  /* margin-top: 18px !important; */
  justify-self: start;
}

#content .left_login {
  grid-column: 2;
  grid-row: 2 / span 3;
}

/* Guide (原 right_text) -> 左侧玻璃卡片 */
#content .right_text,
#content .right_text.fr {
  float: none !important;
  width: 540px !important;
  max-width: 540px !important;
  /* height: auto !important; */
  min-height: 0 !important;
  height: 630px !important;
  overflow-y: auto;
  padding: 18px 20px !important;
  border: 1px solid rgba(210, 244, 245, 0.42) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(226, 246, 246, 0.78), rgba(214, 239, 241, 0.62)) !important;
  box-shadow: 0 16px 36px rgba(0, 42, 52, 0.16);
  backdrop-filter: blur(12px) saturate(118%);
  color: #294d5c !important;
  box-sizing: border-box;
}

#content .right_text::before {
  content: "登录与申请须知 · LOGIN & APPLICATION GUIDE";
  display: block;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(91, 151, 157, 0.24);
  color: #173f59;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#content .right_text .guide-lang {
  margin: 0 0 14px;
}

#content .right_text .guide-zh {
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(91, 151, 157, 0.28);
}

#content .right_text .guide-en {
  margin-bottom: 4px;
}

#content .right_text .guide-lang > p:last-child {
  margin-bottom: 0 !important;
}

#content .right_text p {
  position: static !important;
  top: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.75 !important;
  color: #315463 !important;
  text-shadow: none !important;
}

#content .right_text a {
  color: #2781e8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Login card (原 left_login) */
#content .left_login,
#content .left_login.fl {
  float: none !important;
  justify-self: end;
  width: 430px !important;
  max-width: 430px !important;
  min-height: 580px !important;
  height: auto !important;
  margin: 26px !important;
  padding: 28px 30px 28px !important;
  padding-left: 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 28px 64px rgba(0, 25, 46, 0.32), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(18px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden !important;
  isolation: isolate;
}

#content .left_login::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #18b6cc 0 46%, #ff8d5e 46% 76%, #ffc45e 76% 100%);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  z-index: 1;
}

/* Port tabs */
#content .login-port-switch {
  width: 100% !important;
  margin: 8px 0 14px !important;
}

#content .login-port-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 4px;
  border: 0 !important;
  border-radius: 10px;
  background: #edf6f8;
}

#content .login-port-tabs .port-tab {
  padding: 9px 8px !important;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #69808d !important;
  font-size: 12px !important;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

#content .login-port-tabs .port-tab .port-en {
  display: inline !important;
  margin-left: 4px;
  font-size: 9px !important;
  opacity: 0.85;
}

#content .login-port-tabs .port-tab.active {
  border-color: #c7e7ea !important;
  background: #fff !important;
  color: #168ea1 !important;
  box-shadow: 0 2px 6px rgba(42, 110, 126, 0.08);
}

#content .login-port-tabs .port-tab.active::after {
  display: none !important;
}

#content .login-port-title {
  margin: 0 0 16px !important;
}

#content .login-port-title .title-zh {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #163b58;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}

#content .login-port-title .title-en {
  display: block;
  margin-top: 5px;
  color: #e47b52;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Fields */
#content .left_login .fm-item {
  width: 100% !important;
  height: 46px !important;
  margin-bottom: 14px !important;
  border: 1px solid #d5e0e8 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
  position: relative;
}

#content .left_login .fm-item:focus-within {
  border-color: #17abc2 !important;
  box-shadow: 0 0 0 3px rgba(23, 171, 194, 0.13);
}

#content .left_login .i-text,
#content .left_login .fm-item .i-text {
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  font-size: 13px !important;
  color: #29445e;
  box-sizing: border-box;
}

#content .left_login .focus-effect {
  background: transparent !important;
}

#content .left_login .focus-effect:focus {
  background: transparent !important;
  box-shadow: none !important;
}

#content .left_login .fm-item input[passwormanage='1'] {
  padding-right: 40px !important;
}

#content .left_login .fm-item.fm-item-icon {
  padding: 0 14px 0 14px !important;
}

#content .left_login .fm-item.fm-item-icon .fm-icon {
  flex: none;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.65;
}

#content .left_login .fm-item.fm-item-icon:focus-within .fm-icon {
  opacity: 1;
}

#content .left_login .fm-icon-user {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173f59' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/></svg>");
}

#content .left_login .fm-icon-lock {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173f59' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='11' width='16' height='10' rx='2'/><path d='M8 11V8a4 4 0 1 1 8 0v3'/></svg>");
}

#content .left_login .fm-icon-phone {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173f59' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='7' y='2' width='10' height='20' rx='2'/><path d='M11 18h2'/></svg>");
}

#content .left_login .fm-icon-eye {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173f59' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/><circle cx='12' cy='12' r='3'/></svg>");
}

#content .left_login .fm-icon-eye-off {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173f59' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3l18 18'/><path d='M10.6 6.1A10.1 10.1 0 0 1 12 6c6.5 0 10 6 10 6a14.8 14.8 0 0 1-3.1 4.1'/><path d='M6.3 7.7A14.8 14.8 0 0 0 2 12s3.5 6 10 6c1.7 0 3.2-.3 4.5-.8'/><path d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/></svg>");
}

#content .left_login .fm-item.fm-item-icon .i-text {
  padding: 0 !important;
}

#content .left_login .fm-item.fm-item-icon .passwordManage {
  right: 14px;
  display: inline-block;
}

#content .left_login .passwordManage .fm-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 0;
  cursor: pointer;
}

#content .left_login .login-options-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
  font-size: 12px;
}

#content .left_login .remember-me {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #5a6c7a;
  font-size: 12px;
  user-select: none;
}

#content .left_login .remember-me .remember-me-cb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

#content .left_login .remember-me .remember-me-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #c1cad3;
  border-radius: 3px;
  background: #fff;
  position: relative;
  transition: all 0.18s ease;
}

#content .left_login .remember-me .remember-me-cb:checked + .remember-me-box {
  background: #13a9c1;
  border-color: #13a9c1;
}

#content .left_login .remember-me .remember-me-cb:checked + .remember-me-box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#content .left_login .remember-me .remember-me-text {
  color: #5a6c7a;
}

#content .left_login .remember-me .remember-me-text small {
  display: inline;
  margin-left: 4px;
  color: #8a9aa8;
  font-size: 11px;
}

#content .left_login .stu-forgot-pwd {
  color: #ec7950 !important;
  font-size: 12px !important;
  text-decoration: none !important;
}

#content .left_login .stu-forgot-pwd small {
  display: inline;
  margin-left: 4px;
  color: #ec7950 !important;
  font-size: 11px !important;
  font-weight: 500;
}

#content .left_login .stu-forgot-pwd:hover {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

#content .left_login .passwordManage {
  float: none !important;
  position: absolute !important;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  padding: 0 !important;
  line-height: 1 !important;
  z-index: 2;
}

#content .left_login .fm-item.Verification,
#content .left_login .Verification.pos-r {
  width: 100% !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#content .left_login .Verification .i-text.yzm {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 46px !important;
  border: 1px solid #d5e0e8 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

#content .left_login .Verification .ui-form-explain {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  flex: 0 0 100px;
  width: 100px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

#content .left_login .Verification .ui-form-explain img,
#content .left_login .Verification .reload-code img,
#content .left_login .Verification #LoginVerifyCode img,
#content .left_login .imgsxzf {
  width: 100px !important;
  height: 46px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  object-fit: cover;
  display: block !important;
}

#content .left_login .forgetpwd {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 14px !important;
  font-size: 12px;
}

#content .left_login .forgetpwd a,
#content .left_login .stu-forgot-pwd,
#content .left_login .stu-reg-btn {
  color: #ec7950 !important;
  font-size: 12px !important;
  margin-left: 0 !important;
  text-decoration: none;
}

#content .left_login .ligon {
  width: 100% !important;
  height: 48px !important;
  margin: 4px 0 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(100deg, #13a9c1 0%, #17bdd0 54%, #45c9ba 100%) !important;
  box-shadow: 0 11px 24px rgba(20, 174, 193, 0.28) !important;
}

#content .left_login .ligon .btn-login,
#content .left_login a.btn-login {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  background: transparent !important;
}

#content .left_login .stu-only-altlogin {
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding-top: 14px;
  padding-bottom: 6px;
  border-top: 1px solid #e6edf2;
}



#content .left_login .stu-only-altlogin .altlogin-row {
  display: flex !important;
  justify-content: center;
  gap: 56px !important;
}

#content .left_login .stu-only-altlogin .login-other {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

#content .left_login .stu-only-altlogin .login-other.hide {
  display: none !important;
}

#content .left_login .stu-only-altlogin .login-other .altlogin-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(16, 88, 110, 0.18);
}

#content .left_login .stu-only-altlogin .login-other .altlogin-icon svg {
  display: block;
}

#content .left_login .stu-only-altlogin .login-other .altlogin-icon-wechat {
  background: linear-gradient(135deg, #2ec479 0%, #16a55e 100%);
}

#content .left_login .stu-only-altlogin .login-other .altlogin-icon-sms,
#content .left_login .stu-only-altlogin .login-other .altlogin-icon-phone {
  background: linear-gradient(135deg, #4a8aff 0%, #2c6cf5 100%);
}

#content .left_login .stu-only-altlogin .login-other .altlogin-icon-account {
  background: linear-gradient(135deg, #13a9c1 0%, #17bdd0 100%);
}

#content .left_login .stu-only-altlogin .login-other .altlogin-text {
  color: #5a6c7a;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

#content .left_login .stu-only-altlogin .login-other .altlogin-text small {
  display: block;
  margin-top: 1px;
  color: #8a9aa8;
  font-size: 10px;
  font-weight: 400;
}

#content .left_login .stu-only-altlogin .login-other img {
  width: 40px !important;
  height: 40px !important;
  display: none !important;
}

#content .left_login .stu-only-altlogin .stu-register-row {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  color: #6b7d8a;
  font-size: 12px;
  text-align: center;
}

#content .left_login .stu-only-altlogin .stu-register-row small {
  display: inline;
  margin-left: 4px;
  color: #99a8b5;
  font-size: 11px;
}

#content .left_login .stu-only-altlogin .stu-register-row .stu-reg-btn {
  color: #ec7950 !important;
  font-weight: 700;
  text-decoration: none;
}

#content .left_login .stu-only-altlogin .stu-register-row .stu-reg-btn:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

#content .left_login [id$="div_Phone"],
#content .left_login .if-student-tel,
#content .left_login .if-student-wx {
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
}

#content .left_login #qrcode_login_mode img {
  width: 180px !important;
  height: 180px !important;
  padding: 8px !important;
  display: block;
  margin: 0 auto;
}

#content .left_login #login_mode img {
  position: static !important;
  left: auto !important;
  display: block !important;
  margin: 12px auto;
  max-width: 120px;
}

#content .left_login #txtBingTelCode {
  width: auto !important;
  flex: 1 1 auto !important;
}

#content .left_login #btn_BingTelcode {
  border-radius: 0 10px 10px 0 !important;
  background: linear-gradient(100deg, #13a9c1, #17bdd0) !important;
  height: 46px;
}

#LoginErrMsg {
  visibility: visible;
  height: auto;
  margin: 8px 0;
}

#LoginErrMsg.hide {
  display: none !important;
}

/* ===== 联系与服务（紧贴左侧须知下方，同宽更小） ===== */
#content .stu-contact-services,
#content .bottom-info-container.stu-contact-services {
  grid-column: 1;
  grid-row: 4;
  justify-self: start;
  align-self: start;
  width: 540px !important;
  max-width: 540px !important;
  margin: -20px 0 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 20;
  overflow: visible;
}

#content .stu-contact-services::before {
  /* content: "联系与服务  CONTACT & SERVICES"; */
  grid-column: 1 / -1;
  display: block;
  margin: 0 0 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0, 22, 38, 0.25);
}

#content .stu-contact-tips {
  grid-column: 1 / -1;
  color: #ffd08a;
  font-size: 11px;
  line-height: 1.4;
}

#content .stu-contact-tips .hide {
  display: none !important;
}

#content #WechatCodeNew .stu-contact-card-title span:empty::before {
  content: "学校二维码 · School QR Code";
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

#content .stu-contact-card,
#content .stu-contact-services .info-card,
#content #WechatCodeNew,
#content #WechatCodeS,
#content .mini-program-qr {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 9px !important;
  background: rgba(9, 60, 78, 0.38) !important;
  box-shadow: 0 8px 18px rgba(0, 28, 46, 0.14) !important;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  float: none !important;
  text-align: left !important;
  flex: none !important;
}

#content .stu-contact-card.hide,
#content #WechatCodeNew.hide,
#content #WechatCodeS.hide,
#content .mini-program-qr.hide {
  display: none !important;
}

#content .stu-contact-qr {
  position: relative;
  flex: none;
  width: 40px !important;
  height: 40px !important;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 0 !important;
}

#content .stu-contact-qr img {
  width: 100% !important;
  height: 100% !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

#content .stu-contact-qr-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  font-style: normal;
  line-height: 1.2;
  text-align: center;
}

#content .stu-contact-qr:has(img[src]:not([src=""])) .stu-contact-qr-placeholder,
#content .WechatCode:not(.hide) ~ .stu-contact-qr-placeholder,
#content .stu-contact-card:has(.WechatCode:not(.hide) img[src]) > .stu-contact-qr-placeholder,
#content .stu-contact-card:has(.WechatCode:not(.hide)) > .stu-contact-qr-placeholder {
  display: none !important;
}

#content .stu-contact-meta {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
}

#content .stu-contact-card-title,
#content .stu-contact-meta .PageColor,
#content .stu-contact-meta b {
  display: block !important;
  margin: 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#content .stu-contact-meta small,
#content .stu-contact-meta .dh,
#content .stu-contact-meta .yx,
#content #lbTelephone,
#content #lbMail {
  display: block;
  margin: 0;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 9px !important;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#content .stu-contact-meta .dh .iconfont,
#content .stu-contact-meta .yx .iconfont {
  display: none;
}

#content .stu-contact-meta .dh.hide,
#content .stu-contact-meta .yx.hide,
#content .stu-contact-meta .lxxini.hide {
  display: none !important;
}

#content .mini-program-qr .stu-contact-qr {
  border-radius: 7px;
}

#content .mini-program-qr .stu-contact-qr img[src=""],
#content .mini-program-qr .stu-contact-qr img:not([src]) {
  display: none;
}

#content .mini-program-qr .stu-contact-qr:has(img[src]:not([src=""])) .stu-contact-qr-placeholder {
  display: none;
}

#content .mini-program-qr p {
  display: none !important;
}

#content .WechatCodeBig {
  display: none !important;
}

footer {
  width: min(1240px, calc(100% - 48px));
  left: 50%;
  transform: translateX(-50%);
  margin: auto;
  /* max-width: 1240px; */
  height: 40px;
  margin: 18px auto 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  background: transparent !important;
  box-sizing: border-box;
  margin: 0;
  position: fixed;
  bottom: 0;
  z-index: 2;
  font-size:13px;
  text-align: center !important;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

footer a {
  color: rgba(255, 255, 255, 0.88) !important;
}

@media (max-width: 980px) {
  /* 登录区保持固定 540+430 双列布局，不响应变宽 */
  /* （如需小屏适配可在此单独调整） */

  #header {
    height: auto !important;
    min-height: 0;
    padding: 0 !important;
    flex-wrap: nowrap;
    gap: 0;
  }

  .stu-header-top {
    min-height: 70px;
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .stu-header-announce,
  #Tongzhi.stu-header-announce:not(.hide) {
    padding: 8px 20px;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-height: 0;
  }

  .stu-announce-body {
    order: 3;
    flex-basis: 100%;
  }

  .stu-announce-date {
    display: none;
  }

  .stu-announce-more {
    margin-left: auto;
  }
}


/* ===== 须知底部非涉密提示 ===== */
#content .stu-security-notice {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6df;
  border: 1px solid #f0d59a;
  box-sizing: border-box;
}

#content .right_text .stu-security-faqs {
  align-self: flex-start;
  color: #2781e8 !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
}

#content .right_text .stu-security-faqs:hover {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

#content .stu-security-notice-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#content .stu-security-notice-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #f09a2a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

#content .stu-security-notice-body {
  min-width: 0;
  flex: 1 1 auto;
}

#content .stu-security-notice-body strong {
  display: block;
  color: #8a4b00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

#content .stu-security-notice-body span {
  display: block;
  margin-top: 4px;
  color: #9a6a2a;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

/* ===== 联系二维码悬停放大（可扫） ===== */
#content .stu-contact-qr.stu-qr-hoverable {
  overflow: visible !important;
  cursor: zoom-in;
  z-index: 1;
}

#content .stu-contact-qr .stu-qr-zoom {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 80;
  width: 168px;
  height: 168px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 20, 40, 0.28);
  box-sizing: border-box;
}

#content .stu-contact-qr.stu-qr-hoverable:hover {
  z-index: 90;
}

#content .stu-contact-qr.stu-qr-hoverable:hover .stu-qr-zoom {
  display: block;
}

#content .stu-contact-qr .stu-qr-zoom img,
#content .stu-contact-qr .stu-qr-zoom-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 6px;
  display: block;
}

#content .left_login .passwordManage img.password-hide,
#content .left_login .passwordManage img.password-show {
  display: none !important;
}

/* 滑动拼图弹层：画布+滑条完整显示，抵消 SliderCaptcha left:-30px */
.stu-slider-captcha-layer {
  overflow: visible !important;
}
.stu-slider-captcha-layer .layui-layer-content {
  overflow: visible !important;
  padding: 12px 15px 10px !important;
  height: auto !important;
}
.stu-slider-captcha-layer #captcha,
.diologo_captcha #captcha {
  left: 0 !important;
  margin: 0 auto !important;
}
