:root {
  --bg: #f4f6fa; --card: #ffffff; --ink: #0f172a; --muted: #64748b; --line: #e5e9f0;
  --brand: #2563eb; --brand-ink: #1e3a8a; --dark: #0b1220;
}
* { box-sizing: border-box; }
[v-cloak] { display: none; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .bad-text { color: #dc2626; }
.spacer { flex: 1; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 24px; background: var(--dark); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 250px; }
.logo { font-size: 26px; color: #60a5fa; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand-sub { font-size: 11px; opacity: .65; }
.nav { display: flex; gap: 4px; }
.nav-item { padding: 8px 16px; border-radius: 8px; cursor: pointer; color: #cbd5e1; font-size: 14px; user-select: none; }
.nav-item:hover { background: #1e293b; color: #fff; }
.nav-item.active { background: #1e3a8a; color: #fff; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.health { font-size: 12px; } .health.ok { color: #4ade80; } .health.bad { color: #f87171; }
.tenant-select { width: 190px; }
.lang-btn { background: transparent !important; color: #fff !important; border-color: #475569 !important; }

.main { max-width: 1320px; margin: 0 auto; padding: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card h4 { margin: 0 0 12px; font-size: 14px; }
.section-title { margin: 36px 0 12px; font-size: 22px; }
.section-title.small { font-size: 16px; margin: 24px 0 10px; }
.section-lead { color: #334155; line-height: 1.75; margin: 0 0 16px; max-width: 1080px; }
.note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
.empty { color: var(--muted); padding: 16px 0; }
.empty-big { text-align: center; color: var(--muted); padding: 60px; }

/* about */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding: 36px; border-radius: 16px; color: #fff;
  background: radial-gradient(circle at 85% 20%, #1d4ed8 0, transparent 45%), linear-gradient(135deg, #0b1220, #172554); }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: #93c5fd; }
.hero h1 { font-size: 32px; margin: 10px 0 14px; line-height: 1.25; }
.lead { line-height: 1.8; color: #dbeafe; margin: 0 0 20px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: center; }
.kpi { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px; }
.kpi-value { font-size: 28px; font-weight: 800; }
.kpi-label { font-size: 12px; opacity: .8; margin-top: 4px; }
.sys-kpis { grid-template-columns: repeat(6, 1fr); }
.sys-kpis .kpi { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.feature-icon { font-size: 24px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #eff6ff; }
.feature h3 { margin: 12px 0 8px; } .feature p { color: #334155; line-height: 1.7; font-size: 13.5px; }
.feature ul { padding-left: 18px; color: #475569; font-size: 12.5px; line-height: 1.8; margin: 0; }
.arch { padding: 8px 12px; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.chart-card { min-height: 330px; display: flex; flex-direction: column; }
.chart-card canvas { flex: 1; max-height: 290px; }
.chart-card.wide { grid-column: 1 / -1; }
.code { background: #0b1220; color: #e2e8f0; border-radius: 10px; padding: 14px; font-size: 12.5px; overflow-x: auto; line-height: 1.55; }
.code.small { font-size: 11px; max-height: 260px; }
.future { border-left: 4px solid #7c3aed; }
.future h3 { margin: 0 0 8px; color: #6d28d9; }
.future ul { line-height: 1.9; }

/* user */
.user-layout { display: grid; grid-template-columns: 520px 1fr; gap: 16px; align-items: start; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; background: #eef2f7; border-radius: 10px; padding: 4px; }
.mode-switch button { border: 0; padding: 9px; border-radius: 8px; background: transparent; cursor: pointer; font-size: 14px; color: #475569; }
.mode-switch button.active { background: #fff; color: var(--brand-ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mode-hint { font-size: 12.5px; color: var(--muted); margin: 10px 2px 14px; line-height: 1.6; }
.wf-list { display: grid; gap: 8px; }
.wf { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.wf:hover { border-color: #93c5fd; }
.wf.active { border-color: var(--brand); background: #eff6ff; }
.wf-title { font-weight: 600; font-size: 13.5px; }
.wf-tags { margin-top: 6px; display: flex; gap: 6px; }
.mtag { font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #f1f5f9; color: #475569; }
.mtag.video { background: #dbeafe; color: #1d4ed8; } .mtag.audio { background: #ccfbf1; color: #0f766e; } .mtag.text { background: #ede9fe; color: #6d28d9; }
.wf-desc { font-size: 12.5px; color: #475569; line-height: 1.6; margin: 12px 2px; }
.form-row { display: flex; flex-wrap: wrap; gap: 0 14px; }
.form-row .el-form-item { margin-bottom: 10px; }
.form-row .el-select { width: 150px; }
.form-actions { display: flex; align-items: center; gap: 8px; }
.prompt-count { font-size: 12px; color: var(--muted); }
.dag-mini { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.jobs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.jobs-head h3 { margin: 0; }
.jobs-table { cursor: pointer; }
.job-prompt { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.job-meta { font-size: 11.5px; color: var(--muted); }
.job-detail h4 { margin: 20px 0 10px; }
.jd-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.jd-alert { margin-top: 10px; }
.jd-dag { margin-top: 14px; background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.video-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
.video-card video { width: 100%; display: block; max-height: 220px; background: #000; }
.video-meta { display: flex; align-items: center; background: #fff; padding: 4px 10px; font-size: 12px; }
.prompt-list { padding-left: 20px; line-height: 1.7; font-size: 13px; color: #334155; }

/* system */
.gpu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 14px; }
.gpu-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.meter { display: grid; grid-template-columns: 48px 1fr 92px; align-items: center; gap: 8px; font-size: 12px; margin: 6px 0; }
.meter b { text-align: right; font-weight: 600; }
.bar { height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #2563eb); }
.bar.mem i { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.gpu-info { font-size: 12px; margin: 10px 0; line-height: 1.7; min-height: 40px; }
.gpu-task { color: #b45309; }
.gpu-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline { padding: 10px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: #475569; padding: 4px 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* showcase */
.sc-layout { display: grid; grid-template-columns: 440px 1fr; gap: 16px; align-items: start; }
.sc-title { font-size: 20px; font-weight: 800; }
.sc-meta { font-size: 12.5px; color: var(--muted); margin: 4px 0 12px; }
.sc-dag { background: #fafbfd; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.sc-prompt { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12.5px; line-height: 1.6; max-height: 300px; overflow: auto; font-family: inherit; }
.sc-params { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; background: #eef2f7; border-radius: 10px; padding: 2px 9px; color: #334155; }
.sc-player { padding: 0; overflow: hidden; background: #000; }
.sc-player video { width: 100%; display: block; max-height: 620px; }
.sc-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; }
.sc-thumb { flex: 0 0 180px; cursor: pointer; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; }
.sc-thumb.active { border-color: var(--brand); }
.sc-thumb video { width: 100%; display: block; height: 100px; object-fit: cover; background: #000; }
.sc-thumb span { display: block; font-size: 12px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) {
  .hero, .chart-row, .user-layout, .sc-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .sys-kpis { grid-template-columns: repeat(3, 1fr); }
}
.sc-left, .sc-right, .submit-card, .jobs-card { min-width: 0; }
.sc-player video { max-width: 100%; }

/* about: pitch layout */
.hero-media { position: relative; border-radius: 12px; overflow: hidden; align-self: center; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.hero-media video { width: 100%; display: block; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.kpi-strip { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.kpi-strip .kpi { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.kpi-strip .kpi-value { color: var(--brand-ink); }
.kpi-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix th { font-size: 13px; color: #334155; background: #f8fafc; }
.matrix td:first-child { font-weight: 600; width: 26%; }
.matrix .us { background: #eff6ff; }
.matrix th.us { color: var(--brand-ink); }
.mark { display: inline-block; width: 18px; font-weight: 800; }
.mark.yes { color: #16a34a; } .mark.no { color: #dc2626; } .mark.mid { color: #d97706; }
.tech { margin-top: 36px; border-radius: 12px; overflow: hidden; }
.tech h3 { margin: 18px 0 8px; }
.tech .el-collapse-item__header { font-size: 15px; font-weight: 700; padding: 0 16px; }
.tech .el-collapse-item__content { padding: 0 16px 16px; }
@media (max-width: 1100px) { .kpi-strip { grid-template-columns: 1fr 1fr; } }

/* polish */
.thumb { width: 80px; height: 45px; object-fit: cover; border-radius: 6px; background: #0b1220; display: block; }
.thumb-empty { display: grid; place-items: center; color: #94a3b8; font-size: 12px; background: #f1f5f9; }
.thumb-empty.busy { color: var(--brand); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.live { color: #b45309; font-weight: 600; }
.jd-stats, .sc-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.sc-facts { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin: 4px 0 6px; }
.jd-stats > div, .sc-facts > div { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.jd-stats b, .sc-facts b { display: block; font-size: 17px; color: var(--brand-ink); }
.jd-stats span, .sc-facts span { font-size: 11.5px; color: var(--muted); }
.sc-prompt.folded { max-height: 140px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.sc-player { position: relative; }
.sound-btn { position: absolute; top: 12px; right: 12px; border: 0; border-radius: 16px; padding: 6px 12px; background: rgba(15,23,42,.7); color: #fff; cursor: pointer; font-size: 12.5px; }
.sound-btn:hover { background: rgba(15,23,42,.9); }
.gpu-task b { color: #0f172a; }
.sc-facts b { font-size: 14px; line-height: 1.3; }
.sc-facts { grid-template-columns: repeat(3, 1fr); margin: 10px 0 4px; }
.sc-strip { flex-wrap: wrap; overflow: visible; }
.sc-thumb { flex: 0 0 calc(20% - 8px); min-width: 140px; }
.sc-left h4 { margin: 16px 0 8px; }

.sc-thumb img { width: 100%; height: 100px; object-fit: cover; display: block; background: #000; }
.video-card video { aspect-ratio: 16 / 9; object-fit: contain; }
/* extensibility */
.plug { display: grid; grid-template-columns: 1fr 50px 300px; gap: 12px; align-items: center; }
.plug-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.model-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #2563eb; border-radius: 12px; padding: 12px 14px; }
.model-card.llm { border-left-color: #8b5cf6; } .model-card.audio { border-left-color: #0d9488; } .model-card.glue { border-left-color: #d97706; }
.mc-top { display: flex; justify-content: space-between; font-size: 11px; }
.mc-kind { color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.mc-state { border-radius: 8px; padding: 0 8px; background: #f1f5f9; color: #475569; }
.mc-state.main { background: #dbeafe; color: #1d4ed8; font-weight: 700; } .mc-state.new { background: #dcfce7; color: #15803d; font-weight: 700; }
.mc-name { font-weight: 800; font-size: 15px; margin: 6px 0 4px; }
.mc-desc { font-size: 12.5px; color: #475569; line-height: 1.5; min-height: 38px; }
.mc-adapter { font-family: ui-monospace, monospace; font-size: 11px; color: #94a3b8; margin-top: 6px; }
.plug-arrow { font-size: 34px; color: #94a3b8; text-align: center; }
.plug-core { background: linear-gradient(135deg, #0b1220, #1e3a8a); color: #fff; border-radius: 14px; padding: 18px; }
.core-title { font-weight: 800; margin-bottom: 10px; }
.core-item { font-size: 13px; line-height: 2; color: #dbeafe; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.step { display: flex; gap: 12px; background: var(--card); border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px 14px; }
.step-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step p { margin: 4px 0 0; font-size: 12.5px; color: #475569; }
@media (max-width: 1100px) { .plug { grid-template-columns: 1fr; } .plug-arrow { transform: rotate(90deg); } .plug-models, .steps { grid-template-columns: 1fr; } }

/* ComfyUI scenario cards */
.vs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vs-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; }
.vs-title { font-weight: 700; font-size: 14px; }
.vs-ratio { font-size: 38px; font-weight: 900; color: #16a34a; line-height: 1.1; margin-top: 8px; }
.vs-sub { font-size: 12px; color: #15803d; margin-bottom: 12px; }
.vs-aside { font-size: 12px; font-weight: 600; color: #15803d; margin-left: 10px; letter-spacing: 0; }
.vs-row { display: grid; grid-template-columns: 64px 1fr 80px; gap: 8px; align-items: center; font-size: 12px; margin: 5px 0; }
.vs-row b { text-align: right; }
.vs-bar { height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.vs-bar i { display: block; height: 100%; border-radius: 5px; }
.vs-bar i.c { background: #94a3b8; } .vs-bar i.o { background: #2563eb; }
.vs-cfg { margin-top: auto; padding-top: 10px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1100px) { .vs-grid { grid-template-columns: 1fr 1fr; } }

.open-hint { background: #fef3c7; border-bottom: 1px solid #f59e0b; color: #78350f; padding: 10px 24px; font-size: 13.5px; }
.open-hint code { background: #fff; border: 1px solid #f59e0b; border-radius: 6px; padding: 1px 8px; margin: 0 6px; font-weight: 700; }

/* login */
.who { font-size: 12.5px; color: #cbd5e1; }
.login-page { display: flex; justify-content: center; padding-top: 8vh; }
.login-card { width: 360px; max-width: 100%; padding: 28px; }
.login-brand { font-size: 22px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.login-field { margin-top: 12px; }
.login-btn { width: 100%; margin-top: 18px; }

/* phone */
.scroll-x { overflow-x: auto; }
.chart-row > *, .user-layout > *, .sc-layout > * { min-width: 0; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; height: auto; gap: 6px 10px; padding: 8px 12px; }
  .brand { min-width: 0; }
  .brand-sub, .who, .health { display: none; }
  .topbar-right { gap: 6px; }
  .tenant-select { width: 132px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .nav-item { white-space: nowrap; padding: 6px 12px; }
  .main { padding: 12px; }
  .open-hint { padding: 10px 12px; }
  .hero { padding: 20px; gap: 18px; }
  .hero h1 { font-size: 24px; }
  .kpi { padding: 12px; } .kpi-value { font-size: 22px; }
  .feature-grid, .vs-grid { grid-template-columns: 1fr; }
  .sys-kpis { grid-template-columns: repeat(2, 1fr); }
  .section-title { margin-top: 26px; font-size: 19px; }
  .matrix { min-width: 600px; }
  .arch svg, .timeline svg { min-width: 720px; }
  .jd-stats { grid-template-columns: repeat(3, 1fr); }
  .sc-facts { grid-template-columns: repeat(2, 1fr); }
  .sc-thumb { flex: 0 0 calc(50% - 5px); min-width: 0; }
  .job-prompt { max-width: 170px; }
  .login-page { padding-top: 4vh; }
  .sc-right { order: -1; }
}
