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

body {
    overflow-x: hidden;
}

/* Hero 背景 */
.hero-bg {
    background-image: url('https://zhiyan-ai-agent-with-1258344702.cos.ap-guangzhou.tencentcos.cn/with/af0e54a3-4df5-43b3-853e-e34e52c4c1ff/image_1779706998_1_1.jpg');
    background-size: cover;
    background-position: center;
    animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, -1%); }
}

/* 进入动画 */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

/* 滚动观察动画 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 导航栏滚动样式 */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
#navbar.scrolled .font-brush {
    color: #0369a1;
    text-shadow: none;
}
#navbar.scrolled .nav-link {
    color: #334155;
    text-shadow: none;
}
#navbar.scrolled .nav-link:hover {
    color: #0284c7;
}
#navbar.scrolled #menuBtn {
    color: #334155;
}

/* 景点卡片 */
.spot-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all .4s ease;
    cursor: pointer;
}
.spot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}
.spot-card .img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.spot-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}
.spot-card:hover .img-wrap img {
    transform: scale(1.1);
}
.spot-card .img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%);
}
.spot-card .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #0284c7;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
.spot-card .level {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fbbf24;
    z-index: 2;
}

/* 门票卡片 */
.ticket-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: all .4s ease;
    position: relative;
}
.ticket-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(14, 165, 233, 0.18);
}
.ticket-card .tk-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}
.ticket-card .tk-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.ticket-card:hover .tk-img img {
    transform: scale(1.08);
}
.ticket-card .tk-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(6px);
}
.tk-tag.must { background: linear-gradient(135deg, #f97316, #ef4444); }
.tk-tag.classic { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.tk-tag.value { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.tk-tag.romantic { background: linear-gradient(135deg, #ec4899, #db2777); }
.tk-tag.family { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tk-tag.local { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* 价格 */
.price-tag {
    color: #f97316;
}
.price-tag .currency {
    font-size: .75em;
    margin-right: 2px;
}
.price-tag .num {
    font-size: 1.5em;
    font-weight: 800;
}
.price-tag .unit {
    font-size: .75em;
    color: #94a3b8;
    margin-left: 4px;
}

/* 评分星星 */
.stars i {
    color: #fbbf24;
    font-size: 13px;
}

/* 路线选项卡 */
.route-tab {
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
}
.route-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.route-tab.active {
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* 时间轴 */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 1.5rem;
    border-left: 2px dashed rgba(14, 165, 233, 0.4);
}
.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

/* 筛选标签 */
.filter-btn {
    padding: 8px 20px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s;
    border: none;
}
.filter-btn:hover {
    background: #e0f2fe;
    color: #0284c7;
}
.filter-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

/* 季节卡片 */
.season-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    background: #fff;
    transition: all .3s;
    text-align: center;
}
.season-card:hover {
    border-color: currentColor;
    transform: translateY(-4px);
}

/* tip 卡片 */
.tip-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border-top: 4px solid #0ea5e9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all .3s;
}
.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* 美食卡片 */
.food-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all .3s;
    cursor: pointer;
}
.food-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}
.food-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-item {
    background: #f8fafc;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all .3s;
}
.faq-item:hover {
    border-color: #7dd3fc;
}
.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #0ea5e9;
    transition: transform .3s;
}
.faq-item[open] summary::after {
    transform: rotate(180deg);
}
.faq-item .faq-content {
    padding: 0 1.25rem 1.25rem;
    color: #475569;
    line-height: 1.8;
}

/* 行前清单 */
.check-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.check-item:hover {
    background: rgba(255, 255, 255, 0.2);
}
.check-item.checked {
    background: rgba(253, 186, 116, 0.25);
    border-color: rgba(253, 186, 116, 0.6);
}
.check-item.checked .check-text {
    text-decoration: line-through;
    opacity: 0.7;
}
.check-box {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .3s;
}
.check-item.checked .check-box {
    background: #fdba74;
    border-color: #fdba74;
}
.check-item.checked .check-box::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 11px;
}

/* 表格 */
#ticketTable tr {
    transition: background .3s;
}
#ticketTable tr:hover {
    background: #f0f9ff;
}
#ticketTable td {
    padding: 1rem 1.5rem;
    color: #475569;
}

/* stat card */
.stat-card {
    transition: all .3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #14b8a6);
    border-radius: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-bg {
        background-position: 70% center;
    }
}

/* ============ 专属行程模块 ============ */

/* 4岁亲子贴士卡片 */
.kid-tip-card {
    background: linear-gradient(135deg, #fff, #fff7ed);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid #fed7aa;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.06);
    transition: all .3s;
}
.kid-tip-card:hover {
    transform: translateY(-4px);
    border-color: #fb923c;
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.18);
}
.kid-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fdba74, #fb923c);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

/* 每日行程 day-card */
.day-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.06);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all .3s;
}
.day-card:hover {
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.12);
}
.day-card[open] {
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.15);
}

.day-summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid #0ea5e9;
    transition: background .3s;
}
.day-summary::-webkit-details-marker { display: none; }
.day-summary:hover {
    background: #f8fafc;
}

.day-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.day-arrow {
    color: #94a3b8;
    transition: transform .3s;
    flex-shrink: 0;
}
.day-card[open] .day-arrow {
    transform: rotate(180deg);
}

.day-detail {
    padding: 0 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc, #fff);
    border-top: 1px dashed #e2e8f0;
}

.schedule-list {
    padding-top: 1rem;
}

.sch-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e2e8f0;
}
.sch-item:last-child {
    border-bottom: none;
}

.sch-time {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    height: fit-content;
    white-space: nowrap;
}

.sch-act {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kid-badge {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    color: #f97316;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
}

/* 预算条 */
.budget-row {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    transition: all .3s;
    border: 1px solid #e2e8f0;
}
.budget-row:hover {
    background: #fff;
    border-color: #fdba74;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.08);
}

.budget-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.budget-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fdba74, #f97316);
    border-radius: 999px;
    transition: width 1s ease;
}

/* 移动端行程卡 */
@media (max-width: 640px) {
    .sch-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .sch-time {
        justify-self: start;
    }
    .day-summary {
        padding: 1rem;
        gap: 0.75rem;
    }
    .day-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .day-detail {
        padding: 0 1rem 1rem 1rem;
    }
}