/* ═══ 训练全景页面样式 ═══ */

/* 数据流 */
.data-flow { display: flex; justify-content: center; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.data-source { background: var(--code-bg); border-radius: 10px; padding: 14px; text-align: center; min-width: 140px; }
.ds-icon { font-size: 28px; margin-bottom: 6px; }
.ds-label { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ds-detail { font-size: 11px; color: var(--text-dim); line-height: 1.6; }
.data-clean { background: rgba(234,179,8,0.08); padding: 10px 14px; border-radius: 8px; font-size: 12px; color: var(--text); margin-top: 12px; }

/* 数据配比 */
.data-mix { display: flex; flex-direction: column; gap: 8px; }
.mix-bar-row { display: flex; align-items: center; gap: 8px; }
.mix-label { font-size: 12px; color: var(--text-dim); min-width: 70px; text-align: right; }
.mix-track { flex: 1; height: 18px; background: rgba(255,255,255,0.05); border-radius: 9px; overflow: hidden; }
.mix-fill { height: 100%; border-radius: 9px; }
.mix-val { font-size: 12px; color: var(--text-dim); min-width: 30px; }

/* 预训练规模 */
.pretrain-scale { display: flex; flex-direction: column; gap: 12px; }
.ps-model { display: flex; align-items: center; gap: 10px; }
.ps-name { font-size: 12px; color: #fff; font-weight: 600; min-width: 140px; }
.ps-bar { flex: 1; height: 20px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.ps-fill { height: 100%; border-radius: 10px; }
.ps-fill.small { background: var(--green); }
.ps-fill.med { background: var(--yellow); }
.ps-fill.large { background: #f97316; }
.ps-fill.huge { background: var(--red); }
.ps-info { font-size: 11px; color: var(--text-dim); min-width: 180px; }

/* 预训练技术 */
.pretrain-techs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-tech { background: var(--code-bg); border-radius: 8px; padding: 12px; border-left: 3px solid var(--accent); }
.pt-name { font-size: 13px; font-weight: 700; color: var(--accent-light); margin-bottom: 4px; }
.pt-desc { font-size: 12px; color: var(--text-dim); }

/* 中间训练 */
.mid-train { display: flex; flex-direction: column; gap: 8px; }
.mt-before, .mt-after { background: var(--code-bg); border-radius: 8px; padding: 12px; }
.mt-label { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.mt-bar { height: 20px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.mt-skill { height: 100%; border-radius: 10px; display: flex; align-items: center; padding: 0 8px; font-size: 10px; color: #fff; font-weight: 600; }
.mt-note { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.mt-arrow { text-align: center; font-size: 13px; color: var(--green); padding: 4px; }

/* 后训练上下文 */
.posttrain-context { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 16px 0; }
.pt-stage { padding: 10px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.pt-stage.done { background: rgba(34,197,94,0.15); color: var(--green); }
.pt-stage.highlight { background: rgba(234,179,8,0.15); color: var(--yellow); border: 2px solid var(--yellow); padding: 12px 20px; text-align: center; }
.pt-stage-inner { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.pt-stage.next { background: rgba(99,102,241,0.15); color: var(--accent-light); }
.pt-arrow-r { font-size: 16px; color: var(--text-dim); }

/* 蒸馏 */
.distill-flow { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.distill-teacher, .distill-student { background: var(--code-bg); border-radius: 12px; padding: 16px; text-align: center; min-width: 160px; }
.distill-teacher { border-top: 3px solid var(--yellow); }
.distill-student { border-top: 3px solid var(--green); }
.distill-label { font-size: 11px; color: var(--text-dim); margin-bottom: 6px; }
.distill-model { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.distill-action { font-size: 11px; color: var(--accent-light); }
.distill-arrow-big { text-align: center; }
.distill-arrow-big > div { font-size: 12px; color: var(--text-dim); }
.distill-arrow-line { font-size: 20px; color: var(--yellow); letter-spacing: -2px; }
.distill-result { background: rgba(34,197,94,0.08); padding: 12px; border-radius: 8px; font-size: 13px; color: var(--text); text-align: center; margin-top: 12px; }

/* 评估维度 */
.eval-dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.eval-dim { background: var(--code-bg); border-radius: 10px; padding: 14px; text-align: center; }
.eval-icon { font-size: 24px; margin-bottom: 6px; }
.eval-name { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.eval-desc { font-size: 11px; color: var(--text-dim); }

/* 完整流水线 */
.full-pipeline { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 16px 0; }
.fp-stage { background: var(--code-bg); border-radius: 10px; padding: 12px; text-align: center; min-width: 100px; }
.fp-stage.final { border: 2px solid var(--green); background: rgba(34,197,94,0.08); }
.fp-num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin: 0 auto 6px; }
.fp-stage.final .fp-num { background: var(--green); }
.fp-name { font-size: 13px; font-weight: 700; color: #fff; }
.fp-detail { font-size: 11px; color: var(--accent-light); margin-top: 2px; }
.fp-time { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.fp-arrow { font-size: 16px; color: var(--yellow); }

.tp-summary { background: rgba(234,179,8,0.1); padding: 16px; border-radius: 10px; font-size: 14px; color: var(--text); line-height: 2; text-align: center; }

@media (max-width: 900px) {
    .data-flow { flex-direction: column; align-items: center; }
    .pretrain-techs { grid-template-columns: 1fr; }
    .eval-dims { grid-template-columns: 1fr 1fr; }
    .full-pipeline { flex-direction: column; }
    .fp-arrow { transform: rotate(90deg); }
    .distill-flow { flex-direction: column; }
    .posttrain-context { flex-direction: column; }
}
