/* 专题详情页样式 */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --dark: #2C3E50;
    --gray: #7F8C8D;
    --gray-light: #BDC3C7;
    --bg: #f5f7fa;
}

/* 面包屑导航 */
.breadcrumb {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb span {
    margin: 0 8px;
}

/* 专题头部 */
.special-header {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.special-banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.special-info {
    padding: 30px;
}

.special-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.special-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray);
}

.special-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.special-description {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
}

/* 资源统计 */
.special-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* 资源区块 */
.resource-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.section-count {
    padding: 4px 12px;
    background: #e8f4ff;
    color: var(--primary);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.section-more {
    margin-left: auto;
    font-size: 13px;
    color: var(--gray);
}

.section-more a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.section-more a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 资源列表 */
.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.resource-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.resource-item:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* 资源卡片网格 */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.resource-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s;
    border: 1px solid transparent;
    position: relative;
}

.resource-card:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.resource-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.resource-size {
    font-size: 11px;
    color: var(--gray);
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
}

.resource-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.5;
    min-height: 45px;
}

.resource-title a {
    color: var(--dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-title a:hover {
    color: var(--primary);
}

.resource-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray);
    flex-wrap: wrap;
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 往期专题 */
.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.special-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.special-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.special-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.special-card-body {
    padding: 15px;
}

.special-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.special-card-title a {
    color: var(--dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.special-card-title a:hover {
    color: var(--primary);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-light);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 响应式 */
@media (max-width: 768px) {
    .special-info {
        padding: 20px 15px;
    }
    
    .special-title {
        font-size: 22px;
    }
    
    .special-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resource-list,
    .resource-grid,
    .special-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-wrap: wrap;
    }
    
    .section-more {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .special-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 24px;
    }
}
