/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

body {
  background-color: #ffffff;
  color: #202124;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  min-height: calc(100vh - 70px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 导航栏 */
header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.2s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: #5f6368;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
}

.nav-links a:hover {
  color: #1a73e8;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background: #1a73e8;
  transition: all 0.2s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 24px;
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
}

/* 英雄区域 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(26, 115, 232, 0.08) 0%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #202124;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 20px;
  color: #5f6368;
  margin-bottom: 32px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #1a73e8;
  color: white;
}

.btn-primary:hover {
  background: #0d47a1;
}

.btn-secondary {
  background: transparent;
  color: #1a73e8;
  border: 1px solid #1a73e8;
}

.btn-secondary:hover {
  background: #1a73e8;
  color: white;
}

/* 作品部分 */
.products {
  padding: 80px 0;
  background: #ffffff;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: #1a73e8;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  transition: all 0.2s ease;
  border: 1px solid #dadce0;
}

.product-card:hover {
  border-color: #1a73e8;
}

.product-info h3 {
  font-size: 24px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 16px;
}

.product-info p {
  color: #5f6368;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.product-tag {
  background: rgba(26, 115, 232, 0.08);
  color: #1a73e8;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1a73e8;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.product-link:hover {
  color: #0d47a1;
  gap: 12px;
}

/* 关于我部分 */
.about {
  padding: 80px 0;
}

.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.profile-img {
  text-align: center;
}

.profile-img img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
}

.profile-info h3 {
  font-size: 32px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 16px;
}

.profile-info p {
  color: #5f6368;
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-info {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #dadce0;
  margin-bottom: 32px;
}

.contact-info p {
  margin-bottom: 8px;
  font-weight: 500;
  color: #5f6368;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 48px;
  padding: 0 24px;
  background: #f8f9fa;
  color: #5f6368;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #dadce0;
}

.social-links a:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

/* 页脚 */
footer {
  background: #202124;
  color: #9aa0a6;
  padding: 32px 0;
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #9aa0a6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #1a73e8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero p {
    font-size: 17.6px;
  }

  .profile {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 44px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .product-card {
    padding: 24px;
  }
}
