/* 基础变量 */
:root {
  --primary-light: #8a6cff;
  --secondary-light: #a29bfe;
  --text_light: #2c234c;
  --bg_light: #ffffff;
  --card_light: #f8f9fa;
  --accent_light: #ff9776;
  --primary_dark: #9b59b6;
  --secondary_dark: #8e44ad;
  --text_dark: #ecf0f1;
  --bg_dark: #121212;
  --card_dark: #1e1e1e;
  --accent_dark: #e84393;
  --transition_fast: 0.3s ease;
  --transition_medium: 0.5s ease;
  --transition_slow: 0.8s ease;
  --font_main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font_secondary: "Arial", sans-serif;
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font_main);
  overflow-x: hidden;
  background-color: var(--bg_light);
  color: var(--text_light);
  transition: background-color var(--transition_fast), color var(--transition_fast);
}

body.dark-mode {
  background-color: var(--bg_dark);
  color: var(--text_dark);
}

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

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

/* 页面加载动画 */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg_light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.dark-mode .page-loader {
  background-color: var(--bg_dark);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader:before,
.loader:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary_light);
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.loader:after {
  animation-delay: -1s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
}

body.dark-mode .loader:before,
body.dark-mode .loader:after {
  background-color: var(--primary_dark);
}

/* 自定义鼠标指针 */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary_light);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary_light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
  mix-blend-mode: difference;
}

body.dark-mode .cursor {
  background-color: var(--primary_dark);
}

body.dark-mode .cursor-follower {
  border-color: var(--primary_dark);
}

/* 主题切换按钮 */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

body.dark-mode .theme-toggle {
  background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
}

.theme-toggle i {
  color: white;
  font-size: 1.8rem;
  transition: transform 0.5s ease;
}

.theme-toggle .fa-sun {
  display: none;
}

body.dark-mode .theme-toggle .fa-moon {
  display: none;
}

body.dark-mode .theme-toggle .fa-sun {
  display: block;
}

.theme-toggle:hover i {
  transform: rotate(360deg);
}

/* 头部导航 */
.header {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background var(--transition_fast), box-shadow var(--transition_fast), transform 0.5s ease;
}

body.dark-mode .header {
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header.hidden {
  transform: translateY(-100%);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary_light);
  transition: color var(--transition_fast), transform var(--transition_fast);
}

.logo:hover {
  transform: scale(1.05);
}

.logo span {
  font-weight: 300;
  font-size: 1.2rem;
  opacity: 0.8;
}

body.dark-mode .logo {
  color: var(--primary_dark);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--text_light);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: color var(--transition_fast), background var(--transition_fast), transform var(--transition_fast);
}

.nav a:hover {
  transform: translateY(-3px);
}

body.dark-mode .nav a {
  color: var(--text_dark);
}

.nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary_light);
  transition: width var(--transition_fast), left var(--transition_fast);
}

body.dark-mode .nav a::before {
  background-color: var(--primary_dark);
}

.nav a:hover::before {
  width: 80%;
  left: 10%;
}

.nav a.active {
  color: var(--primary_light);
  background-color: rgba(138, 108, 255, 0.1);
}

body.dark-mode .nav a.active {
  color: var(--primary_dark);
  background-color: rgba(155, 89, 182, 0.2);
}

/* 通用部分样式 */
.section {
  min-height: 100vh;
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
}

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

.section-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  color: var(--text_light);
  transition: color var(--transition_fast);
}

body.dark-mode .section-title {
  color: var(--text_dark);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary_light);
  border-radius: 2px;
  transition: background var(--transition_fast);
}

