body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.background {
    background-color: #f0f0f0; /* 为了便于观察 */
    height: 100%;
    overflow: hidden; /* 禁止垂直滚动 */
    position: relative;
    transition: transform 0.5s ease; /* 添加平滑过渡效果 */
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease; /* 添加透明度过渡效果 */
    opacity: 0; /* 默认隐藏所有页面 */
    z-index: 1; /* 确保页面在背景图片之下 */

    padding: 20px; /* 添加内边距 */
    color: #fff; /* 设置文字颜色为白色 */
    text-align: center; /* 文本居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-content {
    width: 60%; /* 控制内容区域宽度 */
    padding: 20px; /* 内边距 */
    background-color: rgba(0, 0, 0, 0.6); /* 半透明背景色 */
    text-align: left; /* 文本左对齐 */
    box-sizing: border-box; /* 包括padding和border在内的总宽度 */
    margin-top: 20px; /* 上边距 */
}

.page-content p {
    font-size: 18px; /* 字体大小 */
    line-height: 1.6; /* 行高 */
    padding: 10px; /* 内边距 */
    color: #fff; /* 文字颜色 */
    text-indent: 2em; /* 首行缩进 */
    margin: 10px 0; /* 上下边距 */
}

.page-content h1 {
    font-size: 32px; /* 字体大小 */
    color: #fff; /* 文字颜色 */
    margin-top: 20px; /* 上边距 */
}

.page2 .page-content ul li {
    font-size: 16px; /* 列表项字体大小 */
    line-height: 1.4; /* 列表项行高 */
}

.pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* 确保按钮在最上层 */
}

.pagination button {
    padding: 10px 20px;
    border-radius: 50%; /* 将按钮形状改为圆形 */
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease; /* 添加跳动效果的动画 */
}

.pagination button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1); /* 鼠标悬停时稍微放大按钮 */
}

.pagination button::after {
    content: "\25BC"; /* Unicode 箭头向下符号 */
}

.pagination button.active::after {
    animation: jump 0.1s infinite alternate; /* 跳动动画 */
}

@keyframes jump {
    0% { transform: translateY(0); }
    100% { transform: translateY(5px); }
}

.page.active {
    opacity: 1; /* 显示当前活动页面 */
    display: block; /* 显示当前活动页面 */
}

.page1 {
    background-image: url('../img/上方山.jpg');
}
.page2 {
    background-image: url('../img/七羽姐.jpg');
}
.page3 {
    background-image: url('../img/小屿.png');
}

.navbar {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000; /* 确保导航栏在最上层 */
}

.navbar button {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.navbar button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.goto-another-page {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.goto-another-page:hover {
    background-color: #0056b3;
}

.pagination-hidden {
    display: none;
}

/* Center the popup in the middle of the screen */
.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    width: 300px; /* 定义宽度 */
    height: 300px;
}

.popup p{
    color: aqua;
}

/* Style the labels and inputs */
.popup label {
    display: flex;
    left: 30%;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 1000;
}

.popup input[type="radio"] {
    margin-right: 10px;
}

/* Add styles for the selected radio button's label */
.popup input[type="radio"]:checked + label {
    color: #007BFF;
    font-weight: bold;
}

/* Style the confirm button */
.popup button {
    display: block;
    left: 20%;
    width: 100%;
    
    background-color: #007BFF;
    color: rgb(155, 100, 100);
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
}

.popup button:hover {
    background-color: #0056b3;
}



.item{
    left: 25%;
    color: aqua;
}