/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2d3748;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 导航栏样式 - 高端玻璃态设计 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-logo {
  font-size: 1.3125rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.navbar-item {
  color: #4a5568;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 0;
}

.navbar-item:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-item:hover {
  color: #1e40af;
}

.navbar-item:hover:after {
  width: 100%;
}

.navbar-button {
  padding: 0.5rem 1.17rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.67rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2.67px 10px rgba(59, 130, 246, 0.3);
}

.navbar-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5.33px 16.67px rgba(59, 130, 246, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  
  .navbar-menu {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

  /* 登录弹窗样式 */
  .login-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
  }
  
  .login-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .login-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .login-modal.active .login-modal-content {
    transform: scale(1);
    opacity: 1;
  }
  
  .login-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .login-modal-close:hover {
    color: #333;
  }
  
  .login-modal-header {
    margin-bottom: 24px;
    text-align: center;
  }
  
  .login-modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
  }
  
  .login-modal-header p {
    color: #6b7280;
    font-size: 14px;
  }
  
  .login-form-group {
    margin-bottom: 16px;
  }
  
  .login-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
  }
  
  .login-form-group input,
  .login-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .login-form-group input:focus,
  .login-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .login-form-remember {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
  }
  
  .login-form-remember input {
    margin-right: 8px;
  }
  
  .login-form-remember label {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
  }
  
  .login-form-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .login-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  }
  
  .login-form-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
  }
  
  .login-form-footer a {
    color: #3b82f6;
    text-decoration: none;
  }
  
  .login-form-footer a:hover {
    text-decoration: underline;
  }
  
  .login-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
  }
  
  .login-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
  }
  
  .user-profile {
    position: relative;
  }
  
  .user-profile-button {
    padding: 0.5rem 1.17rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.67rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2.67px 10px rgba(59, 130, 246, 0.3);
    cursor: pointer;
  }
  
  .user-profile-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5.33px 16.67px rgba(59, 130, 246, 0.4);
  }
  
  /* 确认弹窗样式 */
  .confirm-modal {
    display: none;
    position: fixed;
    z-index: 2100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
  }
  
  .confirm-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .confirm-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .confirm-modal.active .confirm-modal-content {
    transform: scale(1);
    opacity: 1;
  }
  
  .confirm-modal-header {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .confirm-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
  }
  
  .confirm-modal-body {
    margin-bottom: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
  }
  
  .confirm-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  
  .confirm-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .confirm-btn-cancel {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
  }
  
  .confirm-btn-cancel:hover {
    background-color: #e5e7eb;
  }
  
  .confirm-btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
  }
  
  .confirm-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  }