/* 统一证件照样式 - 适用于所有部门页面 */
.advisor-photos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.photo-card {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 160px;
    border: 2px solid #f0f0f0;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

/* 证件照框架 - 标准3:4比例，缩小尺寸 */
.photo-frame {
    width: 90px;
    height: 120px;
    margin: 0 auto 0.8rem;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    background: #f8f9fa;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.advisor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.advisor-photo:hover {
    transform: scale(1.05);
}

.advisor-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0.4rem 0;
    border-top: 2px solid #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border-radius: 0 0 8px 8px;
}

/* 职位标题样式 */
.position-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #007bff;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

/* 会长和副会长布局 */
.president-section, .vice-president-section {
    margin-bottom: 2rem;
}

.president-row {
    justify-content: center;
}

.vice-president-row {
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
}

/* 理事网格布局 */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.directors-section {
    margin-bottom: 2rem;
}

/* 主顾问（中间位置）特殊样式 - 仅用于顾问团页面 */
.photo-card.main-advisor {
    transform: scale(1.1);
}

.photo-card.main-advisor:hover {
    transform: scale(1.1) translateY(-5px);
}

/* 会长居中特殊样式 */
.photo-card.president-center {
    transform: scale(1.15);
    border: 3px solid #007bff;
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
    box-shadow: 0 6px 20px rgba(0,123,255,0.2);
}

.photo-card.president-center:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,123,255,0.3);
}

.photo-card.president-center .photo-frame {
    border-color: #007bff;
    box-shadow: inset 0 2px 4px rgba(0,123,255,0.1);
}

.photo-card.president-center .advisor-name {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    font-weight: 700;
    border-top-color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .advisor-photos {
        gap: 0.8rem;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }
    
    .photo-card {
        max-width: 120px;
        flex: 0 0 calc(25% - 0.6rem);
        min-width: 100px;
    }
    
    .photo-frame {
        width: 70px;
        height: 93px;
    }
    
    .advisor-name {
        font-size: 0.75rem;
    }
    
    .position-title {
        font-size: 1rem;
    }
    
    .vice-president-row {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
    }
    
    .vice-president-row .photo-card {
        flex: 0 0 calc(25% - 0.6rem);
        max-width: 120px;
        min-width: 100px;
    }
    
    .directors-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .advisor-photos {
        gap: 0.5rem;
    }
    
    .photo-card {
        flex: 0 0 calc(25% - 0.4rem);
        max-width: 90px;
        min-width: 80px;
        padding: 0.6rem;
    }
    
    .directors-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .photo-frame {
        width: 60px;
        height: 80px;
    }
    
    .advisor-name {
        font-size: 0.7rem;
    }
}