/* ================================================
   Education Page - 活动与课程
   ================================================ */

.education-main {
    padding-top: 1.5rem;
}

.education-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.education-sidebar {
    position: sticky;
    top: 6.5rem;
}

.education-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0;
}

.education-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: #444;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.education-nav-item:hover {
    background: rgba(95, 38, 88, 0.06);
    color: var(--nju-purple);
}

.education-nav-item.active {
    background: rgba(125, 51, 114, 0.12);
    color: var(--nju-purple);
    font-weight: 600;
}

.education-nav-item-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.education-nav-item-label i {
    width: 1.1rem;
    text-align: center;
    color: var(--nju-purple-light);
    flex-shrink: 0;
}

.education-nav-item.active .education-nav-item-label i {
    color: var(--nju-purple);
}

.education-nav-count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    background: #f0f0f0;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    min-width: 1.5rem;
    text-align: center;
}

.education-nav-item.active .education-nav-count {
    background: rgba(125, 51, 114, 0.15);
    color: var(--nju-purple);
}

.education-mobile-nav {
    position: sticky;
    top: 4.5rem;
    z-index: 20;
    background: #fff;
    margin: 0 -0.25rem 1rem;
    padding: 0.5rem 0.25rem 0.75rem;
    border-bottom: 1px solid #eee;
}

.education-mobile-nav-scroll {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.education-mobile-pill {
    flex: 0 0 auto;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 0.82rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.education-mobile-pill:hover {
    border-color: var(--nju-purple-light);
    color: var(--nju-purple);
}

.education-mobile-pill.active {
    background: var(--nju-purple-light);
    border-color: var(--nju-purple-light);
    color: #fff;
}

.education-toolbar {
    margin-bottom: 1.25rem;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-row {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease;
}

.education-row:hover {
    box-shadow:
        0 0 14px rgba(95, 38, 88, 0.35),
        0 0 28px rgba(95, 38, 88, 0.15);
    color: inherit;
}

.education-row:focus-visible {
    outline: 2px solid var(--nju-purple-light);
    outline-offset: 2px;
}

.education-row-thumb {
    flex: 0 0 168px;
    width: 168px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    align-self: stretch;
}

.education-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.education-row-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--nju-purple) 0%, var(--nju-purple-light) 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    text-align: center;
    padding: 0.5rem;
}

.education-row-thumb-placeholder i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.education-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.education-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.35rem;
}

.education-row-head .exhibition-badge {
    margin-bottom: 0;
}

.education-row-kind {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #f3f3f3;
}

.education-row-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.15rem;
    transition: color 0.2s ease;
}

.education-row:hover .education-row-title {
    color: var(--nju-purple);
}

.education-row-subtitle {
    font-size: 0.92rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.education-row-people {
    font-size: 0.84rem;
    color: #777;
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.education-row-people-line + .education-row-people-line {
    margin-top: 0.1rem;
}

.education-row-meta {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    margin-top: auto;
}

.education-row-meta > div + div {
    margin-top: 0.15rem;
}

.education-row-meta i {
    width: 0.95rem;
    text-align: center;
    margin-right: 0.3rem;
    color: var(--nju-purple-light);
}

.education-row-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: #ccc;
    font-size: 0.85rem;
}

.education-row:hover .education-row-arrow {
    color: var(--nju-purple);
}

.education-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: #888;
}

/* 详情 */
.education-detail-hero {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.education-detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.education-detail-poster {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #eee;
}

.education-detail-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.education-detail-poster-placeholder {
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--nju-purple) 0%, var(--nju-purple-light) 100%);
    color: rgba(255, 255, 255, 0.9);
}

.education-detail-poster-placeholder i {
    font-size: 2.5rem;
}

.education-detail-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.education-detail-subtitle {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 1rem;
}

.education-detail-meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.education-detail-meta-list li {
    margin-bottom: 0.35rem;
}

.education-detail-meta-list i {
    width: 1.1rem;
    text-align: center;
    margin-right: 0.4rem;
    color: var(--nju-purple-light);
}

.education-detail-section {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.education-detail-section:last-child {
    border-bottom: none;
}

.education-detail-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--nju-purple);
    margin-bottom: 1rem;
}

.education-detail-text {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #333;
    white-space: pre-line;
}

.education-detail-term {
    padding: 1.25rem 0;
    border-top: 1px solid #eee;
}

.education-detail-term:first-child {
    border-top: none;
    padding-top: 0;
}

.education-detail-term-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.education-instructor-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.education-instructor-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.education-instructor-photo {
    flex: 0 0 88px;
    width: 88px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}

.education-instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-instructor-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.education-instructor-identity {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 0.5rem;
    white-space: pre-line;
}

.education-instructor-bio {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.75;
    white-space: pre-line;
}

.education-detail-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--nju-purple-light);
    text-decoration: none;
    font-size: 0.95rem;
}

.education-detail-link:hover {
    color: var(--nju-purple);
}

.education-detail-schedule {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.65;
}

.education-detail-schedule-block + .education-detail-schedule-block {
    margin-top: 0.75rem;
}

@media (max-width: 991.98px) {
    .education-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .education-row-thumb {
        flex: 0 0 120px;
        width: 120px;
    }
}

@media (max-width: 575.98px) {
    .education-row {
        flex-direction: column;
        gap: 0.85rem;
    }

    .education-row-thumb {
        flex: none;
        width: 100%;
        height: 10rem;
    }

    .education-row-thumb-placeholder {
        min-height: 10rem;
    }

    .education-row-arrow {
        display: none;
    }

    .education-detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .education-instructor-card {
        flex-direction: column;
    }

    .education-instructor-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        max-width: 200px;
    }
}
