/* ============================================
   五一行程网页 - 响应式样式
   手机优先设计
   ============================================ */

/* ---- CSS变量 ---- */
:root {
  --color-day1: #e74c3c;
  --color-day2: #3498db;
  --color-day3: #f39c12;
  --color-day4: #9b59b6;
  --color-day5: #27ae60;
  --color-bg: #f5f7fa;
  --color-card: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #7f8c8d;
  --color-border: #e8ecf1;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* ---- 基础重置 ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ---- 头部 ---- */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px 16px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.header-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.header-subtitle {
  font-size: 14px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.header-stat {
  text-align: center;
}

.header-stat-value {
  font-size: 20px;
  font-weight: 700;
}

.header-stat-label {
  font-size: 11px;
  opacity: 0.8;
}

/* ---- 总览地图 ---- */
.overview-section {
  margin: -16px 16px 16px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.overview-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overview-title {
  font-size: 16px;
  font-weight: 600;
}

.overview-map-container {
  width: 100%;
  height: 280px;
  position: relative;
}

#overview-map {
  width: 100%;
  height: 100%;
}

.map-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: var(--color-text-light);
  text-align: center;
  padding: 20px;
}

.map-fallback p:first-child {
  font-size: 18px;
  margin-bottom: 8px;
}

/* ---- 静态路线图（无Key时显示） ---- */
.static-route-map {
  width: 100%;
  padding: 16px;
  background: #f8f9fa;
}

.static-route-title {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-text);
}

.static-route-path {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.static-route-node {
  display: flex;
  align-items: center;
  gap: 12px;
}

.static-route-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 0 0 2px currentColor;
}

