/* =============================================
   职业评估报告 - 通用样式表
   基于管理型-S2S3中度清晰.pdf模板设计
   ============================================= */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 报告容器 */
.report-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* 页面基础样式 - A4纸张比例 */
.page {
    width: 100%;
    min-height: 1123px; /* A4高度 */
    position: relative;
    background: white;
    page-break-after: always;
    overflow: hidden;
}

.page:last-child {
    page-break-after: auto;
}

/* 页面内容区域 */
.page-content {
    position: relative;
    z-index: 10;
    padding: 60px 80px;
    min-height: 1123px;
}

/* 背景图片层 */
.page-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.page-bg img {
    display: block;
}

/* =============================================
   第1页：封面页样式
   ============================================= */
.cover-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cover-page .page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cover-main-title {
    font-size: 52px;
    font-weight: bold;
    letter-spacing: 12px;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease;
}

.cover-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    letter-spacing: 4px;
    opacity: 0.95;
}

.cover-subtitle-cn {
    font-size: 20px;
    margin-bottom: 80px;
    opacity: 0.9;
}

.cover-type-box {
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 40px 60px;
    margin: 50px 0;
    backdrop-filter: blur(10px);
    max-width: 600px;
    animation: fadeIn 1.5s ease;
}

.cover-type-label {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.cover-type-desc {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.8;
    opacity: 0.9;
}

.cover-type-main {
    font-size: 22px;
    margin: 10px 0;
    opacity: 0.85;
}

.cover-type-en {
    font-size: 20px;
    margin-top: 10px;
    opacity: 0.8;
    font-style: italic;
}

.cover-personal-info {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.cover-name {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.cover-date {
    font-size: 18px;
    opacity: 0.85;
}

/* =============================================
   通用页面元素样式
   ============================================= */

/* 页面标题栏 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 3px solid #3498db;
    margin-bottom: 40px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #2980b9;
}

.page-number {
    font-size: 16px;
    color: #7f8c8d;
    font-style: italic;
}

/* 章节标题 */
.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 35px 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #2980b9;
}

/* 关键词标签 */
.keywords-container {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.keyword:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* 引用框 */
.quote-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 5px solid #3498db;
    padding: 25px 30px;
    margin: 30px 0;
    position: relative;
    font-style: italic;
    color: #555;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: rgba(52, 152, 219, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 17px;
    line-height: 1.8;
    margin-left: 30px;
}

.quote-author {
    text-align: right;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

/* 内容卡片 */
.content-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-title::before {
    content: '';
    width: 5px;
    height: 24px;
    background: linear-gradient(180deg, #3498db, #2980b9);
    margin-right: 12px;
    border-radius: 3px;
}

.card-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 500;
}

.card-content {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

.card-content p {
    margin-bottom: 12px;
}

/* 百分比匹配度显示 */
.match-container {
    margin: 35px 0;
}

.match-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.match-label {
    min-width: 150px;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.match-bar {
    flex: 1;
    height: 35px;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 20px;
    position: relative;
}

.match-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: width 1.5s ease;
    position: relative;
}

.match-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2));
}

.match-value {
    min-width: 70px;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    text-align: right;
}

/* 三维度卡片网格 */
.dimension-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 35px 0;
}

.dimension-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dimension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.dimension-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.dimension-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
}

.dimension-score {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
    margin: 15px 0;
}

.dimension-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 风险提示框 */
.risk-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 3px solid #e74c3c;
    border-radius: 10px;
    padding: 25px 30px;
    margin: 30px 0;
    box-shadow: 0 3px 15px rgba(231, 76, 60, 0.1);
}

.risk-title {
    font-size: 20px;
    font-weight: bold;
    color: #c0392b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.risk-title::before {
    content: '⚠';
    font-size: 24px;
    margin-right: 10px;
}

.risk-content {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* 行动计划框 */
.action-plan-box {
    background: linear-gradient(135deg, #e8f8f5 0%, #d5f4e6 100%);
    border: 3px solid #27ae60;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 3px 15px rgba(39, 174, 96, 0.1);
}

.action-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.action-item:last-child {
    margin-bottom: 0;
}

.action-icon {
    font-size: 28px;
    margin-right: 20px;
    margin-top: 5px;
    min-width: 30px;
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 17px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.action-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* 图表容器 */
.chart-container {
    width: 100%;
    height: 400px;
    margin: 35px 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

/* 建议列表 */
.suggestion-list {
    margin: 25px 0;
}

.suggestion-item {
    background: white;
    border-left: 5px solid #3498db;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.suggestion-title {
    font-size: 17px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.suggestion-content {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* 高亮信息框 */
.highlight-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffedcc 100%);
    border: 2px solid #f39c12;
    border-radius: 10px;
    padding: 25px 30px;
    margin: 30px 0;
}

.highlight-title {
    font-size: 19px;
    font-weight: bold;
    color: #d68910;
    margin-bottom: 15px;
}

.highlight-content {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* =============================================
   动画效果
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* =============================================
   打印样式
   ============================================= */
@media print {
    body {
        background: white;
    }

    .report-container {
        box-shadow: none;
    }

    .page {
        page-break-after: always;
        box-shadow: none;
        min-height: 297mm; /* A4高度 */
    }

    .page:last-child {
        page-break-after: auto;
    }

    .no-print {
        display: none;
    }
}

/* =============================================
   响应式设计
   ============================================= */
@media (max-width: 768px) {
    .page-content {
        padding: 30px 20px;
    }

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

    .cover-main-title {
        font-size: 36px;
    }

    .page-title {
        font-size: 22px;
    }

    .match-row {
        flex-direction: column;
        align-items: stretch;
    }

    .match-label,
    .match-value {
        margin-bottom: 10px;
    }

    .match-bar {
        margin: 10px 0;
    }
}
