/* ─── Reset & Variables ─────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:        #0052D9;
    --primary-light:  #4080FF;
    --primary-bg:     #EFF4FF;
    --success:        #00A870;
    --success-bg:     #E6F7F2;
    --warning:        #ED7B2F;
    --warning-bg:     #FFF3E0;
    --danger:         #E34D59;
    --purple:         #6A1B9A;
    --purple-bg:      #F3E5F5;
    --text-1:         #1A1A1A;
    --text-2:         #4E4E4E;
    --text-3:         #9A9AA8;
    --border:         #EAEAEF;
    --bg:             #F6F7FB;
    --white:          #FFFFFF;
    --shadow-sm:      0 2px 12px rgba(0,0,0,.06);
    --shadow-md:      0 6px 24px rgba(0,0,0,.09);
    --shadow-lg:      0 12px 44px rgba(0,0,0,.14);
    --shadow-card:    0 2px 16px rgba(0,82,217,.07);
    --radius:         16px;
    --radius-sm:      10px;
    --radius-xs:      6px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI',
                 'Microsoft YaHei', sans-serif;
    background: #EDF4F0;
    min-height: 100vh;
    color: var(--text-1);
    padding: 36px 20px 90px;
}

.container { max-width: 1400px; margin: 0 auto; }

/* ─── Section Head ──────────────────────────────────── */
.section-head { margin-bottom: 28px; }
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ─── Header ────────────────────────────────────────── */
.header {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 44px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    border: 1px solid var(--border);
}

.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius) var(--radius) 0 0;
}

.header-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header-sub {
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 16px;
    font-weight: 500;
}

.notice {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.65;
    padding: 10px 14px;
    background: linear-gradient(135deg, #EFF4FF, #F3E5F5);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-xs);
    max-width: 580px;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.header-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
}

.header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 520px;
}

.hbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid transparent;
}
.hbadge-gold   { background: #EFF4FF; color: #0052D9; border-color: #C5D8FF; }
.hbadge-ai     { background: #EFF4FF; color: #0052D9; border-color: #C5D8FF; }
.hbadge-blue   { background: #EFF4FF; color: #0052D9; border-color: #C5D8FF; }
.hbadge-green  { background: #F2F3F5; color: #1D2129; border-color: #D1D5DB; }
.hbadge-purple { background: #F2F3F5; color: #1D2129; border-color: #D1D5DB; }
.hbadge-red    { background: #F2F3F5; color: #1D2129; border-color: #D1D5DB; }
.hbadge-teal   { background: #F2F3F5; color: #1D2129; border-color: #D1D5DB; }
.hbadge-orange { background: #F2F3F5; color: #1D2129; border-color: #D1D5DB; }



.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    min-width: 82px;
    border: 1px solid var(--border);
    transition: border-color .2s;
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-n {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.stat-l { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ─── Skills Section ────────────────────────────────── */
.skills-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 44px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

/* 分类导航 */
.cat-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cat-btn {
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .22s;
}

.cat-btn:hover { background: var(--bg); border-color: #ccc; }

.cat-btn.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 700;
}

/* 分类统计条 */
.cat-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.cat-stat-item {
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.cat-stat-item:hover { border-color: currentColor; background-color: inherit; }

.cat-stat-item.active-cat {
    border-color: currentColor;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.cat-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cat-stat-label { font-size: 13px; font-weight: 600; }
.cat-stat-count { font-size: 28px; font-weight: 800; line-height: 1; }

.cat-bar-bg {
    height: 5px;
    background: rgba(0,0,0,.08);
    border-radius: 3px;
    overflow: hidden;
}

.cat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .7s cubic-bezier(.22,.61,.36,1);
}

/* ── 能力全景画布容器 ──────────────────────────────── */
.skills-row {
    width: 100%;
}

/* ── 能力全景三栏布局 ─────────────────────────────── */
.ability-panorama {
    display: grid;
    grid-template-columns: 1fr 360px 1fr;
    gap: 28px;
    align-items: center;
    padding: 8px 0 4px;
}

/* 侧边列 */
.ability-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 能力卡片 */
.ability-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    cursor: default;
    transition: border-color .22s, box-shadow .22s, transform .22s;
    position: relative;
    overflow: hidden;
}

.ability-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--card-color, var(--primary));
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity .22s;
}

.ability-card-active::before,
.ability-card:hover::before {
    opacity: 1;
}

.ability-card-active,
.ability-card:hover {
    transform: translateY(-2px);
}

.ability-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ability-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ability-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.ability-desc {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.72;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all .25s;
}

.ability-card-active .ability-desc,
.ability-card:hover .ability-desc {
    -webkit-line-clamp: 10;
}

.ability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ability-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

/* 中间饼图区域 */
.ability-pie-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ability-pie-svg {
    width: 100%;
    max-width: 360px;
    filter: drop-shadow(0 6px 32px rgba(0,0,0,.10));
}

/* 饼图路径 */
.pie-path {
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .18s, filter .18s;
    cursor: pointer;
}

/* ── 饼图布局（旧，保留供弹窗内使用）──────────────── */
.pie-chart-wrap {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 12px 0 8px;
    flex-wrap: wrap;
}

.pie-svg {
    width: 380px;
    min-width: 280px;
    flex-shrink: 0;
    overflow: visible;
}

/* 扇区路径过渡（旧） */
.pie-label-text,
.pie-label-icon {
    pointer-events: none;
    user-select: none;
}

/* 右侧详情面板（旧） */
.pie-detail-panel {
    flex: 1;
    min-width: 220px;
    max-width: 420px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    background: var(--bg);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .22s, transform .22s, border-color .22s, background .22s;
    pointer-events: none;
}

.pie-detail-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pie-detail-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.pie-detail-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.pie-detail-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.75;
}

/* 默认提示（未 hover 时） */
.pie-hint {
    font-size: 13px;
    color: var(--text-3);
    text-align: center;
    padding: 40px 20px;
}





/* ── 需求卡片 技能标签 ──────────────────────────────── */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* 专业技能标签 */
.skill-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    line-height: 1.5;
    white-space: nowrap;
}

.skill-tag-pro {
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid rgba(0,82,217,.18);
}
.skill-tag-pro.color-purple {
    background: var(--purple-bg);
    color: var(--purple);
    border-color: rgba(106,27,154,.18);
}
.skill-tag-pro.color-green {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(0,168,112,.18);
}
.skill-tag-pro.color-orange {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(237,123,47,.18);
}

/* 通用素质标签 */
.skill-tag-general {
    background: #ECEFF1;
    color: #546E7A;
    border: 1px solid #B0BEC5;
}

/* ─── Featured Section ──────────────────────────────── */
.featured-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 44px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.featured-card {
    border-radius: var(--radius);
    padding: 28px 26px;
    cursor: pointer;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
    border: 1.5px solid var(--border);
    position: relative;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity .3s;
}

.featured-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0,82,217,.18);
}

.featured-card:hover::before { opacity: 1; }

/* 精选卡片顶部行 */
.fc-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}

.fc-featured-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFF3CD, #FFE082);
    color: #7a5a00;
    white-space: nowrap;
    flex-shrink: 0;
}

.fc-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
}

.fc-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-1);
    line-height: 1.35;
}

.fc-date {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fc-why {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-2);
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 18px;
    border-left: 3px solid var(--primary);
    position: relative;
    flex: 1;
}

.fc-why-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 5px;
}

/* 精选卡片指标 */
.fc-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.fc-metric {
    flex: 1;
    min-width: 66px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: border-color .2s;
}

.fc-metric:hover { border-color: var(--primary); }

.fc-metric-val {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 3px;
    line-height: 1.2;
}

.fc-metric-lbl { font-size: 10px; color: var(--text-3); line-height: 1.3; }

/* 难度 & 优先级 */
.fc-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.badge-priority {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 8px;
    letter-spacing: .3px;
}

