/* 留言板样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

.container {
    width: 80%;
    margin: 20px auto;
    display: flex;
    gap: 30px;
}

/* 左侧留言窗口 */
.message-form-container {
    flex: 1;
    min-width: 300px;
}

/* 右侧留言列表 */
.message-list-container {
    flex: 2;
    min-width: 400px;
}

/* 头部导航栏 */
.header {
    width: 100%;
    height: 75px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.logo {
    display: block;
    width: 120px;
    height: auto;
    margin-right: 40px;
}

.nav {
    display: flex;
    gap: 35px;
    letter-spacing: 2px;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a i {
    color: #333;
    font-size: 16px;
}

.nav a:hover {
    color: #333;
}

.nav a.active {
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav a.active i {
    color: white;
}

/* 留言板标题 */
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 留言表单 */
.message-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
    min-height: 150px;
}

button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #555;
}

/* 留言列表 */
.message-list {
    margin-top: 30px;
}

.message-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.message-email {
    font-weight: 500;
    color: #333;
    flex: 1;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.message-content {
    line-height: 1.6;
    color: #333;
}

/* 回复样式 */
.message-reply {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #03DED5;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reply-label {
    font-weight: 500;
    color: #333;
}

.admin-tag {
    color: red;
    font-weight: bold;
}

.reply-time {
    font-size: 12px;
    color: #999;
}

.reply-content {
    line-height: 1.6;
    color: red;
}

/* 消息提示 */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}
