/* ========= 全局 ========= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  
  font-family:
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  
  background: #0b1020;
  
  color: #ffffff;
  
  overflow-x: hidden;
  
  line-height: 1.7;
}

/* ========= 星空背景 ========= */

#stars {
  
  position: fixed;
  
  inset: 0;
  
  z-index: -2;
  
  background:
    radial-gradient(circle at top, #1d2951 0%, #0b1020 45%, #05070f 100%);
}

/* ========= 导航 ========= */

.header {
  
  position: fixed;
  
  top: 0;
  
  left: 0;
  
  width: 100%;
  
  height: 70px;
  
  display: flex;
  
  align-items: center;
  
  justify-content: space-between;
  
  padding: 0 8%;
  
  background: rgba(255, 255, 255, .06);
  
  backdrop-filter: blur(18px);
  
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  
  z-index: 999;
}

.logo {
  
  font-size: 24px;
  
  font-weight: bold;
  
  color: #fff;
}

.header nav {
  
  display: flex;
  
  gap: 28px;
}

.header nav a {
  
  color: #fff;
  
  text-decoration: none;
  
  transition: .3s;
}

.header nav a:hover {
  
  color: #64b5ff;
}

/* ========= Hero ========= */

.hero {
  
  min-height: 100vh;
  
  display: flex;
  
  justify-content: center;
  
  align-items: center;
  
  text-align: center;
  
  padding: 120px 20px 60px;
}

.hero-content {
  
  max-width: 850px;
}

.hero h1 {
  
  font-size: 58px;
  
  font-weight: 700;
  
  margin-bottom: 20px;
  
  line-height: 1.2;
}

.name {
  
  color: #67c8ff;
}

.typing {
  
  font-size: 22px;
  
  color: #b8c5d8;
  
  margin-bottom: 40px;
}

/* ========= 按钮 ========= */

.hero-buttons {
  
  display: flex;
  
  justify-content: center;
  
  gap: 20px;
  
  flex-wrap: wrap;
}

.btn {
  
  padding: 14px 34px;
  
  border-radius: 50px;
  
  text-decoration: none;
  
  color: #fff;
  
  background: #3399ff;
  
  transition: .35s;
}

.btn:hover {
  
  transform: translateY(-4px);
  
  box-shadow: 0 10px 30px rgba(0, 150, 255, .35);
}

.btn-outline {
  
  background: transparent;
  
  border: 2px solid #3399ff;
}

.btn-outline:hover {
  
  background: #3399ff;
}

/* ========= 公共区域 ========= */

.section {
  
  padding: 100px 8%;
}

.container {
  
  max-width: 1200px;
  
  margin: auto;
}

.section h2 {
  
  text-align: center;
  
  font-size: 40px;
  
  margin-bottom: 45px;
}

/* ========= 手机适配 ========= */

@media(max-width:768px) {
  
  .header {
    
    padding: 0 20px;
  }
  
  .header nav {
    
    gap: 15px;
    
    font-size: 14px;
  }
  
  .hero h1 {
    
    font-size: 38px;
  }
  
  .typing {
    
    font-size: 18px;
  }
  
  .section {
    
    padding: 70px 20px;
  }
  
}
/* =====================================
   技能区域
===================================== */

.skill-grid {
  
  display: grid;
  
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  
  gap: 24px;
  
  margin-top: 40px;
  
}

.skill-card {
  
  background: rgba(255, 255, 255, .06);
  
  border: 1px solid rgba(255, 255, 255, .08);
  
  backdrop-filter: blur(12px);
  
  border-radius: 18px;
  
  padding: 35px 20px;
  
  text-align: center;
  
  font-size: 20px;
  
  font-weight: 600;
  
  transition: .35s;
  
  cursor: default;
  
}

.skill-card:hover {
  
  transform: translateY(-8px);
  
  border-color: #4fb7ff;
  
  box-shadow: 0 15px 35px rgba(79, 183, 255, .25);
  
}

/* =====================================
   项目区域
===================================== */

.project-grid {
  
  display: grid;
  
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  
  gap: 30px;
  
  margin-top: 40px;
  
}

.project-card {
  
  background: rgba(255, 255, 255, .05);
  
  border: 1px solid rgba(255, 255, 255, .08);
  
  border-radius: 20px;
  
  padding: 28px;
  
  transition: .35s;
  
  backdrop-filter: blur(10px);
  
}

.project-card:hover {
  
  transform: translateY(-10px);
  
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  
  border-color: #5bc0ff;
  
}

.project-card h3 {
  
  font-size: 24px;
  
  margin-bottom: 15px;
  
}

.project-card p {
  
  color: #c7d0de;
  
  margin-bottom: 22px;
  
}

.project-card a {
  
  display: inline-block;
  
  color: #69c6ff;
  
  text-decoration: none;
  
  font-weight: bold;
  
  transition: .3s;
  
}

.project-card a:hover {
  
  color: #ffffff;
  
}

/* =====================================
   联系方式
===================================== */

.contact-links {
  
  display: flex;
  
  justify-content: center;
  
  align-items: center;
  
  flex-wrap: wrap;
  
  gap: 20px;
  
  margin-top: 35px;
  
}

.contact-links a {
  
  padding: 14px 28px;
  
  border-radius: 50px;
  
  text-decoration: none;
  
  color: #ffffff;
  
  background: rgba(255, 255, 255, .06);
  
  border: 1px solid rgba(255, 255, 255, .08);
  
  transition: .3s;
  
}

.contact-links a:hover {
  
  background: #3399ff;
  
  border-color: #3399ff;
  
  transform: translateY(-5px);
  
}

/* =====================================
   Footer
===================================== */

footer {
  
  padding: 35px 20px;
  
  text-align: center;
  
  color: #9ea8b7;
  
  border-top: 1px solid rgba(255, 255, 255, .08);
  
  background: rgba(255, 255, 255, .03);
  
}

/* =====================================
   页面淡入动画
===================================== */

.hero-content,

.section {
  
  animation: fadeUp .8s ease;
  
}

@keyframes fadeUp {
  
  from {
    
    opacity: 0;
    
    transform: translateY(35px);
    
  }
  
  to {
    
    opacity: 1;
    
    transform: translateY(0);
    
  }
  
}

/* =====================================
   大屏优化
===================================== */

@media(min-width:1400px) {
  
  .container {
    
    max-width: 1300px;
    
  }
  
}

/* =====================================
   手机优化
===================================== */

@media(max-width:768px) {
  
  .project-grid {
    
    grid-template-columns: 1fr;
    
  }
  
  .skill-grid {
    
    grid-template-columns: repeat(2, 1fr);
    
  }
  
  .contact-links {
    
    flex-direction: column;
    
  }
  
  .contact-links a {
    
    width: 100%;
    
    text-align: center;
    
  }
  
}