/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 宋体;
    width: 1200px; /* 设置固定宽度 */
    margin: 0 auto; /* 居中显示 */
}

/* 导航栏样式 */
.navbar {
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 1200px; /* 确保导航栏宽度固定 */
}

.logo {
    margin-left: 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo img {
    height: 30px;
}

.nav-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #ffc107;
}

.menu-toggle {
    display: none; /* 固定布局下不需要菜单切换按钮 */
}

/* 轮播图样式 */
.carousel {
    width: 1200px; /* 固定宽度 */
    overflow: hidden;
    position: relative;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 1200px; /* 固定宽度 */
}

.carousel-item img {
    width: 1200px; /* 固定宽度 */
    height: 500px; /* 固定高度 */
    object-fit: cover;
    display: block;
}

.carousel-item.active {
    display: block;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #fff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

main {
    width: 1200px; /* 固定宽度 */
    background-image: url(../images/bgs.png);
}

.title h1 {
    text-align: center;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 1000px; /* 固定宽度 */
    padding: 20px;
    margin: auto;
}

.card-container .card {
    display: flex;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 1000px; /* 固定宽度 */
}

.card-container .card-image {
    width: 300px; /* 固定宽度 */
    overflow: hidden;
}

.card-container .card-image img {
    width: 300px;
    height: 100%;
    object-fit: cover;
}

.card-container .card-content {
    padding: 20px;
    flex: 1;
}

.card-container .card-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-indent: 1em;
}

.card-container .card-content p {
    margin: 0;
    line-height: 1.6;
    color: black;
    text-indent: 2em;
}

.card-group {
    width: 1000px; /* 固定宽度 */
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap; /* 防止换行 */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.card-group .card {
    width: 235px; /* 固定宽度 (1000px - 60px间隔) / 4 */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-group .card:hover {
    transform: scale(1.05);
}

.card-group .card img {
    width: 235px;
    height: 200px;
    display: block;
}

.card-text {
    padding: 15px;
}

.card-text h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.card-text p {
    margin: 0;
    color: #666;
}

.images {
    width: 1200px; /* 固定宽度 */
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.flex {
    display: flex;
    justify-items: center;
    justify-content: center;
}

.st {
    width: 1200px; /* 固定宽度 */
    height: 800px;
    background-image: url(../images/bgs3.png);
    background-position: center;
}

.st1 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 230px;
    gap: 50px;
}

.st1 img {
    width: 150px;
    border: none;
}

.st3 {
    margin-top: -150px;
}

.video-container {
    position: relative;
    width: 1200px; /* 固定宽度 */
    height: 600px;
}

.video-container img {
    width: 1200px;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.play-button::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid #000;
}

.video-overlay {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
    text-align: center;
}

video {
    width: 1200px;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
}

/* 游玩景点 */
.carousel-wrapper {
    display: flex;
    align-items: center;
    width: 1000px; /* 固定宽度 */
    margin: auto;
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    width: 950px; /* 固定宽度 */
    overflow: hidden;
    margin: 0 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 300px; /* 固定宽度 */
    margin-right: 15px;
}

.carousel-slide img {
    width: 300px;
    height: 230px;
    display: block;
}

.slide-caption {
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.carousel-prev,
.carousel-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

/* 特色亮点区域样式 */
.features {
    padding: 4rem 0;
    text-align: center;
}

.container {
    width: 1000px; /* 固定宽度 */
    margin: 0 auto;
    padding: 0 1rem;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.feature {
    margin-bottom: 2rem;
}

.feature i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 景点推荐区域样式 */
.scenic-spots-container {
    width: 1000px; /* 固定宽度 */
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 320px); /* 固定宽度的列 */
    grid-gap: 20px;
    padding: 20px;
}

.scenic-spot {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    margin-top: 30px;
    width: 320px; /* 固定宽度 */
}

.scenic-spot:hover{
    transition: all 0.3s ease-in-out;
    transform: translateY(-10px);
}

.scenic-spot img {
    width: 320px;
    height: 200px;
    object-fit: cover;
    display: block;
}

.scenic-spot h3 {
    margin: 10px;
    font-size: 1.2rem;
}

.scenic-spot p {
    margin: 10px;
    font-size: 1rem;
    line-height: 1.4;
}

/* 历史文化区域样式 */
.history {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    width: 1160px; /* 1200px - 左右padding */
}

.history .container {
    width: 1000px; /* 固定宽度 */
    margin: 0 auto;
}

.history h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.history h3 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #555;
}

.history p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 1.5rem;
}

/* 攻略推荐区域样式 */
.guide {
    padding: 40px 20px;
    width: 1160px; /* 1200px - 左右padding */
}

.guide .container {
    width: 1000px; /* 固定宽度 */
    margin: 0 auto;
}

.guide h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.guide-item {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    width: 960px; /* 固定宽度 */
}

.guide-item:hover {
    transform: translateY(-5px);
}

.guide-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #555;
}

.guide-item p {
    color: #666;
}

.hotel-card {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 960px; /* 固定宽度 */
}

.hotel-img {
    width: 230px;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    margin-left: 15px;
}

.hotel-info {
    padding: 15px;
    width: 700px; /* 固定宽度 */
}

.hotel-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.hotel-rating {
    color: #f1c40f;
    margin-bottom: 10px;
}

.hotel-price {
    color: #555;
    margin-bottom: 10px;
}

.hotel-book-btn {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hotel-book-btn:hover {
    background-color: #2980b9;
}

/* 生态保护区域样式 */
.ecology {
    padding: 40px 20px;
    width: 1160px; /* 1200px - 左右padding */
}

.ecology .container {
    width: 1000px; /* 固定宽度 */
    margin: 0 auto;
}

.ecology h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.ecology-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 960px; /* 固定宽度 */
}

.ecology-item:hover{
    transition: all 0.3s ease-in-out;
    transform: translateX(15px);
}

.ecology-img {
    width: 230px;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    margin-left: 15px;
}

.ecology-info {
    padding: 15px;
    width: 700px; /* 固定宽度 */
}

.ecology-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.ecology-info p {
    color: #666;
}

.ecology-call {
    text-align: center;
    color: #333;
}

/* 联系我们区域样式 */
.contact {
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    width: 1160px; /* 1200px - 左右padding */
}

.contact .container {
    width: 800px; /* 固定宽度 */
    margin: 0 auto;
}

.contact h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.contact p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    margin-bottom: 30px;
    width: 800px; /* 固定宽度 */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 778px; /* 800px - 左右padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.contact-info p {
    margin-bottom: 10px;
    color: #555;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    width: 1200px; /* 固定宽度 */
}

