/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

/* 轮播图样式 */
.slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 轮播导航点 */
.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active {
    background-color: #717171;
}

/* 关于我们部分 */
.about-section {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 联系和留言部分 */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f9f9f9;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.message-form {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea {
    resize: vertical;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* 管理员页面样式 */
.admin-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.login-form, .message-board {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.messages-list {
    margin-top: 20px;
}

.message-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.message-item:last-child {
    border-bottom: none;
}

.message-header {
    font-weight: bold;
    margin-bottom: 5px;
}

.message-content {
    margin-bottom: 5px;
}

.message-date {
    font-size: 0.8em;
    color: #666;
}

.logout-btn {
    margin-top: 20px;
    background-color: #f44336;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

.admin-link {
    margin-top: 20px;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-section, .contact-section {
        flex-direction: column;
    }
    
    .about-text, .about-image, .contact-info, .message-form {
        flex: none;
        width: 100%;
    }
    
    .slideshow-container {
        width: 100%;
    }
}