/* 雁山老司机导航页 - 主样式表 */

/* 页面加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 基础样式 - 深色渐变背景 */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #16213e 100%);
  background-size: 400% 400%;
  animation: gradientFlow 20s ease infinite, fadeIn 0.5s ease;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* 动态渐变流动动画 - 更慢更柔和 */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 背景动画容器 */
#bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* 粒子元素 - 鲜艳色调 */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.6);
  pointer-events: none;
  will-change: transform, opacity;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* 几何图形元素 - 鲜艳色调 */
.geometric-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.2;
  will-change: transform, opacity;
}

.geometric-shape.circle {
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.geometric-shape.square {
  border: 2px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
  transform: rotate(45deg);
}

/* 渐变光效 - 鲜艳色调 */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.3;
}

/* 星星闪烁效果 - 增强版 */
.star {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  animation: starTwinkle 3s ease-in-out infinite;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

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

/* 流星效果 */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
  transform-origin: right;
}

@keyframes shootingStar {
  0% {
    transform: translate(0, 0) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translate(-300px, 300px) rotate(-45deg);
    opacity: 0;
  }
}

/* 鼠标光晕效果 - 鲜艳色调 */
#mouse-glow {
  position: fixed;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3), rgba(96, 165, 250, 0.2), transparent);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 鼠标粒子尾迹 - 鲜艳色调 */
.mouse-particle {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.8);
  pointer-events: none;
  z-index: 9997;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.7);
}

/* 标题样式 - 优雅渐变 */
h1 {
  font-size: 3rem;
  margin-top: 5vh;
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(-50px);
  filter: drop-shadow(0 4px 12px rgba(96, 165, 250, 0.6));
  --line-width: 0%;
}

h1::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--line-width, 0%);
  height: 3px;
  background: linear-gradient(90deg, #a78bfa, #60a5fa, #34d399);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.8);
  transition: width 0.3s ease;
}

/* GitHub 图标样式 - 增强版 */
.github-icon {
  margin-left: 15px;
  color: #fff;
  font-size: 3rem;
  transition: all 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  display: inline-block;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.github-icon:hover {
  color: #ff33cc;
  transform: rotate(360deg) scale(1.1);
  filter: drop-shadow(0 0 15px rgba(255, 51, 204, 0.8));
}

.github-icon:active {
  transform: scale(0.95);
}

/* 内容容器 */
.content-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2vh;
  flex: 1;
  width: 100%;
}

/* 桌面环境下更紧凑的内容容器 */
@media (min-width: 769px) {
  .content-container {
    gap: 0.8rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
  }

  /* 当心情卡片隐藏时，让导航更宽 */
  .content-container.no-mood-card nav {
    max-width: 700px;
  }
}

/* 导航容器 */
nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 550px;
}

/* 导航链接样式 - 优雅卡片设计 */
a {
  text-decoration: none;
  font-size: 1.5rem;
  color: #fff;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(96, 165, 250, 0.2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  box-shadow:
    0 4px 16px rgba(96, 165, 250, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(50px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 左侧装饰条 */
a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0%;
  background: linear-gradient(180deg, #a78bfa, #60a5fa);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停状态 */
a:hover {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(96, 165, 250, 0.35));
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow:
    0 8px 24px rgba(96, 165, 250, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateX(8px);
}

a:hover::before {
  height: 100%;
}

/* 点击状态 */
a:active {
  transform: translateX(4px) scale(0.98);
  box-shadow:
    0 4px 12px rgba(96, 165, 250, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 页脚样式 - 优化版 */
footer {
  margin-top: auto;
  padding: 2vh 0;
  width: 100%;
  font-size: 0.8rem;
  background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neonGradient 3s ease infinite;
  filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.5));
}



/* 心情卡片样式 - 3D 悬浮效果 */
#mood-card-container {
  margin: 0;
  perspective: 1000px;
}

#mood-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 16px;
  width: 260px;
  box-shadow:
    0 8px 32px rgba(255, 102, 153, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* 卡片光效层 */
#mood-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

#mood-card:hover::before {
  left: 100%;
}

#mood-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 12px 48px rgba(255, 102, 153, 0.4),
    0 0 30px rgba(255, 0, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 桌面环境下更紧凑的心情卡片 */
@media (min-width: 769px) {
  #mood-card {
    width: 240px;
    padding: 0.8rem;
  }
}

#mood-text {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

/* 心情卡片图片样式 - 增强交互 */
.mood-image {
  display: block;
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto 10px auto;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mood-image:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 0, 255, 0.4);
  filter: brightness(1.1);
}

/* 图片浮层样式 */
.image-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
}

.image-overlay.active {
  display: flex;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: scale(0.8);
}

.image-overlay-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10001;
}

