/**
 * 留言板样式
 */
.guestbook-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 25px;
    text-align: center;
}
.guestbook-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 400;
}
.guestbook-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}
.message-form-box,
.message-list-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}
.message-list-box {
    min-height: 300px;
}
.section-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}
.message-item {
    border-left: 3px solid #667eea;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s;
}
.message-item:hover {
    background: #f0f4ff;
    transform: translateX(3px);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #667eea;
    object-fit: cover;
}
.message-author {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}
.message-time {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}
.message-content {
    margin-top: 8px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
    word-break: break-word;
    white-space: pre-wrap;
}
.message-reply {
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0e6ff 100%);
    border-radius: 6px;
    border-left: 3px solid #667eea;
}
.message-reply .reply-label {
    color: #667eea;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}
.message-reply .reply-content {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.message-reply .reply-time {
    color: #999;
    font-size: 11px;
    margin-top: 5px;
}
.message-actions {
    margin-top: 8px;
    text-align: right;
}
.btn-delete {
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 8px;
    transition: color 0.2s;
}
.btn-delete:hover {
    color: #a71d2a;
    text-decoration: underline;
}

.empty-message {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}
.empty-message i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #ddd;
}
.stats-box {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}
.stats-box p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pagination button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}
.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination .page-info {
    padding: 6px 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}
.qq-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}
.qq-input-wrap input {
    flex: 1;
}
.qq-avatar-preview {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #667eea;
    display: none;
    object-fit: cover;
}
.qq-loading {
    color: #667eea;
    font-size: 12px;
}
.quick-templates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.quick-tpl-btn {
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-tpl-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}
@media (max-width: 768px) {
    .guestbook-header {
        padding: 25px 15px;
    }
    .guestbook-header h1 {
        font-size: 22px;
    }
    .message-header {
        gap: 6px;
    }
    .message-time {
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
    }
}