/* 留言板样式 */

/* 背景图片 */
#backgroundImage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    background-image: url('../images/56acd8ce9f2167041da493553fa4c48c35255794.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 二维码容器 */
.qrcode-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 0;
}

.qrcode-item {
    display: inline-block;
    text-align: center;
    margin: 0 25px;
}

.qrcode-item img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(111, 214, 93, 0.3);
}

.qrcode-item p {
    color: white;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* 标题样式 */
.content h2 {
    color: #6FD65D;
    margin: 5px 0;
}

/* 发表留言表单 */
.message-form-container {
    max-width: 80%;
    margin: 0 auto;
    margin-bottom: 5px;
}

.message-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #6FD65D;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    resize: vertical;
    margin-bottom: 10px;
}

.message-form button {
    background-color: rgba(111, 214, 93, 0.3);
    color: #6FD65D;
    border: 1px solid #6FD65D;
    border-radius: 5px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.message-form button:hover {
    background-color: rgba(111, 214, 93, 0.5);
}

/* 分隔线 */
.message-divider {
    margin: 5px 0;
    border: none;
    border-top: 0.5px solid rgba(111, 214, 93, 0.3);
}

/* 留言容器 */
.message-container {
    margin-bottom: 15px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(111, 214, 93, 0.5);
}

.message-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* 头像样式 */
.avatar-container {
    flex-shrink: 0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #6FD65D;
}

.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #6FD65D;
}

/* 留言内容 */
.message-content {
    flex: 1;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.message-author {
    color: #6FD65D;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}

.message-author:hover {
    text-decoration: underline;
}

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

.message-text {
    color: white;
    margin-bottom: 10px;
    font-size: 14px;
}

/* 留言操作按钮 */
.message-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.reply-btn, .toggle-replies, .cancel-reply {
    background-color: rgba(111, 214, 93, 0.3);
    color: #6FD65D;
    border: 1px solid #6FD65D;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.reply-btn:hover, .toggle-replies:hover, .cancel-reply:hover {
    background-color: rgba(111, 214, 93, 0.5);
}

.delete-btn {
    background-color: rgba(255, 85, 85, 0.3);
    color: #FF5555;
    border: 1px solid #FF5555;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.delete-btn:hover {
    background-color: rgba(255, 85, 85, 0.5);
}

/* 回复表单 */
.reply-form {
    display: none;
    margin-top: 15px;
}

.reply-form-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.reply-message-form textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #6FD65D;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    resize: vertical;
    font-size: 13px;
    margin-bottom: 15px;
}

.reply-message-form button[type="submit"] {
    background-color: rgba(111, 214, 93, 0.3);
    color: #6FD65D;
    border: 1px solid #6FD65D;
    border-radius: 5px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.reply-message-form button[type="button"] {
    background-color: rgba(255, 85, 85, 0.3);
    color: #FF5555;
    border: 1px solid #FF5555;
    border-radius: 5px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

/* 回复列表 */
.replies-list {
    margin-top: 15px;
}

/* 单个回复样式 */
.reply-item {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-left: 30px;
}

.reply-avatar {
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
}

.reply-meta {
    margin-bottom: 8px;
}

.reply-author {
    color: #6FD65D;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
}

.reply-author:hover {
    text-decoration: underline;
}

.reply-relation {
    color: #aaa;
    font-size: 12px;
    margin: 0 5px;
}

.reply-time {
    color: #888;
    font-size: 10px;
    margin-left: 15px;
}

.reply-text {
    color: white;
    font-size: 13px;
    margin-bottom: 5px;
}

.reply-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reply-actions a {
    color: #FF5555;
    font-size: 10px;
    text-decoration: none;
}

.reply-actions button {
    background-color: rgba(111, 214, 93, 0.3);
    color: #6FD65D;
    border: 1px solid #6FD65D;
    border-radius: 5px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.3s ease;
}

.reply-actions button:hover {
    background-color: rgba(111, 214, 93, 0.5);
}

/* 小尺寸删除按钮 */
.delete-btn-small {
    background-color: rgba(255, 85, 85, 0.3);
    color: #FF5555;
    border: 1px solid #FF5555;
    border-radius: 5px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.delete-btn-small:hover {
    background-color: rgba(255, 85, 85, 0.5);
}

/* 小尺寸回复按钮 */
.reply-btn-small {
    background-color: rgba(111, 214, 93, 0.3);
    color: #6FD65D;
    border: 1px solid #6FD65D;
    border-radius: 5px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.reply-btn-small:hover {
    background-color: rgba(111, 214, 93, 0.5);
}

/* 隐藏回复容器 */
.hidden-replies {
    display: none;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background-color: rgba(111, 214, 93, 0.3);
    color: #6FD65D;
    border: 1px solid #6FD65D;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: rgba(111, 214, 93, 0.5);
    color: white;
}

.pagination a.active {
    background-color: rgba(111, 214, 93, 0.5);
    color: white;
}

/* 暂无留言提示 */
.no-messages {
    text-align: center;
    color: white;
    margin: 20px 0;
}