.image-overlay-close:hover {
  color: #ff33cc;
}



/* 收费指南表格样式 - 增强版 */
.price-guide-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem;
  box-shadow:
    0 8px 32px rgba(255, 102, 153, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 桌面环境下更紧凑的价格指南 */
@media (min-width: 769px) {
  .price-guide-container {
    padding: 0.8rem;
  }
}

.price-guide-title {
  background: linear-gradient(135deg, #0066cc, #003f8a);
  color: #fff;
  padding: 1rem;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 12px 12px 0 0;
  margin: -1rem -1rem 1rem -1rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 63, 138, 0.3);
}

.price-guide-title:hover {
  background: linear-gradient(135deg, #0077ee, #0055bb);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 63, 138, 0.4);
}

.price-guide-title::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  transition: transform 0.3s ease;
}

.price-guide-title.collapsed::after {
  transform: rotate(-90deg);
}

.price-guide-content {
  overflow: hidden;
  max-height: 2000px;
  opacity: 1;
}

.price-guide-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.user-notice {
  background: #f0f0f0;
  color: #333;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price-table th,
.price-table td {
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  text-align: left;
  transition: all 0.3s ease;
}

.price-table th {
  background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: #555;
}

.price-table tbody tr {
  transition: all 0.3s ease;
  position: relative;
}

.price-table tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.price-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.price-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(255, 0, 255, 0.05), rgba(0, 255, 255, 0.05));
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(255, 0, 255, 0.2);
}

.price-table tbody tr:hover::before {
  transform: scaleY(1);
}

.price-table tbody tr:hover td {
  color: #000;
}

.price-column {
  text-align: right;
  font-weight: bold;
  background: linear-gradient(45deg, #e91e63, #ff4081);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.1rem;
}

/* 移动端优化 - 增强版 */
@media (max-width: 768px) {
  /* 减少动画复杂度以提升性能 */
  body {
    animation-duration: 20s; /* 减慢背景动画 */
  }

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

  #mood-card {
    width: 90%;
    max-width: 320px;
    margin-bottom: 2vh;
  }

  h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  /* 简化标题特效以提升性能 */
  h1::before,
  h1::after {
    display: none;
  }

  nav {
    width: 90%;
    order: 2;
  }

  #mood-card-container {
    order: 0;
  }

  .price-guide-container {
    order: 1;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 90%;
    padding: 0.5rem;
  }

  .price-guide-title {
    font-size: 1.2rem;
    padding: 0.8rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .user-notice {
    font-size: 0.8rem;
    padding: 0.8rem;
  }

  /* 移动端按钮优化 - 添加触摸反馈 */
  a {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    -webkit-tap-highlight-color: rgba(255, 0, 255, 0.3);
  }

  /* 移动端触摸激活状态 */
  a:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, rgba(255, 102, 153, 0.6), rgba(255, 51, 204, 0.6));
  }

  footer {
    font-size: 0.7rem;
  }

  /* 移动端禁用鼠标光晕 */
  #mouse-glow {
    display: none;
  }

  /* 移动端简化视差效果 */
  .particle,
  .geometric-shape,
  .gradient-orb,
  .star {
    will-change: auto !important;
  }
}

/* 鼠标宠物样式 */
#mouse-pet {
  position: fixed;
  width: 150px;
  height: auto;
  pointer-events: none;
  z-index: 9999;
  display: block;
  transition: top 0.05s linear, left 0.05s linear;
  top: -100px;
  left: -100px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

