/* ============ 专题首页 ============ */

/* ============ 专题头部 ============ */
.section-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.index-section-title{
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.index-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.section-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tab-item {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.tab-item:hover {
    color: var(--primary);
}

.tab-item.active {
    color: var(--text);
    font-weight: 500;
}

.tab-divider {
    color: var(--border);
    font-size: 13px;
    user-select: none;
}

.section-more {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.section-more:hover {
    color: var(--primary);
}

/* ============ 培训网格 ============ */
.training-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.training-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    display: block;
}

.training-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.training-card:hover .training-title {
    color: var(--primary);
}

.training-image {
    width: 100%;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-lighter);
    position: relative;
}

.training-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.training-badge.hot {
    background: var(--accent-red);
}

.training-badge.new {
    background: var(--accent-green);
}

.training-info {
    padding: 10px 12px 12px;
}

.training-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.meta-item svg {
    width: 12px;
    height: 12px;
}

.meta-divider {
    color: var(--border);
}

.training-title {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
/* ============ 主内容区 ============ */
.main-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

/* ============ 卡片网格 ============ */
.training-grid-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.special-list .training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.training-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    display: block;
}

.training-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.training-card:hover .training-title {
    color: var(--primary);
}

.training-image {
    width: 100%;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-lighter);
    position: relative;
}

.training-info {
    padding: 10px 12px 12px;
}

.training-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.meta-item svg {
    width: 12px;
    height: 12px;
}

.training-title {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
/* ============ 侧边栏 ============ */
.sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

.sidebar-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.4;
}

.sidebar-tab:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.sidebar-tab.active {
    background: var(--primary-lighter);
    color: var(--primary);
    font-weight: 500;
}

.sidebar-tab-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 4px;
}

.sidebar-tab.active .sidebar-tab-count {
    color: var(--primary);
}
/* ============ 视频播放区 ============ */
.video-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-player a{
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a2332;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.video-player .video-mask{
    width: stretch;
}
.video-player img{
    width: inherit;
}
.video-player svg {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.3);
}

.play-btn {
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 49, 125, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 49, 125, 0.5);
}

.play-btn svg {
    width: 32px;
    height: 32px;
    color: #fff;
    margin-left: 4px;
}

.video-info {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-stats {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: var(--primary-lighter);
}

.stat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 4px 8px;
}

.stat-btn:hover {
    color: var(--primary);
}

.stat-btn svg {
    width: 18px;
    height: 18px;
}

/* ============ 简介 Section ============ */
.summary-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.summary-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.summary-content p {
    margin-bottom: 12px;
}

.summary-content p:last-child {
    margin-bottom: 0;
}

/* ============ 图文报道 Section ============ */
.image-reports-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.report-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

.report-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.report-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-image svg {
    width: 40px;
    height: 40px;
    color: var(--primary-light);
}

.report-info {
    padding: 12px;
}

.report-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============ 视频报道 Section ============ */
.video-reports-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}

.video-reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-report-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
    cursor: pointer;
}

.video-report-item:hover {
    border-color: var(--primary-light);
    background: var(--primary-lighter);
}

.video-report-thumb {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    background: #1a2332;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-report-thumb svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.5);
}

.video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
}

.video-report-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.video-report-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-report-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* ============ 侧边栏 ============ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* 讲师信息 */
.instructor-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.instructor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instructor-avatar svg {
    width: 28px;
    height: 28px;
    color: var(--primary-light);
}

.instructor-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.instructor-details p {
    font-size: 13px;
    color: var(--text-muted);
}

.instructor-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 课程目录 */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-item:hover {
    background: var(--primary-lighter);
}

.course-item.active {
    background: var(--primary-lighter);
    border: 1px solid var(--primary);
}

.course-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.course-item.active .course-number {
    background: var(--primary);
    color: #fff;
}

.course-info {
    flex: 1;
    min-width: 0;
}

.course-name {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-duration {
    font-size: 12px;
    color: var(--text-muted);
}

/* 相关推荐 */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.related-item:hover .related-title {
    color: var(--primary);
}

.related-thumb {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
    background: #1a2332;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-thumb svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.4);
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.special-show .related-title {
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: unset;
    font-weight: normal;
    border-bottom: unset;
    position: unset;
}

.related-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
    .training-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .training-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    nav { padding: 0 16px; }
    .container { padding: 0 16px 32px; }
    .training-section { padding: 16px; }
    .training-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px; }
    .qr-grid { justify-content: center; }
}

@media (max-width: 480px) {
    .training-grid { grid-template-columns: 1fr; }
}