/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    height: 100vh;
    overflow: hidden;
    touch-action: manipulation;
}

/* 专业医疗风格背景 */
body.landscape-1920x1080,
body.portrait-1080x1920 {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

/* 横屏 1920x1080 - 医院科室 */
body.landscape-1920x1080 {
    width: 1920px;
    height: 1080px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

body.landscape-1920x1080 .screen {
    width: 1920px;
    height: 1080px;
}

/* 竖屏 1080x1920 - 对口援助和人才项目与科研成果 */
body.portrait-1080x1920 {
    width: 1080px;
    height: 1920px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

body.portrait-1080x1920 .screen {
    width: 1080px;
    height: 1920px;
}

/* 确保固定分辨率页面在浏览器中正确显示 */
body.landscape-1920x1080,
body.portrait-1080x1920 {
    display: block;
}

/* 屏幕管理 */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: all 0.3s ease-in-out;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* 主界面样式 */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
}

.main-title {
    color: white;
    font-size: 4rem;
    margin-bottom: 3rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.main-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.main-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-height: 200px;
    backdrop-filter: blur(10px);
}

.main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.95);
}

.main-btn:active {
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.btn-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* 子屏幕通用样式 */
.screen-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* 标题下方的波浪装饰 */
.screen-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.3) 20%, 
        rgba(59, 130, 246, 0.5) 50%, 
        rgba(59, 130, 246, 0.3) 80%, 
        transparent 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-right: 2rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.screen-header h2 {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: none;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid #3b82f6;
}

/* 横屏下的标题调整 */
body.landscape-1920x1080 .screen-header h2 {
    font-size: 2.5rem;
    letter-spacing: 3px;
}

/* 竖屏下的标题调整 */
body.portrait-1080x1920 .screen-header h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

/* 图标网格样式 */
.icon-grid {
    flex: 1;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    overflow-y: auto;
    position: relative;
    align-content: start;
}

/* 横屏 1920x1080 下的图标网格优化 */
body.landscape-1920x1080 .icon-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding: 2.5rem;
}

/* 竖屏 1080x1920 下的图标网格优化 */
body.portrait-1080x1920 .icon-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
}

.grid-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    user-select: none;
    touch-action: none;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover::before {
    opacity: 1;
}

.grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.grid-item.selected {
    transform: scale(2);
    z-index: 100;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #4a90e2;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    max-height: 300px;
}

.grid-item.dragging {
    pointer-events: none;
    transition: none;
}

.grid-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 24px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.grid-item-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0.5rem;
}

/* 分栏布局样式 */
.split-layout {
    display: flex;
    flex: 1;
    height: calc(100% - 80px);
}

/* 横屏下的分栏布局调整 */
body.landscape-1920x1080 .split-layout {
    height: calc(100% - 80px);
}

/* 竖屏下的分栏布局调整 */
body.portrait-1080x1920 .split-layout {
    height: calc(100% - 80px);
}

