/* ===== 登录页面样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(
    135deg,
    #faf8ff 0%,
    #fff5f5 30%,
    #f5f0ff 60%,
    #f0faf5 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 10% 20px 20px;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  position: relative;
  overflow: hidden;
}

/* ===== 左侧装饰区 ===== */
.left-deco {
  position: absolute;
  left: 15%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.left-deco .big-title {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 12px;
}
.left-deco .big-sub {
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.35);
  font-weight: 400;
  letter-spacing: 2px;
}
.left-deco .big-sub i {
  -webkit-text-fill-color: initial;
  color: #667eea;
}

/* ===== 浮动图标 - 亮彩大尺寸 ===== */
.float-icon {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  animation: floatAround 18s ease-in-out infinite;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.float-icon.f1 {
  top: 5%;
  left: 2%;
  font-size: 4.5rem;
  color: #667eea;
  animation-delay: 0s;
  opacity: 0.3;
}
.float-icon.f2 {
  top: 42%;
  left: 3%;
  font-size: 3.8rem;
  color: #ec4899;
  animation-delay: -3s;
  opacity: 0.25;
}
.float-icon.f3 {
  bottom: 8%;
  left: 2%;
  font-size: 5rem;
  color: #34d399;
  animation-delay: -6s;
  opacity: 0.28;
}
.float-icon.f4 {
  top: 22%;
  left: 18%;
  font-size: 3rem;
  color: #a78bfa;
  animation-delay: -9s;
  opacity: 0.22;
}
.float-icon.f5 {
  top: 5%;
  left: 38%;
  font-size: 3.5rem;
  color: #fb923c;
  animation-delay: -2s;
  opacity: 0.25;
}
.float-icon.f6 {
  top: 38%;
  left: 42%;
  font-size: 4rem;
  color: #22d3ee;
  animation-delay: -5s;
  opacity: 0.22;
}
.float-icon.f7 {
  bottom: 12%;
  left: 35%;
  font-size: 3.2rem;
  color: #facc15;
  animation-delay: -8s;
  opacity: 0.24;
}
.float-icon.f8 {
  top: 65%;
  left: 30%;
  font-size: 2.8rem;
  color: #ef4444;
  animation-delay: -11s;
  opacity: 0.2;
}
.float-icon.f9 {
  top: 10%;
  right: 3%;
  font-size: 3.6rem;
  color: #667eea;
  animation-delay: -4s;
  opacity: 0.22;
}
.float-icon.f10 {
  top: 45%;
  right: 8%;
  font-size: 3rem;
  color: #34d399;
  animation-delay: -7s;
  opacity: 0.2;
}
.float-icon.f11 {
  bottom: 15%;
  right: 3%;
  font-size: 4.2rem;
  color: #ec4899;
  animation-delay: -10s;
  opacity: 0.24;
}
.float-icon.f12 {
  top: 72%;
  right: 14%;
  font-size: 2.5rem;
  color: #a78bfa;
  animation-delay: -13s;
  opacity: 0.18;
}

@keyframes floatAround {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  20% {
    transform: translate(25px, -20px) rotate(8deg) scale(1.08);
  }
  40% {
    transform: translate(-15px, 18px) rotate(-5deg) scale(0.95);
  }
  60% {
    transform: translate(20px, 12px) rotate(6deg) scale(1.05);
  }
  80% {
    transform: translate(-10px, -15px) rotate(-3deg) scale(0.98);
  }
}

/* ===== 背景装饰光晕 ===== */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.bg-glow.g1 {
  width: 600px;
  height: 600px;
  background: rgba(180, 140, 255, 0.12);
  top: -200px;
  left: 10%;
  animation: glowPulse 10s ease-in-out infinite;
}
.bg-glow.g2 {
  width: 500px;
  height: 500px;
  background: rgba(255, 150, 200, 0.1);
  bottom: -150px;
  right: 20%;
  animation: glowPulse 12s ease-in-out infinite;
  animation-delay: -5s;
}
.bg-glow.g3 {
  width: 400px;
  height: 400px;
  background: rgba(100, 220, 200, 0.08);
  top: 40%;
  left: 40%;
  animation: glowPulse 8s ease-in-out infinite;
  animation-delay: -2.5s;
}
@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* ===== 登录容器 - 靠右 ===== */
#loginCardContainer {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: 0;
}

.login-wrapper {
  position: relative;
  z-index: 1;
}

/* ===== 登录卡片 - 更紧凑 ===== */
.login-card {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: all 0.3s ease;
}
.login-card:hover {
  box-shadow: 0 24px 80px rgba(102, 126, 234, 0.12);
}

/* ===== 品牌区 - 紧凑 ===== */
.login-brand {
  padding: 20px 28px 8px;
  text-align: center;
}
.login-brand h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #1e293b, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.login-brand p {
  font-size: 0.78rem;
  color: #999;
  margin: 0;
  letter-spacing: 0.5px;
}

