/* ===== Teacher Page Styles ===== */

/* --- Banner --- */
.teacher-banner {
    width: 100%;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.teacher-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102,126,234,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: coverFloat 12s ease-in-out infinite;
}

.teacher-banner::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(118,75,162,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: coverFloat 18s ease-in-out infinite reverse;
}

.teacher-banner-bg {
    width: 100%;
    position: relative;
    z-index: 1;
}

.teacher-banner-p1 {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0;
}

.teacher-banner-p2 {
    font-size: 22px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    margin-top: 16px;
    letter-spacing: 2px;
}

/* --- Breadcrumb --- */
.teacher-breadcrumb {
    background: #f8f9fc;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.88rem;
    color: #999;
}
.teacher-breadcrumb a { color: #667eea; }
.teacher-breadcrumb span { color: #555; }

/* --- Section Titles --- */
.teacher-section {
    padding: 70px 0;
    background: #fff;
}

.teacher-section-alt {
    background: #f8f9fc;
}

.teacher-section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.teacher-section-sub {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

/* ===== 技术导师 Cards (full-width, image left + labeled desc right) ===== */
.tech-teacher-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tech-teacher-card {
    display: flex;
    width: 100%;
    min-height: 240px;
    background: linear-gradient(to bottom, #f6f7f9 60%, #fff8f4 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid #f0f0f5;
}

.tech-teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
    border-color: #667eea;
}

/* Left: image */
.tech-teacher-img-wrap {
    width: 240px;
    min-height: 240px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: linear-gradient(135deg, #eef1ff, #e8e5ff);
}

.tech-teacher-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Right: content */
.tech-teacher-body {
    flex: 1;
    padding: 30px 32px 24px;
    display: flex;
    flex-direction: column;
}

.tech-teacher-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.tech-teacher-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

.tech-teacher-title {
    display: inline-block;
    padding: 3px 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* Labeled descriptions */
.tech-teacher-desc-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.tech-desc-row {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

.tech-desc-label {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-right: 8px;
}

.tech-desc-label.orange {
    background: #fae0d5;
    color: #ff5000;
}

.tech-desc-label.blue {
    background: #d4f7ff;
    color: #2c71ff;
}

/* ===== 学业/就业导师 Cards (3-column grid) ===== */
.grid-teacher-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-teacher-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f5;
    display: flex;
    flex-direction: column;
}

.grid-teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: #667eea;
}

/* Card top: name (left) + image (right) */
.grid-teacher-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 22px 16px;
    background: linear-gradient(to bottom, #f6f7f9 60%, #fff 100%);
}

.grid-teacher-info {
    flex: 1;
    min-width: 0;
}

.grid-teacher-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.grid-teacher-info .grid-teacher-role {
    display: inline-block;
    padding: 2px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.grid-teacher-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-left: 16px;
}

/* Card body */
.grid-teacher-desc {
    padding: 16px 22px 22px;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.8;
    flex: 1;
}

/* ===== Page anim ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .teacher-banner { height: 260px; }
    .teacher-banner-p1 { font-size: 40px; letter-spacing: 4px; }
    .teacher-banner-p2 { font-size: 18px; }

    .tech-teacher-card { flex-direction: column; min-height: auto; }
    .tech-teacher-img-wrap { width: 100%; min-height: auto; padding: 24px; }
    .tech-teacher-img { width: 130px; height: 130px; }
    .tech-teacher-body { padding: 20px 22px; }
}

@media (max-width: 575px) {
    .teacher-banner { height: 200px; padding-top: 60px; }
    .teacher-banner-p1 { font-size: 28px; letter-spacing: 2px; }
    .teacher-banner-p2 { font-size: 14px; margin-top: 10px; }

    .teacher-section { padding: 50px 0; }
    .teacher-section-title { font-size: 1.4rem; }

    .tech-teacher-card { flex-direction: column; min-height: auto; }
    .tech-teacher-img-wrap { width: 100%; min-height: auto; padding: 20px; }
    .tech-teacher-img { width: 110px; height: 110px; }
    .tech-teacher-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tech-teacher-header h3 { font-size: 1.2rem; }
    .tech-teacher-body { padding: 16px 18px; }
    .tech-desc-row { font-size: 0.82rem; }
}
