/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  color: #00c6ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
header {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: #e0e0e0;
  font-weight: 500;
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* 英雄区域 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #0f0f0f, #2a2a2a);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("../imgs/bg.webp") no-repeat center center/cover;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(to right, #00c6ff, #9b59b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #bbb;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #00c6ff;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #00b3e0;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 198, 255, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #00c6ff;
  border: 2px solid #00c6ff;
}

.btn-secondary:hover {
  background-color: rgba(0, 198, 255, 0.1);
  transform: translateY(-3px);
}

/* 关于我部分 */
.about {
  padding: 100px 0;
  background-color: #1f1f1f;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background: linear-gradient(to right, #00c6ff, #9b59b6);
  bottom: -10px;
  left: 25%;
}

.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.profile-img {
  flex: 1;
  text-align: center;
}

.profile-img img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-info {
  flex: 2;
}

.profile-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #fff;
}

.profile-info p {
  margin-bottom: 15px;
  color: #bbb;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 15px;
  border-radius: 20px;
  background-color: #2a2a2a;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #00c6ff;
  transform: translateY(-3px);
}

/* 作品部分 */
.products {
  padding: 100px 0;
  background-color: #1a1a1a;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}

.product-info p {
  color: #bbb;
  margin-bottom: 15px;
}

.product-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #00c6ff;
  color: #fff;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.product-link:hover {
  background-color: #00b3e0;
  transform: translateY(-2px);
}

/* 页脚 */
footer {
  background-color: #121212;
  padding: 0 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  color: #777;
  font-size: 14px;
}

/* 动画效果 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .profile {
    flex-direction: column;
    text-align: center;
  }

  .profile-img {
    margin-bottom: 30px;
  }

  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-title h2 {
    font-size: 28px;
  }
}