.badge-p0 { background: #FFF0F0; color: var(--danger); border: 1px solid rgba(227,77,89,.2); }
.badge-p1 { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(237,123,47,.2); }
.badge-p2 { background: var(--primary-bg); color: var(--primary); border: 1px solid rgba(0,82,217,.2); }
.badge-p3 { background: var(--bg); color: var(--text-3); border: 1px solid var(--border); }

.difficulty-stars { display: flex; gap: 2px; align-items: center; }
.star { font-size: 12px; line-height: 1; }

/* PDF 按钮 */
.fc-pdf-btn {
    width: 100%;
    margin-top: 4px;
    padding: 10px 16px;
    border: 1.5px solid #C8D6F0;
    border-radius: var(--radius-sm);
    background: #F5F8FF;
    color: #3A6BD4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all .2s;
    letter-spacing: .2px;
    line-height: 1.5;
    box-shadow: none;
}

.fc-pdf-btn:hover {
    background: #EBF1FF;
    border-color: #3A6BD4;
    color: #2354B8;
}

.fc-pdf-btn-disabled {
    background: #F5F5F5 !important;
    border-color: #D9D9D9 !important;
    color: #BFBFBF !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.fc-pdf-btn-disabled:hover {
    background: #F5F5F5 !important;
    border-color: #D9D9D9 !important;
    color: #BFBFBF !important;
}

.pdf-btn-icon { font-size: 15px; }

/* ─── All Projects ──────────────────────────────────── */
.all-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 44px;
    box-shadow: var(--shadow-sm);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px;
}

.project-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 22px 24px;
    cursor: pointer;
    transition: all .26s cubic-bezier(.22,.61,.36,1);
    border: 1.5px solid var(--border);
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.project-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(0,82,217,.2);
    background: var(--white);
}

.project-card:hover::after { transform: scaleX(1); }

.pc-header { margin-bottom: 14px; }

.pc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.pc-title { font-size: 16px; font-weight: 700; line-height: 1.3; }

.pc-badges { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }

.pc-date {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 卡片三段式简览 */
.pc-row { margin-bottom: 11px; }
.pc-row-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pc-row-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 数据表现迷你指标 */
.pc-chart { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.pc-chart-title { font-size: 11px; color: var(--text-3); margin-bottom: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

.mini-metrics { display: flex; gap: 7px; flex-wrap: wrap; }
.mini-metric {
    flex: 1;
    min-width: 65px;
    background: var(--white);
    border-radius: var(--radius-xs);
    padding: 8px 10px;
    text-align: center;
    border: 1px solid var(--border);
}

.mini-val { font-size: 14px; font-weight: 800; margin-bottom: 2px; line-height: 1.2; }
.mini-lbl { font-size: 10px; color: var(--text-3); line-height: 1.3; }

/* ─── Modal ─────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10,10,30,.6);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 24px 20px;
}

.modal.show { display: flex; animation: fadeIn .22s ease; }

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 52px;
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp .28s cubic-bezier(.22,.61,.36,1);
    box-shadow: var(--shadow-lg);
}

.close-btn {
    position: sticky;
    top: 0;
    float: right;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    font-size: 20px;
    font-weight: 300;
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10;
    margin-bottom: -34px;
    flex-shrink: 0;
}

.close-btn:hover { background: var(--danger); color: var(--white); transform: rotate(90deg); }

/* 弹窗内容 */
.md-head {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1.5px solid var(--border);
}

.md-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.md-featured-mark {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(255,193,7,.2);
    color: #8a6500;
    border-radius: 6px;
    margin-left: 6px;
}

.md-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-1);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.md-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.md-tags { display: flex; gap: 7px; flex-wrap: wrap; }

.tag {
    padding: 4px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.tag-commercial { background: var(--warning-bg); color: var(--warning); }
.tag-ai         { background: var(--primary-bg);  color: var(--primary); }
.tag-research   { background: var(--purple-bg);    color: var(--purple);  }
.tag-optimization { background: var(--success-bg); color: var(--success); }
.tag-plain      { background: var(--bg);           color: var(--text-2);  border: 1px solid var(--border); }

/* 弹窗指标 */
.md-metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.md-metric {
    flex: 1;
    min-width: 100px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 14px;
    text-align: center;
    border: 1px solid var(--border);
    transition: border-color .2s, transform .2s;
}

.md-metric:hover { border-color: var(--primary); }

.md-metric-icon { font-size: 22px; margin-bottom: 8px; }
.md-metric-val  { font-size: 22px; font-weight: 800; margin-bottom: 4px; line-height: 1.1; }
.md-metric-lbl  { font-size: 11px; color: var(--text-3); font-weight: 500; }

/* ── 故事化叙述 ──────────────────────────────────────── */
.story-timeline { margin-bottom: 32px; }

.story-item {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    position: relative;
}

.story-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 46px;
    bottom: -18px;
    width: 1.5px;
    background: linear-gradient(to bottom, var(--primary-bg), var(--border));
}

.story-item:last-child::before { display: none; }

.story-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    z-index: 1;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,82,217,.15);
}

