/* ===== 全局动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}
.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}
.animate-fade-in-right {
  animation: fadeInRight 0.8s ease forwards;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ===== Hero ===== */
.hero-title {
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ===== 导航栏 ===== */
#topNav {
  background: transparent;
  transition: all 0.3s ease;
}
#topNav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
#topNav.scrolled .nav-title,
#topNav.scrolled .nav-link {
  color: #1f2937;
}
#topNav:not(.scrolled) .nav-title,
#topNav:not(.scrolled) .nav-link {
  color: #fff;
}
#topNav:not(.scrolled) #mobileMenuBtn {
  color: #fff;
}
#topNav.scrolled #mobileMenuBtn {
  color: #1f2937;
}

/* ===== 概览卡片 ===== */
.overview-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}
.overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.overview-card .day-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--card-color-1), var(--card-color-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 每日行程区块 ===== */
.day-section {
  padding: 48px 0;
  position: relative;
}
.day-section:nth-child(odd) {
  background: #fafafa;
}
.day-section:nth-child(even) {
  background: #fff;
}
.day-header {
  position: relative;
  margin-bottom: 28px;
}
.day-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  margin-bottom: 12px;
}

/* ===== 景点卡片 ===== */
.spot-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  border: 1px solid #f0f0f0;
}
.spot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.spot-card .spot-img {
  height: 160px;
  overflow: hidden;
  position: relative;
}
.spot-card .spot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.spot-card:hover .spot-img img {
  transform: scale(1.08);
}
.spot-card .spot-img .spot-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(4px);
}
.spot-card .spot-body {
  padding: 20px;
}
.spot-card .spot-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.spot-card .spot-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 10px;
}
.spot-card .spot-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
}
.spot-card .spot-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spot-card .spot-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f9fafb;
  color: #6b7280;
}

/* ===== 紧凑景点卡片 ===== */
.spot-card-compact {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}
.spot-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.spot-img-compact {
  width: 120px;
  height: 100px;
  overflow: hidden;
}
.spot-img-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.spot-card-compact:hover .spot-img-compact img {
  transform: scale(1.06);
}

/* ===== 紧凑美食卡片 ===== */
.food-card-compact {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}
.food-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.food-img-compact {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.food-img-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 文本截断 ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 美食卡片 ===== */
.food-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}
.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.food-card .food-img {
  height: 140px;
  overflow: hidden;
}
.food-card .food-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.food-card:hover .food-img img {
  transform: scale(1.06);
}
.food-card .food-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.food-card .food-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.food-card .food-type {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 8px;
}
.food-card .food-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
  flex: 1;
}

/* ===== 时间线 ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
}
.timeline-item {
  position: relative;
  padding-bottom: 16px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid;
  background: white;
}
.timeline-item .time-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-item .time-content {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ===== 地图按钮 ===== */
.map-day-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}
.map-day-btn:hover {
  border-color: #FF6B9D;
  color: #FF6B9D;
}
.map-day-btn.active {
  background: linear-gradient(135deg, #FF6B9D, #C084FC);
  color: white;
  border-color: transparent;
}

/* ===== 贴士卡片 ===== */
.tip-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}
.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.tip-card .tip-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.tip-card .tip-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 6px;
}
.tip-card .tip-list {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.7;
}

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF6B9D, #C084FC);
  border-radius: 4px;
}

/* ===== 平滑滚动 ===== */
html {
  scroll-behavior: smooth;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .spot-card .spot-img {
    height: 140px;
  }
  .food-card .food-img {
    height: 120px;
  }
  .day-section {
    padding: 32px 0;
  }
  .spot-img-compact {
    width: 100px;
    height: 80px;
  }
  .food-img-compact {
    width: 56px;
    height: 56px;
  }
}