html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =========================================================
   登录页样式 - 主题色基于正体誉安 Logo 青绿色 (#1BAFA8)
   ========================================================= */

:root {
  --zt-primary: #1BAFA8;
  --zt-primary-dark: #0D8A85;
  --zt-primary-light: #E8F8F7;
  --zt-primary-soft: #D0F2F0;
}

html,
body.login-page {
  min-height: 100%;
}

body.login-page {
  margin: 0;
  background: linear-gradient(135deg, #f0fdfc 0%, #ffffff 100%);
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  min-height: 640px;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(27, 175, 168, 0.12);
  overflow: hidden;
}

/* 左侧品牌区 */
.login-brand {
  position: relative;
  flex: 1;
  background: linear-gradient(160deg, var(--zt-primary) 0%, var(--zt-primary-dark) 100%);
  color: #ffffff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.brand-content {
  position: relative;
  z-index: 2;
}

.brand-logo {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  padding: 1rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

/* 装饰圆圈 */
.brand-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.circle-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -80px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 60px;
  right: 40px;
}

.circle-3 {
  width: 120px;
  height: 120px;
  bottom: -30px;
  left: 60px;
}

/* 右侧表单区 */
.login-form-panel {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: #ffffff;
}

.login-form-box {
  width: 100%;
  max-width: 340px;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.form-desc {
  color: #6b7280;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.login-form .form-control {
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  min-height: 52px;
}

.login-form .form-control:focus {
  border-color: var(--zt-primary);
  box-shadow: 0 0 0 0.2rem rgba(27, 175, 168, 0.2);
}

.login-form .form-floating > label {
  color: #6b7280;
  padding: 0.85rem 0.9rem;
}

.login-form .form-floating > .form-control:focus ~ label,
.login-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--zt-primary);
}

.text-link {
  color: var(--zt-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.text-link:hover {
  color: var(--zt-primary-dark);
  text-decoration: underline;
}

.form-check-input:checked {
  background-color: var(--zt-primary);
  border-color: var(--zt-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(27, 175, 168, 0.25);
  border-color: var(--zt-primary);
}

.btn-login {
  background: linear-gradient(90deg, var(--zt-primary) 0%, var(--zt-primary-dark) 100%);
  border: none;
  border-radius: 0.75rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-login:hover,
.btn-login:focus {
  background: linear-gradient(90deg, var(--zt-primary-dark) 0%, #0a706c 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(27, 175, 168, 0.35);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

.captcha-box {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 0.75rem;
  border: 1px dashed #9ca3af;
  cursor: pointer;
  user-select: none;
}

.captcha-box span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--zt-primary-dark);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* 响应式 */
@media (max-width: 991.98px) {
  .login-container {
    flex-direction: column;
    max-width: 480px;
  }

  .login-brand {
    padding: 2rem;
    min-height: 260px;
  }

  .brand-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .brand-subtitle {
    margin-bottom: 1.25rem;
  }

  .brand-features {
    display: none;
  }

  .login-form-panel {
    flex: none;
    padding: 2rem 1.5rem;
  }
}

/* =========================================================
   登录方式与角色展示 - 企业微信扫码 / 授权 / 小程序内嵌
   ========================================================= */

/* 登录头部 */
.form-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.form-head-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 0.75rem;
  background: var(--zt-primary-light);
  padding: 0.25rem;
  flex-shrink: 0;
}

.form-head .form-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.form-head .form-desc {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}

/* 提示条 */
.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.login-alert .alert-ico svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.login-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.login-alert-info {
  background: var(--zt-primary-light);
  color: var(--zt-primary-dark);
  border: 1px solid var(--zt-primary-soft);
}

/* 登录方式 Tab */
.login-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f3f4f6;
  border-radius: 0.85rem;
  margin-bottom: 1.5rem;
}

.login-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.6rem 0.35rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.login-tab:hover {
  color: var(--zt-primary-dark);
}

.login-tab.active {
  background: #ffffff;
  color: var(--zt-primary-dark);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(27, 175, 168, 0.16);
}

.tab-mobile {
  display: none;
}

body.is-mobile .tab-qr,
html.is-mobile .tab-qr {
  display: none;
}

body.is-mobile .tab-mobile,
html.is-mobile .tab-mobile {
  display: block;
}

/* 面板切换 */
.login-pane {
  display: none;
}

.login-pane.active {
  display: block;
  animation: paneIn 0.25s ease;
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* 二维码 */
.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--zt-primary-soft);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(27, 175, 168, 0.1);
}

.qr-iframe {
  width: 300px;
  height: 380px;
  border: 0;
}

.qr-placeholder {
  position: relative;
  width: 232px;
  height: 232px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qr-placeholder canvas {
  width: 216px;
  height: 216px;
  border-radius: 0.25rem;
}

.qr-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--zt-primary);
  border-radius: 4px;
}

.qr-corner.tl {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.qr-corner.tr {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.qr-corner.bl {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.qr-tip {
  text-align: center;
  margin: 1rem 0 0.25rem;
  font-size: 0.95rem;
  color: #374151;
}

.qr-tip strong {
  color: var(--zt-primary-dark);
}

.qr-subtip {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0 0 0.85rem;
}

.config-hint {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  padding: 0.6rem 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.config-hint svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 移动端授权 */
.mobile-visual {
  width: 88px;
  height: 88px;
  margin: 0.25rem auto 1rem;
}

.mobile-visual svg {
  width: 100%;
  height: 100%;
}

.mobile-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.35rem;
}

.mobile-desc {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  min-height: 1.2em;
}

.btn-wecom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, var(--zt-primary) 0%, var(--zt-primary-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-wecom svg {
  width: 20px;
  height: 20px;
}

.btn-wecom:hover {
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(27, 175, 168, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
  font-size: 0.9rem;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.btn-ghost:hover {
  border-color: var(--zt-primary);
  color: var(--zt-primary-dark);
  background: var(--zt-primary-light);
}

.mobile-foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* 角色展示 */
.brand-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
}

.role-ico {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.role-ico svg {
  width: 18px;
  height: 18px;
}

.role-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.role-text strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.role-text small {
  font-size: 0.7rem;
  opacity: 0.82;
  line-height: 1.35;
}

/* 轻提示 */
.login-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 12px);
  max-width: 88vw;
  padding: 0.65rem 1.1rem;
  background: rgba(17, 24, 39, 0.9);
  color: #ffffff;
  font-size: 0.85rem;
  border-radius: 999px;
  opacity: 0;
  text-align: center;
  z-index: 1080;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.login-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 布局与响应式 */
.login-form-panel {
  flex: 0 0 440px;
}

body.is-mobile .login-brand,
html.is-mobile .login-brand {
  min-height: 220px;
}

body.is-mobile .brand-roles,
html.is-mobile .brand-roles,
body.is-mobile .brand-features,
html.is-mobile .brand-features {
  display: none;
}

@media (max-width: 991.98px) {
  .login-container {
    flex-direction: column;
    max-width: 480px;
  }

  .login-brand {
    padding: 2rem;
    min-height: 220px;
  }

  .login-brand .brand-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 0.85rem;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .brand-subtitle {
    margin-bottom: 0;
    font-size: 0.875rem;
  }

  .brand-roles {
    display: none;
  }

  .login-form-panel {
    flex: none;
    width: 100%;
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .login-wrapper {
    padding: 0;
  }

  .login-container {
    border-radius: 0;
    min-height: 100vh;
    max-width: 100%;
  }

  .login-form-panel {
    padding: 1.5rem 1.25rem 2rem;
  }

  .qr-iframe {
    width: 100%;
    height: 340px;
  }
}

/* =========================================================
   全站布局 - 顶部导航与页脚（主题色基于 Logo 青绿色）
   ========================================================= */

body.app-body {
  margin: 0;
  background: #ffffff;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app-body .container {
  max-width: 1180px;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 42, 41, 0.06);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(13, 138, 133, 0.1);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.site-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.site-brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2e2c;
  letter-spacing: 0.02em;
}

.site-brand-text small {
  font-size: 0.72rem;
  color: #6b7280;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-menu-link {
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.92rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-menu-link:hover {
  color: var(--zt-primary-dark);
  background: var(--zt-primary-light);
}

.btn-brand-login {
  margin-left: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--zt-primary) 0%, var(--zt-primary-dark) 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-brand-login:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(27, 175, 168, 0.35);
}

/* 移动端菜单按钮 */
.site-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 42, 41, 0.1);
  border-radius: 0.7rem;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

.site-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #374151;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.site-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 页脚 */
.site-footer {
  margin-top: 4rem;
  background: #0b2422;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.7rem;
  padding: 0.3rem;
}

.footer-brand-row strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.footer-brand-row p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
  max-width: 34em;
}

.site-footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.site-footer-col a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-footer-col a:hover {
  color: #7fe3dc;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 991.98px) {
  .site-menu-toggle {
    display: flex;
  }

  .site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.75rem 1rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 42, 41, 0.08);
    box-shadow: 0 16px 32px rgba(13, 138, 133, 0.1);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu-link {
    padding: 0.7rem 0.5rem;
  }

  .btn-brand-login {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
  }
}
