/* 课程联盟页面样式 - 基于主页样式规范 */

/* 面包屑导航 */
.breadcrumb-container {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #64748b;
    line-height: 1; /* 确保行高一致 */
}

.breadcrumb-link {
    color: #0056d3;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-link:hover {
    color: #003d99;
    text-decoration: underline;
}

.breadcrumb-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0; /* 移除行高影响 */
}

.breadcrumb-home svg {
    display: block;
    color: #0056d3;
    transition: color 0.2s ease;
    vertical-align: middle; /* 垂直居中对齐 */
}

.breadcrumb-home:hover svg {
    color: #003d99;
}

.breadcrumb-home:hover {
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #94a3b8;
    line-height: 1; /* 与其他元素保持一致 */
}

.breadcrumb-current {
    color: #1e293b;
    font-weight: 500;
    line-height: 1; /* 与其他元素保持一致 */
}

.category-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.category-page-description {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
}

/* 页面容器 - 与主页间距规范一致 */
.page-explore-courses .homepage-container {
    max-width: 1400px; /* 优化：适应现代宽屏，提升空间利用率 */
    margin: 0 auto;
    padding: 40px; /* 与主页内边距保持一致 */
    padding-top: 120px; /* 为固定顶栏留出空间（72px顶栏 + 约50px tabs，减少间距） */
    display: grid;
    grid-template-columns: 1fr; /* 移除右侧边栏，使用单列布局 */
    gap: 32px; /* 增加间距提升视觉层次 */
    min-height: calc(100vh - 80px);
}

.page-partners .homepage-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    padding-top: 150px; /* 顶栏 + tabs 较高，适当增加间距避免英雄区被遮挡 */
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: calc(100vh - 80px);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 区域标题样式 - 与主页一致 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.btn-view-all-header {
    background: none;
    color: #1B4F8C;
    border: 2px solid #1B4F8C;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-all-header:hover {
    background: #1B4F8C;
    color: white;
}

/* 联盟介绍卡片 - 压缩高度节省空间 */
.alliance-intro-card {
    background: #fff;
    border-radius: 8px; /* 减少圆角 */
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 20px; /* 减少内边距节省空间 */
    margin-bottom: 16px; /* 减少底部间距 */
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 12px; /* 减少内容间距 */
}

.intro-description {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; /* 减少统计项间距 */
}

.stat-item {
    text-align: center;
    padding: 12px; /* 减少统计项内边距 */
    background: #f8f9fa;
    border-radius: 6px; /* 减少圆角 */
    border: 1px solid #e9ecef;
}

.stat-number {
    display: block;
    font-size: 24px; /* 减少数字字体大小 */
    font-weight: 700;
    color: #1B4F8C;
    margin-bottom: 4px; /* 减少底部间距 */
}

.stat-label {
    font-size: 13px; /* 减少标签字体大小 */
    color: #666;
    font-weight: 500;
}

/* 联盟成员和学分互认区域 - 优化宽度比例 */
.members-and-credit-section {
    margin-top: 32px;
}

.members-credit-container {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 调整比例：3:1 更符合内容重要性 */
    gap: 32px; /* 增加间距提升视觉分离 */
    align-items: start; /* 确保顶部对齐 */
}

.alliance-members-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 确保顶部对齐 */
}

.credit-recognition-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 确保顶部对齐 */
}

/* 成员网格 - 一行显示3个成员 */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定3列布局 */
    gap: 20px; /* 减少间距以适应3列布局 */
}

.member-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.member-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.member-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.member-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.member-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.member-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* 筛选区域 - 在联盟课程区域内 */
.course-filters-section {
    background: #fff;
    border-radius: 8px; /* 减少圆角 */
    border: 1px solid #e6e6e6;
    padding: 16px; /* 减少内边距 */
    margin-bottom: 20px; /* 减少底部间距 */
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左对齐标签，右对齐下拉框 */
    gap: 24px; /* 分类标签和下拉框之间的间距 */
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 8px; /* 减少标签间距节约空间 */
    flex-wrap: wrap;
}

.filter-tab {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 12px; /* 减少内边距节约空间 */
    font-size: 13px; /* 稍微减小字体节约空间 */
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; /* 防止文字换行 */
}

.filter-tab:hover {
    background: #e9ecef;
    color: #333;
}

.filter-tab.active {
    background: #1B4F8C;
    color: white;
    border-color: #1B4F8C;
}

.filter-options {
    display: flex;
    gap: 12px; /* 减少下拉框间距节约空间 */
    flex-wrap: wrap;
    justify-content: flex-end; /* 下拉框右对齐 */
}

.filter-select {
    padding: 8px 12px; /* 减少内边距节约空间 */
    border: 1px solid #e6e6e6;
    border-radius: 6px; /* 减少圆角节约空间 */
    font-size: 13px; /* 稍微减小字体节约空间 */
    background: white;
    cursor: pointer;
    min-width: 120px; /* 减少最小宽度节约空间 */
}

.filter-select:focus {
    outline: none;
    border-color: #1B4F8C;
    box-shadow: 0 0 0 2px rgba(27, 79, 140, 0.1);
}

/* 课程网格 - 一行显示3门课程 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 大屏幕显示3列 */
    gap: 20px; /* 减少间距以适应3列布局 */
    margin-bottom: 40px;
}