.left-panel {
    width: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-right: 2px solid #e2e8f0;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

/* 竖屏下的左侧面板调整 */
body.portrait-1080x1920 .left-panel {
    width: 250px;
}

.right-panel {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* 年份/类别列表样式 */
.year-list, .category-list {
    padding: 1rem;
}

.year-item, .category-item {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.year-item:hover, .category-item:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-color: #3b82f6;
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

.year-item.active, .category-item.active {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-color: #3b82f6;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
    font-weight: 600;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* 人员网格样式 */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    touch-action: manipulation;
}

/* 竖屏下的人员网格优化 */
body.portrait-1080x1920 .staff-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.staff-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    user-select: none;
    touch-action: none;
    min-height: 120px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-card:hover::before {
    opacity: 1;
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 人员卡片选中状态 */
.staff-card.selected {
    transform: scale(2);
    z-index: 100;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border: 2px solid #4a90e2;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(255, 255, 255, 0.98);
    max-width: 400px;
    max-height: 300px;
}

/* 人员卡片拖拽状态 */
.staff-card.dragging {
    pointer-events: none;
    transition: none;
    transform: scale(3) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
}

/* 人员卡片详情显示样式 */
.staff-detail-content {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.staff-detail-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 0.4rem; /* 缩小字体以适应放大的容器 */
    color: #333;
    padding: 0.3rem;
}

.staff-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e0e0e0;
}

.staff-detail-avatar {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.staff-detail-name {
    font-weight: bold;
    font-size: 0.5rem;
    color: #2c3e50;
    text-align: center;
}

.staff-detail-info {
    flex: 1;
    overflow: hidden;
}

.staff-detail-time {
    font-size: 0.35rem;
    color: #475569;
    margin-bottom: 0.3rem;
    text-align: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 0.15rem;
    border-radius: 0.15rem;
    border: 1px solid #bfdbfe;
}

.staff-detail-organization {
    font-size: 0.35rem;
    color: #475569;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.12rem;
    border-radius: 0.12rem;
    margin-bottom: 0.3rem;
    text-align: center;
    border: 1px solid #fcd34d;
}

.staff-detail-reason {
    font-size: 0.32rem;
    color: #475569;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.15rem;
    border-radius: 0.12rem;
    border-left: 0.08rem solid #10b981;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 0.2rem;
    border: 1px solid #e2e8f0;
}

.staff-detail-level {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    padding: 0.12rem;
    border-radius: 0.12rem;
    text-align: center;
    font-size: 0.3rem;
    font-weight: bold;
    color: #2d3436;
}

/* 详情显示状态的特殊样式 */
.staff-card.detail-shown {
    padding: 0.3rem;
}

.staff-card.detail-shown.selected {
    overflow: hidden;
}

/* 确保在不同缩放级别下文字清晰 */
.staff-card.selected .staff-detail-content {
    transform-origin: center center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3b82f6;
}

.staff-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.staff-dept {
    font-size: 1rem;
    color: #475569;
    font-weight: 500;
}

/* 人才项目与科研成果Tab导航 */
.talent-research-nav {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    gap: 1rem;
}

/* 竖屏下的Tab导航调整 */
body.portrait-1080x1920 .talent-research-nav {
    padding: 0.8rem;
    gap: 0.8rem;
}

.talent-research-nav-btn {
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 竖屏下的Tab按钮调整 */
body.portrait-1080x1920 .talent-research-nav-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
}

.talent-research-nav-btn:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-color: #3b82f6;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

.talent-research-nav-btn.active {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-color: #3b82f6;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

#talentResearchContent {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.talent-research-tab-content {
    display: none;
    height: 100%;
    flex-direction: column;
}

.talent-research-tab-content.active {
    display: flex;
}

.talent-research-tab-content .icon-grid {
    flex: 1;
    padding: 0;
}

/* 当 icon-grid 在 right-panel 中时，使用 right-panel 的 padding */
.right-panel .icon-grid {
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* 详情气泡样式 */
.detail-bubble {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.detail-bubble.active {
    display: flex;
}

.bubble-content {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 2rem;
    max-width: 90vw;
    width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: bubbleIn 0.3s ease-out;
    border: 2px solid #3b82f6;
}

@keyframes bubbleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.bubble-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-close:hover {
    background: #f5f5f5;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    max-width: 80vw;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e9ecef;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

/* 表格样式 */
#modalTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#modalTable th,
#modalTable td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#modalTable th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

#modalTable tr:hover {
    background: #f8f9fa;
}

/* 响应式设计 - 仅在非固定分辨率页面使用 */
@media (max-width: 768px) {
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .main-title {
        font-size: 2.5rem;
    }
    
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .main-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .main-btn {
        min-height: 150px;
        padding: 1.5rem;
    }
    
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .btn-icon {
        font-size: 2.5rem;
    }
    
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .btn-text {
        font-size: 1.2rem;
    }
    
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .split-layout {
        flex-direction: column;
    }
    
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .left-panel {
        width: 100%;
        height: 200px;
    }
    
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .icon-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .talent-research-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    body:not(.landscape-1920x1080):not(.portrait-1080x1920) .talent-research-nav-btn {
        width: 100%;
    }
}

/* 触摸友好 */
@media (hover: none) {
    .main-btn:hover {
        transform: none;
    }
    
    .grid-item:hover {
        transform: none;
    }
}

/* 多点触控支持 */
.multi-touch-area {
    touch-action: manipulation;
    user-select: none;
}

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 额外的交互优化 */
.grid-item.selected {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 12px 24px rgba(74, 144, 226, 0.5);
    }
}

/* 触摸反馈 */
.main-btn:active,
.grid-item:active,
.staff-card:active {
    transform: scale(0.98);
}

/* 平滑滚动 */
.left-panel,
.right-panel,
.icon-grid {
    scroll-behavior: smooth;
}

/* 禁用文本选择 */
.main-btn,
.grid-item,
.staff-card,
.year-item,
.category-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 改进的气泡动画 */
.detail-bubble.active .bubble-content {
    animation: bubbleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 表格悬停效果优化 */
#modalTable tr {
    transition: background-color 0.2s ease;
}

/* 网格项拖拽时的阴影效果 */
.grid-item.dragging {
    box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
    transform: scale(3) rotate(2deg);
}

/* 网格项详情显示样式 */
.grid-detail-content {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 人才项目详情样式优化 */
.grid-detail-wrapper {
    padding: 1rem;
    height: 100%;
    overflow-y: auto;
}

.grid-detail-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e9ecef;
}

.detail-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.detail-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.grid-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-category {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #4a90e2, #74b9ff);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.category-label {
    font-weight: 600;
}

.category-value {
    font-weight: 500;
}

.detail-stats {
    background: rgba(74, 144, 226, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.stat-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 奖牌展示专用样式 */
.medal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.medal-item {
    width: 160px;
    height: 160px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        0 1px 4px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: none;
}

.medal-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF6347);
    border-radius: 20px 20px 0 0;
}

.medal-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 8px 16px rgba(0,0,0,0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.medal-item:active {
    transform: translateY(-4px) scale(1.01);
}

.medal-icon-container {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.8rem;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 8px rgba(255, 215, 0, 0.3),
        inset 0 1px 2px rgba(255,255,255,0.3);
    position: relative;
}

.medal-icon-container::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: radial-gradient(ellipse at top left, rgba(255,255,255,0.6), transparent);
    border-radius: 50%;
}

.medal-icon {
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.medal-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.medal-time {
    font-size: 0.7rem;
    color: #7f8c8d;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.medal-organization {
    font-size: 0.6rem;
    color: #95a5a6;
    background: rgba(116, 185, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(116, 185, 255, 0.2);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
}

/* 奖牌闪光动画 */
.medal-item:hover .medal-icon-container {
    animation: medalGlow 1.5s ease-in-out infinite;
}

@keyframes medalGlow {
    0%, 100% {
        box-shadow: 
            0 8px 16px rgba(255, 215, 0, 0.3),
            inset 0 2px 4px rgba(255,255,255,0.3);
    }
    50% {
        box-shadow: 
            0 8px 24px rgba(255, 215, 0, 0.5),
            inset 0 2px 4px rgba(255,255,255,0.5),
            0 0 20px rgba(255, 215, 0, 0.3);
    }
}

/* 不同类型奖牌的配色 */
.medal-item[data-type="gold"] .medal-icon-container {
    background: linear-gradient(145deg, #FFD700, #FFA500);
}

.medal-item[data-type="silver"] .medal-icon-container {
    background: linear-gradient(145deg, #C0C0C0, #A8A8A8);
}

.medal-item[data-type="bronze"] .medal-icon-container {
    background: linear-gradient(145deg, #CD7F32, #A0522D);
}

.medal-item[data-type="special"] .medal-icon-container {
    background: linear-gradient(145deg, #9B59B6, #8E44AD);
}

/* 奖牌选中状态样式 */
.medal-item.selected {
    transform: scale(3);
    z-index: 100;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.25),
        0 10px 20px rgba(255, 215, 0, 0.3);
    border: 3px solid #FFD700;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: linear-gradient(145deg, #fff8dc 0%, #f0f8ff 100%) !important;
}

.medal-item.selected .medal-icon-container {
    animation: medalSelectedGlow 2s ease-in-out infinite;
}

@keyframes medalSelectedGlow {
    0%, 100% {
        box-shadow: 
            0 8px 16px rgba(255, 215, 0, 0.4),
            inset 0 2px 4px rgba(255,255,255,0.3);
    }
    50% {
        box-shadow: 
            0 12px 24px rgba(255, 215, 0, 0.6),
            inset 0 2px 4px rgba(255,255,255,0.5),
            0 0 30px rgba(255, 215, 0, 0.4);
    }
}

/* 奖牌拖拽状态样式 */
.medal-item.dragging {
    pointer-events: none;
    transition: none;
    transform: scale(3) rotate(3deg);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.3),
        0 15px 30px rgba(255, 215, 0, 0.4);
}

/* 确保奖牌网格能够支持拖拽 */
.medal-grid {
    position: relative;
    touch-action: manipulation;
}

/* 奖牌详情显示样式 */
.medal-detail-content {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.medal-detail-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 0.25rem; /* 缩小字体以适应放大的容器 */
    color: #333;
    padding: 0.2rem;
}

.medal-detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid #e0e0e0;
}

.medal-detail-icon-container {
    width: 0.8rem;
    height: 0.8rem;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.05rem 0.1rem rgba(255, 215, 0, 0.3);
}

.medal-detail-icon-container[data-type="gold"] {
    background: linear-gradient(145deg, #FFD700, #FFA500);
}

.medal-detail-icon-container[data-type="silver"] {
    background: linear-gradient(145deg, #C0C0C0, #A8A8A8);
}

.medal-detail-icon-container[data-type="bronze"] {
    background: linear-gradient(145deg, #CD7F32, #A0522D);
}

.medal-detail-icon-container[data-type="special"] {
    background: linear-gradient(145deg, #9B59B6, #8E44AD);
}

.medal-detail-icon {
    font-size: 0.45rem;
    text-shadow: 0 0.02rem 0.04rem rgba(0,0,0,0.2);
}

.medal-detail-title {
    font-weight: bold;
    font-size: 0.28rem;
    color: #2c3e50;
    text-align: center;
}

.medal-detail-info {
    flex: 1;
    overflow: hidden;
}

.medal-detail-time {
    font-size: 0.22rem;
    color: #7f8c8d;
    margin-bottom: 0.2rem;
    text-align: center;
    background: rgba(116, 185, 255, 0.1);
    padding: 0.1rem;
    border-radius: 0.1rem;
}

.medal-detail-organization {
    font-size: 0.2rem;
    color: #95a5a6;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.08rem;
    border-radius: 0.08rem;
    margin-bottom: 0.2rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.medal-detail-reason {
    font-size: 0.2rem;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.1rem;
    border-radius: 0.08rem;
    border-left: 0.05rem solid #00b894;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 0.15rem;
}

.medal-detail-level {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    padding: 0.08rem;
    border-radius: 0.08rem;
    text-align: center;
    font-size: 0.18rem;
    font-weight: bold;
    color: #2d3436;
}

/* 详情显示状态的特殊样式 */
.medal-item.detail-shown {
    padding: 0.2rem;
}

.medal-item.detail-shown.selected {
    overflow: hidden;
}

/* 确保在不同缩放级别下文字清晰 */
.medal-item.selected .medal-detail-content {
    transform-origin: center center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.grid-detail-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 0.5rem; /* 增大基础字体，提升可读性 */
    color: #333;
    padding: 0.5rem;
}

.grid-detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e0e0e0;
}

.detail-icon {
    font-size: 1rem;
}

.detail-title {
    font-weight: bold;
    font-size: 0.7rem;
    color: #2c3e50;
}

.grid-detail-image {
    text-align: center;
    margin-bottom: 0.6rem;
}

.grid-detail-image img {
    width: 100%;
    max-width: 4rem;
    height: auto;
    border-radius: 0.4rem;
    box-shadow: 0 0.2rem 0.4rem rgba(0,0,0,0.1);
}

.grid-detail-info {
    flex: 1;
    overflow: hidden;
}

.detail-description {
    font-size: 0.45rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0.6rem;
    text-align: center;
}

.detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.stat-item {
    text-align: center;
    background: rgba(74, 144, 226, 0.1);
    padding: 0.3rem;
    border-radius: 0.2rem;
}

.stat-label {
    display: block;
    font-size: 0.35rem;
    color: #666;
    margin-bottom: 0.1rem;
}

.stat-value {
    display: block;
    font-size: 0.45rem;
    font-weight: bold;
    color: #4a90e2;
}

.detail-services {
    margin-bottom: 0.6rem;
}

.services-title {
    font-size: 0.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    text-align: center;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: center;
}

.service-tag {
    background: #4a90e2;
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: 0.3rem;
    font-size: 0.35rem;
    white-space: nowrap;
}

.detail-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: center;
}

.specialty-badge {
    background: #e74c3c;
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: 0.3rem;
    font-size: 0.35rem;
    white-space: nowrap;
}

/* 详情显示状态的特殊样式 */
.grid-item.detail-shown {
    padding: 0.3rem;
}

.grid-item.detail-shown.selected {
    /* 保持放大状态但调整内容布局 */
    overflow: hidden;
}

/* 确保在不同缩放级别下文字清晰 */
.grid-item.selected .grid-detail-content {
    transform-origin: center center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 工会获奖Tab样式 */
.union-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

.union-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.union-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.union-tab:hover::before {
    opacity: 1;
}

.union-tab.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    font-weight: bold;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.union-tab.active::before {
    opacity: 0;
}

.tab-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.union-tab:hover .tab-icon {
    transform: scale(1.1);
}

.union-tab.active .tab-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.tab-text {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.union-tab.active .tab-text {
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.union-content {
    min-height: 400px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式Tab设计 */
@media (max-width: 768px) {
    .union-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .union-tab {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.8rem 1rem;
    }
    
    .tab-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .tab-text {
        font-size: 1rem;
    }
}

/* 荣誉展示按钮样式优化 */
.honor-category-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.honor-category-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 加载状态优化 */
.screen.loading {
    pointer-events: none;
}

.screen.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 999;
}





/* 人才列表样式 */
.talent-list {
    margin-top: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-height: 180px;
    overflow-y: auto;
}

.talent-list-header {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e9ecef;
}

.talent-list-header::before {
    content: '👑';
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.talent-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.talent-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 6px;
    border-left: 3px solid #4a90e2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.talent-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #74b9ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.talent-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
    border-left-color: #74b9ff;
}

.talent-item:hover::before {
    opacity: 1;
}

.talent-year {
    min-width: 50px;
    text-align: center;
    background: linear-gradient(135deg, #4a90e2, #74b9ff);
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 1px 4px rgba(74, 144, 226, 0.3);
}

.talent-name {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
    position: relative;
}

.talent-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #74b9ff);
    transition: width 0.3s ease;
}

.talent-item:hover .talent-name::after {
    width: 100%;
}

.talent-dept {
    min-width: 70px;
    text-align: right;
    color: #666;
    font-size: 0.75rem;
    background: rgba(74, 144, 226, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.talent-more {
    text-align: center;
    padding: 0.8rem;
    color: #74b9ff;
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(116, 185, 255, 0.05));
    border-radius: 8px;
    border: 1px dashed #74b9ff;
    margin-top: 0.5rem;
}

/* 对口援助职位信息样式 */
.staff-detail-position {
    color: #636e72;
    font-size: 1.1rem;
    line-height: 1.6;
    background: rgba(74, 144, 226, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    margin: 0.5rem 0;
}
