
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
}

/* 全局配色变量 */
:root {
    --primary-brown: #8B7355;
    --light-brown: #D4C4B0;
    --bg-cream: #F8F5F0;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 轮播横幅 - 移到最顶部 */
.banner {
    width: 100%;
    height: 500px;
    background: url('../images/1.webp') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(139, 115, 85, 0.2), rgba(139, 115, 85, 0.1));
}

/* 头部导航栏 - 放在banner下方 */
header {
    background-color: var(--primary-brown);
    padding: 18px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

/* 导航文字放大 */
nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 5px 2px;
}

nav a:hover {
    opacity: 0.9;
    border-bottom: 2px solid #fff;
}

/* 主体容器 */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* 标题样式 */
.section-title {
    text-align: center;
    font-size: 34px;
    color: var(--primary-brown);
    margin: 30px 0 50px;
    font-weight: bold;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 3px;
    background: var(--primary-brown);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* 旅游简介大图排版 */
.tour-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}
.tour-header-left {
    flex: 1;
}
.tour-header-right {
    flex: 1;
}
.tour-header-right img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.tour-desc {
    font-size: 18px;
    line-height: 2;
    color: #444;
    text-align: justify;
}

/* 旅游头条卡片组 */
.tour-news {
    margin: 70px 0;
}
.news-wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 25px;
}
.news-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.4s;
}
.news-card:hover {
    transform: translateY(-10px);
}
.news-main {
    grid-row: 1/3;
}
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.news-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}
.news-info p {
    font-size: 14px;
    opacity: 0.9;
}

/* 景点展示：左右交错排版 */
.scenic-section {
    margin: 80px 0;
}
.scenic-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 70px;
}
.scenic-item.reverse {
    flex-direction: row-reverse;
}
.scenic-img {
    flex: 1;
}
.scenic-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.scenic-text {
    flex: 1;
}
.scenic-text h3 {
    font-size: 26px;
    color: var(--primary-brown);
    margin-bottom: 20px;
    border-left: 6px solid var(--primary-brown);
    padding-left: 15px;
}
.scenic-text p {
    font-size: 17px;
    line-height: 2;
    color: var(--text-light);
    text-align: justify;
}

/* 精品小景点卡片 */
.small-card-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
}
.small-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.small-card:hover {
    transform: translateY(-6px);
}
.small-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.small-card h4 {
    padding: 12px;
    color: var(--primary-brown);
    font-size: 16px;
}

/* 非遗影像视频区 */
.tour-videos {
    margin: 70px 0 30px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.video-card:hover {
    transform: translateY(-6px);
}
.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    background: #111;
}
.video-card p {
    padding: 14px 18px;
    color: var(--primary-brown);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* 结尾 */
.tour-end {
    text-align: center;
    font-size: 18px;
    color: #555;
    line-height: 2;
    margin: 60px 0;
    padding: 30px;
    background: rgba(212, 196, 176, 0.15);
    border-radius: 15px;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .tour-header {
        flex-direction: column;
    }
    .news-wrap {
        grid-template-columns: 1fr 1fr;
    }
    .news-main {
        grid-column: 1/3;
        height: 300px;
    }
    .scenic-item, .scenic-item.reverse {
        flex-direction: column;
        gap: 30px;
    }
    .small-card-group {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .banner {
        height: 240px;
    }
    .news-wrap, .small-card-group {
        grid-template-columns: 1fr;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .news-main {
        grid-column: 1/2;
    }
}

/* 页脚 */
footer {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 15px;
}

footer ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}
