:root {
  /* 扩展调色板 */
  --color-primary-start: #FFB6C1;
  --color-primary-end: #87CEEB;
  --color-secondary-start: #FFD700;
  --color-secondary-end: #FFA500;
  --color-text-base: rgba(255,255,255,0.95);
  --color-text-muted: rgba(255,255,255,0.75);
  --color-background: #1a1b2e;
  
  /* 阴影变量 */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  
  /* 动画时间 */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.6s;
  
  /* 间距系统 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* 排版 */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --line-height-base: 1.6;
  --letter-spacing-heading: 0.02em;
  --letter-spacing-body: -0.01em;
  
  /* 打字机主题色 */
  --typewriter-color: #00ff00;
  --typewriter-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  --cursor-color: #00ff00;
}

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

body {
  font-family: var(--font-body);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-body);
  background: var(--color-background);
  color: var(--color-text-base);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.15), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(135, 206, 235, 0.15), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), transparent 50%),
    linear-gradient(45deg, rgba(255, 20, 147, 0.05) 0%, rgba(0, 255, 255, 0.05) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden; /* 防止水平滚动 */
  background-blend-mode: soft-light;
}

/* 优化导航栏 */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(26, 27, 46, 0.85);
  border-bottom: 1px solid rgba(255, 182, 193, 0.15);
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1400px; /* 增加最大宽度 */
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  background: linear-gradient(135deg, 
    var(--color-primary-start), 
    var(--color-primary-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-links a {
  color: var(--color-text-base);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right,
    var(--color-primary-start),
    var(--color-primary-end)
  );
  transition: width 0.3s ease;
}

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

/* 优化Hero部分 */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
  margin-bottom: -10vh; /* 创建负边距实现重叠效果 */
}

.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: blur(1px);
  opacity: 0.8;
}

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1.1;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-md);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: var(--letter-spacing-heading);
  background: linear-gradient(
    -45deg,
    #ff1493 0%,
    #ff69b4 15%,
    #00ffff 30%,
    #ff00ff 45%,
    #ffff00 60%,
    #00ffff 75%,
    #ff69b4 90%,
    #ff1493 100%
  );
  background-size: 400% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  white-space: nowrap;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: none; /* 初始时不执行动画 */
}

.hero-subtitle {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  max-width: 800px;
  line-height: 1.6;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
}

/* 添加3D效果 */
.hero-title, .hero-subtitle {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* 优化卡片部分 */
.cards-section {
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(26, 27, 46, 0.4) 5%,
    rgba(26, 27, 46, 0.8) 15%,
    var(--color-background) 25%
  );
  position: relative;
  z-index: 1;
  margin-top: -10vh;
  padding-top: calc(var(--space-xl) + 10vh);
  padding-bottom: calc(var(--space-xl) + 10vh);
  margin-bottom: -10vh;
  isolation: isolate;
}

.cards-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 var(--space-sm);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: 2;
}

.card {
  perspective: 1000px;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  outline: none; /* 移除默认的焦点轮廓 */
  background: rgba(26, 27, 46, 0.95);
  border-radius: 1rem;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-secondary-end));
  border-radius: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover::before {
  opacity: 1;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 1rem;
  will-change: transform;
}

.card:hover .card-inner,
.card:focus .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  padding: 2rem;
  background: rgba(26, 27, 46, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 182, 193, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}

.card-front h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  color: var(--typewriter-color);
  text-shadow: var(--typewriter-shadow);
}

.card-back {
  transform: rotateY(180deg);
}

.card-back p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* 添加滚动指示器样式 */
.scroll-indicator {
  position: relative;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(4px);
  animation: float 2s ease-in-out infinite;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.1),
    inset 0 0 5px rgba(255, 255, 255, 0.1);
  will-change: transform;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, 20px);
    opacity: 0.2;
  }
}

