/* Modern Dark Blog Styling - Huawei-inspired design */
:root {
  --primary-color: #00bcd4;
  --secondary-color: #7e57c2;
  --dark-color: #000000;
  --darker-color: #000000;
  --light-accent: #111111;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  --nav-width: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(-45deg, #1a0f2e, #0f1f3d, #1a1035, #0d2847, #1e0b3d);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  overflow-x: hidden;
  position: relative;
}

/* 动态渐变背景动画 */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 粒子背景容器 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle 200px at 20% 50%, rgba(0, 188, 212, 0.18) 0%, transparent 70%),
    radial-gradient(circle 180px at 80% 80%, rgba(126, 87, 194, 0.18) 0%, transparent 70%),
    radial-gradient(circle 150px at 40% 20%, rgba(0, 188, 212, 0.15) 0%, transparent 65%),
    radial-gradient(circle 160px at 60% 70%, rgba(126, 87, 194, 0.16) 0%, transparent 68%),
    radial-gradient(circle 140px at 15% 85%, rgba(0, 188, 212, 0.14) 0%, transparent 65%),
    radial-gradient(circle 170px at 90% 30%, rgba(126, 87, 194, 0.17) 0%, transparent 70%),
    radial-gradient(circle 155px at 50% 10%, rgba(0, 188, 212, 0.15) 0%, transparent 66%),
    radial-gradient(circle 165px at 75% 50%, rgba(126, 87, 194, 0.16) 0%, transparent 68%),
    radial-gradient(circle 175px at 30% 90%, rgba(0, 188, 212, 0.17) 0%, transparent 69%),
    radial-gradient(circle 145px at 95% 65%, rgba(126, 87, 194, 0.15) 0%, transparent 67%);
  animation: particleFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.5;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.55;
  }
}

/* Main Content */
.content {
  width: 100%;
  margin-left: 0;
  position: relative;
  z-index: 2;
}

/* Sections - Full screen with snap scrolling */
section {
  min-height: 100vh;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

section .content-wrapper {
  max-width: 1400px;
  width: 90%;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

section.in-view .content-wrapper {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  position: relative;
  font-weight: 300;
  letter-spacing: -0.5px;
  text-shadow: 
    0 0 15px rgba(0, 188, 212, 0.4),
    0 0 25px rgba(0, 188, 212, 0.2);
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 
      0 0 15px rgba(0, 188, 212, 0.4),
      0 0 25px rgba(0, 188, 212, 0.2);
  }
  to {
    text-shadow: 
      0 0 20px rgba(0, 188, 212, 0.6),
      0 0 35px rgba(0, 188, 212, 0.3),
      0 0 45px rgba(0, 188, 212, 0.1);
  }
}

section h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  bottom: -15px;
  left: 0;
  border-radius: 2px;
}

/* Home Banner - Full screen splash */
#home {
  background-color: var(--dark-color);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

/* 添加动态光效背景 */
#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(0, 188, 212, 0.05) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(126, 87, 194, 0.05) 50%, transparent 70%);
  animation: diagonalMove 15s linear infinite;
  z-index: 0;
}

.banner {
  text-align: left;
  padding: 0;
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 1;
}

.full-height {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner h1 {
  font-size: 6rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.1;
  background: linear-gradient(to right, var(--text-primary), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease 0.3s forwards, neonPulse 3s ease-in-out infinite;
  text-shadow: 
    0 0 10px rgba(0, 188, 212, 0.5),
    0 0 20px rgba(0, 188, 212, 0.3),
    0 0 30px rgba(0, 188, 212, 0.2);
  position: relative;
}

/* 霓虹脉冲效果 */
@keyframes neonPulse {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 20px rgba(0, 188, 212, 0.4));
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(0, 188, 212, 0.6));
  }
}

.banner p {
  font-size: 1.8rem;
  max-width: 600px;
  margin: 0;
  font-weight: 300;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease 0.6s forwards;
  line-height: 1.5;
  padding-bottom: 10px; /* Add padding to ensure descenders like 'g' are fully visible */
}

