* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* 应用容器 */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100vw;
    overflow: hidden;
}

/* 页面标题 */
.app-header {
    background: linear-gradient(135deg, #B60005 0%, #8B0004 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: headerGlow 6s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.1); }
}

.app-header h1 {
    font-size: 2.2em;
    margin-bottom: 5px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.app-header p {
    font-size: 1em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: white;
}

/* 左侧筛选面板 - 修复缩放问题 */
.sidebar-panel {
    width: clamp(350px, 25vw, 450px);
    min-width: 350px;
    max-width: 450px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 3px solid #dee2e6;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 筛选组卡片 */
.filter-group-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-group-card:hover {
    border-color: #B60005;
    box-shadow: 0 8px 30px rgba(182, 0, 5, 0.15);
}

/* 卡片头部 */
.card-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    font-size: 16px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
}

/* 卡片内容 */
.card-body {
    padding: 15px;
}

/* 筛选网格 */
.filter-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.search-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.sort-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 筛选项目 */
.filter-item, .search-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 日期范围项目特殊处理 */
.date-range-item {
    min-width: 100%;
}

.filter-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 输入框样式 - 优化缩放适配 */
.filter-input {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
    width: 100%;
}

.filter-input:hover {
    border-color: #B60005;
    box-shadow: 0 2px 8px rgba(182, 0, 5, 0.15);
}

.filter-input:focus {
    outline: none;
    border-color: #B60005;
    box-shadow: 0 0 0 3px rgba(182, 0, 5, 0.1);
}

/* 日期范围 - 优化布局 */
.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.date-input {
    padding: 8px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 12px;
    background: white;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.date-input:hover {
    border-color: #B60005;
    box-shadow: 0 2px 8px rgba(182, 0, 5, 0.15);
}

.date-input:focus {
    outline: none;
    border-color: #B60005;
    box-shadow: 0 0 0 3px rgba(182, 0, 5, 0.1);
}

.date-separator {
    color: #666;
    font-weight: 600;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 搜索输入框 */
.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 30px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 12px;
    background: white;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cpath d='21 21l-4.35-4.35'%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 12px;
}

.search-input:hover {
    border-color: #B60005;
    box-shadow: 0 2px 8px rgba(182, 0, 5, 0.15);
}

.search-input:focus {
    outline: none;
    border-color: #B60005;
    box-shadow: 0 0 0 3px rgba(182, 0, 5, 0.1);
}

/* 搜索下拉框 */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.search-dropdown.show {
    display: block;
}

.search-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
    font-size: 12px;
}

.search-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #B60005;
}

.search-item:last-child {
    border-bottom: none;
}

/* 重置按钮 */
.reset-button {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #B60005 0%, #8B0004 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(182, 0, 5, 0.3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(182, 0, 5, 0.4);
}

.reset-button.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.reset-button.secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-icon {
    font-size: 12px;
}

/* 右侧内容面板 */
.content-panel {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
    position: relative;
    min-width: 0;
}

/* 数据容器 */
.data-container {
    background: white;
    margin: 0;
    border-radius: 0;
    min-height: 100%;
}

.data-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 25px;
    font-size: 1.8em;
    font-weight: 500;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 网格布局 */
.employees-grid, .teams-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    padding: 30px;
}

/* 卡片样式 */
.employee-card, .team-card, .project-card {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.employee-card::before, .team-card::before, .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.employee-card:hover::before, .team-card:hover::before, .project-card:hover::before {
    left: 100%;
}

.employee-card:hover, .team-card:hover, .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #B60005;
}

/* 高亮异常卡片 */
.employee-card.highlight {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
}

.employee-card.highlight:hover {
    border-color: #f57c00;
    box-shadow: 0 20px 40px rgba(255, 152, 0, 0.3);
}

.employee-header, .team-header-content, .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f5;
}

.employee-name-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.employee-name, .team-name, .project-name {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid transparent;
}

