.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 25px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
  z-index: 1000;
  
  .brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
    
    .logo {
      font-size: 28px;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      backdrop-filter: blur(5px);
    }
    
    .site-name {
      font-size: 20px;
      font-weight: 700;
      color: white;
      text-shadow: 0 2px 4px rgba(0,0,0,0.2);
      margin: 0;
    }
  }
  
  .header-actions {
    display: flex;
    gap: 15px;
    
    .contact-btn, .login-btn {
      padding: 8px 20px;
      border-radius: 30px;
      border: none;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .contact-btn {
      background: transparent;
      color: white;
      border: 2px solid rgba(255, 255, 255, 0.5);
      
      &:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: white;
      }
    }
    
    .login-btn {
      background: white;
      color: #2575fc;
      
      &:hover {
        background: #f0f7ff;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}
/* 登录模态框样式 - 优化版 */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  
  .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px; /* 减小最大宽度 */
    padding: 25px 20px; /* 调整内边距 */
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    animation: modalOpen 0.3s ease-out;
    
    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      font-size: 22px;
      cursor: pointer;
      color: #999;
      transition: color 0.2s;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      
      &:hover {
        background: #f5f5f5;
        color: #333;
      }
    }
    
    h2 {
      text-align: center;
      margin: 10px 0 20px; /* 减小上下边距 */
      color: #333;
      font-size: 22px;
    }
    
    .form-group {
      margin-bottom: 16px; /* 减小间距 */
       input[type="text"],
      input[type="password"] {
        width: 85%; /* 减小宽度 */
        margin: 0 auto; /* 保持居中 */
        display: block; /* 确保居中生效 */
      }
      label {
        display: block;
        margin-bottom: 6px; /* 减小间距 */
        font-weight: 500;
        color: #555;
        font-size: 14px;
      }
      
      input {
        width: 100%;
        padding: 10px 14px; /* 减小内边距 */
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 15px;
        transition: border-color 0.3s;
        
        &:focus {
          border-color: #2575fc;
          outline: none;
          box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.2);
        }
      }
    }
    
    .remember-me {
      display: flex;
      align-items: center;
      margin-bottom: 16px; /* 减小间距 */
      font-size: 14px;
      
      input {
        margin-right: 8px;
      }
    }
    
    .error-message {
      background: #ffebee;
      color: #d32f2f;
      padding: 8px 12px; /* 减小内边距 */
      border-radius: 5px;
      margin-bottom: 12px; /* 减小间距 */
      text-align: center;
      font-size: 13px;
    }
    
    .submit-btn {
      width: 100%;
      padding: 10px; /* 减小内边距 */
      background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
      }
      
      &:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
      }
    }
    
    .login-footer {
      display: flex;
      justify-content: space-between;
      margin-top: 18px; /* 减小间距 */
      padding-top: 12px; /* 减小间距 */
      border-top: 1px solid #eee;
      font-size: 13px;
      
      a {
        color: #2575fc;
        text-decoration: none;
        
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}
/* 响应式设计 - 小屏幕调整 */
@media (max-width: 768px) {
  .header-nav {
    padding: 0 15px;
    
    .site-name {
      font-size: 18px;
    }
    
    .header-actions {
      gap: 10px;
      
      .contact-btn, .login-btn {
        padding: 6px 15px;
        font-size: 14px;
      }
    }
  }
}