.static-route-dot.start { color: #27ae60; background: #27ae60; }
.static-route-dot.day1 { color: #e74c3c; background: #e74c3c; }
.static-route-dot.day2 { color: #3498db; background: #3498db; }
.static-route-dot.day3 { color: #f39c12; background: #f39c12; }
.static-route-dot.day4 { color: #9b59b6; background: #9b59b6; }
.static-route-dot.end { color: #27ae60; background: #27ae60; }

.static-route-line {
  width: 2px;
  height: 24px;
  background: #ddd;
  margin-left: 6px;
}

.static-route-info {
  flex: 1;
  padding: 8px 0;
}

.static-route-name {
  font-size: 14px;
  font-weight: 600;
}

.static-route-detail {
  font-size: 12px;
  color: var(--color-text-light);
}

.static-route-nav-btn {
  padding: 4px 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---- 快速导航 ---- */
.quick-nav {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.quick-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-nav-btn.day-1 { background: var(--color-day1); }
.quick-nav-btn.day-2 { background: var(--color-day2); }
.quick-nav-btn.day-3 { background: var(--color-day3); }
.quick-nav-btn.day-4 { background: var(--color-day4); }
.quick-nav-btn.day-5 { background: var(--color-day5); }

/* ---- 日期卡片 ---- */
.day-card {
  margin: 0 16px 20px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.day-card:hover {
  box-shadow: var(--shadow-md);
}

.day-header {
  padding: 16px;
  color: white;
  position: relative;
}

.day-header.day-1 { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.day-header.day-2 { background: linear-gradient(135deg, #3498db, #2980b9); }
.day-header.day-3 { background: linear-gradient(135deg, #f39c12, #e67e22); }
.day-header.day-4 { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.day-header.day-5 { background: linear-gradient(135deg, #27ae60, #229954); }

.day-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.day-number {
  font-size: 28px;
  font-weight: 800;
  opacity: 0.3;
  line-height: 1;
}

.day-date {
  text-align: right;
}

.day-date-text {
  font-size: 14px;
  font-weight: 600;
}

.day-weekday {
  font-size: 12px;
  opacity: 0.8;
}

.day-theme {
  font-size: 15px;
  font-weight: 600;
}

.day-route-info {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.9;
}

/* ---- 时间轴 ---- */
.timeline {
  padding: 16px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-time {
  flex-shrink: 0;
  width: 60px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
  padding-top: 4px;
}

.timeline-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.timeline-item.type-drive .timeline-icon { border-color: #3498db; background: #ebf5fb; }
.timeline-item.type-sight .timeline-icon { border-color: #e74c3c; background: #fdedec; }
.timeline-item.type-food .timeline-icon { border-color: #f39c12; background: #fef5e7; }
.timeline-item.type-hotel .timeline-icon { border-color: #9b59b6; background: #f4ecf7; }
.timeline-item.type-rest .timeline-icon { border-color: #27ae60; background: #eafaf1; }
.timeline-item.type-prepare .timeline-icon { border-color: #7f8c8d; background: #f4f6f7; }
.timeline-item.type-arrive .timeline-icon { border-color: #e74c3c; background: #fdedec; }

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ---- 导航按钮 ---- */
.nav-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: var(--transition);
}

.nav-btn-inline:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* ---- 美食标签 ---- */
.food-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.food-tag {
  padding: 2px 8px;
  border-radius: 10px;
  background: #fff3e0;
  color: #e65100;
  font-size: 11px;
  font-weight: 500;
}

/* ---- 提示列表 ---- */
.tips-list {
  margin-top: 6px;
  padding-left: 0;
  list-style: none;
}

.tips-list li {
  font-size: 12px;
  color: var(--color-text-light);
  padding: 2px 0;
  padding-left: 16px;
  position: relative;
}

.tips-list li::before {
  content: '💡';
  position: absolute;
  left: 0;
  font-size: 10px;
}

/* ---- 单日地图 ---- */
.day-map-container {
  display: none;
  width: 100%;
  height: 200px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.day-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border: none;
  background: var(--color-bg);
  color: var(--color-text-light);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-top: 1px solid var(--color-border);
  transition: var(--transition);
}

.day-map-btn:hover {
  background: #e8ecf1;
}

/* ---- 酒店信息 ---- */
.hotel-info {
  margin: 0 16px 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f4ecf7, #f9f4fb);
  border-radius: var(--radius-md);
  border-left: 3px solid #9b59b6;
}

.hotel-label {
  font-size: 11px;
  color: #9b59b6;
  font-weight: 600;
  margin-bottom: 2px;
}

.hotel-name {
  font-size: 14px;
  font-weight: 600;
}

.hotel-tip {
  font-size: 12px;
  color: var(--color-text-light);
}

/* ---- 底部实用信息 ---- */
.bottom-section {
  margin: 0 16px 24px;
}

.bottom-toggle {
  width: 100%;
  padding: 14px;
  background: var(--color-card);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.bottom-toggle:hover {
  box-shadow: var(--shadow-md);
}

.bottom-toggle-icon {
  transition: transform 0.3s;
}

.bottom-toggle.active .bottom-toggle-icon {
  transform: rotate(180deg);
}

.tips-panel {
  display: none;
  margin-top: 12px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.tips-panel.active {
  display: block;
}

.tips-category {
  margin-bottom: 16px;
}

.tips-category:last-child {
  margin-bottom: 0;
}

.tips-category-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tips-category-list {
  list-style: none;
  padding: 0;
}

.tips-category-list li {
  font-size: 13px;
  color: var(--color-text-light);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.tips-category-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: 700;
}

/* ---- 导航弹窗 ---- */
.nav-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 16px;
}

.nav-modal.active {
  opacity: 1;
  visibility: visible;
}

.nav-modal-content {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 320px;
  padding: 24px;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.nav-modal.active .nav-modal-content {
  transform: scale(1);
}

.nav-modal-header {
  text-align: center;
  margin-bottom: 16px;
}

.nav-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

.nav-modal-header h3 {
  font-size: 16px;
  color: var(--color-text-light);
  font-weight: 500;
}

.nav-dest-name {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.nav-dest-addr {
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
}

.nav-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.nav-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn-cancel {
  background: var(--color-bg);
  color: var(--color-text);
}

.nav-btn-confirm {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---- 页脚 ---- */
.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--color-text-light);
  font-size: 12px;
}

.footer a {
  color: #667eea;
  text-decoration: none;
}

/* ============================================
   电脑端适配
   ============================================ */
@media (min-width: 768px) {
  body {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 40px;
  }
  
  .header {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: 0 -16px;
    padding-left: 32px;
    padding-right: 32px;
  }
  
  .overview-section {
    margin-left: 0;
    margin-right: 0;
  }
  
  .day-card {
    margin-left: 0;
    margin-right: 0;
  }
  
  .quick-nav {
    padding-left: 0;
    padding-right: 0;
  }
  
  .bottom-section {
    margin-left: 0;
    margin-right: 0;
  }
  
  .overview-map-container {
    height: 350px;
  }
  
  .day-map-container {
    height: 250px;
  }
}

/* ---- 浮动返回顶部按钮 ---- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---- 吸顶快速导航 ---- */
.quick-nav-sticky {
  position: sticky;
  top: 0;
  background: rgba(245, 247, 250, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  z-index: 100;
  margin: 0 -16px 16px;
  border-bottom: 1px solid var(--color-border);
}

/* ============================================
   家庭角色展示
   ============================================ */
.family-section {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  flex-wrap: wrap;
}

.family-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: bounceIn 0.6s ease forwards;
  opacity: 0;
}

.family-member:nth-child(1) { animation-delay: 0.1s; }
.family-member:nth-child(2) { animation-delay: 0.2s; }
.family-member:nth-child(3) { animation-delay: 0.3s; }
.family-member:nth-child(4) { animation-delay: 0.4s; }

.family-member:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.family-emoji {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 6px;
  animation: wiggle 2s ease-in-out infinite;
  animation-delay: inherit;
}

.family-member:nth-child(1) .family-emoji { animation-delay: 0s; }
.family-member:nth-child(2) .family-emoji { animation-delay: 0.5s; }
.family-member:nth-child(3) .family-emoji { animation-delay: 1s; }
.family-member:nth-child(4) .family-emoji { animation-delay: 1.5s; }

.family-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.family-role {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 2px;
}

.family-desc {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  color: white;
  font-weight: 600;
}

/* ---- 可爱浮动元素 ---- */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 20px;
  animation: floatUp 8s linear infinite;
  opacity: 0.6;
}

.floating-heart:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 16px; }
.floating-heart:nth-child(2) { left: 30%; animation-delay: 2s; font-size: 24px; }
.floating-heart:nth-child(3) { left: 50%; animation-delay: 4s; font-size: 18px; }
.floating-heart:nth-child(4) { left: 70%; animation-delay: 1s; font-size: 22px; }
.floating-heart:nth-child(5) { left: 85%; animation-delay: 3s; font-size: 14px; }

/* ---- 每日家庭小贴士 ---- */
.day-family-tip {
  margin: 0 16px 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff5f5, #fff0f6);
  border-radius: var(--radius-md);
  border-left: 3px solid #e85d75;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.5s ease;
}

.day-family-tip-emoji {
  font-size: 20px;
  flex-shrink: 0;
}

.day-family-tip-text {
  color: #666;
  line-height: 1.5;
}

.day-family-tip-text strong {
  color: #e85d75;
}

/* ============================================
   动画
   ============================================ */

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  50% {
    transform: scale(1.05) translateY(-5px);
  }
  70% {
    transform: scale(0.95) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-10deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  50% { transform: rotate(0deg); }
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ---- 温馨欢迎语 ---- */
.welcome-banner {
  margin: 0 16px 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffeaa7, #fab1a0, #fd79a8);
  background-size: 200% 200%;
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: gradientShift 4s ease infinite, pulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '✨';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  animation: sparkle 1.5s ease-in-out infinite;
}

.welcome-banner::after {
  content: '✨';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  animation: sparkle 1.5s ease-in-out infinite 0.7s;
}

/* ---- 家庭合影装饰 ---- */
.family-photo-frame {
  margin: 0 16px 20px;
  padding: 20px;
  background: linear-gradient(135deg, #fff5f5, #f0fff4, #fffbeb);
  border-radius: var(--radius-lg);
  border: 3px dashed #ffd6d6;
  text-align: center;
  position: relative;
  animation: borderDance 3s linear infinite;
}

.family-photo-frame::before {
  content: '📸';
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  animation: cameraFlash 2s ease-in-out infinite;
}

.family-photo-text {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

/* ---- 行程进度条 ---- */
.trip-progress {
  margin: 0 16px 16px;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.trip-progress-label {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.trip-progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.trip-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #27ae60);
  border-radius: 4px;
  width: 0%;
  transition: width 1s ease;
  position: relative;
}

.trip-progress-fill::after {
  content: '🚗';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

/* ---- 互动按钮 ---- */
.love-button {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
}

.love-button:hover {
  transform: scale(1.15) rotate(10deg);
}

.love-button:active {
  transform: scale(0.95);
}

/* ---- 点击爱心效果 ---- */
.click-heart {
  position: fixed;
  pointer-events: none;
  font-size: 24px;
  animation: clickHeartFloat 1s ease-out forwards;
  z-index: 10000;
}

@keyframes clickHeartFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.5);
  }
}

/* ---- 时间轴可爱装饰 ---- */
.timeline-item.type-drive .timeline-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #3498db;
  animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ---- 美食标签增强 ---- */
.food-tag {
  position: relative;
  overflow: hidden;
}

.food-tag::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.3) 50%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

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

/* ---- 新动画定义 ---- */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

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

@keyframes borderDance {
  0% { border-color: #ffd6d6; }
  33% { border-color: #d6e4ff; }
  66% { border-color: #d6ffe8; }
  100% { border-color: #ffd6d6; }
}

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

/* ============================================
   动画
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.day-card {
  animation: fadeInUp 0.5s ease forwards;
}

.day-card:nth-child(1) { animation-delay: 0.1s; }
.day-card:nth-child(2) { animation-delay: 0.2s; }
.day-card:nth-child(3) { animation-delay: 0.3s; }
.day-card:nth-child(4) { animation-delay: 0.4s; }
.day-card:nth-child(5) { animation-delay: 0.5s; }