.story-body { flex: 1; min-width: 0; }

.story-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 7px;
}

.story-label-main {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.story-label-sub {
    font-size: 12px;
    color: var(--text-3);
}

.story-text {
    font-size: 14px;
    line-height: 1.78;
    color: var(--text-2);
    background: var(--bg);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--border);
}

/* ─── PDF 区域 ──────────────────────────────────────── */
.pdf-section {
    margin-top: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pdf-section-header {
    padding: 16px 20px;
    background: var(--bg);
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pdf-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    white-space: normal;
}

.pdf-pc-hint {
    font-size: 11px;
    font-weight: 500;
    color: #0052D9;
    background: #EFF4FF;
    border: 1px solid #bed3fb;
    border-radius: 5px;
    padding: 2px 8px;
    white-space: nowrap;
    display: none;
}

@media (max-width: 768px) {
    .pdf-pc-hint { display: inline-block; }
}

/* 免责声明 */
.pdf-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 11.5px;
    color: var(--text-3);
    line-height: 1.6;
    padding: 8px 12px;
    background: #FFFBF0;
    border: 1px solid #FFE082;
    border-radius: var(--radius-xs);
    max-width: 520px;
}

.disclaimer-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }

.view-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #F5F8FF;
    color: #3A6BD4;
    border: 1.5px solid #C8D6F0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    box-shadow: none;
    margin: 16px 20px;
}

.view-pdf-btn:hover {
    background: #EBF1FF;
    border-color: #3A6BD4;
    color: #2354B8;
}

.pdf-container { display: none; }
.pdf-container.show { display: block; }

.pdf-viewer {
    border-top: 1.5px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
}

.pdf-bar {
    background: #1e1e2e;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.pdf-bar-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-bar-notice {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,200,100,.8);
    padding: 2px 8px;
    background: rgba(255,193,7,.12);
    border-radius: 5px;
    border: 1px solid rgba(255,193,7,.25);
}

.close-pdf-btn {
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-xs);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.75);
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.close-pdf-btn:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }

/* PDF保护层（防右键保存） */
.pdf-protect-overlay {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.pdf-protect-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    /* 透明遮罩：允许滚动查看但阻止直接右键 */
    pointer-events: none;
}

.pdf-viewer iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* PDF.js canvas容器 */
[id^="pdfCanvasWrap"] {
    padding: 12px;
    background: #525659;
}

/* ─── Charts Section ─────────────────────────────────── */
.charts-section {
    margin-top: 32px;
    margin-bottom: 28px;
}

.charts-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* 只有一张图时居中显示 */
.charts-grid.charts-single {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.charts-grid.charts-single .chart-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.charts-grid.charts-single .pie-chart {
    justify-content: center;
    flex-wrap: wrap;
}

.chart-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px 22px;
    border: 1px solid var(--border);
    transition: box-shadow .2s;
}

.chart-card:hover { box-shadow: var(--shadow-card); }

.chart-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 16px;
    line-height: 1.45;
}

/* 柱状图 */
.bar-chart { width: 100%; }

.bar-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 12px;
}

