/* 基本样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4a86e8;
  --secondary-color: #2b5797;
  --accent-color: #6aa84f;
  --ai-color: #9b51e0;
  --web3-color: #ff6b6b;
  --text-color: #333333;
  --light-text: #ffffff;
  --background-color: #f7f9fc;
  --card-bg: #ffffff;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%);
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  background: var(--gradient-bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部导航 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: rotate(10deg);
}

.logo h1 {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  padding: 5px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.nav a:hover {
  color: var(--primary-color);
}

.nav a:hover::after {
  width: 100%;
}

/* 主要内容区 */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 50px 0;
  margin-bottom: 30px;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
  font-weight: 700;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 90%;
  height: auto;
  max-height: 350px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: translateY(-10px);
}

/* 章节标题 */
.section-title {
  text-align: center;
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* 技能展示区 */
.skills {
  padding: 40px 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 20px 0;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: -1;
}

.feature-card:nth-child(2)::before {
  background: linear-gradient(90deg, #8a5cf5, var(--ai-color));
}

.feature-card:nth-child(3)::before {
  background: linear-gradient(90deg, #ff9a8b, var(--web3-color));
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-weight: 600;
}

.feature-card:nth-child(2) h3 {
  color: var(--ai-color);
}

.feature-card:nth-child(3) h3 {
  color: var(--web3-color);
}

.feature-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
}

/* 项目展示 */
.projects {
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  margin: 20px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.project-content p {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span {
  background: rgba(74, 134, 232, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* 联系区域 */
.contact-info {
  text-align: center;
  margin-bottom: 30px;
}

.contact-info p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #666;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 22px;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.social-link:hover {
  transform: translateY(-5px);
  color: var(--light-text);
  background: var(--primary-color);
}

/* 页脚 */
.footer {
  margin-top: auto;
  padding: 60px 0 20px;
}

.beian-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 10px;
}

.beian-item a {
  color: #777;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.beian-item a:hover {
  color: var(--primary-color);
}

.beian-icon {
  width: 15px;
  height: 15px;
  margin-right: 5px;
}

.copyright {
  text-align: center;
  color: #777;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 30px 0;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .hero-content h2 {
    font-size: 36px;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .social-links {
    gap: 15px;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

@media (min-width: 769px) {
  .mobile-nav-toggle {
    display: none;
  }
}

/* 移动端导航 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--text-color);
  font-size: 22px;
  margin: 15px 0;
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: var(--primary-color);
}

.mobile-nav-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  color: var(--primary-color);
}

.close-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--secondary-color);
} 