body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .login-card {
    max-width: 480px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 35px;
    transition: all 0.3s;
    position: relative;
  }

  /* 头部 Logo（图片版） */
  .login-header {
    text-align: center;
    margin-bottom: 30px;
  }
  .login-header .logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
  }
  
  .login-header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* 保持完整显示，不裁剪 */
    display: block;
  }
  .login-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
  }
  .login-header p {
    color: var(--text-light);
    font-size: 14px;
  }

  /* TAB 切换 */
  .tab-container {
    margin-bottom: 5px;
  }
  .tab-container input[type="radio"] {
    display: none;
  }
  .tab-labels {
    display: flex;
    background: #f0f0f0;
    border-radius: 40px;
    padding: 5px;
  }
  .tab-label {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
  }
  #tab1:checked ~ .tab-labels .tab-label[for="tab1"],
  #tab2:checked ~ .tab-labels .tab-label[for="tab2"] {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    font-weight: 600;
  }

  .tab-content {
    margin-top: 25px;
  }
  .login-form {
    display: none;
  }
  #tab1:checked ~ .tab-content #pwd-login,
  #tab2:checked ~ .tab-content #code-login {
    display: block;
  }
/* 调整验证码登录表单内部间距，与密码登录对齐 */
#code-login .input-group:first-child {
  margin-bottom: 18px;
}
#code-login .input-group:last-child {
  margin-bottom: 0;
}
  /* 表单元素 */
  .input-group {
    margin-bottom: 18px;
  }
  .input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
  }
  .input-field {
    width: 100%;
    height: 52px;
    background: #f8f8f8;
    border: 1px solid var(--border);
    border-radius: var(--input-radius);
    padding: 0 20px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
  }
  .input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 95, 43, 0.1);
  }

  /* 区号选择器按钮样式 */
  .phone-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}
  .phone-code-btn {
    width: 100px;
    height: 52px;
    background: #f8f8f8;
    border: 1px solid var(--border);
    border-radius: var(--input-radius);
    padding: 0 12px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    text-align: center;
    line-height: 1;        /* 避免行高影响 */
}
.phone-code-btn:hover {
    border-color: var(--primary);
}
.phone-code-btn .arrow {
    font-size: 12px;
    transition: transform 0.2s;
}.phone-number {
  flex: 1;
  min-width: 0;
}
  /* 验证码行：强制一行显示 */
  .captcha-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;      /* 强制不换行 */
  }
  .captcha-row .input-field {
    flex: 1;                 /* 输入框占据剩余宽度 */
    min-width: 0;            /* 防止 flex 溢出 */
  }
  .captcha-btn {
    width: 120px;
    height: 52px;
    background: var(--primary);
    border: none;
    border-radius: var(--input-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;          /* 防止按钮被压缩 */
  }

  .captcha-btn:active {
    transform: scale(0.98);
  }
  .captcha-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
  }

  /* 忘记密码链接（仅密码登录显示） */
  .forgot-link {
    display: block;
    text-align: right;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin: 12px 0 0 0;
  }
  .forgot-link:hover {
    text-decoration: underline;
  }

  /* 全局用户协议复选框 */
  .agreement {
    display: flex;
    align-items: flex-start;   /* 让复选框与文本第一行对齐（不是垂直居中） */
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin: 15px 0;
    cursor: pointer;
  }
  
  .agreement input[type="checkbox"] {
    flex-shrink: 0;            /* 防止复选框被压缩 */
    width: 16px;
    height: 16px;
    margin-top: 2px;           /* 微调，使复选框视觉上与首行文字对齐 */
    accent-color: var(--primary);
  }
  
  .agreement-text {
    flex: 1;                   /* 占据剩余宽度，保证换行空间 */
    line-height: 1.4;          /* 提升多行阅读舒适度 */
  }
  
  .agreement a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;     /* 按你原有风格，可保留或自行调整 */
  }
  
  /* 可选：链接 hover 效果 */
  .agreement a:hover {
    text-decoration: underline;
  }

  .login-btn {
    width: 100%;
    height: 54px;
    background: var(--primary);
    border: none;
    border-radius: var(--input-radius);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(255, 95, 43, 0.2);
  }
  .login-btn:hover {
    background: var(--primary-light);
  }
  .login-btn:active {
    transform: scale(0.98);
  }

  /* 第三方登录 */
  .third-party {
    text-align: center;
  }
  .third-party p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 18px;
    position: relative;
    display: flex;
    align-items: center;
  }
  .third-party p::before,
  .third-party p::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
  }
  .third-party p span {
    background: var(--white);
    padding: 0 15px;
  }
  .third-party-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
  }
  .third-party-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    font-size: 24px;
    transition: all 0.2s;
    text-decoration: none;
  }

  .third-party-icons a i {
    font-size: 24px;
  }
  .third-party-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  }
  .third-party-icons a.wechat:hover {
    background: #07C160;
    color: white;
  }
  .third-party-icons a.qq:hover {
    background: #12B7F5;
    color: white;
  }
  .third-party-icons a.weibo:hover {
    background: #E6162D;
    color: white;
  }

  .signup-guide {
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
    color: var(--text-light);
  }
  .signup-guide a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
  }
  .signup-guide a:hover {
    text-decoration: underline;
  }

  /* ===== 移动端全屏优化 ===== */
  @media (max-width: 600px) {
    body {
      padding: 0;
      background: var(--white);
    }
.login-card {
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  padding: 30px 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-header h2 {
  font-size: 26px;
}
.tab-label {
  padding: 10px 0;
  font-size: 15px;
}
.input-field {
  height: 48px;
  font-size: 14px;
}
/* 验证码按钮：宽度增大到 110px，高度同步 */
.captcha-btn {
  width: 110px;           /* 原90px，增大后更易点击 */
  height: 48px;
  font-size: 14px;        /* 字体稍大，提高可读性 */
  padding: 0 5px;         /* 增加一点内边距，防止文字贴边 */
}
.login-btn {
  height: 50px;
  font-size: 16px;
}
.third-party-icons a {
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.forgot-link {
  margin: 8px 0 0 0;
}
.agreement {
  margin: 15px 0;
}
.phone-code-btn {
  width: 85px;
  height: 48px;
  font-size: 14px;
  padding: 0 10px;
}

}

/* 超小屏（≤400px）时，按钮宽度进一步适当增大，同时确保不换行 */
@media (max-width: 400px) {
.captcha-row {
  gap: 6px;               /* 略微缩小间距，为按钮腾出空间 */
}
.captcha-btn {
  width: 100px;           /* 原80px，增大至100px */
  font-size: 13px;        /* 字体稍降，但保持清晰 */
}
.login-card {
  padding: 20px 20px;
}.phone-code-btn {
  width: 75px;
  padding: 0 8px;
}
}

#captcha-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
}