/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  /* 漫画风格柔和配色 */
  --primary-color: #ff7e67;
  --secondary-color: #f9f871;
  --accent-color: #05d9e8;
  --text-color: #3a2e39;
  --text-light: #5f6769;
  --bg-color: #f8f5f2;
  --bg-dark: #e9ecef;
  --border-color: #d8d3cd;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 25px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    #ffaaa5
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-color),
    #a0e7e5
  );
  --border-thick: 3px solid var(--text-color);
}

body {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  /* 添加纸张纹理背景 */
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d8d3cd' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 加载动画 */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-color);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--text-color);
  border-radius: 0 0 20px 20px;
}

.navbar.scrolled {
  background: var(--bg-color);
  box-shadow: var(--shadow-hover);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo img {
  width: 10vw;
  max-width: 50px;
  min-width: 35px;
  height: 10vw;
  max-height: 50px;
  min-height: 35px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}
.nav-link_ {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link_:hover {
  color: var(--primary-color);
}

.nav-link_::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link_:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* 首页部分 */
.hero {
  min-height: 100vh;
  background: var(--gradient);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  color: white;
}

/* 添加漫画风格的标题样式 */
.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

/* 漫画风格标题全局样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 4rem;
  color: var(--primary-color);
  text-shadow: 3px 3px 0 var(--text-color);
}

h2 {
  font-size: 3rem;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 0 var(--text-color);
}

/* 漫画风格装饰线 */
h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-color);
  border-radius: 3px;
  border: 2px solid var(--text-color);
}

h3 {
  font-size: 2.2rem;
  color: var(--accent-color);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

/* 漫画风格段落和链接 */
p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
}

/* 漫画风格链接 */
a {
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  font-weight: 700;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* 漫画风格链接下划线 */
a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1);
}

/* 漫画风格列表 */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  position: relative;
}

/* 自定义列表项标记 */
ul li::marker {
  content: '✏️ ';
  font-size: 1.2em;
}

ol li::marker {
  font-weight: bold;
  color: var(--primary-color);
}

.greeting {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.name {
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border: 3px solid var(--text-color);
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  box-shadow: 5px 5px 0 var(--text-color);
  transform: translate(0, 0);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--text-color);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 var(--text-color);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--text-color);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border-color: var(--text-color);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card {
  background: white;
  border-radius: 30px;
  padding: 2rem;
  text-align: center;
  border: 3px solid var(--text-color);
  box-shadow: 10px 10px 0 var(--text-color);
}

/* Removed float animation */
/* @keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
} */

.profile-avatar {
  margin-bottom: 1rem;
}

.avatar-placeholder {
  width: 140px;
  height: 140px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 3.5rem;
  color: var(--text-color);
  border: 3px solid var(--text-color);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.avatar-placeholder img {
  width: 100px;
  height: 100px;
}

.profile-info h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.profile-info p {
  color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 通用部分样式 */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
  transform: rotate(-1deg);
}

.section-title:hover {
  transform: rotate(0deg) scale(1.02);
  transition: all 0.3s ease;
}

.section-line {
  width: 120px;
  height: 6px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: 3px;
  border: 2px solid var(--text-color);
}

/* 关于我部分 */
.about {
  padding: 100px 0;
  background: var(--bg-dark);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 20px;
  border: 3px solid var(--text-color);
  box-shadow: 6px 6px 0 var(--text-color);
  transition: all 0.3s ease;
  transform: translate(0, 0);
}

.stat-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--text-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
}

.about-image {
  position: relative;
  height: 400px;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  border: 3px solid var(--text-color);
  box-shadow: 6px 6px 0 var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: rotate(-2deg);
  transition: all 0.3s ease;
}

.floating-card:nth-child(1) {
  top: 20%;
  left: 10%;
  transform: rotate(-3deg);
}

.floating-card:nth-child(2) {
  top: 50%;
  right: 20%;
  transform: rotate(2deg);
}

.floating-card:nth-child(3) {
  bottom: 20%;
  left: 30%;
  transform: rotate(-1deg);
}

.floating-card:hover {
  transform: rotate(0deg) scale(1.05);
}

.floating-card:nth-child(1) {
  top: 20%;
  left: 10%;
}

.floating-card:nth-child(2) {
  top: 50%;
  right: 20%;
}

.floating-card:nth-child(3) {
  bottom: 20%;
  left: 30%;
}

.floating-card i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* 技能部分 */
.skills {
  padding: 100px 0;
  background: white;
}

/* 项目经验部分 */
.projects {
  padding: 100px 0;
  background: var(--bg-dark);
}

.projects-content {
  display: grid;
  gap: 3rem;
}

.project-item {
  background: white;
  border-radius: 25px;
  padding: 2.5rem;
  border: 3px solid var(--text-color);
  box-shadow: 8px 8px 0 var(--text-color);
  transition: all 0.3s ease;
  position: relative;
  transform: translate(0, 0);
}

.project-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: var(--gradient);
  border-radius: 0 0 0 8px;
}

.project-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--text-color);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-header h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin: 0;
}

.project-date {
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.project-links {
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--secondary-color);
}

.project-description {
  margin-bottom: 1.5rem;
}

.project-description p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.project-tech h4 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid var(--text-color);
  box-shadow: 3px 3px 0 var(--text-color);
  transition: all 0.3s ease;
  transform: translate(0, 0);
}