.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bars-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 6px;
    height: 210px;
    border-bottom: 2px solid var(--border);
    padding: 0 4px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.bar-pair {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bar-val {
    font-size: 10px;
    font-weight: 700;
}

.bar-fill {
    width: 26px;
    border-radius: 4px 4px 0 0;
    transition: height .7s cubic-bezier(.22,.61,.36,1);
    min-height: 3px;
}

.bar-label {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 7px;
    text-align: center;
    line-height: 1.35;
    word-break: keep-all;
}

/* 趋势对比模式：双柱 + 柱顶变化标注 */
.bar-pair-trend {
    align-items: flex-end;
    gap: 10px;
}

.bar-col-before,
.bar-col-after {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bar-before-label,
.bar-after-label {
    font-size: 9px;
    color: var(--text-3);
    letter-spacing: .2px;
    margin-top: 3px;
}

.bar-trend-badge {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 4px 9px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1;
    margin-bottom: 4px;
}

.trend-arrow {
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.trend-num {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2px;
}





/* 饼图 */
.pie-chart {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pie-legend {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.pie-legend-label {
    flex: 1;
    color: var(--text-2);
    line-height: 1.3;
}

.pie-legend-val {
    font-weight: 700;
    color: var(--text-1);
    font-size: 13px;
    min-width: 36px;
    text-align: right;
}

/* 数据表格 */
.data-table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    background: var(--primary);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.data-table th.th-first {
    background: #003EB5;
    min-width: 90px;
}

.data-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: top;
    font-size: 12px;
    line-height: 1.5;
}

.data-table td.td-first {
    font-weight: 600;
    color: var(--text-1);
    background: var(--bg);
    white-space: nowrap;
}

.data-table tr:hover td { background: var(--primary-bg); }
.data-table tr.tr-hl td { background: #FFF8E1; }
.data-table td.td-hl { color: var(--warning); font-weight: 600; }

/* ─── Animations ─────────────────────────────────────── */
@keyframes fadeIn  { from { opacity:0 }          to { opacity:1 } }
@keyframes slideUp { from { transform:translateY(44px); opacity:0 } to { transform:translateY(0); opacity:1 } }

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
    .charts-grid { grid-template-columns: 1fr; }
    .pie-chart { flex-direction: column; align-items: center; }
    .bar-fill { width: 18px; }
    /* 饼图整体居中 */
    .pie-chart svg { display: block; margin: 0 auto; }
    .pie-legend { width: 100%; align-items: flex-start; }
    /* chart-card 内部居中，标题留足间距 */
    .chart-card { display: flex; flex-direction: column; align-items: center; }
    .chart-title { width: 100%; text-align: center; margin-bottom: 12px; }
    .bar-chart { width: 100%; }
    /* 图例行与标题之间留充足间距，防止重叠 */
    .bar-legend { justify-content: center; margin-bottom: 10px; font-size: 11px; gap: 10px; }
    /* 柱状图区域：用 padding-top 为趋势徽章预留空间，取消固定 height */
    .bars-wrap {
        height: auto;
        min-height: 130px;
        padding-top: 40px;
        justify-content: center;
        gap: 4px;
        align-items: flex-end;
    }
    .bar-group { flex: 0 0 auto; min-width: 32px; }
    .bar-label { font-size: 9px; max-width: 48px; word-break: break-all; }
    .bar-val { font-size: 9px; }
    /* 趋势徽章缩小 */
    .bar-trend-badge { padding: 2px 6px; font-size: 10px; line-height: 1.2; }
    .trend-arrow { font-size: 12px; }
    .trend-num { font-size: 11px; }
}

@media (max-width: 1100px) {
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .cat-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body { padding: 16px 12px 60px; }
    .header { flex-direction: column; padding: 28px 24px; }
    .header-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
    .stat-card { min-width: unset; padding: 14px 8px; }
    .stat-n { font-size: 22px; }
    .stat-l { font-size: 11px; text-align: center; }
    .skills-section, .featured-section, .all-section { padding: 24px 20px; }
    .featured-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .cat-stats { grid-template-columns: repeat(2, 1fr); }
    .ability-panorama { grid-template-columns: 1fr; gap: 16px; }
    .ability-pie-center { order: -1; }
    .ability-pie-svg { max-width: 240px; }
    .ability-card { cursor: pointer; }
    .pie-chart-wrap { flex-direction: column; align-items: flex-start; }
    .pie-svg { width: 100%; min-width: unset; }
    .pie-detail-panel { max-width: 100%; }
    .modal-content { padding: 28px 22px; }
    .pdf-section-header { flex-direction: column; }
    .pdf-disclaimer { max-width: 100%; }
    /* 弹窗内图表：单列 + 居中 */
    .charts-grid { grid-template-columns: 1fr; }
    .chart-card { display: flex; flex-direction: column; align-items: center; }
    .chart-title { width: 100%; text-align: center; margin-bottom: 12px; }
    .bar-chart { width: 100%; }
    .bar-legend { justify-content: center; margin-bottom: 10px; font-size: 11px; gap: 10px; }
    .bars-wrap {
        height: auto;
        min-height: 130px;
        padding-top: 40px;
        justify-content: center;
        gap: 4px;
        align-items: flex-end;
    }
    .pie-chart { flex-direction: column; align-items: center; }
    .pie-legend { width: 100%; }
}