@keyframes scrollIndicator {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 var(--space-xs);
  }
  
  .nav-container {
    padding: var(--space-sm);
  }
  
  .hero-section {
    padding: var(--space-md) var(--space-sm);
    margin-bottom: -5vh;
  }
  
  .cards-section,
  .about-section {
    margin-top: -5vh;
    padding-top: calc(var(--space-lg) + 5vh);
  }
  
  .cards-section::after,
  .about-section::before {
    height: 40vh;
  }
  
  .transition-decoration {
    height: 15vh;
  }
}

@media (max-width: 576px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card-inner {
    transition: none;
  }
  
  .card:hover .card-inner {
    transform: none;
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* 加载动画 */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0F172A;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 255, 0, 0.1);
  border-top-color: var(--typewriter-color);
  border-right-color: var(--typewriter-color);
  border-bottom-color: var(--typewriter-color);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 182, 193, 0.5));
}

.loader-text {
  margin-top: 1rem;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
  -webkit-background-clip: text;
  color: transparent;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 卡片图标 */
.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* 卡片按钮 */
.card-button {
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid var(--typewriter-color);
  color: var(--typewriter-color);
  text-shadow: var(--typewriter-shadow);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
}

.card-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.card-button:hover::before {
  left: 100%;
}

.card-button:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

/* 键盘焦点样式 */
.card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-accent);
  border-radius: 1rem;
}

/* 性能优化 */
.card-inner {
  will-change: transform;
}

.particle-container canvas {
  will-change: transform;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0F172A;
    --color-surface: rgba(15, 23, 42, 0.9);
  }
}

/* 打印样式 */
@media print {
  .particle-container,
  .scroll-indicator,
  .card-button {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* 添加星星背景动画 */
@keyframes twinkle {
  0%, 100% { 
    opacity: 0.6;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2);
  }
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite;
  opacity: 0.6;
}

.star::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--star-color, white) 0%, transparent 70%);
  transform: translate(-50%, -50%);
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 优化背景渐变 */
.card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, 
    var(--color-primary-start), 
    var(--color-secondary-start),
    var(--color-primary-end),
    var(--color-secondary-end)
  );
  border-radius: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.card:hover::after {
  opacity: 0.5;
}

/* 优化加载动画 */
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 255, 0, 0.1);
  border-top-color: var(--typewriter-color);
  border-right-color: var(--typewriter-color);
  border-bottom-color: var(--typewriter-color);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 182, 193, 0.5));
}

/* 优化滚动指示器 */
.scroll-indicator {
  border: none;
  background: linear-gradient(to bottom,
    var(--color-primary-start),
    var(--color-primary-end)
  );
  opacity: 0.8;
  box-shadow: 0 0 15px rgba(255, 182, 193, 0.3);
}

.scroll-indicator::before {
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 优化按钮效果 */
.card-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid var(--typewriter-color);
  color: var(--typewriter-color);
  text-shadow: var(--typewriter-shadow);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.card-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.card-button:hover::before {
  left: 100%;
}

.card-button:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

/* 优化卡片悬停效果 */
.card:hover {
  transform: scale(1.02);
}

.card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, 
    var(--color-primary-start), 
    var(--color-secondary-start),
    var(--color-primary-end),
    var(--color-secondary-end)
  );
  border-radius: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.card:hover::after {
  opacity: 0.5;
}

/* 添加动画 */
@keyframes titleGlow {
  0% {
    filter: drop-shadow(0 0 2px rgba(255,182,193,0.3));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(255,182,193,0.6));
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 27, 46, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    var(--color-primary-start),
    var(--color-primary-end)
  );
  border-radius: 4px;
}

/* 选中文本样式 */
::selection {
  background: var(--color-primary-start);
  color: var(--color-background);
}

/* 打字机动画 */
@keyframes typing {
  from { 
    width: 0;
  }
  to { 
    width: 100%;
  }
}

@keyframes rainbow {
  0% {
    background-position: 0% center;
    filter: brightness(1) blur(0px);
  }
  50% {
    background-position: 100% center;
    filter: brightness(1.1) blur(0.3px);
  }
  100% {
    background-position: 0% center;
    filter: brightness(1) blur(0px);
  }
}

