/* ===== 全局样式 ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* ===== Hero区域 ===== */
.hero-bg {
    background: linear-gradient(135deg, #0d4f3c 0%, #1a6b4f 30%, #2d8a6e 60%, #1b5e4b 100%);
    animation: heroGradient 10s ease infinite alternate;
}

@keyframes heroGradient {
    0% { background: linear-gradient(135deg, #0d4f3c 0%, #1a6b4f 30%, #2d8a6e 60%, #1b5e4b 100%); }
    50% { background: linear-gradient(135deg, #0a3d2e 0%, #15573f 30%, #247a5e 60%, #134d3c 100%); }
    100% { background: linear-gradient(135deg, #0d4f3c 0%, #1a6b4f 30%, #2d8a6e 60%, #1b5e4b 100%); }
}

.hero-title {
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 9999px;
    color: white;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.tag-pill:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ===== 导航栏 ===== */
#topNav.scrolled {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

#topNav.scrolled .nav-link {
    color: rgba(55,65,81,0.8) !important;
}

#topNav.scrolled .nav-link:hover {
    color: #059669 !important;
}

#topNav.scrolled .nav-title {
    color: #1f2937 !important;
}

#topNav.scrolled .fa-mountain {
    color: #059669 !important;
}

#topNav.scrolled #menuBtn {
    color: #1f2937 !important;
}

/* ===== Day标签 ===== */
.day-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ===== 卡片悬停效果 ===== */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ===== 日程项 ===== */
.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 4px 12px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ===== 信息标签 ===== */
.info-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #4b5563;
}

/* ===== 美食卡片 ===== */
.food-card {
    text-align: center;
    padding: 16px;
    background: #fefce8;
    border-radius: 12px;
    transition: all 0.3s;
}

.food-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== 总览卡片 ===== */
.overview-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: #d1fae5;
}

.overview-card .day-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.15;
    position: absolute;
    top: 12px;
    right: 16px;
}

/* ===== 时间线 ===== */
.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .timeline-item {
        padding-left: 0;
        width: 50%;
    }
    .timeline-item:nth-child(odd) {
        margin-left: 50%;
        padding-left: 40px;
    }
    .timeline-item:nth-child(even) {
        padding-right: 40px;
        text-align: right;
    }
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-dot {
        left: -12px;
    }
    .timeline-item:nth-child(even) .timeline-dot {
        right: -12px;
        left: auto;
    }
}

/* ===== 贴士卡片 ===== */
.tip-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.tip-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* ===== 预算表格 ===== */
.budget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.budget-row:last-child {
    border-bottom: none;
}

.budget-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 2px solid #059669;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== 景点图片 ===== */
.scenic-img {
    position: relative;
    overflow: hidden;
}

.scenic-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

.scenic-img:hover::after {
    opacity: 1;
}

/* ===== 回到顶部按钮 ===== */
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .tag-pill {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}
