:root {
  /* 夜间模式（默认）颜色 */
  --color-primary: #121212;
  --color-secondary: #D4AF37;
  --color-light: #F5F5F5;
  --color-medium: #757575;
  --color-dark-gray: #1E1E1E;
  --color-gray: #333333;
  --color-gray-light: #444444;
  --font-inter: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* 背景图案和纹理 */
  --bg-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333333' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 白天模式颜色 */
[data-theme="light"] {
  --color-primary: #f8f3e9;
  --color-secondary: #e07a5f;
  --color-light: #2a2a2a;
  --color-medium: #5a5a5a;
  --color-dark-gray: #f0e6d8;
  --color-gray: #e0d6c8;
  --color-gray-light: #d0c6b8;
  
  /* 白天模式背景图案 */
  --bg-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e07a5f' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* 页面加载动画 */
@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: var(--font-inter);
  background-color: var(--color-primary);
  color: var(--color-light);
  overflow-x: hidden;
  line-height: 1.6;
  opacity: 0;
  animation: pageLoad 0.8s ease-out forwards;
  position: relative;
}

/* 背景图案装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-pattern);
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/* 白天模式的装饰元素 */
body[data-theme="light"]::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 10%, rgba(224, 122, 95, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(224, 122, 95, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 200, 150, 0.03) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* 白天模式的装饰图形 */
.decoration-light {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: -1;
}

/* 显示白天模式的装饰 */
[data-theme="light"] .decoration-light {
  opacity: 1;
}

/* 太阳光芒装饰 */
.sun-rays {
  position: fixed;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s infinite alternate ease-in-out;
}

/* 漂浮的云朵 */
.cloud {
  position: fixed;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  filter: blur(15px);
}

.cloud-1 {
  top: 15%;
  left: 10%;
  width: 100px;
  height: 60px;
  opacity: 0.3;
  animation: float 30s infinite alternate ease-in-out;
}

.cloud-2 {
  top: 30%;
  right: 15%;
  width: 150px;
  height: 80px;
  opacity: 0.2;
  animation: float 25s 5s infinite alternate-reverse ease-in-out;
}

.cloud-3 {
  bottom: 20%;
  left: 20%;
  width: 120px;
  height: 70px;
  opacity: 0.15;
  animation: float 40s 10s infinite alternate ease-in-out;
}

/* 漂浮的小气泡 */
.bubble {
  position: fixed;
  background: rgba(224, 122, 95, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(224, 122, 95, 0.1);
}

.bubble-1 {
  bottom: 20%;
  right: 10%;
  width: 15px;
  height: 15px;
  animation: float-bubble 15s infinite ease-in-out;
}

.bubble-2 {
  top: 40%;
  left: 15%;
  width: 10px;
  height: 10px;
  animation: float-bubble 12s 2s infinite ease-in-out;
}

.bubble-3 {
  top: 60%;
  right: 30%;
  width: 20px;
  height: 20px;
  animation: float-bubble 18s 5s infinite ease-in-out;
}

/* 动画关键帧 */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 滚动进度指示器 */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--color-secondary);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* 导航栏样式 */
#main-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: var(--transition-smooth);
}

#main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
}

.logo .icon {
  margin-right: 0.5rem;
}

.desktop-menu {
  display: none;
}

.nav-link {
  margin-left: 1.5rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition-smooth);
  opacity: 0;
}

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

.nav-link:hover::after {
  width: 100%;
  opacity: 1;
}

/* 主题切换按钮样式 */
.theme-toggle {
  margin-left: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
}

#theme-toggle-btn {
  width: 60px;
  height: 30px;
  background-color: rgba(128, 128, 128, 0.2);
  border-radius: 15px;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  transition: var(--transition-smooth);
}

#theme-toggle-btn:hover {
  background-color: rgba(128, 128, 128, 0.3);
}

#theme-toggle-btn i {
  font-size: 14px;
  padding: 0 8px;
  color: var(--color-secondary);
  z-index: 2;
}

#theme-toggle-btn .fa-sun {
  color: #f39c12;
}

#theme-toggle-btn .fa-moon {
  color: #a9b7c6;
}

.toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 白天模式下的切换按钮状态 */
[data-theme="light"] #theme-toggle-btn .toggle-ball {
  transform: translateX(30px);
  background-color: var(--color-secondary);
}

/* 白天模式下的导航栏 */
[data-theme="light"] .nav-scrolled {
  background-color: rgba(240, 230, 216, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--color-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  width: 100%;
  background-color: var(--color-dark-gray);
  padding: 1rem 0;
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
}

.mobile-menu .nav-link {
  margin: 0.5rem 0;
  padding: 0.5rem 0;
}

.nav-scrolled {
  background-color: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 英雄区域样式 */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/id/1035/1920/1080');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.8;
}

.hero-content {
  text-align: center;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--color-medium);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-light);
  border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  background-color: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.btn-block {
  display: block;
  width: 100%;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--color-light);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* 通用区块样式 */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--color-secondary);
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--color-secondary);
  margin: 0 auto;
}

.section-desc {
  color: var(--color-medium);
  margin-top: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* 关于我区块样式 */
.about-section {
  background: linear-gradient(to bottom, var(--color-primary), var(--color-dark-gray));
}

.about-content {
  display: grid;
  gap: 3rem;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
}

.image-decoration {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 8rem;
  height: 8rem;
  background-color: var(--color-secondary);
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-light);
}

.about-text p {
  color: var(--color-medium);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  background-color: rgba(128, 128, 128, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
}

.stat-item h4 {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--color-medium);
  margin-bottom: 0;
}

