/* 全局样式 */
* { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }

.hero-title { animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.stat-card { transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }

.day-tab { padding: 12px 24px; border-radius: 9999px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; background: white; color: #78716c; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.day-tab:hover { border-color: #10b981; color: #10b981; }
.day-tab.active { background: linear-gradient(135deg, #10b981, #059669); color: white; border-color: transparent; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

.day-card { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.timeline-item { position: relative; padding-left: 40px; padding-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: 15px; top: 28px; bottom: 0; width: 2px; background: linear-gradient(to bottom, #d1d5db, #e5e7eb); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #10b981; background: white; z-index: 1; }
.timeline-dot.food { border-color: #f59e0b; }
.timeline-dot.scenic { border-color: #3b82f6; }
.timeline-dot.drive { border-color: #8b5cf6; }

.food-card { transition: all 0.3s ease; overflow: hidden; }
.food-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.1); }
.food-card .food-img { transition: transform 0.5s ease; }
.food-card:hover .food-img { transform: scale(1.05); }

.checklist-card { transition: all 0.3s ease; }
.checklist-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }

.route-node { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 9999px; font-weight: 600; transition: all 0.3s ease; cursor: default; }
.route-node:hover { transform: scale(1.05); }
.route-arrow { color: #d1d5db; font-size: 1.2rem; }

.spot-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }

.budget-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 16px 0; border-bottom: 1px solid #f5f5f4; transition: background 0.2s; }
.budget-row:hover { background: #fafaf9; }
.budget-row:last-child { border-bottom: none; }
.budget-header { font-weight: 700; color: #44403c; border-bottom: 2px solid #e7e5e4; }
.budget-total { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-radius: 12px; padding: 16px 20px; margin-top: 16px; font-weight: 700; }

.day-hero-img { width: 100%; height: 280px; object-fit: cover; border-radius: 16px; }

.tip-card { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: 16px; padding: 20px; margin-top: 16px; }

/* ========== 地图样式 ========== */
.map-container { transition: all 0.3s ease; }
.map-container:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
#route-map { z-index: 1; }

.custom-marker { background: transparent !important; border: none !important; }
.custom-marker div:hover { transform: scale(1.2) !important; }

.custom-popup .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); padding: 4px; border: 1px solid rgba(0,0,0,0.05); }
.custom-popup .leaflet-popup-tip { box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.custom-popup .leaflet-popup-content { margin: 10px 14px; line-height: 1.5; }

.leaflet-control-zoom a { border-radius: 10px !important; width: 34px !important; height: 34px !important; line-height: 34px !important; font-size: 16px !important; color: #44403c !important; border: 1px solid #e7e5e4 !important; box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important; }
.leaflet-control-zoom a:hover { background: #f5f5f4 !important; color: #10b981 !important; }
.leaflet-control-zoom { border: none !important; box-shadow: none !important; }
.leaflet-control-zoom-in { border-radius: 10px 10px 0 0 !important; margin-bottom: 1px !important; }
.leaflet-control-zoom-out { border-radius: 0 0 10px 10px !important; }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(255,255,255,0.7) !important; border-radius: 6px !important; padding: 2px 6px !important; }

@media (max-width: 768px) {
    .day-hero-img { height: 200px; }
    .timeline-item { padding-left: 32px; }
    #route-map { height: 350px !important; }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
