
/* 登录弹窗样式 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }
  
  .login-modal.show {
    display: flex;
  }
  
  .login-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
  }
  
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .login-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
  }
  
  .login-modal-close {
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
  }
  
  .login-modal-close:hover {
    color: #333;
  }
  
  .login-modal-body {
    padding: 24px;
  }
  
  /* 登录表单样式 */
  .login-form {
    margin-bottom: 24px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-group input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s;
  }
  
  .form-group input:focus {
    outline: none;
    border-color: #35B058;
  }
  
  .form-group input::placeholder {
    color: #999;
  }
  
  .form-group-code {
    display: flex;
    gap: 12px;
  }
  
  .form-group-code input {
    flex: 1;
  }
  
  .send-code-btn {
    width: 110px;
    height: 44px;
    background-color: #35B058;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
  }
  
  .send-code-btn:hover {
    background-color: #2d9a4a;
  }
  
  .send-code-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  
  .login-submit-btn {
    width: 100%;
    height: 44px;
    background-color: #35B058;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 8px;
  }
  
  .login-submit-btn:hover {
    background-color: #2d9a4a;
  }
  
  /* 分割线 */
  .login-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
  }
  
  .login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
  }
  
  .login-divider span {
    position: relative;
    background-color: #fff;
    padding: 0 16px;
    color: #999;
    font-size: 14px;
  }
  
  /* 第三方登录样式 */
  .third-party-login {
    margin-top: 24px;
  }
  
  .third-party-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    text-align: center;
  }
  
  .third-party-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  
  .third-party-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .third-party-item:hover {
    border-color: #35B058;
    background-color: #f6feeb;
  }
  
  .third-party-item img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }
  
  .third-party-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
  }
  
  .qq-icon {
    background-color: #12b7f5;
  }
  
  .huawei-icon {
    background-color: #ff6900;
  }
  
  .alipay-icon {
    background-color: #1677ff;
  }
  
  .apple-icon {
    background-color: #000;
  }
  
  .third-party-item span {
    font-size: 12px;
    color: #333;
  }
  
  /* 响应式适配 */
  @media (max-width: 480px) {
    .login-modal-content {
      width: 95%;
      margin: 20px;
    }
    
    .third-party-item {
      width: calc(33.333% - 8px);
    }
    
    .third-party-item span {
      font-size: 11px;
    }
  }
  