.tech-tag:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text-color);
}

.project-contributions h4 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.project-contributions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-contributions li {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.project-contributions li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.skills-category h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
}

.skill-item {
  margin-bottom: 2rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-color);
}

.skill-percentage {
  color: var(--primary-color);
  font-weight: 600;
}

.skill-bar {
  height: 12px;
  background: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--text-color);
}

.skill-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
  border-right: 2px solid var(--text-color);
}

/* 经验部分 */
.experience {
  padding: 100px 0;
  background: var(--bg-dark);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--primary-color) 0px,
    var(--primary-color) 10px,
    var(--secondary-color) 10px,
    var(--secondary-color) 20px
  );
  transform: translateX(-50%);
  border-radius: 2px;
  border: 2px solid var(--text-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 50%;
  padding-right: 2rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  margin-right: 0;
  padding-left: 2rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--text-color);
  box-shadow: 0 0 0 4px white;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  border: 3px solid var(--text-color);
  box-shadow: 6px 6px 0 var(--text-color);
  position: relative;
  transition: all 0.3s ease;
  transform: translate(0, 0);
}

.timeline-content:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--text-color);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.timeline-content h4 {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* 联系部分 */
.contact {
  padding: 100px 0;
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 20px;
  border: 3px solid var(--text-color);
  box-shadow: 6px 6px 0 var(--text-color);
  transition: all 0.3s ease;
  transform: translate(0, 0);
}

.contact-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--text-color);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  border: 3px solid var(--text-color);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
}

.contact-details h4 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-details p {
  color: var(--text-light);
}

.contact-form {
  background: var(--bg-dark);
  padding: 2rem;
  border-radius: 15px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 3px solid var(--text-color);
  border-radius: 15px;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 3px 3px 0 var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* 页脚 */
.footer {
  background: var(--text-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
  border-top: 5px solid var(--primary-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  border: 3px solid var(--text-color);
  box-shadow: 4px 4px 0 var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  transform: translate(0, 0);
}

.social-link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--text-color);
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border: 3px solid var(--text-color);
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 5px 5px 0 var(--text-color);
  transform: translate(0, 0);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: var(--bg-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-hover);
    padding: 2rem 0;
    border-bottom: 3px solid var(--text-color);
    border-radius: 0 0 30px 30px;
  }

  .nav-menu.active {
    left: 0;
    animation: slideIn 0.5s ease-out;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 3rem;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .skills-content {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    padding-left: 2rem;
    padding-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 20px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-item {
    padding: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2.5rem;
    transform: rotate(-0.5deg);
  }

  .btn {
    padding: 12px 22px;
    font-size: 1rem;
    border-width: 2px;
    box-shadow: 4px 4px 0 var(--text-color);
  }

  .profile-card {
    padding: 1.5rem;
    border-width: 2px;
    box-shadow: 8px 8px 0 var(--text-color);
  }

  .avatar-placeholder {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  /* 手机端额外优化 */
  body {
    font-size: 14px;
    overflow-x: hidden;
  }
  
  /* 调整卡片大小 */
  .stat-item,
  .contact-item,
  .project-item {
    border-width: 2px;
    box-shadow: 5px 5px 0 var(--text-color);
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-item {
    margin-bottom: 1.5rem;
  }

  /* 漫画风格动画效果 */
  @keyframes bounceSmall {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  @keyframes wiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  @keyframes slideIn {
    from {
      transform: translateX(-100%) rotate(-5deg);
    }
    to {
      transform: translateX(0) rotate(0);
    }
  }

  /* 给关键元素添加动画效果 */
  .section-title {
    animation: wiggle 5s ease-in-out infinite;
  }

  .tech-tag:hover {
    animation: pulse 0.3s ease-in-out;
  }

  .contact-icon {
    animation: bounceSmall 3s ease-in-out infinite;
  }

  /* 给不同的联系图标设置不同的动画延迟 */
  .contact-icon:nth-child(1) { animation-delay: 0s; }
  .contact-icon:nth-child(2) { animation-delay: 0.5s; }
  .contact-icon:nth-child(3) { animation-delay: 1s; }

  /* 增强按钮点击效果 */
  .btn:active {
    transform: translate(4px, 4px) scale(0.98);
    box-shadow: 1px 1px 0 var(--text-color);
  }

  /* 给卡片添加轻微的悬浮效果 */
  .project-item,
  .timeline-content,
  .contact-item {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .project-item:hover,
  .timeline-content:hover,
  .contact-item:hover {
    transform: translate(-5px, -5px);
    box-shadow: 12px 12px 0 var(--text-color);
  }

  /* 为社交链接添加有趣的旋转效果 */
  .social-link:hover {
    transform: translate(-3px, -3px) rotate(15deg);
    box-shadow: 7px 7px 0 var(--text-color);
  }

  .project-item {
    padding: 1.5rem;
  }

  .contact-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 1.5rem;
  }

  /* 确保所有元素在手机端可见 */
  .section-header,
  .about-content,
  .skills-content,
  .timeline-item,
  .contact-content,
  .project-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 动画效果 - 元素滑出视窗20%时执行动画 */
/* Removed scroll animation effects */
/* @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
} */

/* Removed scroll animation effect */
/* .animate-on-scroll {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.8s ease;
} */

/* Removed scroll animation classes */
/* .fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-out-down {
    animation: fadeOutDown 0.6s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
} */

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
