/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 背景图片 */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  filter: brightness(0.5);
}

/* 液态玻璃效果基础样式 */
.glass-effect {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

/* 导航栏样式 */
.glass-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 25, 40, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-menu {
  background: rgba(17, 25, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 卡片样式 */
.glass-card {
  background: rgba(17, 25, 40, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

/* 页脚样式 */
.glass-footer {
  background: rgba(17, 25, 40, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 按钮样式 */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #165DFF, #0070F3);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.4);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #165DFF;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #165DFF;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(22, 93, 255, 0.1);
  transform: translateY(-2px);
}

/* 输入框样式 */
.glass-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* 社交图标样式 */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #165DFF;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #165DFF;
  color: white;
  transform: translateY(-2px);
}

/* 分类卡片样式 */
.category-card {
  background: rgba(17, 25, 40, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-card:hover {
  background: rgba(17, 25, 40, 0.65);
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.2);
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(17, 25, 40, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(22, 93, 255, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 93, 255, 0.8);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .glass-card {
    padding: 6px;
  }
  
  h1 {
    font-size: 2.5rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
}