/* 基础样式 */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* 隐藏滚动条 */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 导航 */
#topnav.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(26, 77, 58, 0.08);
}
#topnav.scrolled .nav-title { color: #1a4d3a; }

/* Hero缓慢缩放 */
@keyframes slow-zoom {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.15); }
}
.animate-slow-zoom { animation: slow-zoom 20s ease-in-out infinite; }

/* 芯片标签 */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    color: #fff;
}

/* 统计卡片 */
.stat-card {
    background: #fff;
    padding: 1.2rem 0.8rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(26, 77, 58, 0.06);
    border: 1px solid rgba(26, 77, 58, 0.06);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-3px); }

/* 路线节点 */
.route-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    min-width: 60px;
}
.route-node .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(232, 147, 92, 0.2);
}
.route-node span {
    font-size: 0.8rem;
    color: #1a4d3a;
    font-weight: 600;
}
.route-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #1a4d3a, #e8935c);
    margin: 0 0.3rem;
    position: relative;
    top: -12px;
    min-width: 20px;
}

/* 日程tab */
.day-tab {
    flex-shrink: 0;
    padding: 0.7rem 1.2rem;
    border-radius: 0.8rem;
    background: #fff;
    border: 1px solid rgba(26, 77, 58, 0.1);
    color: #1a4d3a;
    text-align: center;
    min-width: 100px;
    transition: all 0.3s;
}
.day-tab.active {
    background: #1a4d3a;
    color: #fff;
    border-color: #1a4d3a;
    box-shadow: 0 6px 20px rgba(26, 77, 58, 0.3);
}

/* 日程时间轴 */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
    border-left: 2px solid rgba(232, 147, 92, 0.3);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8935c;
    box-shadow: 0 0 0 4px rgba(232, 147, 92, 0.2);
}

/* 景点卡片 */
.spot-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(26, 77, 58, 0.08);
    transition: transform 0.4s, box-shadow 0.4s;
    display: flex;
    flex-direction: column;
}
.spot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 77, 58, 0.15);
}
.spot-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.spot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}
.spot-card:hover .spot-img img { transform: scale(1.1); }
.spot-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(26, 77, 58, 0.9);
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    backdrop-filter: blur(6px);
}

/* 拍摄点卡片 */
.photo-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}
.photo-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); }

/* 亲子卡片 */
.kid-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.06);
    transition: transform 0.3s;
    border: 1px solid rgba(232, 147, 92, 0.15);
}
.kid-card:hover { transform: translateY(-4px); }
.kid-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c08a, #e8935c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
}

/* 美食卡片 */
.food-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(26, 77, 58, 0.07);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.food-card:hover { transform: translateY(-4px); }
.food-img {
    height: 180px;
    overflow: hidden;
}
.food-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.food-card:hover .food-img img { transform: scale(1.08); }

/* 民宿卡片 */
.stay-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(26, 77, 58, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}
.stay-card:hover { transform: translateY(-4px); }
.stay-img { height: 200px; overflow: hidden; }
.stay-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.stay-card:hover .stay-img img { transform: scale(1.08); }

/* 贴士卡片 */
.tip-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 4px 20px rgba(26, 77, 58, 0.06);
    border-left: 4px solid #e8935c;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.tip-icon-box {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #1a4d3a, #2d7a5a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* 警示卡片（深色背景） */
.warn-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.2rem;
    backdrop-filter: blur(8px);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.warn-icon-box {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
    background: #e8935c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* 打包清单 */
.pack-item {
    background: #fff;
    border: 1px solid rgba(26, 77, 58, 0.1);
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #1a4d3a;
    transition: all 0.2s;
    cursor: pointer;
    user-select: none;
}
.pack-item i.check-icon { font-size: 1.1rem; color: rgba(26,77,58,0.3); transition: all 0.2s; }
.pack-item.done { background: rgba(26, 77, 58, 0.06); text-decoration: line-through; opacity: 0.6; }
.pack-item.done i.check-icon { color: #1a4d3a; }

/* 动画进入 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* 返回顶部 */
#toTop.visible { opacity: 1; pointer-events: auto; }
#toTop:hover { background: #e8935c; }

/* 菜单激活 */
#menuDrawer.open { opacity: 1; pointer-events: auto; }

/* 小屏优化 */
@media (max-width: 640px) {
    h2 { letter-spacing: 0.02em; }
    .spot-img { height: 180px; }
    .stay-img { height: 180px; }
}

/* 景点详情展开 */
.spot-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.spot-card.expanded .spot-detail { max-height: 500px; }
.spot-card .expand-arrow { transition: transform 0.3s; }
.spot-card.expanded .expand-arrow { transform: rotate(180deg); }

/* 装饰分隔 */
.divider-leaf::before {
    content: '❋';
    display: inline-block;
    margin: 0 0.5rem;
    color: #e8935c;
}
