/**
 * 公共样式文件 - 包含所有页面的通用样式
 * 统一管理样式，确保所有页面风格一致
 */

/* 统一的重置和基础样式 */
* {
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* 头部区域样式 */
.header-section {
    background: linear-gradient(135deg, #005BAC 0%, #005BAC 100%);
    color: white;
    padding: 40px 0;
    margin: 20px 0 20px 0;
    max-width: 1200px;
    border-radius: 10px;
}

/* 卡片样式 */
.filter-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.tab-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 容器样式 */
.unit-container,
.experts-container,
.forum-container,
.timeline-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.unit-header,
.experts-header,
.forum-header,
.timeline-header {
    background: #ffffff;
    border-bottom: 1px solid #005BAC;
    padding: 20px;
}

/* 卡片样式 */
.unit-card,
.expert-card,
.forum-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: white;
}

.unit-card:hover,
.expert-card:hover,
.forum-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 卡片头部样式 */
.unit-card-header,
.forum-card-header {
    background: linear-gradient(135deg, #005BAC 0%, #005BAC 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

/* 项目样式 */
.unit-schedule-item,
.schedule-item {
    border-left: 3px solid #005BAC;
    background: #f8f9fa;
    margin-bottom: 15px;
    border-radius: 5px;
    padding: 15px;
    transition: all 0.3s ease;
}

.unit-schedule-item:hover,
.schedule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 专家头像样式 */
.expert-avatar {
    display: none; /* 完全隐藏头像区域 */
}

/* 主持人头像标识 */
.moderator-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 主持人员签样式 */
.moderator-label {
    font-size: 0.8rem;
    padding: 2px 6px;
}

/* 学术单元样式 */
.unit-section {
    border-left: 3px solid #F08200;
    background: #f8f9fa;
    margin: 15px 0;
    border-radius: 5px;
    padding: 15px;
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

/* 徽章样式 */
.badge-count {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.unit-badge {
    background: #17a2b8;
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-right: 6px;
}

.moderator-badge {
    background: #ffc107;
    color: #212529;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-right: 6px;
}

.schedule-badge {
    background: #17a2b8;
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-right: 6px;
}

.expert-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.venue-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 4px;
}

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

/* 品牌标识动画 */
@keyframes brand-glow {
    0%, 100% { text-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
    50% { text-shadow: 0 0 10px rgba(102, 126, 234, 0.5); }
}

.navbar-brand {
    animation: brand-glow 3s ease-in-out infinite;
}

/* 导航区域样式 */
.nav-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 500;
}

/* 按钮样式 */
.navbar .btn-group-sm .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 1px;
    margin: 0 4px;
}

.navbar .btn-group-sm .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar .btn-group-sm .btn:active {
    transform: translateY(0);
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-weight: 400;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: linear-gradient(135deg, #005BAC 0%, #764ba2 100%);
    color: white;
    transform: translateX(3px);
}

.dropdown-header {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    margin-top: 0.25rem;
    color: #6c757d;
    font-weight: 600;
}

/* 标签页样式 */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: white;
    border-bottom: 3px solid #005BAC;
    color: #005BAC;
}

/* 视图模式选择器 */
.view-mode-selector {
    position: relative;
}

.view-mode-selector .btn-group .btn {
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-mode-selector .btn-group .btn.active {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.view-mode-selector .btn-group .btn:not(.active):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-mode-selector .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.mode-description {
    border-left: 3px solid #005BAC;
    padding-left: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px 12px;
}

/* 时间线样式 */
.timeline-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    min-height: 400px;
}

.time-column {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.time-slot {
    height: 60px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #495057;
}

.date-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    overflow-x: auto;
}

.date-column {
    border-right: 1px solid #e9ecef;
    position: relative;
}

.date-header {
    background: #e9ecef;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.schedule-slot {
    height: 60px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}


/* 专家日程样式 */
.expert-schedule {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-section {
        padding: 30px 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
    
    .expert-avatar {
        display: none; /* 移动端也隐藏头像 */
    }
    
    .unit-card,
    .expert-card,
    .forum-card {
        margin-bottom: 15px;
    }
    
    .unit-schedule-item,
    .schedule-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .unit-section {
        padding: 10px;
        margin: 10px 0;
    }
    
    .timeline-grid {
        grid-template-columns: 80px 1fr;
    }
    
    .time-slot {
        height: 50px;
        font-size: 0.8rem;
    }
    
    .date-columns {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}