/* 课程中心页面样式 */

/* 面包屑导航样式已移至 common.css */

/* 热门课程区域 */
.hot-courses-section {
    background-color: var(--bg-body);
    padding: 30px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.consult-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.consult-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.consult-icon {
    font-size: 16px;
}

/* 热门课程网格 */
.hot-courses-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 热门课程卡片 */
.hot-course-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    position: relative;
}

.hot-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 12px;
    z-index: 10;
}

.course-badge.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
}

.course-badge.special {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.course-image {
    height: 180px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
}

.course-image.blue {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.course-image.blue-dark {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3c72 100%);
}

.course-image.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-image.gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.course-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.course-title-main {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.course-subtitle {
    font-size: 14px;
    opacity: 0.95;
}

.course-tags {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    background-color: #f8f9fa;
}

.course-tags .tag {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
    color: #fff;
}

.tag.tag-type {
    background-color: #5dade2;
}

.tag.tag-mode {
    background-color: #f39c12;
}

.tag.tag-level {
    background-color: #e74c3c;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.course-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-icon {
    font-size: 16px;
}

.course-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 课程筛选与列表区域 */
.course-filter-section {
    background-color: var(--bg-body);
    padding: 0 0 50px;
}

.course-content-wrapper {
    background-color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* 课程分类标签栏 */
.course-tabs-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
}

.tabs-container {
    display: flex;
    gap: 30px;
}

.course-tab {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding-bottom: 5px;
    position: relative;
    transition: all 0.3s;
}

.course-tab::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.course-tab:hover,
.course-tab.active {
    color: var(--primary-color);
}

.course-tab.active::after {
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.search-input {
    padding: 8px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 250px;
}

.search-button {
    padding: 8px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-button svg circle,
.search-button svg path {
    stroke: var(--primary-color);
}

.search-button:hover svg circle,
.search-button:hover svg path {
    stroke: var(--primary-dark);
}

/* 筛选区域 */
.filter-section {
    /* padding: 30px 0; */
    background-color: #f5f5f5;
}

/* 筛选区域顶部 */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    gap: 30px;
}

.filter-title-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.filter-icon {
    font-size: 24px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.filter-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

/* 筛选标签页 */
.filter-tabs {
    display: flex;
    gap: 30px;
    flex: 1;
}

.filter-tab {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--primary-color);
}

.filter-tab.active::after {
    width: 100%;
}

/* 筛选搜索框 */
.filter-search {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.filter-search:focus-within {
    border-color: var(--primary-color);
}

.filter-search-input {
    padding: 8px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 200px;
    background-color: transparent;
}

.filter-search-input::placeholder {
    color: var(--text-lighter);
}

.filter-search-btn {
    padding: 8px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.filter-search-btn:hover {
    color: var(--primary-color);
}

/* 更多筛选按钮 */
.more-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--primary-color);
    background-color: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
}

.more-filter-btn:hover {
    background-color: rgba(215, 67, 57, 0.08);
}

.more-filter-btn svg {
    transition: transform 0.3s ease;
}

.more-filter-btn svg circle,
.more-filter-btn svg path {
    stroke: currentColor;
}

/* 筛选区域容器 */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 筛选盒子 */
.filter-box {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 20px 30px;
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.filter-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 筛选项分隔线（备用样式） */
.filter-row.filter-divider {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.filter-label {
    min-width: 80px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    padding-top: 6px;
    flex-shrink: 0;
}

.filter-tags {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tags .tag {
    display: inline-block;
    padding: 5px 15px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.filter-tags .tag:hover {
    color: var(--primary-color);
    background-color: rgba(215, 67, 57, 0.08);
    border-color: rgba(215, 67, 57, 0.2);
}

.filter-tags .tag.active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 展开按钮 */
.expand-btn {
    display: inline-block;
    padding: 5px 15px;
    font-size: 14px;
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--primary-color);
    background-color: transparent;
}

.expand-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 课程网格 */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 30px;
}

/* 课程卡片 */
.course-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    border: 1px solid #f0f0f0;
}

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

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 12px;
    z-index: 10;
}

.card-badge.festive {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.image-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    padding: 20px;
    text-align: center;
}

.image-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
}

.purple-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.red-gradient {
    background: linear-gradient(135deg, #c73333 0%, #e74c3c 100%);
}

.blue-gradient {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.image-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-subtitle {
    font-size: 14px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.card-info {
    padding: 15px;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.info-tag {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 3px;
    background-color: #f0f0f0;
    color: var(--text-secondary);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.price-label {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.price-value {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.price-range {
    font-size: 13px;
    color: var(--text-light);
}

.student-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.count-icon {
    font-size: 14px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px;
    border-top: 1px solid #f0f0f0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: #fff;
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.page-link:hover:not(.disabled) {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link.active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link.disabled {
    color: var(--text-lighter);
    background-color: var(--bg-hover);
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 8px;
    color: var(--text-lighter);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .hot-courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .hot-courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .breadcrumb {
        margin-top: 100px;
    }

    .filter-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        gap: 20px;
    }

    .filter-search {
        width: 100%;
    }

    .filter-search-input {
        width: 100%;
    }

    .more-filter-btn {
        width: 100%;
        justify-content: center;
    }

    .course-tabs-bar {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .tabs-container {
        overflow-x: auto;
        white-space: nowrap;
        gap: 20px;
    }

    .search-container {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .filter-label {
        min-width: auto;
    }

    .hot-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hot-courses-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filter-header {
        padding: 15px 20px;
    }

    .filter-title {
        font-size: 18px;
    }

    .filter-tabs {
        gap: 20px;
    }

    .filter-tab {
        font-size: 14px;
    }

    .course-tabs-bar {
        padding: 15px 20px;
    }

    .filter-section {
        padding: 20px 0;
    }

    .filter-box {
        padding: 15px 20px;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-label {
        margin-bottom: 10px;
    }

    .filter-tags .tag {
        padding: 4px 12px;
        font-size: 13px;
    }

    .courses-grid {
        padding: 20px;
    }
}
