*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 960px;
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;
}

body.page-login {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 960px;
  height: 100vh;
  min-height: 680px;
  overflow-x: visible;
  background: #0b1520;
  color: #1a1a1a;
  font-family: "Noto Sans SC", "PingFang SC", -apple-system, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

.page-bg {
  position: fixed;
  inset: -28px;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 32, 40, 0.18), rgba(8, 32, 40, 0.08) 46%, rgba(8, 24, 32, 0.28)),
    url("../image/login-geng.png") center center / cover no-repeat;
  filter: blur(6px);
  pointer-events: none;
}

button,
input {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-bar,
.hero,
.login-site-footer {
  position: relative;
  z-index: 1;
}

.site-bar {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 48px;
}

.site-bar .login-brand {
  margin: 0;
  justify-content: flex-start;
}

.site-bar .login-wordmark {
  color: #ffffff;
}

.site-bar .login-brand-badge {
  background: #ffffff;
  color: #111111;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex: 1;
  min-height: calc(680px - 72px);
  padding: 12px 48px 72px;
}

.hero-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  min-width: 0;
}

.article-carousel {
  position: relative;
  flex: 0 0 auto;
  min-height: 196px;
  width: 100%;
  max-width: 460px;
}

.article-card {
  position: absolute;
  inset: 0;
  display: block;
  color: #ffffff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.article-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.article-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.article-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 34px;
  font-weight: 500;
  line-height: 51px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.article-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 22.4px;
}

.carousel-dots {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  margin-top: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: #ffffff;
}

.panel-credit {
  width: 100%;
  max-width: 460px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-align: left;
}

.login-float {
  flex: none;
  width: 400px;
  max-width: 100%;
  max-height: calc(max(680px, 100vh) - 140px);
  overflow: auto;
  padding: 28px 28px 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.role-switch {
  display: flex;
  border-bottom: 1px solid #eeeeee;
}

.role-tab {
  position: relative;
  flex: 1;
  padding: 8px 0 14px;
  border: none;
  background: transparent;
  color: #8a8f98;
  font-size: 16px;
  cursor: pointer;
}

.role-tab.active {
  color: #111111;
  font-weight: 600;
}

.role-tab.active::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: -1px;
  left: 18%;
  height: 2px;
  background: #111111;
}

.role-hint {
  margin: 16px 0 18px;
  color: #8a8f98;
  font-size: 13px;
  line-height: 1.5;
}

.login-box {
  width: 100%;
  max-width: 100%;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 36px;
  color: #111111;
}

.login-wordmark {
  color: #111111;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.login-brand-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
}

#login-normal-view {
  display: flex;
  flex-direction: column;
}

.tab-pane-wrapper {
  display: grid;
  order: 1;
}

.login-tabs {
  order: 2;
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
}

.tab {
  display: none;
  padding: 0;
  border: none;
  background: transparent;
  color: #8a8f98;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tab:not(.active) {
  display: inline;
}

.tab:hover {
  color: #111111;
}

.tab-content {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.tab-content.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-agree-tip {
  order: 4;
  margin: 0;
  color: #8a8f98;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.login-agree-tip a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-login {
  order: 5;
  width: 100%;
  height: 42px;
  margin: 4px 0 0;
  border: none;
  border-radius: 999px;
  background: #0f1115;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 42px;
  cursor: pointer;
}

.btn-login:hover:not(:disabled) {
  background: #43454a;
}

.form-group {
  position: relative;
}

.form-group input,
.phone-field,
.form-group-code {
  height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f5f5f5;
}

.form-group input {
  width: 100%;
  padding: 0 20px;
  border: 1px solid transparent;
  outline: none;
  color: #1a1a1a;
  font-size: 15px;
}

.form-group input::placeholder {
  color: #b0b4bb;
}

.form-group input:hover,
.form-group input:focus,
.phone-field:focus-within,
.form-group-code:focus-within {
  border-color: #111111;
}

.phone-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 20px;
  overflow: hidden;
}

