/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background-color: #222;
    color: white;
    padding: 1px;
    text-align: center;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff9900;
}

/* 轮播图样式 */
.slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.slide.active {
    display: block;
}

.slider-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* 园区特色介绍样式 */
.features {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 50px;
    background-color: #f8f8f8;
}

.feature {
    width: 250px;
    margin: 20px;
    text-align: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.feature img {
    width: 80px;
    height: 80px;
}

.feature h3 {
    margin-top: 20px;
    color: #333;
}

.feature p {
    color: #666;
}

/* 园区介绍样式 */
.park-intro {
    padding: 50px;
    text-align: center;
}

.park-intro h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.park {
    display: inline-block;
    width: 300px;
    margin: 20px;
    text-align: center;
    border: 1px solid orange;
    border-radius: 5px;
    overflow: hidden;
}

.park img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.park h3 {
    margin-top: 20px;
    color: #333;
}

.park p {
    color: #666;
    padding: 0 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #ff9900;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e68a00;
}

/* 单个园区介绍样式 */
.single-park {
    padding: 20px;
    margin: 20px;
    border: 1px solid black;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.single-park img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 2px solid white;
}

.single-park h2 {
    color: #ff9900;
    margin-top: 10px;
}

/* 导航栏当前选中样式 */
nav ul li.active a {
    color: #ff9900;
    text-decoration: underline;
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #ff9900;
    color:black;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #e68a00;
}

.attractions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 50px;
}

.attraction {
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    background-color: #f9f9f9; 
    background: linear-gradient(to bottom, #e6e6e6, #ffffff); 
    opacity: 0.9; 
    animation: fadeIn 1s ease-in-out forwards;
}

.attraction img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attraction:hover {
    border: 2px solid orange; /* 鼠标悬停时，边框宽度为 2px，颜色为橙色 */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.attraction:active {
    transform: scale(0.9);
}

.news-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.news-img {
    width: 100%; /* 让图片宽度占满容器 */
    height: 500px; /* 设置图片高度为 250px */
    overflow: hidden; /* 隐藏溢出部分 */
    border: 2px solid orange; /* 添加 2px 蓝色边框 */
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填充整个容器 */
}

.hotel-item {
    width: 300px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-bottom: 20px;
}

.hotel-item img {
    width: 400%;
    height: 200px; /* 调整图片高度为 200px */
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