/* About Section - Full screen with centered content */
#about {
  background-color: var(--dark-color);
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(0, 188, 212, 0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(126, 87, 194, 0.15), transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

#about .content-wrapper {
  position: relative;
  z-index: 1;
}

#about p {
  font-size: 1.4rem;
  max-width: 800px;
  margin-bottom: 3rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Resume styling */
.resume-container {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  margin: 3rem 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateX(5deg);
  transition: all 0.5s ease;
}

.resume-container:hover {
  transform: perspective(1000px) rotateX(0);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.8);
}

.resume-frame {
  width: 100%;
  height: 100%;
  border: none;
  background-color: rgba(20, 20, 20, 0.7);
}

/* Blog Section - Full screen grid layout */
#blog {
  background-color: var(--dark-color);
  position: relative;
  overflow: hidden;
}

#blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(0, 188, 212, 0.05) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(126, 87, 194, 0.05) 50%, transparent 70%);
  animation: diagonalMove 15s linear infinite;
  z-index: 0;
}

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

#blog .content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Blog Directory */
.blog-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.blog-card {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: calc(0.1s * var(--i, 0));
}

.blog-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 188, 212, 0.2);
  border-color: rgba(0, 188, 212, 0.3);
}

.blog-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
}

.blog-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
}

.blog-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(0, 188, 212, 0.1);
  border-radius: 20px;
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex: 1;
  line-height: 1.8;
}

.blog-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  position: relative;
  padding-bottom: 5px;
  overflow: hidden;
}

.blog-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: -100%;
  background-color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.blog-link:hover::after {
  left: 0;
}

.arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.blog-link:hover .arrow {
  transform: translateX(5px);
}

.blog-navigation {
  text-align: center;
  margin-top: 4rem;
}

.blog-archive-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.blog-archive-link:hover {
  background-color: rgba(0, 188, 212, 0.2);
  color: var(--primary-color);
  border-color: rgba(0, 188, 212, 0.3);
  box-shadow: 0 5px 20px rgba(0, 188, 212, 0.2);
  transform: translateY(-3px);
}

