:root {
    --primary-blue: #1a365d;
    --secondary-blue: #2a4f7c;
    --accent-blue: #4a90e2;
    --text-light: #f0f4f8;
    --background-dark: #0d1b2a;
}
/* 修改style.css */
body {
    background-color: #bdcdff;
    max-width:500px;
    min-height: 100vh; /* 确保背景铺满全屏 */
}
/* 会议页签导航 */
.conference-tabs {
    position: relative;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--secondary-blue);
    border-radius: 12px 12px 0 0;
    padding: 0 10px;
}

.tab-item {
    flex: 0 0 120px;
    padding: 15px 20px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tab-item.active {
    color: var(--text-light);
    font-weight: 500;
}

.tab-date {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.tab-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: var(--accent-blue);
    transition: all 0.3s ease;
    z-index: 0;
}

/* 会议内容区域 */
.conference-content {
    background: var(--primary-blue);
    border-radius: 0 0 12px 12px;
    padding: 20px;
}

.conf-panel {
    display: none;
}

.conf-panel.active {
    display: block;
}

.conference-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--secondary-blue);
}

.conf-date {
    color: var(--accent-blue);
    margin: 0 0 10px 0;
}

.conf-location {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 时间轴布局 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--accent-blue);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.session-time {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 80px;
    padding: 6px 10px;
    background: var(--secondary-blue);
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: white;
}

.session-card {
    background: var(--background-dark);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.session-title {
    color: var(--accent-blue);
    margin-top: 0;
    font-size: 1.1rem;
}

/* 角色标题样式 */
.session-role .role-title {
    color: var(--text-light) !important;
    font-size: 1.1rem;
    margin: 20px 0 15px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.session-content {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 医生卡片组件 */
.doctor-card {
    display: flex;
    align-items: center;
    background: var(--secondary-blue);
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    transition: transform 0.2s;
    cursor: pointer;
}

.doctor-card:hover {
    transform: translateX(5px);
}

.avatar-container {
    position: relative;
    top: 50%;
    margin-right: 15px;
}

.doctor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.avatar-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.doctor-card:hover .avatar-hover {
    opacity: 1;
}

.doctor-info {
    flex: 1;
}

.l-doctor-name {
    text-align: center;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 4px;
}

.l-hospital-info {
    font-size: 1.1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.doctor-name {
    text-align: left;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 4px;
}

.doctor-hospital {
    font-size: 0.85rem;
    color: #a0bcd0;
}

/* 头像样式 */
.avatar-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.avatar-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
}

.section-title {
    color: var(--accent-blue);
    border-left: 4px solid var(--accent-blue);
    padding-left: 15px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

.hospital-info {
    font-size: 1.1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 返回按钮 */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--text-light);
    background: var(--secondary-blue);
    border-radius: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--accent-blue);
    transform: translateX(-5px);
}

/* 医生卡片容器 */
.doctor-profile-card {
    background: var(--primary-blue);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* 头部信息 */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

/* 专家列表页专用样式 */
.expert-container {
    position: relative;
    padding-right: 50px; /* 为字母导航留出空间 */
}

.page-title {
    color: var(--accent-blue);
    text-align: center;
    margin: 20px 0;
    font-size: 1.8rem;
}

/* 字母导航 */
.alpha-nav {
    position: fixed;
    right: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 10px 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 100;
}

.alpha-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--primary-blue); /* 白色文字 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* 为选中效果添加定位 */
    transition: all 0.3s ease;
}

.alpha-link:hover:not(.disabled),
.alpha-link.active {
    background: var(--accent-blue);
    color: var(--text-light);
    transform: scale(1.15);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* 添加选中指示圈 */
.alpha-link.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.alpha-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 专家分组 */
.expert-group {
    margin-bottom: 40px;
}

.group-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.group-letter {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.group-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, transparent 100%);
}

/* 专家网格布局 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 15px;
}

.expert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.expert-card {
    background: var(--primary-blue);
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
}

.expert-avatar {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expert-avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    color: var(--accent-blue);
    font-size: 2rem;
}

.expert-info {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.expert-name {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expert-hospital {
    font-size: 0.85rem;
    color: #a0bcd0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@keyframes pulse {
    0% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.95); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}

/* 专家日程搜索 */
.schedule-section {
    margin-top: 30px;
    background: var(--primary-blue);
    border-radius: 12px;
    padding: 20px;
}

.date-header {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin: 20px 0 15px;
    padding-left: 10px;
    border-left: 3px solid var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-card {
    background: var(--background-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    position: relative;
    transition: transform 0.2s ease;
}

.schedule-card:hover {
    transform: translateX(5px);
}

.time-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.time {
    color: var(--text-light);
    font-size: 0.95rem;
}

.role-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 15px;
    text-align: center;
}

.role-tag.host {
    background: #4a90e233;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.role-tag.speaker {
    background: #27ae6033;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.session-title {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.location {
    color: #a0bcd0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-state {
    text-align: center;
    color: #a0bcd0;
    padding: 30px;
    border: 1px dashed var(--secondary-blue);
    border-radius: 8px;
}

/* 搜索容器 */
.search-container {
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-box {
    position: relative;
    max-width: 500px; /* 桌面端最大宽度 */
    width: 100%;
}

/* 搜索图标 */
.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
    font-size: 0.9rem;
}

/* 输入框 - 与专家卡片同宽 */
#expertSearch {
    width: calc(100% - 60px);
    max-width: 500px;
    padding: 10px 15px 10px 40px;
    background: var(--secondary-blue);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#expertSearch:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tab-item {
        flex: 0 0 100px;
        padding: 12px 15px;
    }

    .session-card {
        padding: 15px;
    }

    .timeline {
        padding-left: 20px;
    }

    .session-time {
        left: -50px;
        width: 65px;
        font-size: 0.85rem;
    }

    .alpha-nav {
        bottom: 10px;
        top: auto;
        left: 10px;
        right: 10px;
        flex-direction: row;
        justify-content: center;
        padding: 8px;
        border-radius: 25px;
        overflow-x: auto;
    }

    .alpha-link {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .alpha-link.active {
        transform: scale(1.1);
    }

    .alpha-link.active::after {
        width: 36px;
        height: 36px;
    }

    .expert-container {
        padding-right: 0;
        padding-bottom: 60px; /* 为底部字母导航留出空间 */
    }

    .expert-grid {
        grid-template-columns: 1fr;
    }

    .search-container {
        padding: 15px 20px;
    }

    #expertSearch {
        padding: 12px 20px 12px 45px;
        font-size: 1rem;
    }
}
/* 移动端键盘优化 */
@media (max-width: 480px) {
    #expertSearch {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 12px 15px 12px 40px;
    }
}