/* 演员详情页 - 人物关系样式 */

/* 老师、学生、关系三行容器 */
.yanyuan_type {
    margin: 8px 0;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    min-height: 50px;
    transition: all 0.3s ease;
}

.yanyuan_type:last-child {
    border-bottom: none;
}

.yanyuan_type:hover {
    background-color: #fafafa;
    padding-left: 10px;
    border-radius: 8px;
}

/* 标签样式 */
.yanyuan_type::before {
    content: attr(data-label);
    font-weight: bold;
    color: #333;
    margin-right: 15px;
    min-width: 60px;
    font-size: 15px;
}

/* 人物图片链接容器 */
.yanyuan_type a.keylink {
    display: inline-block;
    margin: 2px 6px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.yanyuan_type a.keylink:hover {
    transform: scale(1.1);
}

/* 人物头像样式 */
.yanyuan_type a.keylink img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    object-fit: cover;
    transition: all 0.3s ease;
}

.yanyuan_type a.keylink:hover img {
    border-color: #007bff !important;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3) !important;
}

/* 人物名称文字样式 */
.yanyuan_type a.keylink::after {
    content: attr(alt);
    display: block;
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

.yanyuan_type a.keylink:hover::after {
    color: #007bff;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .yanyuan_type {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }
    
    .yanyuan_type::before {
        margin-bottom: 10px;
    }
    
    .yanyuan_type a.keylink {
        margin: 4px 8px 4px 0;
    }
    
    .yanyuan_type a.keylink img {
        width: 50px !important;
        height: 50px !important;
    }
}

/* 当没有数据时的提示 */
.yanyuan_type:empty::after {
    content: "暂无数据";
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* 特殊样式 - 老师 */
.yanyuan_type:has(a[href*="teacher"]) a.keylink img {
    border-color: #ff6b6b !important;
}

.yanyuan_type:has(a[href*="teacher"]) a.keylink:hover img {
    border-color: #ff5252 !important;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3) !important;
}

/* 特殊样式 - 学生 */
.yanyuan_type:has(a[href*="student"]) a.keylink img {
    border-color: #4caf50 !important;
}

.yanyuan_type:has(a[href*="student"]) a.keylink:hover img {
    border-color: #45a049 !important;
    box-shadow: 0 4px 12px rgba(76,175,80,0.3) !important;
}

/* 特殊样式 - 关系 */
.yanyuan_type:has(a[href*="relation"]) a.keylink img {
    border-color: #ff9800 !important;
}

.yanyuan_type:has(a[href*="relation"]) a.keylink:hover img {
    border-color: #e68900 !important;
    box-shadow: 0 4px 12px rgba(255,152,0,0.3) !important;
}