﻿/* 领导团队页面样式 - 紧凑横向版 */

/* ==================== 领导团队展示区域 ==================== */
.leadership-section {
    padding: 20px 0;
    background: #fff;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 领导卡片样式 - 横向布局 */
.leader-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: row;
    min-height: 200px;
}

.leader-card:hover {
    box-shadow: 0 6px 20px rgba(0, 61, 130, 0.12);
    transform: translateY(-3px);
}

/* 左侧照片区域 */
.leader-card-header {
    flex-shrink: 0;
    width: 180px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-right: 1px solid #e8e8e8;
}

.leader-photo-wrapper {
    width: 130px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: #f0f0f0;
    margin-bottom: 10px;
}

.leader-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.leader-card:hover .leader-photo {
    transform: scale(1.05);
}

.leader-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 2px;
    text-align: center;
}

/* 右侧内容区域 */
.leader-card-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 职位列表 */
.leader-positions {
    margin-bottom: 8px;
}

.position-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.position-item {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    padding-left: 15px;
    position: relative;
}

.position-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: #003d82;
    border-radius: 50%;
}

/* 学术头衔 */
.academic-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.academic-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    font-size: 11px;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.15);
}

/* 分割线 */
.leader-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 8px 0;
}

/* 工作职责 */
.leader-responsibility {
    flex: 1;
}

.responsibility-title {
    font-size: 18px;
    font-weight: 600;
    color: #003d82;
    margin-bottom: 6px;
}

.responsibility-content {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

/* 详细介绍（隐藏，保持结构） */
.leader-details {
    display: none;
}

/* ==================== 响应式布局 - 大屏幕 ==================== */
@media (min-width: 1400px) {
    .leadership-grid {
        max-width: 1400px;
        gap: 22px;
    }

    .leader-card {
        min-height: 210px;
    }

    .leader-card-header {
        width: 190px;
        padding: 14px;
    }

    .leader-photo-wrapper {
        width: 145px;
        height: 180px;
    }

    .leader-name {
        font-size: 19px;
    }

    .leader-card-body {
        padding: 18px 22px;
    }

    .position-item {
        font-size: 17px;
    }

    .academic-tag {
        font-size: 12px;
        padding: 4px 14px;
    }

    .responsibility-title {
        font-size: 17px;
    }

    .responsibility-content {
        font-size: 16px;
    }
}

/* ==================== 响应式布局 - 中屏（1200-1399px）==================== */
@media (min-width: 1200px) and (max-width: 1399px) {
    .leadership-grid {
        padding: 0 20px;
        gap: 20px;
    }

    .leader-card {
        min-height: 200px;
    }

    .leader-card-header {
        width: 180px;
        padding: 12px;
    }

    .leader-photo-wrapper {
        width: 130px;
        height: 160px;
    }

    .leader-name {
        font-size: 18px;
    }

    .leader-card-body {
        padding: 16px 20px;
    }
}

/* ==================== 响应式布局 - 大平板（双列） ==================== */
@media (min-width: 951px) and (max-width: 1199px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 0 15px;
    }

    .leader-card {
        min-height: 200px;
    }

    .leader-card-header {
        width: 170px;
        padding: 12px;
    }

    .leader-photo-wrapper {
        width: 125px;
        height: 155px;
    }

    .leader-name {
        font-size: 17px;
    }

    .leader-card-body {
        padding: 15px 18px;
    }
}

/* ==================== 响应式布局 - 小平板（单列） ==================== */
@media (min-width: 769px) and (max-width: 950px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .leader-card {
        max-width: 700px;
        margin: 0 auto;
        min-height: 200px;
    }

    .leader-card-header {
        width: 180px;
        padding: 12px;
    }

    .leader-photo-wrapper {
        width: 130px;
        height: 160px;
    }

    .leader-name {
        font-size: 18px;
    }

    .leader-card-body {
        padding: 16px 20px;
    }
}

/* ==================== 响应式布局 - 手机 ==================== */
@media (max-width: 768px) {
    .leadership-section {
        padding: 20px 0;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .leader-card {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        max-width: 100%;
    }

    .leader-card-header {
        width: 100% !important;
        padding: 20px 18px !important;
        border-right: none !important;
        border-bottom: 1px solid #e8e8e8 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .leader-photo-wrapper {
        width: 120px !important;
        height: 150px !important;
        margin-bottom: 12px !important;
    }

    .leader-name {
        font-size: 19px !important;
        text-align: center !important;
        letter-spacing: 2px !important;
    }

    .leader-card-body {
        padding: 18px !important;
        display: block !important;
    }

    .leader-positions {
        margin-bottom: 10px !important;
    }

    .position-list {
        gap: 6px;
        display: block;
    }

    .position-item {
        font-size: 18px !important;
        line-height: 1.5 !important;
        display: block;
    }

    .academic-titles {
        justify-content: center;
        margin-bottom: 10px !important;
        gap: 8px;
        display: flex;
        flex-wrap: wrap;
    }

    .academic-tag {
        font-size: 11px !important;
        padding: 4px 12px !important;
    }

    .leader-divider {
        margin: 10px 0 !important;
    }

    .responsibility-title {
        font-size: 17px !important;
        margin-bottom: 8px !important;
    }

    .responsibility-content {
        font-size: 17px !important;
        line-height: 1.6 !important;
        display: block !important;
        -webkit-box-orient: initial !important;
        -webkit-line-clamp: initial !important;
        line-clamp: initial !important;
    }
}

/* ==================== 响应式布局 - 小屏手机 ==================== */
@media (max-width: 480px) {
    .leadership-grid {
        padding: 0 10px !important;
        gap: 15px !important;
    }

    .leader-card-header {
        padding: 18px 15px !important;
    }

    .leader-photo-wrapper {
        width: 105px !important;
        height: 135px !important;
        margin-bottom: 10px !important;
    }

    .leader-name {
        font-size: 17px !important;
        letter-spacing: 1.5px !important;
    }

    .leader-card-body {
        padding: 15px !important;
    }

    .leader-positions {
        margin-bottom: 8px !important;
    }

    .position-list {
        gap: 5px;
    }

    .position-item {
        font-size: 17px !important;
        padding-left: 14px !important;
        line-height: 1.4 !important;
    }

    .position-item::before {
        width: 4px !important;
        height: 4px !important;
        top: 6px !important;
    }

    .academic-titles {
        margin-bottom: 8px !important;
        gap: 6px !important;
    }

    .academic-tag {
        font-size: 10px !important;
        padding: 3px 10px !important;
    }

    .leader-divider {
        margin: 8px 0 !important;
    }

    .responsibility-title {
        font-size: 17px !important;
        margin-bottom: 6px !important;
    }

    .responsibility-content {
        font-size: 17px !important;
        line-height: 1.5 !important;
        display: block !important;
    }
}

/* ==================== 打印样式优化 ==================== */
@media print {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leader-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .leader-card:hover {
        transform: none;
        box-shadow: none;
    }

    .academic-tag {
        box-shadow: none;
        border: 1px solid #ff6b35;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leader-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.leader-card:nth-child(1) {
    animation-delay: 0.05s;
}

.leader-card:nth-child(2) {
    animation-delay: 0.1s;
}

.leader-card:nth-child(3) {
    animation-delay: 0.15s;
}

.leader-card:nth-child(4) {
    animation-delay: 0.2s;
}

/* ==================== 无障碍访问 ==================== */
.leader-card:focus-within {
    outline: 2px solid #003d82;
    outline-offset: 3px;
}