/* 通知列表样式 */
.notifications-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.notification-item {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.read {
    opacity: 0.6;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-type {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.notification-type.reply {
    background: #d4edda;
    color: #155724;
}

.notification-type.system {
    background: #fff3cd;
    color: #856404;
}

.notification-type.message {
    background: #d1ecf1;
    color: #0c5460;
}

.notification-time {
    color: #999;
    font-size: 12px;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.notification-content {
    color: #555;
    line-height: 1.6;
}

.unread-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
}

/* 求资源列表样式 */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.request-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.solved {
    background: #d4edda;
    color: #155724;
}

.request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.request-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.request-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.request-reply {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.reply-header {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.reply-content {
    color: #555;
    line-height: 1.6;
}

.reply-time {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* 加载和空状态 */
.loading, .empty, .error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error {
    color: #e74c3c;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .request-meta {
        flex-direction: column;
        gap: 5px;
    }
}