body.dark-mode .section-title::after {
  background: var(--primary_dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  transition: color var(--transition_fast);
}

body.dark-mode .section-subtitle {
  color: #aaa;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* 首页全屏部分 */
.fullscreen-section {
  height: 100vh;
  padding: 0;
  background: url("./imag/845283.png") no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1;
}

.greeting {
  width: 100%;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.greeting h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 10px;
  opacity: 0.9;
}

.greeting h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(45deg, #fff, var(--accent_light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientText 8s ease infinite;
}

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

.greeting p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  max-width: 500px;
  line-height: 1.6;
}

.visitor-count {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.visitor-count span {
  font-weight: bold;
  color: var(--accent_light);
  display: inline-block;
  animation: pulse 2s infinite;
}

.action-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition_fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.5s ease;
  transform: skewX(-15deg);
}

.btn:hover::before {
  transform: translateX(200%) skewX(-15deg);
}

.btn-primary {
  background: var(--primary_light);
  color: white;
  box-shadow: 0 5px 15px rgba(138, 108, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(138, 108, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px) scale(1.05);
}



.character-img {
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(1deg);
  }
  50% {
    transform: translateY(-20px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.character-side {
  position: absolute;
  bottom: 0;
  right: 5%;
  height: 60%;
  z-index: 0;
  display: flex;
  align-items: flex-end;
}

.character-side .character-img {
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
  animation: floatSide 8s ease-in-out infinite;
}

@keyframes floatSide {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) translateX(5px) rotate(2deg);
  }
  50% {
    transform: translateY(-15px) translateX(0) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) translateX(-5px) rotate(-2deg);
  }
}

/* 博客部分 */
.blog-slider {
  width: 100%;
  padding-bottom: 50px;
  margin-top: 30px;
}

.swiper-container {
  overflow: visible;
  position: relative;
  padding: 20px 10px;
}
.blog-card {
  background: var(--card_light);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 350px;
  width: 100%;
}

.blog-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.blog-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
  transition: color var(--transition_fast);
}

body.dark-mode .blog-date {
  color: #777;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text_light);
  transition: color var(--transition_fast), transform var(--transition_fast);
}

.blog-card:hover .blog-content h3 {
  transform: translateX(5px);
  color: var(--primary_light);
}

body.dark-mode .blog-content h3 {
  color: var(--text_dark);
}

body.dark-mode .blog-card:hover .blog-content h3 {
  color: var(--primary_dark);
}

.blog-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
  transition: color var(--transition_fast);
}

body.dark-mode .blog-content p {
  color: #aaa;
}

.read-more {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary_light);
  font-weight: 500;
  transition: color var(--transition_fast), transform var(--transition_fast);
}

.read-more:hover {
  transform: translateX(5px);
}

body.dark-mode .read-more {
  color: var(--primary_dark);
}

.read-more i {
  transition: transform var(--transition_fast);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* 分享部分 */
.dark-section {
  background: url("./imag/350626.png") no-repeat center center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.dark-section .section-title,
.dark-section .section-subtitle {
  color: white;
}
/* 博客部分 */
.blog-container {
  background: url("./imag/2PvxbRjv.jpeg") no-repeat center center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.share-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  z-index: 1;
}

.share-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition_fast), box-shadow var(--transition_fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary_light);
}

body.dark-mode .share-item:hover {
  border-color: var(--primary_dark);
}

.share-icon {
  width: 80px;
  height: 80px;
  background: var(--primary_light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(138, 108, 255, 0.4);
  transition: transform 0.5s ease, background 0.3s ease;
}

.share-item:hover .share-icon {
  transform: rotateY(180deg);
}

body.dark-mode .share-icon {
  background: var(--primary_dark);
  box-shadow: 0 10px 20px rgba(155, 89, 182, 0.4);
}

.share-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: transform var(--transition_fast);
}

.share-item:hover h3 {
  transform: translateY(-5px);
}

.share-item p {
  line-height: 1.6;
  opacity: 0.9;
  transition: opacity var(--transition_fast);
}

.share-item:hover p {
  opacity: 1;
}

/* 画廊部分 */
.gallery-container {
 display: flex;
 flex-direction: column;
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition_fast), transform var(--transition_fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* 页脚 */
.footer {
  background: var(--text_light);
  color: white;
  padding: 50px 5% 20px;
  transition: background var(--transition_fast);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary_light), var(--accent_light));
}

body.dark-mode .footer {
  background: #0a0a0a;
}

body.dark-mode .footer::before {
  background: linear-gradient(to right, var(--primary_dark), var(--accent_dark));
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  transition: transform var(--transition_fast);
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo span {
  font-weight: 300;
  font-size: 1.4rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition_fast), transform var(--transition_fast);
}

.footer-links a:hover {
  color: white;
  transform: translateY(-3px);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: background var(--transition_fast), transform var(--transition_fast);
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.5s ease;
  transform: skewX(-15deg);
}