/* ===== 表单区 - 更紧凑 ===== */
.login-body {
  padding: 6px 28px 12px;
}
.form-group {
  margin-bottom: 10px;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 4px;
}
.form-group label i {
  width: 16px;
  color: #667eea;
  font-size: 0.75rem;
}
.input-wrap {
  position: relative;
}
.input-wrap .form-control {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border: 1.5px solid #e0e6f0;
  border-radius: 8px;
  font-size: 0.82rem;
  background: #fff;
  transition: all 0.3s ease;
  color: #333;
  height: auto;
  line-height: 1.3;
}
.input-wrap .form-control:focus {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
  outline: none;
}
.input-wrap .form-control::placeholder {
  color: #b8c0d0;
  font-size: 0.78rem;
}
.input-wrap .input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #aab2c4;
  font-size: 0.78rem;
  transition: color 0.3s ease;
}
.input-wrap .form-control:focus + .input-icon {
  color: #667eea;
}

/* ===== 登录按钮 ===== */
.btn-login {
  width: 100%;
  padding: 7px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f6ef7, #6c5ce7);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.25);
  line-height: 1.3;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(79, 110, 247, 0.35);
  background: linear-gradient(135deg, #3d5ce5, #5f4ddb);
}
.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 110, 247, 0.2);
}
.btn-login i {
  margin-right: 6px;
}

/* ===== 底部链接 ===== */
.login-footer {
  padding: 12px 28px 20px;
  text-align: center;
  border-top: 1px solid #f0f2f8;
}
.login-footer a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.login-footer a:hover {
  color: #ec4899;
  text-decoration: underline;
}
.login-footer a i {
  margin-right: 4px;
}
.login-footer .footer-sep {
  margin: 0 10px;
  color: #d0d5e0;
  font-size: 0.75rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===== 底部标语 ===== */
.tagline {
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.25);
}
.tagline i {
  margin: 0 3px;
}

/* ===== 版权信息 ===== */
.copyright {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.25);
  line-height: 1.8;
}
.copyright a {
  color: rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: color 0.3s ease;
}
.copyright a:hover {
  color: #667eea;
}
.copyright .version {
  color: rgba(0, 0, 0, 0.2);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
}

/* ===== 左下角按钮组 ===== */
.bottom-actions {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.bottom-actions .btn-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.3px;
  position: relative;
}
.bottom-actions .btn-act:first-child {
  padding-left: 16px;
  border-radius: 18px 0 0 18px;
  color: #c2720a;
}
.bottom-actions .btn-act:last-child {
  padding-right: 16px;
  border-radius: 0 18px 18px 0;
  color: #e65757;
}
.bottom-actions .btn-act + .btn-act {
  border-left: 1px solid rgba(59, 130, 246, 0.12);
}
.bottom-actions .btn-act:hover {
  background: rgba(59, 130, 246, 0.1);
}
.bottom-actions .btn-act i {
  font-size: 0.82rem;
}
.bottom-actions .btn-act:first-child i {
  color: #c2720a;
}
.bottom-actions .btn-act:last-child i {
  color: #fb7185;
}
.bottom-actions .btn-act .badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: 2px;
}

/* ===== 教程弹窗 ===== */
.tutorial-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.tutorial-modal.show {
  display: flex;
}
.tutorial-modal .modal-box {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 810px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
  padding: 0 20px 14px;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.tutorial-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f2f8;
}
.tutorial-modal .modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.tutorial-modal .modal-header h3 i {
  color: #c2720a;
  margin-right: 8px;
}
.tutorial-modal .modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f5f6fa;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.tutorial-modal .modal-close:hover {
  background: #c2720a;
  color: #fff;
}
.tutorial-modal .modal-body {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
}
.tutorial-modal .modal-body .step {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f2f8;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(59, 130, 246, 0.04);
  transition: all 0.25s ease;
  position: relative;
}
.tutorial-modal .modal-body .step:hover {
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
  transform: translateX(3px);
}
.tutorial-modal .modal-body .step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c2720a, #eab308);
  opacity: 0.6;
}
.tutorial-modal .modal-body .step .num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2720a, #eab308);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(194, 114, 10, 0.25);
}
.tutorial-modal .modal-body .step .text {
  flex: 1;
  padding-top: 3px;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.7;
}
.tutorial-modal .modal-body .step .text strong {
  color: #1a1a2e;
  font-weight: 600;
}
.tutorial-modal .modal-body .tip {
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fffbeb, #fefce8);
  border-radius: 10px;
  font-size: 0.8rem;
  color: #92400e;
  border: 1px solid rgba(250, 204, 21, 0.2);
  box-shadow: 0 1px 4px rgba(250, 204, 21, 0.06);
}
.tutorial-modal .modal-body .tip i {
  margin-right: 6px;
  color: #eab308;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  body {
    justify-content: center;
    padding: 20px;
  }
  .left-deco {
    display: none;
  }
  .login-wrapper {
    margin: 0 auto;
  }
  #loginCardContainer {
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .login-wrapper {
    max-width: 100%;
  }
  #loginCardContainer {
    max-width: 100%;
  }
  .login-body {
    padding: 6px 20px 14px;
  }
  .login-footer {
    padding: 10px 20px 16px;
  }
  .login-brand {
    padding: 16px 20px 6px;
  }
  .login-brand h1 {
    font-size: 1.3rem;
  }
  .float-icon {
    display: none;
  }
}
