/* =====================================================================
 * N14 / 37 · Ollama 本地模型部署 —— 独立皮肤「石板向导」
 * 三步向导 + 蓝紫命令终端；模型卡网格与批量对比表。
 * 主题：只消费公共导航写入的 <html data-theme>，不自建开关。
 * ===================================================================== */

.ol-page {
    --nx-bg:        #f4f6fb;
    --nx-bg-2:      #eaeff8;
    --nx-surface:   #ffffff;
    --nx-surface-2: #f3f6fc;
    --nx-surface-3: #e7edf9;
    --nx-ink:       #151c33;
    --nx-ink-2:     #4a5674;
    --nx-ink-3:     #8792ae;
    --nx-line:      #dce3f2;
    --nx-line-2:    #eaf0fa;
    --nx-a:         #4c4fd7;
    --nx-b:         #0e8f8f;
    --nx-tint:      #e9eaff;
    --nx-deep:      #3a3db2;
    --ol-term:      #111629;
    --ol-code:      #cdd7f5;
    --tsk-card: #ffffff; --tsk-line: #dce3f2; --tsk-faint: #8792ae; --tsk-sub: #4a5674; --tsk-ink: #151c33;
}
:root[data-theme="dark"] .ol-page {
    --nx-bg:        #0c1019;
    --nx-bg-2:      #111827;
    --nx-surface:   #151d2f;
    --nx-surface-2: #1c263c;
    --nx-surface-3: #24314a;
    --nx-ink:       #edf1ff;
    --nx-ink-2:     #aab6d4;
    --nx-ink-3:     #7f8cab;
    --nx-line:      #2b3854;
    --nx-line-2:    #202c42;
    --nx-a:         #9ba2ff;
    --nx-b:         #5fd0c5;
    --nx-tint:      rgba(155, 162, 255, .16);
    --nx-deep:      #c3c7ff;
    --ol-term:      #080c17;
    --ol-code:      #cdd7f5;
    --tsk-card: #151d2f; --tsk-line: #2b3854; --tsk-faint: #7f8cab; --tsk-sub: #aab6d4; --tsk-ink: #edf1ff;
}

.ol-page .n14-hero h1 em { color: var(--nx-a); }
.ol-hero { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.ol-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 20px; }
.ol-presets .n14-small { margin-right: 4px; }
.ol-kpi { margin-top: 20px; }
.ol-kpi .n14-kpi__v { font-size: 20px; }
.ol-caveat { margin-top: 14px; max-width: 60ch; }

/* 三步向导条 */
.ol-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: olstep; }
.ol-steps li { position: relative; font-size: 12.5px; font-weight: 700; color: var(--nx-ink-3); background: var(--nx-surface-2); border: 1px solid var(--nx-line); border-radius: 9px; padding: 8px 10px 8px 28px; }
.ol-steps li::before { counter-increment: olstep; content: counter(olstep); position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--nx-a); color: #fff; font-family: var(--nx-mono); font-size: 9px; }
.ol-steps li:first-child { color: var(--nx-deep); border-color: var(--nx-a); }
.ol-config .n14-field { margin-bottom: 14px; }
.ol-switches { display: grid; gap: 9px; margin: 15px 0 4px; padding: 13px 0; border-top: 1px solid var(--nx-line-2); border-bottom: 1px solid var(--nx-line-2); }
.ol-validmsg { margin-top: 14px; white-space: pre-line; }

/* 命令终端 */
.ol-termsection { margin-top: 34px; }
.ol-term { background: var(--ol-term); color: var(--ol-code); border-radius: 14px; overflow: hidden; border: 1px solid #263253; box-shadow: var(--nx-sh-lift); }
.ol-term__bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #171f39; border-bottom: 1px solid #263253; font-family: var(--nx-mono); font-size: 11.5px; color: #8996c4; }
.ol-term__dot { width: 9px; height: 9px; border-radius: 50%; background: #6d78d6; }
.ol-term__bar span:last-child { margin-left: auto; color: var(--nx-b); }
.ol-term__code { margin: 0; padding: 18px 20px; min-height: 150px; max-height: 340px; overflow: auto; font-family: var(--nx-mono); font-size: 13px; line-height: 1.9; white-space: pre-wrap; word-break: break-all; }
.ol-term__code code { background: none; color: inherit; padding: 0; font-family: inherit; font-size: inherit; }
.ol-term__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: #171f39; border-top: 1px solid #263253; }
.ol-term__foot .n14-btn { background: #232e50; border-color: #2f3d67; color: var(--ol-code); }
.ol-term__foot .n14-btn:hover { color: #fff; border-color: var(--nx-b); }
.ol-term__foot .n14-btn--primary { background: var(--nx-a); border-color: var(--nx-a); color: #fff; }

/* 模型卡 */
.ol-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ol-model { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 11px; padding: 12px 13px; cursor: pointer; transition: border-color .13s, transform .13s; }
.ol-model:hover { border-color: var(--nx-a); transform: translateY(-2px); }
.ol-model input { accent-color: var(--nx-a); margin-top: 3px; }
.ol-model b { display: block; font-family: var(--nx-mono); font-size: 12.5px; color: var(--nx-ink); word-break: break-all; }
.ol-model span { font-size: 11.5px; color: var(--nx-ink-3); }
.ol-model em { display: inline-block; font-style: normal; font-size: 10.5px; background: var(--nx-tint); color: var(--nx-deep); border-radius: 5px; padding: 1px 6px; margin-top: 5px; }
.ol-comparewrap { margin-top: 16px; max-height: 360px; overflow: auto; }
.ol-split { align-items: start; }

@media (max-width: 980px) {
    .ol-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ol-steps { grid-template-columns: 1fr; }
    .ol-models { grid-template-columns: 1fr 1fr; }
}
