/* 参考资料页面样式 */

/* 主内容区 */
.main-content {
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* 页面标题 */
.main-content h1 {
    color: #2c3e50;
    font-weight: 700;
}

/* 参考资料分类 */
.reference-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

/* 分类标题 */
.section-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-title i {
    font-size: 1.25rem;
}

/* 参考资料卡片 */
.reference-card {
    background-color: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reference-card:hover {
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

/* 参考资料图标 */
.reference-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.reference-icon i {
    font-size: 2rem;
    color: #007bff;
    transition: all 0.3s ease;
}

.reference-card:hover .reference-icon i {
    transform: scale(1.1);
    color: #0056b3;
}

/* 参考资料标题 */
.reference-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 参考资料描述 */
.reference-description {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* 查看详情按钮 */
.reference-card .btn-outline-primary {
    align-self: flex-start;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.reference-card .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .main-content h1 {
        font-size: 1.8rem;
    }
    
    .reference-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .reference-card {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

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

.reference-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.reference-section:nth-child(1) .reference-card:nth-child(1) { animation-delay: 0.1s; }
.reference-section:nth-child(1) .reference-card:nth-child(2) { animation-delay: 0.2s; }
.reference-section:nth-child(1) .reference-card:nth-child(3) { animation-delay: 0.3s; }

.reference-section:nth-child(2) .reference-card:nth-child(1) { animation-delay: 0.4s; }
.reference-section:nth-child(2) .reference-card:nth-child(2) { animation-delay: 0.5s; }
.reference-section:nth-child(2) .reference-card:nth-child(3) { animation-delay: 0.6s; }

.reference-section:nth-child(3) .reference-card:nth-child(1) { animation-delay: 0.7s; }
.reference-section:nth-child(3) .reference-card:nth-child(2) { animation-delay: 0.8s; }
.reference-section:nth-child(3) .reference-card:nth-child(3) { animation-delay: 0.9s; }

.reference-section:nth-child(4) .reference-card:nth-child(1) { animation-delay: 1.0s; }
.reference-section:nth-child(4) .reference-card:nth-child(2) { animation-delay: 1.1s; }
.reference-section:nth-child(4) .reference-card:nth-child(3) { animation-delay: 1.2s; }

.reference-section:nth-child(5) .reference-card:nth-child(1) { animation-delay: 1.3s; }
.reference-section:nth-child(5) .reference-card:nth-child(2) { animation-delay: 1.4s; }
.reference-section:nth-child(5) .reference-card:nth-child(3) { animation-delay: 1.5s; }

.reference-section:nth-child(6) .reference-card:nth-child(1) { animation-delay: 1.6s; }
.reference-section:nth-child(6) .reference-card:nth-child(2) { animation-delay: 1.7s; }
.reference-section:nth-child(6) .reference-card:nth-child(3) { animation-delay: 1.8s; }