.resource-header {
    padding: 2rem 0;
}

.resource-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.resource-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.resource-filters {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-search {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.resource-search:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.resource-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.category-badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.category-badge.active {
    background-color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.category-title i.fa-book {
    color: #3B82F6;
}

.category-title i.fa-code {
    color: #10B981;
}

.category-title i.fa-image {
    color: #8B5CF6;
}

.category-title i.fa-file-text {
    color: #F59E0B;
}

.resource-category-section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

.category-title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-left: 4px solid #3B82F6;
    padding-left: 0.75rem;
}


.resource-item {
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #8B5CF6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.resource-item:hover::before {
    transform: scaleX(1);
}

.resource-icon-container {
    color: white;
}

.resource-name {
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

.resource-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.download-btn {
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn:active {
    transform: scale(0.95);
}

.pagination .page-link {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.pagination .page-link:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.pagination .page-item.active .page-link {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
}

.upload-resource {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-title {
    font-weight: 600;
    color: white;
}

.upload-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 表单样式 */
.form-label {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-select option {
    background-color: #1a1a2e;
    color: white;
}

/* 提交按钮样式 */
.btn {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .resource-title {
        font-size: 2rem;
    }
    
    .resource-description {
        font-size: 1rem;
    }
    
    .resource-filters {
        padding: 1rem;
    }
    
    .category-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
    }
    
    .resource-item {
        padding: 1rem;
    }
    
    .resource-name {
        font-size: 1.1rem;
    }
    
    .upload-resource {
        padding: 1rem;
    }
    
    .upload-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .resource-title {
        font-size: 1.75rem;
    }
    
    .resource-list {
        grid-template-columns: 1fr;
    }
    
    .resource-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .download-btn {
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination .page-item {
        margin: 0.25rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-item {
    animation: fadeInUp 0.5s ease-out;
}

.resource-item:nth-child(2) {
    animation-delay: 0.1s;
}

.resource-item:nth-child(3) {
    animation-delay: 0.2s;
}

.resource-item:nth-child(4) {
    animation-delay: 0.3s;
}

.resource-item:nth-child(5) {
    animation-delay: 0.4s;
}

.resource-item:nth-child(6) {
    animation-delay: 0.5s;
}

/* 加载更多动画 */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}