@import url('https://fonts.bunny.net/css?family=poppins:300,400,500,600,700');

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: url('/img/computer-background.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

@media only screen and (max-width: 768px) {
  body {
    background: url('/img/mobile-background.jpg') center/cover no-repeat;
    background-attachment: fixed;
  }
}

/* 动态背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 218, 185, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(221, 160, 221, 0.2) 0%, transparent 50%);
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

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

/* 心形动画 */
.heart {
  position: fixed;
  color: rgba(255, 182, 193, 0.8);
  font-size: 20px;
  animation: heartFloat 4s linear infinite;
  z-index: 1;
  pointer-events: none;
}

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

.container {
  margin-top: 30px;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

/* 主标题区域 */
.hero-section {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

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

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 20px;
  opacity: 0.9;
}

#timer {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 25px;
  display: inline-block;
  min-width: 300px;
}

/* 音乐控制器 */
.music-controller {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.music-controls {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: none;
  min-width: 200px;
}

.music-controls.show {
  display: block;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.volume-control input[type="range"] {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  background: #ff6b6b;
  border-radius: 50%;
  cursor: pointer;
}

.music-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: #ff6b6b;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
}

.time-display {
  font-size: 0.8rem;
  opacity: 0.8;
  min-width: 80px;
  text-align: center;
}

.music-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.music-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.music-controller:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.music-controller:active {
  transform: scale(0.95);
}

.music-controller i {
  color: white;
  font-size: 28px;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.music-controller.playing i {
  animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
  0%, 100% { 
    transform: scale(1); 
    color: white;
  }
  50% { 
    transform: scale(1.2); 
    color: #ffd700;
  }
}

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

/* 分类导航 */
.category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.category-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.category-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.category-btn i {
  font-size: 1.2rem;
}

/* 碎片日记轮播 */
.memory-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.memory-slide {
  display: none;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(50px);
  min-height: 400px;
}

.memory-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.memory-slide.flipping {
  transform: rotateY(180deg);
}

.memory-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 25px;
}


.memory-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  object-position: center center;
}

.memory-slide:hover img {
  transform: scale(1.05);
}

.memory-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 0 0 25px 25px;
  pointer-events: none;
}

.memory-slide:hover .memory-overlay {
  opacity: 1;
}

.memory-hint {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 8px 16px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.memory-slide:hover .memory-hint {
  transform: translateY(0);
}

/* 添加点击提示图标 */
.memory-hint::before {
  content: '💭';
  margin-right: 6px;
  font-size: 0.9rem;
}

.memory-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 25px 30px 30px;
  border-radius: 0 0 25px 25px;
  transition: all 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
}

.memory-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  border-radius: 3px 3px 0 0;
  opacity: 0.8;
}