.footer-social a:hover::before {
  transform: translateX(200%) skewX(-15deg);
}

.footer-social a:hover {
  background: var(--primary_light);
  transform: translateY(-5px) rotate(360deg);
}

body.dark-mode .footer-social a:hover {
  background: var(--primary_dark);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .ookk{
    display: none;
  }
  html {
    font-size: 15px;
  }

  .content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .greeting {
    margin: 0 auto;
  }

  .action-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .header {
    padding: 15px 3%;
  }

  .section {
    padding: 80px 3%;
  }

  .nav {
    gap: 15px;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .character-side {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-links,
  .footer-social {
    justify-content: center;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .greeting h1 {
    font-size: 3rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

/* 滑动器样式 */
.swiper-container {
  overflow: visible;
  position: relative;
  padding: 20px 10px;
}
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--primary_light);
  opacity: 0.5;
  transition: all var(--transition_fast);
}

.swiper-pagination-bullet-active {
  opacity: 1;
  width: 30px;
  border-radius: 6px;
}

body.dark-mode .swiper-pagination-bullet {
  background: var(--primary_dark);
}

/* 移动端菜单 */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--text_light);
  margin: 6px auto;
  transition: all 0.3s ease;
}

body.dark-mode .mobile-menu-toggle span {
  background: var(--text_dark);
}

body.menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 110vh;
    background: var(--bg_light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s ease;
    z-index: 100;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }

  body.dark-mode .nav {
    background: var(--bg_dark);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }

  body.menu-open .nav {
    right: 0;
  }

  .nav a {
    width: 100%;
    text-align: center;
    margin: 10px;
    padding: 15px;
    font-size: 1.2rem;
    margin: 15px 0;
  }
}

/* 添加到你的styles.css文件末尾 */

/* 主题切换过渡效果 */
.theme-transition {
  animation: themeTransition 1s ease;
}

@keyframes themeTransition {
  0% {
    filter: blur(0);
    transform: scale(1);
  }
  50% {
    filter: blur(5px);
    transform: scale(1.02);
  }
  100% {
    filter: blur(0);
    transform: scale(1);
  }
}

.theme-switching * {
  transition: all 0.5s ease !important;
}

/* 暗色模式下的特殊效果 */
body.dark-mode .blog-card:hover {
  box-shadow: 0 15px 40px rgba(155, 89, 182, 0.4);
  transform: translateY(-10px) scale(1.02) rotateY(5deg);
}

body.dark-mode .gallery-item:hover {
  box-shadow: 0 15px 40px rgba(155, 89, 182, 0.4);
  transform: translateY(-10px) scale(1.03) rotateX(3deg);
}

body.dark-mode .share-item {
  backdrop-filter: blur(15px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.5s ease;
}

body.dark-mode .share-item:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 50px rgba(155, 89, 182, 0.5);
}

body.dark-mode .character-side .character-img {
  filter: drop-shadow(0 0 25px rgba(155, 89, 182, 0.6));
  animation: floatSideDark 8s ease-in-out infinite;
}

@keyframes floatSideDark {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-15px) translateX(10px) rotate(3deg) scale(1.05);
  }
  50% {
    transform: translateY(-20px) translateX(0) rotate(0deg) scale(1.1);
  }
  75% {
    transform: translateY(-10px) translateX(-10px) rotate(-3deg) scale(1.05);
  }
}

/* 暗色模式下的按钮特效 */
body.dark-mode .btn-primary {
  background: linear-gradient(45deg, var(--primary_dark), var(--secondary_dark));
  box-shadow: 0 10px 25px rgba(155, 89, 182, 0.5);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, background 0.5s ease;
}

body.dark-mode .btn-primary:hover {
  background: linear-gradient(45deg, var(--secondary_dark), var(--primary_dark));
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 15px 30px rgba(155, 89, 182, 0.7);
}

