
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F7EEDD;
    color: #333;
}

header {
    background-color: #FF7F50;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #ede4d3;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.nav {
    display: flex;
    justify-content: space-between; /* 调整导航链接的布局 */
    align-items: center; /* 垂直居中对齐 */
    background-color: #ffd299;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.nav a {
    color: #161414;
    text-decoration: none;
    padding: 10px 20px;
}

.nav a:hover {
    background-color: #FF7F50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.section {
    background-color: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.section p {
    font-size: 1em;
    line-height: 1.6;
}

.image-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.image-slider img {
    width: 100%;
    scroll-snap-align: center;
    margin: 0 10px;
    border-radius: 10px;
}

footer {
    background-color: #57b3f0;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
}


.box {
    position: relative; /* 使用相对定位 */
    width: 150px; /* 调整更多页面按钮的宽度 */
}

.box .item {
    text-align: center;
    border: 1px solid rgb(20, 186, 228);
    background: rgb(118, 187, 233);
    color: #fff;
    line-height: 40px;
    cursor: pointer;
    position: relative; /* 使用相对定位 */
}

.box .item:hover {
    background: lightblue;
}

.box .item ul {
    display: none;
    position: absolute; /* 绝对定位相对于父元素 */
    top: 100%; /* 使下拉菜单出现在更多页面按钮下方 */
    left: 0;
    z-index: 1000; /* 确保在其他内容上方显示 */
    background: white;
    padding: 5px 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    border: 1px solid #ccc; /* 添加边框 */
    width: 100%; /* 宽度充满父元素 */
    list-style: none;
}

.box .item:hover ul {
    display: block;
}

.box .item ul li {
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
}

.box .item ul li:hover {
    background-color: #f0f0f0;
}

.section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}

.navbar {
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}

.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 20px;
text-decoration: none;
}

.navbar a:hover {
background-color: #ddd;
color: black;
}

.navbar a.active {
background-color: #4CAF50;
color: white;
}

.content {
padding: 35px 20px 20px;
}

.hidden {
display: none;
}


.button {
    background-color: #f4511e;
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    font-size: 16px;
    margin: 4px 2px;
    opacity: 0.6;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
                border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .button:hover {opacity: 1}