.blog-archive-link .arrow {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.blog-archive-link:hover .arrow {
  transform: translateX(5px);
}

/* Social Media Links */
.author-social-links {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-social-links h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.social-icon:hover {
  background-color: rgba(0, 188, 212, 0.15);
  color: var(--primary-color);
  border-color: rgba(0, 188, 212, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Customize icons for Chinese platforms */
.fa-bilibili:before {
  content: "\e3d3";
}

.fa-zhihu:before {
  content: "\e698";
}

/* Social Media Platform Showcase */
.social-showcase {
  padding: 3rem;
}

.social-intro {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 700px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.platform-card {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  height: 100%;
  position: relative;
  backdrop-filter: blur(10px);
  animation: cardFloat calc(3s + var(--i) * 0.5s) ease-in-out infinite;
}

/* 卡片浮动动画 */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg);
  }
}

.platform-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 188, 212, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
  z-index: 0;
}

.platform-card:hover::before {
  opacity: 1;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.platform-card:hover {
  transform: translateY(-15px) scale(1.02) rotateX(5deg);
  box-shadow: 
    0 20px 40px rgba(0, 188, 212, 0.3),
    0 0 60px rgba(0, 188, 212, 0.2),
    inset 0 0 20px rgba(0, 188, 212, 0.1);
  border-color: rgba(0, 188, 212, 0.5);
  background-color: rgba(0, 0, 0, 0.6);
}

.platform-icon {
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.platform-card:hover .platform-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 
    0 10px 30px rgba(0, 188, 212, 0.4),
    0 0 40px rgba(0, 188, 212, 0.2);
}

.bilibili-icon {
  color: #00a1d6;
  background-color: rgba(0, 161, 214, 0.15);
}

.zhihu-icon {
  color: #0084ff;
  background-color: rgba(0, 132, 255, 0.15);
}

.github-icon {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
}

.xiaohongshu-icon {
  color: #ff2442;
  background-color: rgba(255, 36, 66, 0.18);
}

.platform-details {
  position: relative;
  z-index: 1;
}

.platform-details h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  position: relative;
}

.platform-details h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.platform-details p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.platform-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.platform-link {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  margin-top: auto;
  white-space: nowrap;
}

.platform-link:hover {
  background-color: rgba(0, 188, 212, 0.2);
  border-color: rgba(0, 188, 212, 0.4);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.platform-link .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
  display: inline;
}

.platform-link:hover .arrow {
  transform: translateX(5px);
}

.email-display {
  margin-bottom: 1.5rem;
}

.email-address {
  color: var(--primary-color);
  font-family: monospace;
  font-size: 1rem;
}

/* Keep the existing email-container class for other cases */
.email-container {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.copy-email-btn {
  background-color: rgba(0, 188, 212, 0.2);
  color: var(--primary-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.copy-email-btn:hover {
  background-color: rgba(0, 188, 212, 0.4);
  transform: translateY(-2px);
}

.contact-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.contact-note h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-note p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
  
  .social-showcase {
    padding: 2rem;
  }
  
  .platform-card {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealText {
  from {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .banner h1 {
    font-size: 5rem;
  }
  
  section h2 {
    font-size: 3rem;
  }
}

@media (max-width: 900px) {
  .banner h1 {
    font-size: 4rem;
  }
  
  .banner p {
    font-size: 1.5rem;
  }
  
  section h2 {
    font-size: 2.5rem;
  }
  
  .blog-directory {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .platform-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .resume-container {
    height: 450px;
  }
}

@media (max-width: 600px) {
  .banner h1 {
    font-size: 3rem;
  }
  
  .banner p {
    font-size: 1.2rem;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .resume-container {
    height: 350px;
  }
  
  #about p {
    font-size: 1.1rem;
  }
  
  .blog-directory {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 188, 212, 0.5);
}

/* Blog post page specific styles */
.blog-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-post-header {
  margin-bottom: 3rem;
}

.blog-post-header h1 {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.blog-post-meta {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-post-meta .date {
  color: var(--text-secondary);
}

.blog-post-meta .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-post-meta .tag {
  background-color: rgba(0, 188, 212, 0.15);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.blog-post-content p {
  margin-bottom: 1.8rem;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.1rem;
}

.blog-post-content h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.blog-post-content h3 {
  font-size: 1.6rem;
  margin: 2rem 0 1.2rem;
  color: var(--text-primary);
}

.blog-post-content pre {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-post-content code {
  font-family: 'Consolas', 'Monaco', monospace;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.blog-post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prev-post, .next-post {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.prev-post:hover, .next-post:hover {
  color: var(--primary-color);
  background-color: rgba(0, 188, 212, 0.1);
  border-color: rgba(0, 188, 212, 0.2);
}

.prev-post .arrow {
  margin-right: 8px;
  transform: rotate(180deg);
}

.next-post .arrow {
  margin-left: 8px;
}

/* Back to home link */
.back-to-home {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.8rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.back-to-home .arrow {
  margin-right: 8px;
  transform: rotate(180deg);
}

.back-to-home:hover {
  color: var(--primary-color);
  background-color: rgba(0, 188, 212, 0.1);
  border-color: rgba(0, 188, 212, 0.2);
}

/* ========== 额外炫酷特效 ========== */

/* 页面滚动视差效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 添加流光边框效果 */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 为sections添加入场动画 */
section {
  animation: sectionFadeIn 1s ease-out;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 添加光标追踪光晕效果（不影响点击） */
body::after {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 增强按钮和链接的发光效果 */
a, button {
  position: relative;
  overflow: hidden;
}

a::after, button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 188, 212, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

a:hover::after, button:hover::after {
  width: 300px;
  height: 300px;
}

/* 为文本添加微妙的呼吸效果 */
.banner p {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

/* 星空点缀效果 */
.content::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 90%, white, transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: twinkle 8s ease-in-out infinite;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    background-position: 0% 0%;
  }
  50% {
    opacity: 0.5;
    background-position: 100% 100%;
  }
}