/* ============================================================
   FDE Lab（/fde/）共享样式
   依赖 /assets/site.css 的设计变量与 Tailwind 工具类；
   本文件承载导航链接、按钮与 FDE 栏目组件样式。
   排版规范：标题/副标题使用自然换行 + max-width 控制行长；
   不可拆词组用 <span style="white-space:nowrap"> 保护，
   不使用 text-wrap: balance（旧浏览器不兼容且可能造成语义断行）。
   ============================================================ */

/* ---- 与全站一致的导航/按钮基础（原散落于各页内联样式） ---- */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--accent-color); }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.language-switch {
    color: #B8C0CC;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}
.language-switch:hover { color: var(--accent-color); border-color: var(--accent-color); }

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    transition: all 0.3s ease;
}
.btn-primary:hover { background-color: #4A7C6B; transform: translateY(-1px); }

.hero-bg {
    background: linear-gradient(135deg, rgba(74, 108, 140, 0.12) 0%, rgba(94, 139, 126, 0.12) 100%);
}

/* ---- FDE 栏目通用 ---- */
.fde-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.fde-wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.fde-crumbs { padding: 88px 0 0; font-size: 13px; color: #8D99AE; }
.fde-crumbs a { color: #8D99AE; text-decoration: none; }
.fde-crumbs a:hover { color: var(--accent-color); }
.fde-crumbs .sep { margin: 0 8px; color: #4a5058; }

.fde-h1 { font-size: 42px; line-height: 1.25; font-weight: 700; margin-bottom: 8px; max-width: 760px; }
.fde-sub { font-size: 18px; color: #B8C0CC; max-width: 720px; margin-bottom: 14px; }

.fde-btn {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 6px; padding: 13px 26px;
    font-size: 16px; font-weight: 600; cursor: pointer; border: none;
    transition: all 0.25s ease; font-family: inherit; text-decoration: none;
}
.fde-btn-primary { background: var(--accent-color); color: #fff; }
.fde-btn-primary:hover { background: #4A7C6B; transform: translateY(-1px); }
.fde-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.fde-btn-ghost { background: transparent; color: #B8C0CC; border: 1px solid #2E333A; }
.fde-btn-ghost:hover { border-color: var(--accent-color); color: var(--accent-color); }

.fde-meta { margin-top: 10px; font-size: 13px; color: #8D99AE; }
.fde-meta a { color: #8D99AE; text-decoration: underline; text-underline-offset: 3px; }
.fde-meta a:hover { color: var(--accent-color); }

.fde-answer {
    margin: 40px 0 0;
    background: #22262B; border: 1px solid #2E333A;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px; padding: 24px 28px;
}
.fde-answer .label { font-size: 13px; font-weight: 600; color: var(--accent-color); letter-spacing: 1px; margin-bottom: 8px; }
.fde-answer p { color: #B8C0CC; }
.fde-answer p strong { color: #F0F2F5; }

.fde-section { padding: 56px 0; border-bottom: 1px solid #2E333A; }
.fde-h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.fde-sec-sub { color: #8D99AE; font-size: 15px; margin-bottom: 32px; }
.fde-src-note { margin-top: 20px; font-size: 13px; color: #8D99AE; }
.fde-src-note a { color: #8D99AE; text-decoration: underline; }

/* 五阶段职责 */
.fde-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.fde-flow .step { background: #22262B; border: 1px solid #2E333A; border-radius: 8px; padding: 20px 16px; }
.fde-flow .num { font-size: 12px; font-weight: 700; color: var(--accent-color); letter-spacing: 1px; margin-bottom: 8px; }
.fde-flow .t { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.fde-flow .en { font-size: 12px; color: #8D99AE; letter-spacing: 0.5px; }
.fde-flow .step p { font-size: 13px; color: #B8C0CC; line-height: 1.6; margin-top: 8px; }

.fde-kpi3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.fde-kpi3 .k { border: 1px dashed rgba(94, 139, 126, 0.45); border-radius: 8px; padding: 16px 18px; background: rgba(94, 139, 126, 0.06); }
.fde-kpi3 .k .t { font-weight: 600; font-size: 15px; }
.fde-kpi3 .k .en { font-size: 12px; color: #8D99AE; }
.fde-kpi3 .k p { font-size: 13px; color: #B8C0CC; margin-top: 6px; line-height: 1.6; }

/* 角色对比表 */
.fde-tbl-wrap { overflow-x: auto; border: 1px solid #2E333A; border-radius: 8px; }
table.fde-cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: #22262B; }
table.fde-cmp th, table.fde-cmp td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid #2E333A; vertical-align: top; line-height: 1.6; }
table.fde-cmp th { background: #1f242a; color: #F0F2F5; font-weight: 600; white-space: nowrap; }
table.fde-cmp td { color: #B8C0CC; }
table.fde-cmp tr:last-child td { border-bottom: none; }
table.fde-cmp tr.hl td { background: rgba(94, 139, 126, 0.08); color: #F0F2F5; }

/* 8 维框架 */
.fde-dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fde-dims .dim { background: #22262B; border: 1px solid #2E333A; border-radius: 8px; padding: 20px 18px; transition: all 0.25s ease; }
.fde-dims .dim:hover { transform: translateY(-3px); border-color: rgba(94, 139, 126, 0.5); }
.fde-dims .idx { font-size: 12px; font-weight: 700; color: var(--primary-color); letter-spacing: 1px; }
.fde-dims .t { font-weight: 600; font-size: 16px; margin: 6px 0 2px; }
.fde-dims .en { font-size: 12px; color: #8D99AE; }
.fde-dims .dim p { font-size: 13px; color: #B8C0CC; line-height: 1.6; margin-top: 8px; }

/* 成长路径 */
.fde-rmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fde-rmap .r { border: 1px solid #2E333A; border-radius: 8px; padding: 20px 18px; background: #22262B; }
.fde-rmap a.r { display: block; text-decoration: none; color: inherit; transition: all 0.25s ease; }
.fde-rmap a.r:hover { transform: translateY(-3px); border-color: var(--accent-color); }
.fde-rmap .r.on { border-color: var(--accent-color); background: rgba(94, 139, 126, 0.08); }
.fde-rmap .num { font-size: 12px; font-weight: 700; color: var(--accent-color); letter-spacing: 1px; }
.fde-rmap .t { font-weight: 600; font-size: 16px; margin: 6px 0 4px; }
.fde-rmap .r p { font-size: 13px; color: #B8C0CC; line-height: 1.6; }
.fde-rmap .badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px; margin-top: 10px; }
.fde-rmap .badge.now { background: var(--accent-color); color: #fff; }
.fde-rmap .badge.soon { background: #333a42; color: #8D99AE; }

/* FAQ */
.fde-faq details { background: #22262B; border: 1px solid #2E333A; border-radius: 8px; margin-bottom: 12px; }
.fde-faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fde-faq summary::-webkit-details-marker { display: none; }
.fde-faq summary::after { content: '+'; color: var(--accent-color); font-size: 22px; font-weight: 400; flex-shrink: 0; margin-left: 16px; }
.fde-faq details[open] summary::after { content: '−'; }
.fde-faq .a { padding: 0 22px 20px; color: #B8C0CC; font-size: 15px; }

/* 底部 CTA：按钮在上，副标题在下 */
.fde-cta-final { padding: 64px 0; text-align: center; }
.fde-cta-final p { color: #B8C0CC; margin-top: 18px; }

/* ---- 评估器 ---- */
.fde-state { display: none; padding-bottom: 64px; }
.fde-state.on { display: block; }

.fde-intro-head { padding: 12px 0 4px; }
.fde-intro-head h1 { font-size: 34px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.fde-intro-head p { color: #B8C0CC; max-width: 640px; }
.fde-facts { display: flex; gap: 24px; flex-wrap: wrap; margin: 20px 0 8px; }
.fde-facts .f { font-size: 14px; color: #8D99AE; display: flex; align-items: center; gap: 8px; }
.fde-facts .f svg { color: var(--accent-color); flex-shrink: 0; }

.fde-bg-select { margin: 28px 0 8px; }
.fde-bg-select h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.fde-bg-select .hint { font-size: 13px; color: #8D99AE; margin-bottom: 14px; }
.fde-bg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.fde-bg-card { background: #22262B; border: 1px solid #2E333A; border-radius: 8px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all 0.2s ease; font-size: 14px; font-weight: 500; color: #B8C0CC; }
.fde-bg-card small { display: block; font-size: 11px; color: #8D99AE; font-weight: 400; margin-top: 2px; }
.fde-bg-card:hover { border-color: rgba(94, 139, 126, 0.5); }
.fde-bg-card.sel { border-color: var(--accent-color); background: rgba(94, 139, 126, 0.1); color: #F0F2F5; }

.fde-start-row { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fde-resume-note { margin-top: 18px; font-size: 13px; color: #8D99AE; }
.fde-resume-note a { cursor: pointer; }
.fde-privacy { margin-top: 28px; padding: 14px 18px; border: 1px dashed #2E333A; border-radius: 8px; font-size: 13px; color: #8D99AE; }

.fde-quiz-top { position: sticky; top: 64px; background: var(--bg-color); padding: 18px 0 12px; z-index: 10; border-bottom: 1px solid #2E333A; }
.fde-progress-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fde-progress-row .step-no { font-size: 13px; color: #8D99AE; }
.fde-progress-row .dim-tag { font-size: 13px; color: var(--accent-color); font-weight: 600; }
.fde-pbar { height: 4px; background: #2a2f35; border-radius: 2px; overflow: hidden; }
.fde-pbar i { display: block; height: 100%; background: var(--accent-color); border-radius: 2px; transition: width 0.3s ease; }

.fde-q-body { padding: 36px 0 0; min-height: 340px; }
.fde-q-text { font-size: 22px; font-weight: 600; line-height: 1.55; margin-bottom: 32px; max-width: 700px; }
.fde-likert { display: flex; flex-direction: column; gap: 10px; }
.fde-lk { display: flex; align-items: center; gap: 14px; background: #22262B; border: 1px solid #2E333A; border-radius: 8px; padding: 15px 20px; cursor: pointer; transition: all 0.18s ease; text-align: left; font-family: inherit; width: 100%; }
.fde-lk:hover { border-color: rgba(94, 139, 126, 0.55); background: #252b31; }
.fde-lk.picked { border-color: var(--accent-color); background: rgba(94, 139, 126, 0.12); }
.fde-lk .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #4a5058; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #8D99AE; transition: all 0.18s ease; }
.fde-lk.picked .dot { border-color: var(--accent-color); background: var(--accent-color); color: #fff; }
.fde-lk .lb { font-size: 15px; color: #F0F2F5; }
.fde-lk .sc { margin-left: auto; font-size: 12px; color: #8D99AE; white-space: nowrap; }

.fde-q-foot { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; }
.fde-q-foot .back { background: none; border: none; color: #8D99AE; font-size: 14px; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 6px; }
.fde-q-foot .back:hover { color: var(--accent-color); }
.fde-q-foot .back:disabled { opacity: 0.3; cursor: default; }
.fde-scale-hint { font-size: 12px; color: #8D99AE; }

/* 结果页 */
.fde-r-head { padding: 12px 0 0; display: flex; align-items: flex-start; gap: 24px; }
.fde-r-head-main { flex: 1; min-width: 0; }
.fde-stamp {
    flex-shrink: 0; width: 128px; height: 128px; border-radius: 50%;
    border: 2px solid; margin-top: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative;
}
.fde-stamp::after {
    content: ''; position: absolute; inset: 5px; border-radius: 50%;
    border: 1px solid currentColor; opacity: 0.55; pointer-events: none;
}
.fde-stamp .st-label { font-size: 11px; letter-spacing: 2px; opacity: 0.8; }
.fde-stamp .st-score { font-size: 32px; font-weight: 800; line-height: 1.15; }
.fde-stamp .st-band { font-size: 12px; font-weight: 700; }
.fde-band-badge { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 100%; border-radius: 8px; padding: 16px 24px; margin: 8px 0 8px; border: 1px solid; }
.fde-band-badge .bt { font-size: 22px; font-weight: 700; white-space: nowrap; }
.fde-band-badge .bs { font-size: 13px; opacity: 0.85; }
.fde-band-1 { border-color: #4299E1; background: rgba(66, 153, 225, 0.1); color: #9ec7ec; }
.fde-band-2 { border-color: #ECC94B; background: rgba(236, 201, 75, 0.08); color: #e8d48a; }
.fde-band-3 { border-color: #5E8B7E; background: rgba(94, 139, 126, 0.12); color: #a8c9be; }
.fde-band-4 { border-color: #48BB78; background: rgba(72, 187, 120, 0.12); color: #9fdcbb; }
.fde-disclaimer { font-size: 13px; color: #8D99AE; max-width: 640px; margin-top: 10px; }

.fde-r-sec { margin-top: 44px; }
.fde-r-sec h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.fde-r-sec .sub { font-size: 14px; color: #8D99AE; margin-bottom: 22px; }

.fde-bars { display: flex; flex-direction: column; gap: 14px; }
.fde-barrow { display: grid; grid-template-columns: 190px 1fr 48px; gap: 14px; align-items: center; }
.fde-barrow .bn { font-size: 14px; color: #B8C0CC; }
.fde-barrow .bn .en { display: block; font-size: 11px; color: #8D99AE; }
.fde-barrow .track { height: 10px; background: #2a2f35; border-radius: 5px; overflow: hidden; }
.fde-barrow .fill { height: 100%; border-radius: 5px; background: var(--primary-color); transition: width 0.8s ease; }
.fde-barrow.top .fill { background: #48BB78; }
.fde-barrow.low .fill { background: #F56565; }
.fde-barrow .bv { font-size: 14px; font-weight: 700; text-align: right; color: #B8C0CC; }

.fde-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fde-sg-card { background: #22262B; border: 1px solid #2E333A; border-radius: 8px; padding: 18px 20px; }
.fde-sg-card .tagline { font-size: 12px; font-weight: 600; letter-spacing: 1px; margin-bottom: 6px; }
.fde-sg-card.str .tagline { color: #48BB78; }
.fde-sg-card.gap .tagline { color: #F56565; }
.fde-sg-card .t { font-weight: 600; font-size: 16px; }
.fde-sg-card p { font-size: 13px; color: #B8C0CC; margin-top: 6px; line-height: 1.6; }

.fde-gap-block { background: #22262B; border: 1px solid #2E333A; border-radius: 8px; padding: 22px 24px; margin-bottom: 14px; }
.fde-gap-block .gh { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fde-gap-block .gt { font-weight: 700; font-size: 17px; }
.fde-gap-block .gs { font-size: 13px; color: #F56565; font-weight: 600; }
.fde-plan3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fde-plan3 .p { border-left: 2px solid var(--accent-color); padding: 2px 0 2px 14px; }
.fde-plan3 .pd { font-size: 12px; font-weight: 700; color: var(--accent-color); letter-spacing: 1px; margin-bottom: 4px; }
.fde-plan3 .p p { font-size: 13px; color: #B8C0CC; line-height: 1.65; }

.fde-bg-note { margin-top: 18px; background: rgba(74, 108, 140, 0.1); border: 1px solid rgba(74, 108, 140, 0.35); border-radius: 8px; padding: 16px 20px; font-size: 14px; color: #B8C0CC; }

.fde-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.fde-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: #2f8f6d; color: #fff; padding: 10px 22px; border-radius: 6px; font-size: 14px; transition: transform 0.3s ease; z-index: 100; }
.fde-toast.show { transform: translateX(-50%) translateY(0); }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
    .fde-flow { grid-template-columns: repeat(2, 1fr); }
    .fde-dims { grid-template-columns: repeat(2, 1fr); }
    .fde-rmap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .fde-h1 { font-size: 30px; }
    .fde-sub { font-size: 16px; }
    .fde-h2 { font-size: 24px; }
}
@media (max-width: 700px) {
    .fde-kpi3 { grid-template-columns: 1fr; }
    .fde-bg-grid { grid-template-columns: repeat(2, 1fr); }
    .fde-two-col { grid-template-columns: 1fr; }
    .fde-plan3 { grid-template-columns: 1fr; }
    .fde-r-head { flex-direction: column; gap: 8px; }
    #stampWrap { order: -1; align-self: flex-end; }
    .fde-stamp { width: 108px; height: 108px; }
    .fde-stamp .st-score { font-size: 26px; }
    .fde-stamp .st-band { font-size: 11px; }
}
@media (max-width: 600px) {
    .fde-barrow { grid-template-columns: 120px 1fr 40px; }
    .fde-barrow .bn { font-size: 12px; }
}
@media (max-width: 520px) {
    .fde-flow { grid-template-columns: 1fr; }
    .fde-dims { grid-template-columns: 1fr; }
    .fde-rmap { grid-template-columns: 1fr; }
}

/* ===== FDE 学习路线生成器 (/fde/learning-path/) ===== */
.fde-route-select { margin: 26px 0 8px; }
.fde-route-select h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.fde-route-select .hint { font-size: 13px; color: #8D99AE; margin: 0 0 14px; }
.fde-route-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fde-route-card { appearance: none; text-align: left; background: #22262B; border: 1px solid #2E333A; border-radius: 8px; padding: 15px 17px; color: #B8C0CC; cursor: pointer; font: inherit; transition: all 0.2s ease; }
.fde-route-card:hover { border-color: rgba(94, 139, 126, 0.5); }
.fde-route-card.sel { border-color: var(--accent-color); background: rgba(94, 139, 126, 0.1); color: #F0F2F5; }
.fde-route-card .route-title { display: block; font-size: 14px; font-weight: 600; }
.fde-route-card small { display: block; font-size: 12px; color: #8D99AE; margin-top: 3px; line-height: 1.5; }
.fde-route-card.sel small { color: #B8C0CC; }

.fde-import-card { margin-top: 20px; background: rgba(94, 139, 126, 0.08); border: 1px dashed rgba(94, 139, 126, 0.4); border-radius: 8px; padding: 16px 20px; display: none; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fde-import-card p { margin: 0; font-size: 14px; color: #B8C0CC; }
.fde-import-card p strong { color: #F0F2F5; }
.fde-import-card a { flex-shrink: 0; border: 1px solid var(--accent-color); background: transparent; color: var(--accent-color); border-radius: 6px; padding: 8px 16px; font-size: 13px; font-weight: 600; text-decoration: none; }
.fde-import-card a:hover { background: rgba(94, 139, 126, 0.12); }

.fde-l-r-head { padding: 12px 0 0; }
.fde-l-r-head h1, .fde-l-r-title { font-size: 32px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.fde-l-mode { display: inline-flex; border: 1px solid rgba(94, 139, 126, 0.35); color: var(--accent-color); border-radius: 999px; padding: 3px 12px; font-size: 12px; margin-bottom: 12px; }
.fde-l-summary { color: #B8C0CC; font-size: 15px; max-width: 680px; margin-bottom: 8px; }
.fde-l-legend { font-size: 12px; color: #8D99AE; margin-bottom: 24px; }

.fde-l-timeline { position: relative; margin-top: 8px; padding-left: 28px; }
.fde-l-timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: #2E333A; }
.fde-l-phase { position: relative; background: #22262B; border: 1px solid #2E333A; border-radius: 10px; margin-bottom: 22px; overflow: hidden; }
.fde-l-phase::before { content: ''; position: absolute; left: -26px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-color); border: 3px solid var(--bg-color); z-index: 1; }
.fde-l-phase-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 22px 26px; cursor: pointer; user-select: none; }
.fde-l-phase-head:hover { background: rgba(255, 255, 255, 0.02); }
.fde-l-phase-tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; background: var(--accent-color); color: #fff; padding: 3px 12px; border-radius: 4px; white-space: nowrap; }
.fde-l-phase-head .d-name { font-size: 20px; font-weight: 700; }
.fde-l-phase-head .d-en { font-size: 12px; color: #8D99AE; }
.fde-l-phase-head .score { margin-left: auto; font-size: 13px; color: #F56565; font-weight: 600; }
.fde-l-phase-head .chev { font-size: 14px; color: #8D99AE; transition: transform 0.25s ease; margin-left: 4px; }
.fde-l-phase.open .fde-l-phase-head .chev { transform: rotate(90deg); }
.fde-l-phase-body { display: none; padding: 0 26px 24px; }
.fde-l-phase.open .fde-l-phase-body { display: block; }
.fde-l-goal { font-size: 14px; color: #B8C0CC; margin-bottom: 16px; padding: 10px 14px; background: rgba(74, 108, 140, 0.1); border-left: 3px solid var(--primary-color); border-radius: 0 6px 6px 0; }
.fde-l-weeks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.fde-l-week { border: 1px solid #2E333A; border-radius: 8px; padding: 14px 16px; }
.fde-l-week .w-tag { font-size: 11px; font-weight: 700; color: var(--accent-color); letter-spacing: 1px; margin-bottom: 8px; }
.fde-l-week .w-sec { display: flex; gap: 10px; font-size: 13px; color: #B8C0CC; line-height: 1.65; }
.fde-l-week .w-sec + .w-sec { margin-top: 6px; }
.fde-l-week .w-label { flex: none; font-size: 11px; font-weight: 600; color: #8D99AE; border: 1px solid #2E333A; border-radius: 4px; padding: 0 8px; height: 22px; line-height: 22px; margin-top: 1px; }
.fde-l-week .w-label.do { color: var(--accent-color); border-color: rgba(94, 139, 126, 0.4); }
.fde-l-week .w-scene { font-size: 13px; color: #c9a86a; line-height: 1.65; margin-bottom: 10px; padding: 8px 12px; background: rgba(214, 158, 46, 0.07); border-left: 3px solid rgba(214, 158, 46, 0.4); border-radius: 0 6px 6px 0; }
.fde-l-week .w-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.fde-l-week .w-out { font-size: 12px; color: #8fc7b3; line-height: 1.5; }
.fde-l-week .w-out::before { content: '\2713 '; font-weight: 700; }
.fde-l-week .w-hours { margin-left: auto; font-size: 11px; color: #8D99AE; border: 1px solid #2E333A; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.fde-l-resources li .wk { color: var(--accent-color); font-size: 11px; margin-right: 6px; }
.fde-l-badge.video { background: rgba(214, 158, 46, 0.2); color: #e8c476; margin-right: 6px; }
.fde-l-spine { margin-left: 8px; }
.fde-l-warmup { display: none; margin-bottom: 22px; background: rgba(94, 139, 126, 0.08); border: 1px solid rgba(94, 139, 126, 0.35); border-radius: 10px; padding: 18px 22px; }
.fde-l-warmup.on { display: block; }
.fde-l-warmup .wu-tag { font-size: 12px; font-weight: 700; color: var(--accent-color); letter-spacing: 1px; margin-bottom: 6px; }
.fde-l-warmup p { font-size: 13px; color: #B8C0CC; margin: 0 0 10px; line-height: 1.65; }
.fde-l-warmup ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.fde-l-warmup li { margin-bottom: 6px; color: #B8C0CC; line-height: 1.6; }
.fde-l-warmup li a { color: var(--accent-color); text-decoration: none; border-bottom: 1px solid rgba(94, 139, 126, 0.4); }
.fde-l-warmup li span { color: #8D99AE; }
.fde-l-outcome { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fde-l-outcome .box { border-radius: 8px; padding: 14px 16px; font-size: 13px; }
.fde-l-outcome .deliver { background: rgba(94, 139, 126, 0.08); border: 1px solid rgba(94, 139, 126, 0.3); }
.fde-l-outcome .accept { background: rgba(236, 201, 75, 0.06); border: 1px solid rgba(236, 201, 75, 0.25); }
.fde-l-outcome .o-tag, .fde-l-resources .o-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.fde-l-outcome .deliver .o-tag { color: var(--accent-color); }
.fde-l-outcome .accept .o-tag { color: #e8d48a; }
.fde-l-outcome p { margin: 0; color: #B8C0CC; line-height: 1.65; }
.fde-l-resources { border-top: 1px dashed #2E333A; padding-top: 14px; font-size: 13px; }
.fde-l-resources .o-tag { color: #8D99AE; margin-bottom: 8px; }
.fde-l-resources ul { margin: 0; padding: 0; list-style: none; }
.fde-l-resources li { margin-bottom: 6px; color: #B8C0CC; line-height: 1.6; }
.fde-l-resources li a { color: var(--accent-color); text-decoration: none; border-bottom: 1px solid rgba(94, 139, 126, 0.4); }
.fde-l-resources li a:hover { border-bottom-color: var(--accent-color); }
.fde-l-resources li span { color: #8D99AE; }
.fde-l-badge { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; letter-spacing: 0.5px; white-space: nowrap; }
.fde-l-badge.course { background: rgba(74, 108, 140, 0.25); color: #9fc3e8; }
.fde-l-badge.doc { background: rgba(94, 139, 126, 0.2); color: #8fc7b3; }
.fde-l-badge.media { background: rgba(214, 158, 46, 0.15); color: #e8c476; }
.fde-l-badge.oss { background: rgba(151, 111, 204, 0.18); color: #c4a5e8; }
.fde-l-badge.book { background: rgba(255, 255, 255, 0.08); color: #8D99AE; }

.fde-l-leverage { margin-top: 8px; background: rgba(72, 187, 120, 0.08); border: 1px solid rgba(72, 187, 120, 0.25); border-radius: 10px; padding: 22px 24px; }
.fde-l-leverage h3 { margin: 0 0 8px; font-size: 17px; color: #9fdcbb; }
.fde-l-leverage p { margin: 0; font-size: 14px; color: #B8C0CC; }

.fde-unassessed { display: none; margin-bottom: 22px; background: rgba(236, 201, 75, 0.07); border: 1px dashed rgba(236, 201, 75, 0.4); border-radius: 8px; padding: 14px 18px; font-size: 13px; color: #e8d48a; line-height: 1.7; }
.fde-unassessed.on { display: block; }
.fde-unassessed a { color: var(--accent-color); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(94, 139, 126, 0.4); }

.fde-modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.fde-modal-mask.on { display: flex; }
.fde-modal { background: #22262B; border: 1px solid #2E333A; border-radius: 12px; max-width: 520px; width: 100%; padding: 28px 28px 24px; }
.fde-modal h3 { margin: 0 0 8px; font-size: 19px; }
.fde-modal .m-desc { font-size: 14px; color: #B8C0CC; margin: 0 0 20px; }
.fde-modal .m-btns { display: flex; flex-direction: column; gap: 10px; }
.fde-modal .m-btns .fde-btn { justify-content: center; width: 100%; text-align: center; text-decoration: none; }
.fde-modal .m-link { display: block; text-align: center; font-size: 13px; color: #8D99AE; margin-top: 14px; cursor: pointer; }
.fde-modal .m-link:hover { color: var(--accent-color); }
.fde-stage-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.fde-stage-card { border: 1px solid #2E333A; border-radius: 8px; padding: 13px 16px; cursor: pointer; transition: all 0.2s ease; }
.fde-stage-card .s-t { font-size: 14px; font-weight: 600; }
.fde-stage-card .s-d { font-size: 12px; color: #8D99AE; margin-top: 2px; }
.fde-stage-card:hover { border-color: rgba(94, 139, 126, 0.5); }
.fde-stage-card.sel { border-color: var(--accent-color); background: rgba(94, 139, 126, 0.1); }

@media (max-width: 768px) {
  .fde-route-grid { grid-template-columns: 1fr; }
  .fde-l-r-head h1, .fde-l-r-title { font-size: 26px; }
  .fde-l-outcome { grid-template-columns: 1fr; }
  .fde-l-phase-head { padding: 18px 20px; }
  .fde-l-phase-head .score { margin-left: 0; width: 100%; order: 5; }
  .fde-l-phase-body { padding: 0 20px 20px; }
  .fde-l-week .w-sec { flex-direction: column; gap: 4px; }
}

@media print {
  nav, .fde-crumbs, .fde-actions, .fde-unassessed, .fde-l-legend, .fde-toast { display: none !important; }
  body { background: #fff; color: #1a1d21; }
  .fde-l-phase, .fde-l-week, .fde-l-outcome .box, .fde-l-leverage { background: #fff; border-color: #d8dce2; }
  .fde-l-phase { break-inside: avoid; }
  .fde-l-phase-body { display: block !important; }
  .fde-l-phase-head .chev { display: none; }
}
