/* 自定义样式，用于修复 logo 显示问题 */
#logo {
    width: 200px;
    height: 120px;
    margin: 0 auto -70px;
    background-size: contain;
    background-position: center;
}

/* 确保导航菜单不会被 logo 遮挡 */
#menu ul {
    padding: 0 100px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    #logo {
        width: 150px;
        height: 100px;
        margin: 0 auto -50px;
    }
}

@media screen and (max-width: 480px) {
    #logo {
        width: 120px;
        height: 80px;
        margin: 0 auto -40px;
    }
    
    #menu ul {
        padding: 0 80px;
    }
}

/* 留言页面样式 */
.messages {
    padding: 50px 0;
}

.message-list {
    margin-bottom: 30px;
}

.message-list article {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-header h4 {
    margin: 0;
    color: #333;
}

.message-header .date {
    color: #666;
    font-size: 14px;
}

.message-content {
    margin-bottom: 15px;
}

.message-content p {
    margin: 0;
    line-height: 1.6;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.message-footer .type {
    color: #666;
    font-size: 14px;
}

.message-footer .reply {
    color: #1e88e5;
    text-decoration: none;
}

.message-footer .reply:hover {
    text-decoration: underline;
}

/* 回复留言样式 */
.reply-info {
    background: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.replying-to, .original-message {
    margin: 5px 0;
}

.message-replies {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #1e88e5;
}

.message-replies h5 {
    margin: 0 0 10px 0;
    color: #1e88e5;
}

.reply-item {
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.teacher-name {
    font-weight: bold;
    color: #1e88e5;
}

.reply-date {
    color: #666;
    font-size: 12px;
}

.reply-content {
    margin-bottom: 5px;
}

.reply-content p {
    margin: 0;
    line-height: 1.5;
}

.reply-footer {
    border-top: 1px solid #eee;
    padding-top: 5px;
    text-align: right;
}

.reply-type {
    color: #666;
    font-size: 12px;
    background: #f1f1f1;
    padding: 2px 5px;
    border-radius: 3px;
} 