.text-link {
  color: var(--color-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.text-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link:hover i {
  transform: translateX(5px);
}

/* 技能区块样式 */
.skills-section {
  background-color: var(--color-dark-gray);
}

.skills-content {
  display: grid;
  gap: 3rem;
}

.skills-group {
  margin-bottom: 2rem;
}

.skills-group h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-light);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--color-medium);
}

.skill-percentage {
  color: var(--color-secondary);
  font-weight: 700;
}

.skill-bar {
  height: 8px;
  background-color: var(--color-gray-light);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.skill-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transform: translateX(-100%);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), #F0D77B);
  border-radius: 4px;
  position: relative;
  width: 0;
  transition: width 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.skill-bar.animate::after {
  animation: skillShine 2s infinite;
}

@keyframes skillShine {
  0% {
    transform: translateX(-100%);
  }
  50%, 100% {
    transform: translateX(100%);
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tool-item {
  background-color: rgba(128, 128, 128, 0.1);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-bounce);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid transparent;
}

.tool-item:hover {
  background-color: rgba(128, 128, 128, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--color-secondary);
}

.tool-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(128, 128, 128, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: var(--transition-bounce);
  position: relative;
  z-index: 2;
}

.tool-item:hover .tool-icon {
  background-color: var(--color-secondary);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.tool-icon i {
  font-size: 1.5rem;
  color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.tool-item:hover .tool-icon i {
  color: var(--color-primary);
}

.tool-item h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
}

.tool-item:hover h4 {
  color: var(--color-secondary);
}

/* 工具详情样式 */
.tool-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
  margin-top: 0.5rem;
}

.tool-item:hover .tool-details {
  max-height: 200px;
  opacity: 1;
}

.tool-proficiency {
  height: 4px;
  background-color: rgba(128, 128, 128, 0.2);
  border-radius: 2px;
  margin: 0.75rem 0;
  overflow: hidden;
}

.proficiency-level {
  height: 100%;
  background-color: var(--color-secondary);
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.tool-item:hover .proficiency-level {
  animation: pulse-glow 2s infinite;
}

.tool-description {
  font-size: 0.875rem;
  color: var(--color-medium);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.tool-years {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

/* 工具项悬停特效 */
.tool-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
  z-index: 1;
}

.tool-item:hover::before {
  opacity: 1;
  transform: scale(1.5);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
  }
}

/* 工具项涟漪效果 */
.tool-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  z-index: 0;
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* 工具项活跃状态 */
.tool-active {
  border-color: var(--color-secondary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 项目区块样式 */
.projects-section {
  background-color: var(--color-primary);
  position: relative;
}

.projects-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/id/1015/1920/1080');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.projects-grid {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* 项目卡片样式 */
.project-card {
  background-color: var(--color-dark-gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(212, 175, 55, 0.2);
  color: var(--color-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-light);
}

.project-content p {
  color: var(--color-medium);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

/* 图库区块样式 */
.gallery-section {
  background-color: var(--color-primary);
  position: relative;
}

.gallery-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/id/1019/1920/1080');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-info {
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 0.25rem;
}

.gallery-info p {
  font-size: 0.875rem;
  color: var(--color-secondary);
}

/* 博客区块样式 */
.blog-section {
  background-color: var(--color-dark-gray);
}

.blog-grid {
  display: grid;
  gap: 2rem;
}

.blog-card {
  background-color: var(--color-dark-gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-medium);
  margin-bottom: 1rem;
}

.blog-meta span {
  margin-right: 0.5rem;
}

.blog-meta i {
  margin-right: 0.25rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-light);
}

.blog-content p {
  color: var(--color-medium);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

/* 联系区块样式 */
.contact-section {
  background-color: var(--color-primary);
  position: relative;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://picsum.photos/id/1048/1920/1080');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.contact-content {
  display: grid;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-light);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem;
  color: var(--color-secondary);
}

.contact-details h4 {
  color: var(--color-light);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--color-medium);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 3rem;
  height: 3rem;
  background-color: rgba(128, 128, 128, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
  transition: all 0.3s ease;
}

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

.form-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-medium);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(128, 128, 128, 0.1);
  border: 1px solid var(--color-gray-light);
  border-radius: 0.5rem;
  color: var(--color-light);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(117, 117, 117, 0.7);
}

/* 页脚样式 */
.footer {
  padding: 3rem 0;
  background-color: var(--color-dark-gray);
  border-top: 1px solid var(--color-gray);
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-light);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-light);
}

.footer-col p {
  color: var(--color-medium);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-medium);
  transition: color 0.3s ease;
}

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

.subscribe-form {
  display: flex;
  margin-top: 1rem;
}

.subscribe-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  background-color: rgba(128, 128, 128, 0.1);
  border: 1px solid var(--color-gray-light);
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  color: var(--color-light);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.subscribe-form button {
  padding: 0.5rem 1rem;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 0 0.5rem 0.5rem 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
  background-color: rgba(212, 175, 55, 0.9);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray);
  text-align: center;
  color: var(--color-medium);
}

/* 动画效果 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-smooth);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition-bounce);
}

/* 响应式设计 */
@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
  }
  
  .menu-btn {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .skills-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 动画触发类 */
.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
} 

/* 图像加载效果 */
.lazy-image {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

.image-loading-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, var(--color-gray) 30%, var(--color-gray-light) 50%, var(--color-gray) 70%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.5s infinite;
  z-index: 1;
}

@keyframes loadingShimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
} 