/* 优化扫描线效果 */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 255, 255, 0.01) 20%,
    rgba(0, 255, 255, 0.03) 30%,
    rgba(0, 255, 255, 0.05) 40%,
    rgba(0, 255, 255, 0.03) 50%,
    rgba(0, 255, 255, 0.01) 60%,
    transparent 100%
  );
  animation: scanning 4s linear infinite;
  mix-blend-mode: overlay;
  opacity: 0.4;
}

@keyframes scanning {
  0% {
    transform: translateY(-100%) scaleY(1.5);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(100%) scaleY(1.5);
    opacity: 0;
  }
}

/* 添加CRT显示器效果 */
.terminal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* 添加模糊层 */
.terminal-overlay::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(26, 27, 46, 0.3) 0%,
    rgba(26, 27, 46, 0.4) 50%,
    rgba(26, 27, 46, 0.5) 100%
  );
  backdrop-filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  mix-blend-mode: multiply;
}

/* 添加闪烁干扰效果 */
@keyframes glitch {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
  2% {
    clip-path: polygon(0 10%, 100% 10%, 100% 90%, 0 90%);
    opacity: 0.8;
  }
  4% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
  98% {
    clip-path: polygon(0 5%, 100% 5%, 100% 95%, 0 95%);
    opacity: 0.8;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
}

/* 应用闪烁效果到主要内容 */
.hero-section {
  animation: glitch 10s infinite;
}

/* 优化背景辉光 */
.particle-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(26, 27, 46, 0.4)
  );
  pointer-events: none;
}

/* 确保滚动指示器内部元素也在最顶层 */
.scroll-indicator::after {
  z-index: 9999;
}

/* 强制确保滚动指示器显示 */
body * {
  z-index: auto;
}

/* 创建新的滚动指示器容器 */
.scroll-indicator-container {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}

/* 重置所有可能的堆叠上下文 */
.particle-container,
.scan-line,
.terminal-overlay,
.hero-section {
  z-index: 1;
}

/* 确保canvas不会创建新的堆叠上下文 */
canvas {
  position: absolute;
  z-index: 1;
}

/* 关于我页面样式 */
.about-section {
  min-height: 100vh;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(26, 27, 46, 0.3) 15%,
    rgba(26, 27, 46, 0.6) 30%
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: -10vh;
  padding-top: calc(var(--space-xl) + 10vh);
  isolation: isolate;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  background: linear-gradient(
    to top,
    transparent 30%,
    rgba(26, 27, 46, 0.3) 60%,
    rgba(26, 27, 46, 0.5) 80%
  );
  backdrop-filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: var(--space-lg);
  background: linear-gradient(45deg, #ff1493, #ff69b4, #00ffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(30px);
  animation: titleGradient 8s ease infinite;
}

@keyframes titleGradient {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-text);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.about-text p {
  margin-bottom: var(--space-md);
}

.skills-container {
  margin-top: var(--space-xl);
  opacity: 0;
  transform: translateY(30px);
}

.skills-container h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  padding: 0 var(--space-md);
}

.skill-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.skill-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-item:hover::before {
  left: 100%;
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
  transform: scale(1.2);
}

.skill-item h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.skill-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.about-footer {
  margin-top: var(--space-xl);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-muted);
  position: relative;
  display: inline-block;
  padding: 0 var(--space-md);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.quote::before,
.quote::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-text-muted), transparent);
}

.quote::before {
  left: -20px;
}

.quote::after {
  right: -20px;
}

/* 添加响应式设计 */
@media (max-width: 768px) {
  .about-container {
    padding: var(--space-lg) 0;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-text {
    font-size: 1rem;
    padding: 0 var(--space-sm);
  }
  
  .quote {
    font-size: 1rem;
    padding: 0 var(--space-sm);
  }
}

/* 添加过渡装饰元素 */
.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(26, 27, 46, 0.3)
  );
  pointer-events: none;
  z-index: 2;
}

