/* 干部学习档案页面样式 */

/* 页面标题样式 */
.title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* 章节标题样式 */
.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #e74c3c;
}

/* 能力评估特殊标题样式 */
.ability-assessment-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 20px;
    position: relative;
}

.ability-assessment-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #e74c3c 0%, #e74c3c 30%, #3498db 30%, #3498db 100%);
}

/* 统计卡片样式 */
.counter-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.counter-icon {
    margin-bottom: 15px;
}

.counter-icon i {
    font-size: 40px;
    color: #3498db;
}

.counter-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.counter-text p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* 培训时间线样式 */
.training-timeline {
    position: relative;
    padding-left: 30px;
}

.training-timeline:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3498db, #e74c3c);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #3498db;
}

.timeline-date {
    font-size: 14px;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #7f8c8d;
    margin-bottom: 5px;
    line-height: 1.6;
}

/* 证书展示样式 */
.certificate-item {
    background: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #f39c12;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.certificate-icon {
    margin-bottom: 15px;
}

.certificate-icon i {
    font-size: 40px;
    color: #f39c12;
}

.certificate-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.certificate-item p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

/* 学习计划样式 */
.learning-plan {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.plan-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.plan-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.plan-date {
    font-size: 14px;
    color: #3498db;
    font-weight: 600;
    min-width: 100px;
    margin-right: 20px;
}

.plan-content {
    flex: 1;
}

.plan-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.plan-content p {
    color: #7f8c8d;
    margin-bottom: 0;
}

.plan-status {
    background: #e74c3c;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 20px;
}

/* 打印样式 */
@media print {
    .rs-header,
    .rs-footer,
    .team-icons,
    .right-bar-icon,
    .scrollUp {
        display: none !important;
    }
    
    .rs-team-single {
        padding-top: 0 !important;
    }
    
    .counter-item,
    .timeline-item,
    .certificate-item,
    .plan-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .title {
        color: #000 !important;
    }
    
    .section-title {
        color: #000 !important;
        border-bottom-color: #000 !important;
    }
    
    .team-name,
    .team-title,
    .team-contact {
        color: #000 !important;
    }
    
    .timeline-content,
    .plan-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .chart-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .chart-container canvas {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* 图表容器样式 */
.chart-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 图表标题样式 */
.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 28px;
    }
    
    .counter-item {
        margin-bottom: 20px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .training-timeline {
        padding-left: 20px;
    }
    
    .plan-item {
        flex-direction: column;
        text-align: center;
    }
    
    .plan-date {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .plan-status {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-container canvas {
        height: 300px !important;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .skill-label {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
        text-align: left;
    }
    
    .skill-progress {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
        height: 20px;
    }
    
    .skill-percent {
        width: 100%;
        text-align: left;
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-item,
.timeline-item,
.certificate-item,
.plan-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 技能评估样式 */
.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skill-label {
    width: 80px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    margin-right: 15px;
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    line-height: 25px;
}

.skill-progress {
    flex: 1;
    height: 25px;
    background-color: #fff;
    border: 2px solid #e74c3c;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-right: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.skill-bar {
    height: 100%;
    background-color: #e74c3c !important;
    border-radius: 10px;
    transition: width 1s ease-in-out;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    min-width: 5px;
    opacity: 1 !important;
}

.skill-percent {
    width: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
    text-align: center;
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    line-height: 25px;
}

/* 进度条增强样式（保留备用） */
.rs-progress {
    height: 25px;
    background-color: #fff;
    border: 1px solid #e74c3c;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.rs-progress .progress-bar {
    border-radius: 12px;
    position: relative;
    transition: width 1s ease-in-out;
    background-color: #e74c3c !important;
}

.rs-progress .pb-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
}

.rs-progress .pb-percent {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
}
