/* 留言板样式 */
.main .container {
    max-width: 1400px !important;
}

.message-board-container {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.board-header {
    text-align: center;
    margin-bottom: 30px;
}

.board-header h2 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.board-header p {
    color: #666;
    font-size: 1.1rem;
}

.message-form-container {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.message-form-container form {
    max-width: 800px;
    margin: 0 auto;
}

.message-form-container textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
}

.color-options {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
    flex-shrink: 0;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .color-options {
        flex-wrap: nowrap;
        gap: 2px;
        margin-top: 5px;
    }
    
    .color-option {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
}

.color-option:hover {
    transform: scale(1.1);
}

input[type="radio"]:checked + .color-option {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.messages-container {
    margin-top: 30px;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.messages-header h3 {
    color: #333;
    font-size: 1.5rem;
}

#message-count {
    color: #666;
    font-size: 0.9rem;
}

.messages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.message-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.message-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.message-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--message-color, #ff6b6b);
}

.message-content {
    margin-bottom: 10px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

.font-small {
    font-size: 0.9rem;
}

.font-medium {
    font-size: 1rem;
}

.font-large {
    font-size: 1.2rem;
}

.empty-state, .loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state i, .loading i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* 留言板管理页面样式 */
.admin-login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-panel-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.admin-header h2 {
    color: #333;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.board-info-container {
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.info-item label {
    font-weight: bold;
    color: #555;
}

.messages-management-container {
    margin-bottom: 30px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.filter-controls .form-group {
    flex: 1;
    min-width: 150px;
}

.messages-list-container {
    position: relative;
    min-height: 200px;
}

.admin-messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-message-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--message-color, #4a90e2);
    background: #f9f9f9;
    transition: transform 0.2s;
}

.admin-message-item:hover {
    transform: translateY(-2px);
}

.admin-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.admin-message-content {
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-message-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-restore {
    background-color: #28a745;
    color: white;
}

.btn-restore:hover {
    background-color: #218838;
}

/* 选项卡样式 */
.tab-container {
    width: 100%;
}

.tab-buttons {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
}

.tab-button:hover {
    color: #4a90e2;
}

.tab-button.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .messages-list {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}