/* 全局样式 */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #000010, #001f33);
  color: white;
  margin: 0;
  text-align: center;
  animation: fadeIn 1.2s ease-out;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

/* 页眉 */
header {
  padding: 20px;
}
header h1 {
  color: #00d4ff;
  font-size: 2.5rem;
  margin: 0;
}
header p {
  color: #bbb;
}

/* 导航栏 */
nav {
  margin-top: 10px;
}
nav a {
  margin: 0 10px;
  color: #00d4ff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
nav a:hover, nav a.active {
  color: #fff;
  border-bottom: 2px solid #00d4ff;
}

/* 主内容区 */
.intro {
  padding: 50px 20px;
}
.intro h2 {
  color: #00d4ff;
  font-size: 2rem;
  margin-bottom: 10px;
}
.intro p {
  color: #ccc;
  line-height: 1.6;
  max-width: 600px;
  margin: 10px auto;
}

/* 按钮样式 */
.btn, .main-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px;
  background: #00d4ff;
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s;
}
.btn:hover, .main-btn:hover {
  background: #008bb5;
  transform: scale(1.05);
}

/* 头像 */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 20px 0;
  border: 3px solid #00d4ff;
  box-shadow: 0 0 15px #00d4ff77;
}

/* 页脚 */
footer {
  margin-top: 40px;
  padding: 20px;
  background: #000;
  color: #888;
  font-size: 0.9rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
  header h1 { font-size: 1.8rem; }
  nav a { display: block; margin: 8px 0; }
}
/* 项目卡片布局 */
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}
.project-card {
  width: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 10px #00c8ff44;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px #00c8ffaa;
}
.project-card img {
  width: 100%;
  border-radius: 8px;
}
.project-card h3 {
  color: #00c8ff;
  margin-top: 10px;
}

/* 联系表单 */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
form input, form textarea {
  width: 90%;
  max-width: 400px;
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}
textarea {
  height: 100px;
  resize: none;
}