/* 合作院校列表网格 */
.partners-section {
    margin-top: 40px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 响应式布局 - 与课程网格保持一致 */
@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

.institution-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.institution-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.page-partners .institution-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 32px;
    padding-bottom: 28px;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.institution-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.page-partners .institution-logo {
    width: 96px;
    height: 96px;
    border-radius: 0;
    border: none;
    background: transparent;
}

.institution-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-partners .institution-logo img {
    object-fit: contain;
}

.institution-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #1B4F8C;
}

.page-partners .institution-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.institution-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.institution-name-cn {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.page-partners .institution-name-cn {
    font-size: 18px;
    font-weight: 700;
}

.page-partners .institution-name-en {
    font-size: 12px;
    color: #94a3b8;
    opacity: 0.8;
}

.institution-name-en {
    font-size: 13px;
    color: #64748b;
}

/* 超大屏幕优化 - 四列布局 */
@media (min-width: 1600px) {
    .course-grid {
        grid-template-columns: repeat(4, 1fr); /* 超大屏幕四列 */
        gap: 24px; /* 超大屏幕增加间距 */
    }
}

/* 超大屏幕优化 */
@media (min-width: 1400px) {
    .course-grid {
        gap: 24px; /* 超大屏幕增加间距 */
    }
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.course-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-image {
    transform: scale(1.05);
}

.course-card-content {
    padding: 20px;
}

.course-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.course-card-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.course-card-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.course-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-icon {
    color: #ffc107;
}

.course-students {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 加载更多按钮 */
.load-more-section {
    text-align: center;
    margin-top: 20px;
}

.btn-load-more {
    background: #1B4F8C;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background: #154a7a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(27, 79, 140, 0.3);
}

/* 右侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 卡片样式 - 与主页通知卡片一致 */
.credit-recognition-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-top: 60px; /* 与联盟成员网格顶部对齐（标题高度 + margin-bottom） */
    transition: all 0.2s ease;
}

.credit-recognition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

/* 卡片内标题样式 - 与主页通知卡片一致 */
.card-header {
    padding: 16px 16px 0 16px; /* 减少内边距 */
    border-bottom: none;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    padding-bottom: 12px; /* 减少底部间距 */
    border-bottom: none; /* 去掉分割线 */
}

.alliance-news-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
}

.card-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.view-all-link {
    font-size: 12px;
    color: #1B4F8C;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.card-content {
    padding: 16px; /* 减少内边距，符合界面规范 */
}

.card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px 0; /* 减少底部间距 */
}

/* 功能特性列表 */
.recognition-features {
    display: flex;
    flex-direction: column;
    gap: 6px; /* 减少特性项间距 */
    margin-bottom: 16px; /* 减少底部间距 */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    padding: 2px 0; /* 进一步减少内边距 */
    border-bottom: none; /* 去掉分割线 */
}

.feature-icon {
    font-size: 12px;
}

/* 按钮样式 - 与主页通知卡片一致 */
.btn-learn-more {
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1B4F8C;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-learn-more:hover {
    background: #1B4F8C;
    color: white;
}

/* 联盟动态区域 */
.alliance-news-section {
    margin-top: 30px;
}

.news-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: calc(75% - 16px); /* 与联盟成员实际宽度一致（3fr / 4fr = 75%，减去一半间距） */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 与联盟成员保持一致，固定3列布局 */
    gap: 20px; /* 与联盟成员保持一致 */
}

.news-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.news-card-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-card-date {
    font-weight: 500;
}

.news-card-type {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* 新闻列表（备用样式） */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-summary {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.news-date {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

/* 响应式设计 - 与主页间距规范保持一致 */
@media (max-width: 1024px) {
    .homepage-container {
        max-width: 100%;
        padding: 24px 16px; /* 与主页保持一致的内边距 */
        gap: 24px;
    }
    
    .course-grid {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕显示2列 */
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .homepage-container {
        padding: 20px 16px; /* 移动端适当减少内边距，与主页保持一致 */
        gap: 20px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .intro-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px; /* 移动端减少统计项间距 */
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕显示2列 */
        gap: 16px;
    }
    
    .members-credit-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .news-container {
        max-width: 100%; /* 移动端恢复全宽 */
    }
    
    .credit-recognition-card {
        margin-top: 0; /* 移动端不需要顶部偏移 */
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕显示2列，与联盟成员一致 */
        gap: 16px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .filter-tabs {
        width: 100%;
        justify-content: flex-start;
    }
    
    .filter-options {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        justify-content: stretch; /* 移动端下拉框占满宽度 */
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .alliance-intro-card {
        padding: 16px; /* 移动端进一步减少内边距 */
    }
    
    .course-filters-section {
        padding: 12px; /* 移动端进一步减少内边距 */
    }
}

@media (max-width: 480px) {
    .intro-stats {
        grid-template-columns: 1fr;
    }
    
    .members-grid {
        grid-template-columns: 1fr; /* 移动端单列显示 */
        gap: 12px;
    }
    
    .news-grid {
        grid-template-columns: 1fr; /* 移动端单列显示，与联盟成员一致 */
        gap: 12px;
    }
    
    .filter-tabs {
        flex-direction: column;
    }
    
    .filter-tab {
        text-align: center;
    }
    
    .card-header {
        padding: 12px 12px 0 12px; /* 移动端进一步减少内边距 */
    }
    
    .card-header h2 {
        font-size: 16px; /* 移动端减少字体大小 */
        padding-bottom: 8px; /* 移动端减少底部间距 */
    }
    
    .card-content {
        padding: 12px; /* 移动端减少内边距 */
    }
}