body.dark-mode .btn-secondary {
  border: 2px solid var(--primary_dark);
  box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

body.dark-mode .btn-secondary:hover {
  background: rgba(155, 89, 182, 0.2);
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 10px 20px rgba(155, 89, 182, 0.5);
}

/* 暗色模式下的导航特效 */
body.dark-mode .nav a:hover {
  transform: translateY(-5px) scale(1.1);
  text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

body.dark-mode .nav a.active {
  background-color: rgba(155, 89, 182, 0.3);
  box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

/* 暗色模式下的文本特效 */
body.dark-mode .section-title {
  text-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}

body.dark-mode .greeting h1 {
  background: linear-gradient(45deg, #fff, var(--accent_dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}
/* 修改博客部分的布局 */

/* 修改画廊部分的布局 */

/* 响应式调整 */
@media (max-width: 768px) {
  .blog-card {
    max-width: 100%;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }
}

/* 改善整体页面协调性的额外样式 */

/* 统一卡片样式 */
.blog-card,
.share-item,
.gallery-item {
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease;
}

/* 统一间距 */
.section {
  padding: 120px 5% 100px;
}

/* 改善首页部分 */
.fullscreen-section {
  padding: 0;
}

.greeting {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* 改善分享部分 */
.share-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.share-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 30px;
}

/* 改善暗色模式下的视觉效果 */
body.dark-mode .blog-card,
body.dark-mode .share-item,
body.dark-mode .gallery-item {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(155, 89, 182, 0.2);
}

body.dark-mode .greeting {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(155, 89, 182, 0.3);
}

/* 统一动画效果 */
.blog-card,
.share-item,
.gallery-item,
.btn,
.nav a,
.theme-toggle {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 改善字体对比度 */
body.dark-mode .blog-content p,
body.dark-mode .section-subtitle {
  color: rgba(236, 240, 241, 0.7);
}

/* 改善按钮样式 */
.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary_light), var(--secondary_light));
}

body.dark-mode .btn-primary {
  background: linear-gradient(45deg, var(--primary_dark), var(--secondary_dark));
}

/* 改善导航栏 */
.header {
  backdrop-filter: blur(10px);
}

.nav a {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 改善页脚 */
.footer {
  padding-top: 80px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .section {
    padding: 100px 4% 80px;
  }

  .greeting {
    padding: 25px;
  }
}
/* 彩蛋相关样式 */
.easter-egg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  backdrop-filter: blur(10px);
}

.easter-egg-container.active {
  opacity: 1;
  visibility: visible;
}

.easter-egg-content {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

body.dark-mode .easter-egg-content {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.easter-egg-container.active .easter-egg-content {
  transform: scale(1);
}

.easter-egg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
}

.easter-egg-header h2 {
  color: white;
  margin: 0;
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.close-easter-egg {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.close-easter-egg:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.easter-egg-body {
  color: white;
}

.easter-egg-message {
  text-align: center;
  margin-bottom: 30px;
}

.easter-egg-message p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hearts-counter {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 15px;
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.easter-egg-characters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.easter-egg-character {
  width: 120px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.easter-egg-character:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.easter-egg-character img {
  height: 100px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.easter-egg-character.dancing img {
  animation: characterDance 1s infinite alternate;
}

@keyframes characterDance {
  0% {
    transform: translateY(0) rotate(-5deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(5deg);
  }
  75% {
    transform: translateY(-5px) rotate(-5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.character-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.easter-egg-character.collected .character-heart {
  opacity: 1;
  transform: scale(1);
}

.secret-message {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  margin-top: 30px;
  display: none;
  animation: secretReveal 1s ease;
}

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

.secret-message h3 {
  color: #ffdd59;
  margin-top: 0;
}

.secret-code {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 15px 0;
  letter-spacing: 3px;
  color: #ffdd59;
  text-shadow: 0 0 10px rgba(255, 221, 89, 0.5);
}

/* 角色雨效果 */
.character-rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.falling-character {
  position: absolute;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 9999;
  pointer-events: none;
  animation: falling linear infinite;
}

@keyframes falling {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}

/* 特殊效果 */
.special-effect-active {
  animation: specialPulse 2s infinite;
}

@keyframes specialPulse {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .easter-egg-header h2 {
    font-size: 1.4rem;
  }
  
  .easter-egg-characters {
    gap: 10px;
  }
  
  .easter-egg-character {
    width: 100px;
    height: 130px;
  }
  
  .easter-egg-character img {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .easter-egg-content {
    padding: 20px;
  }
  
  .easter-egg-header h2 {
    font-size: 1.2rem;
  }
  
  .easter-egg-character {
    width: 80px;
    height: 110px;
  }
  
  .easter-egg-character img {
    height: 60px;
  }
}