.memory-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.memory-text {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memory-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.8;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.memory-meta span {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.memory-meta span:first-child {
  border-left: 3px solid #ff6b6b;
}

.memory-meta span:last-child {
  border-left: 3px solid #48dbfb;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* 应用卡片样式 */
.app-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
}

.app-card.deprecated {
  opacity: 0.6;
  background: rgba(200, 200, 200, 0.9);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(72, 219, 251, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.app-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-card.deprecated:hover {
  transform: translateY(-5px) scale(1.01);
}

.app-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.app-card.deprecated .app-icon {
  background: linear-gradient(45deg, #636e72, #b2bec3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.app-card:hover .app-title {
  color: #e74c3c;
  transform: scale(1.05);
}

.app-card.deprecated:hover .app-title {
  color: #636e72;
}

.app-description {
  color: #7f8c8d;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.app-badge {
  display: inline-block;
  padding: 5px 15px;
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-card.deprecated .app-badge {
  background: linear-gradient(45deg, #636e72, #b2bec3);
}

/* 分类内容区域 */
.category-content {
  display: none;
  margin-top: 40px;
}

.category-content.active {
  display: block;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-title {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.back-home-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
}

.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

/* 网格布局 */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.apps-section {
  display: none;
}

.apps-section.active {
  display: block;
}

/* 废弃应用提示 */
.deprecated-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.deprecated-modal.show {
  opacity: 1;
  visibility: visible;
}

.deprecated-content {
  background: white;
  border-radius: 25px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  color: #2c3e50;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.deprecated-modal.show .deprecated-content {
  transform: scale(1);
}

.deprecated-icon {
  font-size: 4rem;
  color: #636e72;
  margin-bottom: 20px;
}

.deprecated-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2c3e50;
}

.deprecated-message {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #7f8c8d;
  margin-bottom: 30px;
}

.deprecated-close {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.deprecated-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 移动端适配 */
@media only screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  #timer {
    font-size: 1.4rem;
    min-width: 250px;
    padding: 12px;
  }
  
  .container {
    margin-top: 20px;
    padding: 0 10px;
  }
  
  .hero-section {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .app-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .music-controller {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .music-controller i {
    font-size: 20px;
  }
  
  .music-controls {
    bottom: 75px;
    right: 15px;
    min-width: 180px;
  }
  
  .category-nav {
    gap: 10px;
  }
  
  .category-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .memory-image-container {
    height: 300px;
  }
  
  .memory-content {
    padding: 20px;
  }
  
  .memory-title {
    font-size: 1.5rem;
  }
  
  .memory-text {
    font-size: 1rem;
  }
  
  .carousel-nav {
    padding: 12px;
    font-size: 1.2rem;
  }
  
  .carousel-nav.prev {
    left: 10px;
  }
  
  .carousel-nav.next {
    right: 10px;
  }
}

/* iPhone 特定适配 */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .app-card {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-user-select: none;
  }
}

/* 加载动画 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* 特殊效果 */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: sparkle 2s linear infinite;
}

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

/* 日记视图样式 */
.diary-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  pointer-events: none;
}

.diary-view.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.diary-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.4) saturate(1.2);
  transform: scale(1.05);
  transition: all 0.6s ease;
}

.diary-view.show .diary-background {
  transform: scale(1);
}

.diary-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  backdrop-filter: blur(2px);
}

.diary-content {
  position: relative;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(25px);
  border-radius: 30px;
  padding: 50px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(0.85) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-image: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3) 1;
  border-image-slice: 1;
}

.diary-view.show .diary-content {
  transform: scale(1) translateY(0);
}

.diary-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 159, 243, 0.8));
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.diary-close:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 1), rgba(255, 159, 243, 1));
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

.diary-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(72, 219, 251, 0.8), rgba(102, 126, 234, 0.8));
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 8px 25px rgba(72, 219, 251, 0.3);
}

.diary-nav:hover {
  background: linear-gradient(135deg, rgba(72, 219, 251, 1), rgba(102, 126, 234, 1));
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(72, 219, 251, 0.5);
}

.diary-prev {
  left: 25px;
}

.diary-next {
  right: 25px;
}

.diary-text {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.diary-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
  text-shadow: 0 0 40px rgba(255, 107, 107, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.diary-paragraph {
  font-size: 1.3rem;
  line-height: 1.9;
  margin-bottom: 35px;
  opacity: 0.95;
  text-align: justify;
  font-weight: 300;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.diary-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  opacity: 0.8;
  padding-top: 25px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  margin-top: 30px;
}

.diary-date, .diary-location {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.diary-date {
  border-left: 4px solid #ff6b6b;
}

.diary-location {
  border-left: 4px solid #48dbfb;
}

/* 添加滚动条样式 */
.diary-content::-webkit-scrollbar {
  width: 8px;
}

.diary-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.diary-content::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #ff6b6b, #48dbfb);
  border-radius: 4px;
}

.diary-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #ff5252, #2196f3);
}

/* 导航高亮增强 */
.category-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-btn.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  border-radius: 25px;
  z-index: -1;
  opacity: 0.6;
  animation: gradientShift 3s ease infinite;
}

/* 翻转动画 */
.flip-animation {
  animation: flipCard 0.6s ease-in-out;
}

@keyframes flipCard {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }
}


