/* 留言板样式 */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(17, 34, 64, 0.5) 0%, transparent 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.message-section {
    padding: 40px 0 80px;
}

.message-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.message-form-wrapper,
.message-list-wrapper {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.message-form-wrapper h2,
.message-list-wrapper h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.message-form .form-group {
    margin-bottom: 20px;
}

.message-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.message-form input,
.message-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.message-form input:focus,
.message-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.message-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

.message-list {
    max-height: 500px;
    overflow-y: auto;
}

.message-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.message-item:last-child {
    border-bottom: none;
}

.message-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-item-name {
    font-weight: 600;
    color: var(--primary);
}

.message-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.message-item-subject {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.message-item-content {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.message-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .message-layout {
        grid-template-columns: 1fr;
    }
}
