/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-overlay p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* 导航栏 */
.sticky-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    overflow-x: auto;
}

.nav-container a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-container a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 通用部分样式 */
.section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 概览卡片 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.overview-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-10px);
}

.overview-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.overview-card p {
    margin: 0.5rem 0;
    color: #666;
}

/* 每日行程样式 */
.day-section {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.day-content {
    padding: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.time {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.content p {
    color: #666;
    margin: 0.25rem 0;
}

.day-tips {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #667eea;
}

.day-tips h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.day-tips ul {
    list-style: none;
    padding-left: 0;
}

.day-tips li {
    padding: 0.5rem 0;
    color: #666;
}

.day-tips li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* 住宿卡片 */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hotel-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.hotel-card:hover {
    transform: translateY(-10px);
}

.hotel-image {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.hotel-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hotel-card p {
    margin: 0.5rem 0;
    color: #666;
}

.hotel-card strong {
    color: #667eea;
}

/* 美食样式 */
.food-categories {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.food-category h3 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.food-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.food-item:hover {
    transform: translateY(-5px);
}

.food-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.food-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.food-item p {
    color: #666;
    font-size: 0.9rem;
}

.restaurant-list {
    display: grid;
    gap: 1rem;
}

.restaurant {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.restaurant h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.restaurant p {
    color: #666;
    margin: 0.25rem 0;
}

/* 地图样式 */
#map {
    height: 500px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.map-container {
    position: relative;
    margin: 30px 0;
}

/* 自定义地图标记样式 */
.custom-marker-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 确保地图标签不被遮挡 */
.leaflet-marker-icon {
    z-index: 1000 !important;
}

.leaflet-popup {
    display: none !important; /* 隐藏默认弹窗 */
}

/* 地图加载动画 */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #667eea;
    font-size: 18px;
}

.map-loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.map-legend {
    margin-top: 1.5rem;
}

.map-legend h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.map-legend ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.map-legend li {
    display: flex;
    align-items: center;
    color: #666;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* 贴士样式 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.tip-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.tip-card li:last-child {
    border-bottom: none;
}

/* 页脚 */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2.5rem;
    }
    
    .hero-overlay p {
        font-size: 1.2rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-container a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .overview-grid,
    .hotels-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .day-content {
        padding: 1rem;
    }
    
    .overview-card,
    .hotel-card,
    .tip-card {
        padding: 1.5rem;
    }
}

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

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}