/* ========== 学员案例页面样式 ========== */

:root {
    --primary-color: #FF6B35;
    --primary-light: #FF8F66;
    --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --border-color: #e8e8e8;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --gold-color: #D4AF37;
}

/* ========== 页面基础 ========== */
.students-page {
    min-height: 100vh;
    background: var(--bg-light);
}

/* ========== 页面标题区域 ========== */
.page-hero {
    background: linear-gradient(135deg, #fff8f5 0%, #fff 100%);
    padding: 40px 0 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.page-hero-subtitle {
    font-size: 15px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== 统计区域 ========== */
.stats-section {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8f5 0%, #fff 100%);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

/* ========== 学员筛选 ========== */
.students-filter-section {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-gray);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

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

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

/* ========== 学员列表 ========== */
.students-list-section {
    padding: 20px 0 40px;
}

.students-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ========== 学员卡片 ========== */
.student-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.student-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* 学员照片区域 */
.student-photo-wrapper {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.student-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.student-card:hover .student-photo {
    transform: scale(1.05);
}

.student-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-gradient);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.student-company-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

/* 学员信息区域 */
.student-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 学员基本信息一行显示 */
.student-base-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.4;
}

.student-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.student-course {
    font-size: 11px;
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.student-salary {
    font-size: 12px;
    font-weight: 700;
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.student-company {
    font-size: 11px;
    color: var(--text-gray);
    background: rgba(102, 102, 102, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.student-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 8px 0;
}

/* 学习心得 - 图文混排 */
.student-experience {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experience-text {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.experience-images {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.experience-img {
    width: calc(33.33% - 4px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.experience-img:hover {
    transform: scale(1.02);
}

/* 学员标签 */
.student-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.student-tag {
    padding: 2px 8px;
    font-size: 10px;
    color: var(--text-gray);
    background: var(--bg-light);
    border-radius: 8px;
}

/* ========== 就业单位展示 ========== */
.company-section {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    margin: 12px auto 0;
    border-radius: 2px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.company-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
    text-decoration: none;
}

.company-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
    transform: translateY(-4px);
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
    background: var(--bg-light);
    transition: transform 0.3s ease;
}

.company-item:hover .company-logo {
    transform: scale(1.1);
}

.company-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

.company-item:hover .company-name {
    color: var(--primary-color);
}

/* ========== 弹窗 ========== */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.preview-modal.active {
    display: flex;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.preview-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preview-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* ========== 空状态 ========== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    color: var(--text-gray);
}

/* ========== 分页 ========== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.pagination-wrap .pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}

.pagination-wrap .pagination-btn:hover:not(.disabled):not(.active) {
    border-color: #FF6B35;
    color: #FF6B35;
}

.pagination-wrap .pagination-btn.active {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F66 100%);
    color: #fff;
    border-color: #FF6B35;
}

.pagination-wrap .pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-wrap .pagination-ellipsis {
    padding: 0 8px;
    color: #999;
}

/* ========== 响应式适配 - 平板 ========== */
@media screen and (max-width: 1024px) {
    .students-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .company-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

@media screen and (max-width: 768px) {
    .students-page {
        padding-top: 56px;
    }

    .page-hero {
        padding: 20px 0 16px;
    }

    .page-hero-title {
        font-size: 20px;
    }

    .page-hero-subtitle {
        font-size: 12px;
        padding: 0 16px;
    }

    .stats-section {
        padding: 16px 0;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-icon {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    .students-filter-section {
        padding: 10px 0;
    }

    .filter-tab {
        padding: 5px 10px;
        font-size: 11px;
    }

    .students-list-section {
        padding: 12px 0 30px;
    }

    .students-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .student-info {
        padding: 10px;
    }

    .student-base-info {
        gap: 4px;
    }

    .student-name {
        font-size: 12px;
    }

    .student-course {
        font-size: 10px;
        padding: 1px 4px;
    }

    .student-salary {
        font-size: 10px;
        padding: 1px 4px;
    }

    .student-company {
        font-size: 10px;
        padding: 1px 4px;
    }

    .student-tags {
        margin-top: 6px;
    }

    .student-tag {
        font-size: 9px;
        padding: 1px 6px;
    }

    .experience-text {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .experience-images {
        gap: 4px;
    }

    .experience-img {
        width: calc(33.33% - 3px);
    }

    .company-section {
        padding: 24px 0;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .company-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .company-item {
        padding: 12px 8px;
    }

    .company-logo {
        width: 44px;
        height: 44px;
        margin-bottom: 6px;
    }

    .company-name {
        font-size: 11px;
    }

    .pagination-wrap {
        gap: 6px;
        margin-top: 28px;
    }

    .pagination-wrap .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ========== 响应式适配 - 手机 ========== */
@media screen and (max-width: 480px) {
    .page-hero-title {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-item {
        padding: 10px 6px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-icon {
        font-size: 20px;
    }

    .filter-tabs {
        gap: 4px;
        padding: 0 10px;
    }

    .filter-tab {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 12px;
    }

    .students-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .student-card {
        border-radius: 10px;
    }

    .student-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: 6px;
        left: 6px;
    }

    .student-info {
        padding: 8px;
    }

    .student-name {
        font-size: 12px;
    }

    .student-base-info {
        gap: 4px;
    }

    .student-course {
        font-size: 9px;
        padding: 1px 4px;
    }

    .student-salary {
        font-size: 10px;
        padding: 1px 4px;
    }

    .student-company {
        font-size: 9px;
        padding: 1px 4px;
    }

    .experience-text {
        -webkit-line-clamp: 2;
        font-size: 10px;
    }

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

    .section-title {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .company-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .company-item {
        padding: 10px 6px;
    }

    .company-logo {
        width: 36px;
        height: 36px;
        margin-bottom: 4px;
    }

    .company-name {
        font-size: 10px;
    }
}