.employee-name:hover, .team-name:hover, .project-name:hover {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-color: #1976D2;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* 员工标签样式 - 修改颜色 */
.employee-tags {
    display: flex;
    gap: 8px;
    min-height: 24px;
    align-items: center;
}

.status-tag, .remark-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

/* 在职状态标签 - 绿色 */
.status-tag.staff {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    border-color: #388e3c;
}

/* 离职状态标签 - 红色 */
.status-tag.leave {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border-color: #d32f2f;
}

/* Freelancer状态标签 - 蓝色 */
.status-tag.freelancer {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border-color: #1976d2;
}

/* 其他状态标签 */
.status-tag.other {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
    border-color: #7b1fa2;
}

.remark-tag {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-color: #f57c00;
}

.status-tag-placeholder, .remark-tag-placeholder {
    width: 0;
    height: 20px;
    display: inline-block;
}

.employee-team {
    color: #666;
    font-size: 0.9em;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    align-self: flex-start;
}

.employee-team:hover {
    background: linear-gradient(135deg, #B60005 0%, #8B0004 100%);
    color: white;
    border-color: #8B0004;
    transform: scale(1.05);
}

.employee-stats, .team-stats-grid, .project-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9em;
    gap: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.stat-label {
    color: #666;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* 达成率样式 */
.achievement-rate {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9em;
    border: 2px solid transparent;
}

.rate-normal {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    border-color: #388e3c;
}

.rate-high {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-color: #f57c00;
}

.rate-low {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border-color: #d32f2f;
}

/* 工作号显示 */
.work-number-display {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.project-name-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.team-member-count {
    color: #666;
    font-size: 0.9em;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    padding: 6px 14px;
    border-radius: 20px;
    align-self: flex-start;
    border: 2px solid transparent;
}

/* 图表容器 */
.chart-container {
    height: 250px;
    position: relative;
    margin-top: 20px;
    background: #fafafa;
    border-radius: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
}

/* 饼图数据标签字体大小优化 */
.chart-container canvas {
    font-size: 8px !important;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 1200px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
}

.close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* 详情区域 */
.detail-section {
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    overflow: hidden;
}

.detail-section h3 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.detail-section h4 {
    color: #495057;
    font-size: 1.1em;
    margin: 20px 0 15px 0;
    padding: 0 20px;
    font-weight: 600;
}

.detail-section > div:not(h3):not(h4) {
    padding: 0 20px 20px 20px;
}

/* 员工信息标签样式 */
.employee-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 20px 20px 20px;
}

.info-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 名称标签 - 蓝色 */
.name-tag {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-color: #1976D2;
}

/* ID标签 - 紫色 */
.id-tag {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
    border-color: #7b1fa2;
}

/* 团队标签 - 青色 */
.team-tag {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    border-color: #0097a7;
}

/* 状态标签保持原有颜色 */
.info-tag.staff {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    border-color: #388e3c;
}

.info-tag.leave {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border-color: #d32f2f;
}

.info-tag.other {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
    border-color: #7b1fa2;
}

/* 工时标签 - 橙色 */
.hours-tag {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-color: #f57c00;
}

/* 达成率标签保持原有颜色逻辑 */
.rate-tag.rate-normal {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    border-color: #388e3c;
}

.rate-tag.rate-high {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-color: #f57c00;
}

.rate-tag.rate-low {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border-color: #d32f2f;
}

/* 详情表格 */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.detail-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    position: relative;
    border-right: 2px solid rgba(255,255,255,0.1);
}

.detail-table th:last-child {
    border-right: none;
}

.detail-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9em;
    color: #495057;
    border-right: 1px solid #f1f3f4;
}

.detail-table td:last-child {
    border-right: none;
}

.detail-table tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.detail-table tr:last-child td {
    border-bottom: none;
}

/* 排序按钮 */
.sort-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 4px 6px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 员工状态在表格中的样式 */
.employee-status {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    margin-left: 6px;
}

.employee-status.staff {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.employee-status.leave {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.employee-status.freelancer {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.employee-status.other {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

/* 项目项目样式 */
.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196F3;
    transform: translateX(5px);
}

.project-item-name {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    margin-right: 15px;
}

.project-item-hours {
    font-weight: 700;
    color: #B60005;
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    font-size: 0.9em;
}

/* 加载和无数据状态 */
.loading, .no-data {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2em;
    background: white;
    margin: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
}

.loading::before {
    content: '⏳';
    display: block;
    font-size: 3em;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.no-data::before {
    content: '📊';
    display: block;
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 复制提示 */
.copy-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9em;
    border: 2px solid #388e3c;
}

.copy-toast.show {
    transform: translateX(0);
}

.copy-toast::before {
    content: '✓';
    margin-right: 8px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .employees-grid, .teams-grid, .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
        padding: 25px;
    }
}

@media (max-width: 1200px) {
    .sidebar-panel {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
    }
    
    .employees-grid, .teams-grid, .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .filter-input, .search-input, .date-input {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar-panel {
        width: 100%;
        min-width: auto;
        max-width: none;
        border-right: none;
        border-bottom: 3px solid #dee2e6;
    }
    
    .sidebar-content {
        max-height: 40vh;
        padding: 10px;
        gap: 10px;
    }
    
    .employees-grid, .teams-grid, .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .employee-stats, .team-stats-grid, .project-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .detail-table {
        font-size: 0.8em;
    }
    
    .detail-table th, .detail-table td {
        padding: 8px 10px;
    }
    
    .chart-container {
        height: 200px;
        padding: 10px;
    }
    
    .employee-info-tags {
        gap: 8px;
    }
    
    .info-tag {
        font-size: 10px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .app-header h1 {
        font-size: 1.6em;
    }
    
    .app-header p {
        font-size: 0.9em;
    }
    
    .employee-card, .team-card, .project-card {
        padding: 15px;
    }
    
    .employee-header, .team-header-content, .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .employee-name, .team-name, .project-name {
        font-size: 1.2em;
        width: 100%;
        text-align: center;
    }
    
    .employee-team, .team-member-count {
        align-self: stretch;
        text-align: center;
    }
    
    .date-range {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-separator {
        display: none;
    }
    
    .filter-grid, .search-grid, .sort-grid {
        gap: 8px;
    }
    
    .detail-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .sort-btn {
        display: none;
    }
}
/* 原有样式保持不变，在末尾添加以下新样式 */

/* 内容头部样式 */
.content-header {
    background: white;
    padding: 15px 25px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-action-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-action-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.header-action-btn .btn-icon {
    font-size: 16px;
}

/* 快捷操作按钮样式 */
.action-button {
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-button:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* 未填工时人员弹窗样式 */
.status-icon {
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

.status-icon.filled {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-icon.missing {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.detail-table tr.has-data {
    background: rgba(76, 175, 80, 0.05);
}

.detail-table tr.missing-data {
    background: rgba(244, 67, 54, 0.05);
}

.detail-table tr.has-data:hover {
    background: rgba(76, 175, 80, 0.1);
}

.detail-table tr.missing-data:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content-header {
        padding: 10px 15px;
    }
    
    .header-action-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* 截图模式样式 */
.screenshot-mode .chart-container {
    padding: 30px;
    background: white;
    border: 1px solid #ddd;
}

.screenshot-mode .chart-container canvas {
    background: white !important;
}

/* 截图模式下的数据标签样式优化 */
.screenshot-mode .data-label {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* 截图模式下隐藏不必要的交互元素 */
.screenshot-mode .employee-card:hover,
.screenshot-mode .team-card:hover,
.screenshot-mode .project-card:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.screenshot-mode .employee-name:hover,
.screenshot-mode .team-name:hover,
.screenshot-mode .project-name:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #2c3e50;
    transform: none;
    box-shadow: none;
}

/* 登录检查遮罩样式 */
.login-check-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-check-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.login-check-content p {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}
