/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

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

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat .label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 400px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

/* ===== Section 通用样式 ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

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

.overview-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

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

.overview-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.overview-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.overview-card p {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.overview-card small {
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

/* ===== 时间轴行程 ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--primary);
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.day-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.theme {
    background: var(--bg-alt);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.day-body ul {
    list-style: none;
    margin-bottom: 20px;
}

.day-body li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.day-body li:last-child {
    border-bottom: none;
}

.day-body strong {
    color: var(--primary);
}

.tips {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border-left: 4px solid #f56565;
    padding: 15px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
}

/* 住宿推荐样式 */
.day-body li:has(> strong:first-child:contains("🏨")) {
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
    padding: 15px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    margin: 10px 0;
}

/* ===== 地图 ===== */
#map-container {
    height: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
}

.map-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== 景点卡片 ===== */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.attraction-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.attraction-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.location {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.description {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-alt);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ===== 美食部分 ===== */
.food-categories {
    margin-top: 40px;
}

.food-section {
    margin-bottom: 50px;
}

.food-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

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

.food-item {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.food-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.food-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.food-item p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 10px;
}

.food-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 美食避雷指南 */
.food-warning {
    margin-top: 50px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid #f56565;
}

.food-warning h3 {
    color: #c53030;
    border-bottom: none;
    margin-bottom: 25px;
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.warning-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.warning-item strong {
    display: block;
    margin-bottom: 8px;
    color: #c53030;
    font-size: 1rem;
}

.warning-item p {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
}

/* ===== 小红书笔记推荐 ===== */
.xiaohongshu-section {
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 60px;
}

.xhs-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.xhs-note-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #ff2442;
}

.xhs-note-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.xhs-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.xhs-note-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.5;
}

.xhs-note-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.xhs-tag {
    display: inline-block;
    background: #ff2442;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
}

/* ===== 延伸路线推荐 ===== */
.extension-routes {
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 60px;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.route-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.route-card:hover {
    transform: translateY(-5px);
}

.route-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.route-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.route-days {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.route-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.route-card li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
}

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

.route-card li strong {
    color: var(--primary);
}

.route-highlight {
    background: var(--bg-alt);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.route-highlight strong {
    color: var(--primary);
}

/* ===== 苗族文化 ===== */
.culture-intro {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.culture-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.culture-image {
    font-size: 3rem;
    margin-bottom: 15px;
}

.culture-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.culture-location {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.culture-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.culture-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.best-time {
    background: var(--bg-alt);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 15px;
}

.culture-tips {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.culture-tips h4 {
    margin-bottom: 20px;
    color: var(--primary);
}

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

.tip-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
}

.tip-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== 交通部分 ===== */
.transport-section {
    margin-bottom: 50px;
}

.transport-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.transport-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.transport-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.transport-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.transport-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.transport-card ul {
    list-style: none;
}

.transport-card li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

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

/* 路线地图 */
.route-map {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.route-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.route-point {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
}

.route-point.start,
.route-point.end {
    background: var(--secondary);
}

.route-line {
    color: var(--text-light);
    font-size: 0.85rem;
    white-space: nowrap;
}

.transport-tips {
    margin-top: 20px;
    padding: 20px;
    background: #fffbeb;
    border-radius: var(--radius-sm);
    border-left: 4px solid #f59e0b;
}

/* 预订列表 */
.booking-list {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
}

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

.booking-name {
    font-weight: 600;
}

.booking-time {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.priority-high .booking-time {
    background: #fef2f2;
    color: #dc2626;
}

.priority-medium .booking-time {
    background: #fffbeb;
    color: #d97706;
}

.priority-low .booking-time {
    background: #f0fdf4;
    color: #16a34a;
}

/* ===== 实用信息 ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

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

.info-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-note {
    font-size: 1.1rem;
    margin-top: 20px;
    opacity: 1;
}

/* ===== 地图弹窗样式 ===== */
.leaflet-popup-content {
    margin: 15px;
    font-family: 'Noto Sans SC', sans-serif;
}

.leaflet-popup-content h4 {
    margin: 0 0 10px;
    color: var(--primary);
}

.leaflet-popup-content p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 5px;
        width: 30px;
        height: 30px;
    }

    .day-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .route-map {
        flex-direction: column;
        align-items: center;
    }

    .route-item {
        flex-direction: column;
        width: 100%;
    }

    .route-line {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    #map-container {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .overview-grid,
    .attractions-grid,
    .food-grid,
    .culture-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== 平滑滚动 ===== */
html {
    scroll-behavior: smooth;
}

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

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