/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 22px;
    color: #c41230;
}

nav {
    flex: 1;
    max-width: 600px;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a:hover {
    background: #c41230;
    color: #fff;
}

/* 轮播图样式 */
.banner {
    margin-top: 80px;
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 指示器样式 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: #fff;
    transform: scale(1.2);
}

/* 切换按钮样式 */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-button.prev {
    left: 20px;
}

.slider-button.next {
    right: 20px;
}

/* 特内容样式 */
.features {
    padding: 80px 20px;
    background: #f9f9f9;
}

.features h2 {
    font-size: 32px;
    color: #c41230;
    margin-bottom: 30px;
}

.feature-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.item {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.item:hover {
    transform: translateY(-10px);
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.item h3 {
    margin: 15px 0;
    color: #333;
}

.item p {
    color: #666;
}

/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .banner {
        height: 300px;
        margin-top: 60px;
    }
    
    .feature-items {
        flex-direction: column;
        align-items: center;
    }
    
    .item {
        width: 100%;
        max-width: 400px;
    }

    .slider-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
} 

/* 搜索栏样式 */
.search-section {
    padding: 30px;
    background: rgba(255,255,255,0.95);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-container input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
}

.search-container button {
    padding: 15px 30px;
    background: #c41230;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-container button:hover {
    background: #a00e26;
}

/* 热门目的地样式 */
.destinations {
    padding: 80px 20px;
    background: #f9f9f9;
}

.destinations h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.destination-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.destination-card:hover {
    transform: translateY(-10px);
}

.destination-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    transform: translateY(0);
    transition: all 0.3s;
}

.destination-card:hover .destination-info {
    transform: translateY(-10px);
}

/* 旅游资讯样式 */
.news-section {
    padding: 80px 20px;
    background: #fff;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

/* 精选路线样式 */
.routes-section {
    padding: 80px 20px;
    background: #f9f9f9;
}

.routes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.route-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.route-card:hover {
    transform: translateY(-10px);
}

.route-info {
    padding: 30px;
}

.route-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.duration {
    color: #c41230;
    font-weight: 500;
    margin-bottom: 10px;
}

/* 用户体验样式 */
.experience-section {
    padding: 80px 20px;
    background: #fff;
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.experience-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.experience-card:hover {
    transform: translateY(-10px);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.experience-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.stars {
    color: #f0c040;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .destination-grid,
    .feature-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .destination-grid,
    .news-container,
    .routes-container,
    .experience-container,
    .feature-items {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .destination-card img,
    .news-card img,
    .route-card img {
        height: 200px;
    }

    .search-section {
        margin-top: -50px;
        padding: 20px;
    }

    .destination-info,
    .route-info,
    .experience-card {
        padding: 20px;
    }
} 