:root {
  --primary: #2d3436;
  --secondary: #74b9ff;
  --accent: #e17055;
  --light: #f9fbfd;
  --gray: #636e72;
  --dark: #2d3436;
  --shadow: 0 4px 12px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  background-image: linear-gradient(120deg, rgba(116, 185, 255, 0.05) 0%, rgba(253, 121, 168, 0.05) 100%);
  padding-bottom: 60px; /* 预留底部备案信息空间 */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  box-shadow: var(--shadow);
  z-index: 100;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* 薄款头像框样式 */
.profile-container {
  position: relative;
  margin-bottom: 2px;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}


.profile-overlay {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;

  z-index: 3;
  box-shadow: 0 0 12px rgba(116, 185, 255, 0.2);
}

.profile-container:hover .profile-overlay {
  box-shadow: 0 0 20px rgba(116, 185, 255, 0.3);
}

.profile-container:hover .profile-img {
  transform: scale(1.01);
}

/* 英雄区域样式 */
.hero {
  padding: 120px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(50px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(50px);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.bio {
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--gray);
}

.contact-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(116, 185, 255, 0.2);
}

.contact-btn:hover {
  background: linear-gradient(90deg, #5ba8ff, #d66346);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(116, 185, 255, 0.3);
}

/* 关于我区域 */
.about {
  padding: 80px 0;
  background: white;
  border-radius: 20px;
  margin: 0 20px;
  box-shadow: var(--shadow);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.8;
}

.info-list {
  list-style: none;
  margin-bottom: 30px;
}

.info-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-icon {
  color: var(--secondary);
  width: 20px;
  text-align: center;
}

.info-item strong {
  color: var(--primary);
  min-width: 80px;
}

.info-link {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

.info-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.about-img {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid white;
  position: relative;
}

.about-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(116, 185, 255, 0.1), rgba(225, 112, 85, 0.1));
  z-index: 1;
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.03);
}

/* 联系区域 */
.contact {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(162, 155, 254, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(0, 184, 148, 0.05) 0%, transparent 50%);
  z-index: -1;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 280px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid var(--secondary);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-top-color: var(--accent);
}

.contact-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 15px;
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  color: var(--accent);
  transform: scale(1.1);
}

.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary);
}

.contact-link {
  color: var(--gray);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.contact-card:hover .contact-link {
  color: var(--accent);
}

/* 底部备案信息 */
.footer-info {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  z-index: 10000;
  box-sizing: border-box;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-info a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  margin: 0 5px;
  display: inline-flex;
  align-items: center;
}

.footer-info img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

.footer-info span {
  margin: 0 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about {
    margin: 0 10px;
  }

  .footer-info {
    font-size: 12px;
    padding: 5px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .about, .contact {
  animation: fadeIn 0.8s ease forwards;
}

.profile-container {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* 按钮特殊样式 */
.btn-2 {
  color: white !important;
  text-decoration: none !important;
}