/* DL Workshop 页面样式 */

.page-contain {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-title {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 宣传图样式 */
.workshop-banner {
    text-align: center;
    margin-bottom: 30px;
}

.workshop-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 搜索区域 */
.filter-section {
    margin-bottom: 25px;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

#searchInput {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

#searchInput:focus {
    border-color: #666;
}

.search-box button {
    padding: 12px 25px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #555;
}

/* 错误信息 */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
}

/* 演讲者列表 */
.speakers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 演讲者项目 */
.speaker-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: box-shadow 0.3s;
}

.speaker-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 头像区域 */
.speaker-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
}

.speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #999;
}

/* 内容区域 */
.speaker-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 基本信息 */
.speaker-basic-info {
    margin-bottom: 5px;
}

.speaker-name {
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.speaker-affiliation {
    color: #666;
    font-size: 15px;
    margin-bottom: 3px;
}

.speaker-position {
    color: #777;
    font-size: 14px;
    font-style: italic;
}

/* 联系信息 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.contact-label {
    color: #555;
    font-weight: 600;
    min-width: 60px;
}

.contact-content a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
}

.contact-content a:hover {
    text-decoration: underline;
    color: #004499;
}

/* 详细信息区域 */
.speaker-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-weight: 600;
    color: #444;
    font-size: 14px;
    margin-bottom: 5px;
}

.detail-content {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* 演讲主题样式 */
.speech-title {
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
}

/* 研究方向样式 */
.research-interests {
    color: #4a5568;
    font-style: italic;
}

/* Abstract 和 BIO 文本样式 */
.abstract-text,
.bio-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    word-break: break-word;
}

/* 长文本折叠样式 */
.abstract-text.collapsed,
.bio-text.collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.abstract-text.collapsed:after,
.bio-text.collapsed:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to top, white, transparent);
}

/* Read More 按钮 */
.read-more-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.read-more-btn:hover {
    color: #333;
}

.read-more-btn i {
    font-size: 10px;
}

/* 无数据时的样式 */
.no-speakers {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-speakers i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.no-speakers h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.no-speakers p {
    font-size: 14px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .speaker-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .speaker-avatar {
        width: 100px;
        height: 100px;
    }

    .speaker-content {
        text-align: left;
        width: 100%;
    }

    .speaker-name {
        font-size: 1.3rem;
        text-align: center;
    }

    .speaker-affiliation,
    .speaker-position {
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .contact-label {
        min-width: auto;
    }

    .contact-content a {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .page-contain {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .speaker-item {
        padding: 15px;
    }
}

/* 打印样式优化 */
@media print {
    .speaker-item {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none !important;
    }

    .abstract-text.collapsed,
    .bio-text.collapsed {
        max-height: none !important;
    }

    .abstract-text.collapsed:after,
    .bio-text.collapsed:after {
        display: none;
    }

    .read-more-btn {
        display: none !important;
    }

    .contact-content a {
        color: #333 !important;
        text-decoration: none !important;
    }
}