/* 基础样式重置 */
:root {
  --primary-color: #3a86ff;
  --secondary-color: #8338ec;
  --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --text-dark: #212529;
  --text-light: #f8f9fa;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.6;
  padding: 10px;
  margin: 0;
}

/* 玻璃拟态头部 */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 2rem 0;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

/* 响应式网格布局 */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* 3D卡片效果 */
.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  h1 {
    font-size: 2rem;
  }
}

.copyright {
    display: flex;
    justify-content: end;
}