.phone-prefix {
  flex: none;
  color: #1a1a1a;
  font-size: 15px;
}

.phone-field input,
.form-group-code input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.phone-field input:hover,
.phone-field input:focus,
.form-group-code input:hover,
.form-group-code input:focus {
  border: none;
}

#password {
  padding-right: 44px;
}

.form-group-code {
  display: flex;
  align-items: center;
  padding: 0 6px 0 0;
  overflow: hidden;
}

.form-group-code input {
  padding: 0 12px 0 20px;
}

.btn-code {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-left: 1px solid #e4e4e4;
  border-radius: 0;
  background: transparent;
  color: #1a1a1a;
  font-size: 14px;
  cursor: pointer;
}

.btn-code:disabled {
  color: #b0b4bb;
  cursor: not-allowed;
}

.form-feedback {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
  margin-top: -6px;
}

.form-feedback--solo {
  justify-content: flex-start;
}

.form-error {
  flex: 1;
  min-height: 18px;
  color: #ff4d4f;
  font-size: 13px;
  line-height: 18px;
}

.form-help-link,
.link-forgot {
  flex-shrink: 0;
  color: #8a8f98;
  font-size: 13px;
  line-height: 18px;
}

.form-help-link:hover,
.link-forgot:hover {
  color: #111111;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a8f98;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  width: 14px;
  height: 14px;
  accent-color: #111111;
}

.btn-toggle-pwd {
  position: absolute;
  top: 50%;
  right: 14px;
  display: flex;
  padding: 4px;
  border: none;
  background: none;
  color: #8a8f98;
  transform: translateY(-50%);
  cursor: pointer;
}

.btn-toggle-pwd .icon-eye-off,
.btn-toggle-pwd.is-revealed .icon-eye {
  display: none;
}

.btn-toggle-pwd.is-revealed .icon-eye-off {
  display: block;
}

.other-login {
  order: 3;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 20px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eeeeee;
}

.divider span {
  color: #8a8f98;
  font-size: 12px;
  white-space: nowrap;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  background: #ffffff;
  color: #cccccc;
  cursor: pointer;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
}

.social-btn--wechat:hover,
.social-btn--wechat:focus-visible {
  color: #07c160;
  border-color: #07c160;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.2);
}

.social-btn--douyin:hover,
.social-btn--douyin:focus-visible {
  color: #fe2c55;
  border-color: #fe2c55;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.15);
}

.register-tip {
  margin: 12px 0 8px;
  color: #8a8f98;
  font-size: 13px;
  text-align: center;
}

.register-tip a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-site-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 8px 24px 18px;
  background: transparent;
  text-align: center;
  pointer-events: none;
}

.login-site-footer p {
  margin: 0;
  color: #b0b4bb;
  font-size: 12px;
  line-height: 1.6;
}

.login-site-footer a {
  color: inherit;
  pointer-events: auto;
}

.login-beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 0;
}

.login-site-footer .gongan-beian {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
}

.login-site-footer .gongan-beian img {
  width: 14px;
  height: 14px;
}

.tip-modal,
.wechat-login-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tip-modal.is-open,
.wechat-login-modal.is-open {
  display: flex;
}

.tip-modal-overlay,
.wechat-login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.tip-modal-dialog,
.wechat-login-dialog {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 32px 24px 24px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.tip-modal-close,
.wechat-login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #8a8f98;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tip-modal-title,
.wechat-login-title {
  margin: 0 0 8px;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
}

.tip-modal-desc,
.wechat-login-hint {
  margin: 0 0 24px;
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
}

.tip-modal-btn,
.wechat-login-btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #0f1115;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

.wechat-login-btn {
  background: #07c160;
}

.qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  border: 1px dashed #e4e4e4;
  border-radius: 12px;
  color: #8a8f98;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .article-card {
    transition: none;
  }
}