/* 优化背景渐变过渡 */
.particle-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(26, 27, 46, 0.4)
  );
  pointer-events: none;
}

/* 优化滚动体验 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-xl);
}

/* 添加响应式过渡调整 */
@media (max-width: 768px) {
  .hero-section {
    margin-bottom: -5vh;
  }
  
  .cards-section,
  .about-section {
    margin-top: -5vh;
    padding-top: calc(var(--space-lg) + 5vh);
  }
  
  .section-divider {
    height: 10vh;
  }
}

/* 添加装饰性元素 */
.transition-decoration {
  position: absolute;
  width: 100%;
  height: 20vh;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 20, 147, 0.05), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.05), transparent 40%);
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
}

.cards-section .transition-decoration {
  bottom: 0;
  transform: translateY(50%);
}

.about-section .transition-decoration {
  top: 0;
  transform: translateY(-50%);
}

/* 调整响应式布局 */
@media (max-width: 768px) {
  .cards-section::after,
  .about-section::before {
    height: 40vh;
  }
  
  .transition-decoration {
    height: 15vh;
  }
}

/* 作品集详情页样式 */
.articles-page {
  min-height: 100vh;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(26, 27, 46, 0.4)
  );
}

.articles-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(30px);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-md);
  background: linear-gradient(45deg, #ff1493, #ff69b4, #00ffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGradient 8s ease infinite;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: 0 auto;
  max-width: 1400px;
  padding: var(--space-lg) 0;
}

.article-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.article-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}

.article-content {
  padding: var(--space-md);
}

.article-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.article-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-tag {
  font-size: 0.8rem;
  padding: 0.2rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
}

.articles-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.explore-text {
  font-size: 1.2rem;
  color: var(--color-text);
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
}

.explore-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover .explore-text::after,
.card:focus .explore-text::after {
  transform: scaleX(1);
}

/* 博客页面样式 */
.blog-page {
  min-height: 100vh;
  padding: var(--space-xl) var(--space-md);
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(26, 27, 46, 0.6)
  );
}

/* 优化博客头部 */
.blog-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.blog-header::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-text-muted), transparent);
}

.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  position: relative;
}

.blog-grid {
  display: grid;
  gap: var(--space-lg);
}

.blog-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-md);
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-title {
  font-size: 1.5rem;
  color: var(--color-text);
  margin: 0;
  background: linear-gradient(45deg, #ff1493, #ff69b4, #00ffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-title {
  background-position: right center;
}

.blog-excerpt {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-meta i {
  font-size: 1.1rem;
  opacity: 0.8;
}

.blog-sidebar {
  position: sticky;
  top: var(--space-lg);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.search-box {
  position: relative;
  margin-bottom: var(--space-lg);
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  padding-left: 2.8rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.6;
  pointer-events: none;
}

.category-list h2,
.tag-cloud h2 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.category-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.category-list a:hover,
.category-list a.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
}

.tag {
  padding: 0.3rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tag::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2),
    transparent 70%
  );
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}

.tag:hover::before {
  transform: translate(-50%, -50%) scale(2);
}

/* 添加加载动画 */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .blog-container {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    position: static;
    margin-top: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .blog-card {
    grid-template-columns: 1fr;
  }
  
  .blog-image {
    height: 200px;
  }
}

/* 404页面样式 */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.error-page h1 {
  font-size: clamp(6rem, 20vw, 12rem);
  margin: 0;
  background: linear-gradient(45deg, #ff1493, #ff69b4, #00ffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.error-page p {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin: var(--space-md) 0 var(--space-lg);
}

.back-home {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-home:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 星空背景 */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 1s infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.2;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 404页面样式 */
.error-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.error-content {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.error-page h1 {
    font-size: 6rem;
    margin: 0;
    color: #fff;
}

.error-page p {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.error-page .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.error-page .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
} 