/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --text-color: #1e293b;
  --bg-color: #f8fafc;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 英雄区域 */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

/* 个人资料 */
.profile-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.profile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.profile-container:hover .profile-overlay {
  opacity: 1;
}

.profile-container:hover .profile-image {
  transform: scale(1.1);
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: white;
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

/* 名言 */
.quote-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-color);
}

.quote-text footer {
  margin-top: 1rem;
  font-size: 1rem;
  color: #64748b;
}

/* 导航栏 */
.main-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 2rem;
  box-shadow: var(--shadow);
  padding: 0.75rem 1.5rem;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

/* 信息区域 */
.info-section {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  color: var(--text-color);
}

.location-info,
.welcome-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

/* 社交链接 */
.social-links {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .hero-content {
    padding: 0 2rem;
  }
  
  .quote-container {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 1rem;
    min-height: 90vh;
  }

  .profile-container {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
  }

  .quote-container {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

  .quote-text {
    font-size: 1.25rem;
  }

  .quote-text footer {
    font-size: 0.9rem;
  }

  .nav-list {
    gap: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .info-section {
    flex-direction: column;
    gap: 0.8rem;
    bottom: 7rem;
  }

  .location-info,
  .keyboard-hint {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .social-links {
    top: 1rem;
    right: 1rem;
    gap: 0.8rem;
  }

  .social-link {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 0.5rem;
    min-height: 85vh;
  }

  .profile-container {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }

  .quote-container {
    padding: 1rem;
    margin: 1rem auto;
  }

  .quote-text {
    font-size: 1.1rem;
  }

  .quote-text footer {
    font-size: 0.8rem;
  }

  .nav-list {
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .info-section {
    bottom: 6rem;
    gap: 0.6rem;
  }

  .location-info,
  .keyboard-hint {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .social-links {
    top: 0.8rem;
    right: 0.8rem;
    gap: 0.6rem;
  }

  .social-link {
    font-size: 1rem;
  }
}
