/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* 头部样式 */
header {
    background-color: #333;
    color: white;
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
}

nav ul li a:hover {
    background-color: #555;
}

/* 下拉菜单样式 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* 轮播图样式 */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-inner {
    display: flex;
    width: 300%;
}

.carousel-item {
    flex: 0 0 33.33%;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    height: auto;
}

/* 按钮样式 */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* 留言板样式 */
.message-board {
    margin: 20px;
}

.message-board h2 {
    text-align: center;
}

.message-board form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.message-board input, .message-board textarea {
    margin: 10px 0;
    padding: 10px;
    width: 80%;
    max-width: 600px;
}

.message-board button {
    padding: 10px 20px;
    cursor: pointer;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333;
    color: white;
}

/* 页面内容居中 */
.center-text {
    text-align: center;
}

.login p {
    margin-top: 20px;
}

.login a {
    color: #007BFF;
    text-decoration: none;
}

.login a:hover {
    text-decoration: underline;
}

/* 字体大小样式 */
.font-small {
    font-size: 14px;
}

.font-medium {
    font-size: 18px;
}

.font-large {
    font-size: 22px;
}

/* 背景颜色样式 */
.background-white {
    background-color: #fff;
    color: #000;
}

.background-black {
    background-color: #000;
    color: #fff;
}

.background-sepia {
    background-color: #f4ecd8;
    color: #000;
}
