/* ==========================================================================
   速推NLP信息处理系统 — 控制台样式表
   深色科技风 / 数据大屏 / 玻璃拟态
   ========================================================================== */

:root {
    --bg:        #050a14;
    --bg-2:      #081020;
    --panel:     rgba(14, 24, 42, .78);
    --panel-2:   rgba(18, 30, 52, .72);
    --line:      rgba(88, 148, 220, .18);
    --line-2:    rgba(88, 148, 220, .34);
    --txt:       #e9f2ff;
    --txt-2:     #b6c8e4;
    --muted:     #7d94b8;
    --cyan:      #22d3ee;
    --blue:      #3b82f6;
    --sky:       #38bdf8;
    --purple:    #a78bfa;
    --teal:      #22d3a7;
    --green:     #34d399;
    --amber:     #ffb020;
    --orange:    #ff7a59;
    --pink:      #f472b6;
    --red:       #ff5c7c;
    --sidebar-w: 216px;
    --radius:    14px;
    --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
    --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 背景：径向光晕 + 网格 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1100px 620px at 78% -8%, rgba(34, 211, 238, .13), transparent 62%),
        radial-gradient(900px 560px at 8% 6%, rgba(59, 130, 246, .13), transparent 60%),
        radial-gradient(900px 700px at 50% 110%, rgba(167, 139, 250, .09), transparent 62%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(88, 148, 220, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 148, 220, .055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 92% 82% at 50% 42%, #000 32%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 42%, #000 32%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); }
::-webkit-scrollbar-thumb { background: rgba(88, 148, 220, .3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(88, 148, 220, .5); }

/* ============================ 布局 ============================ */

.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, rgba(10, 18, 34, .95), rgba(6, 12, 24, .92));
    border-right: 1px solid var(--line);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    padding: 20px 18px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 11px;
}
.brand-mark {
    width: 38px; height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: linear-gradient(140deg, rgba(34, 211, 238, .22), rgba(59, 130, 246, .18));
    border: 1px solid rgba(34, 211, 238, .4);
    display: grid; place-items: center;
    box-shadow: 0 0 20px rgba(34, 211, 238, .22), inset 0 0 14px rgba(34, 211, 238, .1);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-txt b {
    display: block;
    font-size: 15px;
    letter-spacing: .11em;
    font-weight: 600;
    background: linear-gradient(90deg, #e9f2ff, #7fe6f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-txt span {
    display: block;
    font-size: 9.5px;
    letter-spacing: .22em;
    color: var(--muted);
    text-transform: uppercase;
    font-family: var(--mono);
}

.nav { padding: 14px 10px; flex: 1; overflow-y: auto; }
.nav-label {
    font-size: 10px;
    letter-spacing: .18em;
    color: #55688a;
    padding: 12px 10px 7px;
    font-family: var(--mono);
    text-transform: uppercase;
}
.nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    color: var(--txt-2);
    font-size: 13.5px;
    margin-bottom: 3px;
    transition: .18s;
    position: relative;
    border: 1px solid transparent;
}
.nav a svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .78; }
.nav a:hover { background: rgba(88, 148, 220, .09); color: #fff; }
.nav a.on {
    background: linear-gradient(90deg, rgba(34, 211, 238, .17), rgba(34, 211, 238, .03));
    border-color: rgba(34, 211, 238, .32);
    color: #fff;
    box-shadow: inset 0 0 18px rgba(34, 211, 238, .08);
}
.nav a.on svg { opacity: 1; color: var(--cyan); }
.nav a.on::before {
    content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; border-radius: 0 3px 3px 0;
    background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

.side-foot {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
    font-family: var(--mono);
}
.dot-live {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--teal); box-shadow: 0 0 8px var(--teal);
    margin-right: 6px; animation: pulse 1.9s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* 左下角构建标识 */
.side-build {
    display: inline-block;
    margin-top: 7px;
    padding: 1px 8px;
    border: 1px solid rgba(34, 211, 238, .3);
    border-radius: 4px;
    background: rgba(34, 211, 238, .06);
    color: var(--teal);
    font-size: 10px;
    letter-spacing: .5px;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ============================ 顶部栏 ============================ */

.topbar {
    height: 62px;
    flex: 0 0 62px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 15, 30, .62);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 20;
}
.page-title { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.page-title small {
    display: block; font-size: 11px; color: var(--muted); font-weight: 400;
    letter-spacing: .1em; font-family: var(--mono);
}
.topbar-spacer { flex: 1; }

.status-chips { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(20, 33, 56, .6);
    font-size: 11.5px;
    color: var(--txt-2);
    font-family: var(--mono);
    white-space: nowrap;
}
.chip b { color: var(--txt); font-weight: 600; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 7px var(--teal); }
.chip.warn .dot { background: var(--amber); box-shadow: 0 0 7px var(--amber); }
.chip.clock { border-color: rgba(34, 211, 238, .34); background: rgba(34, 211, 238, .08); color: #d5f6fd; }

.content { padding: 22px 24px 40px; flex: 1; }

/* ============================ 通用组件 ============================ */

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.g-3-2 { grid-template-columns: 1.62fr 1fr; }
@media (max-width: 1440px) {
    .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
    .g-2, .g-3, .g-4, .g-5, .g-2-1, .g-1-2, .g-3-2 { grid-template-columns: 1fr; }
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.panel::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55), transparent);
    opacity: .8;
}
.panel-hd {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}
.panel-hd h3 {
    font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
    display: flex; align-items: center; gap: 9px;
}
.panel-hd h3::before {
    content: ""; width: 3px; height: 14px; border-radius: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
    box-shadow: 0 0 9px rgba(34, 211, 238, .7);
}
.panel-hd .sub { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.panel-hd .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-bd { padding: 15px 16px; }
.panel-bd.tight { padding: 10px 12px; }
.panel-bd.flush { padding: 0; }

.tag {
    display: inline-block; padding: 2px 8px; border-radius: 5px;
    font-size: 10.5px; font-family: var(--mono); letter-spacing: .04em;
    border: 1px solid var(--line-2); color: var(--txt-2);
    background: rgba(88, 148, 220, .09);
}
.tag.cy { color: #8ff0ff; border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .12); }
.tag.gr { color: #8ff0d4; border-color: rgba(34, 211, 163, .45); background: rgba(34, 211, 163, .12); }
.tag.am { color: #ffd894; border-color: rgba(255, 176, 32, .45); background: rgba(255, 176, 32, .12); }
.tag.rd { color: #ffa8bb; border-color: rgba(255, 92, 124, .45); background: rgba(255, 92, 124, .12); }
.tag.pp { color: #d6c4ff; border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .12); }

/* ---- KPI 卡片 ---- */
.kpi { padding: 15px 16px 14px; position: relative; }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.kpi-ico {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px;
    display: grid; place-items: center;
    border: 1px solid var(--line-2);
    background: rgba(88, 148, 220, .1);
}
.kpi-ico svg { width: 16px; height: 16px; }
.kpi-val {
    font-family: var(--mono);
    font-size: 27px; font-weight: 600; letter-spacing: -.01em;
    margin: 9px 0 2px; line-height: 1.1;
    color: #fff;
    text-shadow: 0 0 22px rgba(34, 211, 238, .3);
}
.kpi-val .unit { font-size: 12.5px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.kpi-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.trend { font-family: var(--mono); font-size: 11.5px; }
.trend.up { color: #ff7a8f; }   /* 涨：红 */
.trend.down { color: #3ddc97; } /* 跌：绿 */
.kpi-spark { margin-top: 6px; height: 26px; }

/* ---- 表格 ---- */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
    text-align: left; padding: 9px 12px; color: var(--muted);
    font-weight: 500; font-size: 11px; letter-spacing: .08em;
    border-bottom: 1px solid var(--line); font-family: var(--mono);
    text-transform: uppercase; white-space: nowrap;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid rgba(88, 148, 220, .08); color: var(--txt-2); }
.tbl tr:hover td { background: rgba(88, 148, 220, .05); color: var(--txt); }
.tbl td.mono { font-family: var(--mono); color: var(--txt); }
.tbl .r { text-align: right; }

/* ---- 进度条 ---- */
.bar { height: 6px; border-radius: 4px; background: rgba(88, 148, 220, .14); overflow: hidden; }
.bar > i {
    display: block; height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 0 10px rgba(34, 211, 238, .55);
    transition: width .9s cubic-bezier(.22, .8, .3, 1);
}
.bar.gr > i { background: linear-gradient(90deg, #12b981, var(--teal)); box-shadow: 0 0 10px rgba(34, 211, 163, .5); }
.bar.am > i { background: linear-gradient(90deg, #f59e0b, var(--amber)); box-shadow: 0 0 10px rgba(255, 176, 32, .5); }
.bar.rd > i { background: linear-gradient(90deg, #e11d48, var(--red)); box-shadow: 0 0 10px rgba(255, 92, 124, .5); }
.bar.pp > i { background: linear-gradient(90deg, #7c3aed, var(--purple)); box-shadow: 0 0 10px rgba(167, 139, 250, .5); }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-row .bl { width: 84px; font-size: 12px; color: var(--txt-2); flex: 0 0 84px; }
.bar-row .bv { width: 58px; text-align: right; font-family: var(--mono); font-size: 11.5px; color: var(--txt); flex: 0 0 58px; }
.bar-row .bar { flex: 1; }

/* ---- 日志流 ---- */
.logbox {
    font-family: var(--mono);
    font-size: 11.5px;
    height: 300px;
    overflow-y: auto;
    padding: 10px 14px;
    scroll-behavior: smooth;
}
.logline {
    display: flex; gap: 9px; padding: 2.5px 0;
    border-bottom: 1px dashed rgba(88, 148, 220, .07);
    animation: fadeUp .35s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.logline .t { color: #4f6789; flex: 0 0 62px; }
.logline .lv { flex: 0 0 46px; font-weight: 600; }
.logline .lv.ok { color: var(--teal); }
.logline .lv.in { color: var(--sky); }
.logline .lv.wn { color: var(--amber); }
.logline .lv.er { color: var(--red); }
.logline .m { color: var(--txt-2); word-break: break-all; }
.logline .m em { color: var(--cyan); font-style: normal; }
.logline .m u { color: var(--purple); text-decoration: none; }

/* ---- 流水线拓扑 ---- */
.pipe { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 6px 2px 2px; }
.pipe-node {
    flex: 0 0 auto; text-align: center; padding: 0 4px;
}
.pipe-node .box {
    width: 108px; padding: 11px 6px 9px;
    border-radius: 11px;
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(24, 40, 68, .85), rgba(14, 24, 42, .85));
    position: relative;
    transition: .25s;
}
.pipe-node .box:hover { border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 22px rgba(34, 211, 238, .22); transform: translateY(-2px); }
.pipe-node .box svg { width: 19px; height: 19px; color: var(--cyan); }
.pipe-node b { display: block; font-size: 12px; margin-top: 5px; }
.pipe-node span { display: block; font-size: 10px; color: var(--muted); font-family: var(--mono); }
.pipe-node .box::after {
    content: ""; position: absolute; inset: -1px; border-radius: 11px;
    background: linear-gradient(120deg, transparent 40%, rgba(34, 211, 238, .14), transparent 60%);
    opacity: 0; animation: sweep 3.4s linear infinite;
}
@keyframes sweep { 0% { transform: translateX(-40%); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateX(60%); opacity: 0; } }
.pipe-arrow { flex: 0 0 34px; height: 2px; position: relative; background: linear-gradient(90deg, rgba(34, 211, 238, .18), rgba(34, 211, 238, .55)); overflow: hidden; }
.pipe-arrow::after {
    content: ""; position: absolute; top: -1.5px; width: 22px; height: 5px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    filter: blur(1px);
    animation: flow 1.7s linear infinite;
}
@keyframes flow { from { left: -24px; } to { left: 36px; } }
.pipe-arrow::before {
    content: ""; position: absolute; right: -1px; top: -4px;
    border-left: 6px solid rgba(34, 211, 238, .7);
    border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

/* ============================ 智能分析工作台 ============================ */

.work { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 16px; }
@media (max-width: 1240px) { .work { grid-template-columns: 1fr; } }

.editor {
    width: 100%; min-height: 232px; resize: vertical;
    background: rgba(6, 12, 24, .72);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--txt);
    font-family: var(--sans);
    font-size: 13.5px; line-height: 1.85;
    padding: 12px 13px;
    outline: none;
    transition: .2s;
}
.editor:focus { border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 0 3px rgba(34, 211, 238, .1), inset 0 0 26px rgba(34, 211, 238, .05); }

.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 11px 0 5px; }
.field-row label { font-size: 12px; color: var(--muted); }
select.sel {
    background: rgba(6, 12, 24, .8); color: var(--txt);
    border: 1px solid var(--line-2); border-radius: 8px;
    padding: 6px 9px; font-size: 12px; font-family: var(--mono);
    outline: none; min-width: 148px;
}
select.sel:focus { border-color: rgba(34, 211, 238, .55); }

.switches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.sw {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 18px;
    border: 1px solid var(--line); background: rgba(20, 33, 56, .5);
    font-size: 11.5px; color: var(--txt-2); cursor: pointer;
    transition: .18s; user-select: none;
}
.sw input { display: none; }
.sw i { width: 6px; height: 6px; border-radius: 50%; background: #3f5474; transition: .18s; }
.sw.on { border-color: rgba(34, 211, 238, .48); background: rgba(34, 211, 238, .11); color: #cff8ff; }
.sw.on i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 18px; border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, .5);
    background: linear-gradient(120deg, rgba(34, 211, 238, .22), rgba(59, 130, 246, .22));
    color: #eafcff; font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: .2s; font-family: var(--sans);
    box-shadow: 0 0 20px rgba(34, 211, 238, .14);
}
.btn:hover { box-shadow: 0 0 28px rgba(34, 211, 238, .32); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost {
    background: rgba(20, 33, 56, .6); border-color: var(--line-2); color: var(--txt-2);
    box-shadow: none; font-weight: 500;
}
.btn.ghost:hover { border-color: rgba(34, 211, 238, .42); color: #fff; }
.btn-row { display: flex; gap: 9px; margin-top: 13px; }
.btn svg { width: 15px; height: 15px; }

/* 分析中遮罩 */
.analyzing { position: relative; }
.analyzing::after {
    content: ""; position: absolute; inset: 0; border-radius: var(--radius);
    background: rgba(5, 10, 20, .55); backdrop-filter: blur(2px);
    z-index: 5;
}
.scanline {
    position: absolute; left: 0; right: 0; height: 2px; z-index: 6;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 18px var(--cyan);
    animation: scan 1.35s linear infinite;
}
@keyframes scan { from { top: 0; } to { top: 100%; } }

/* 分词结果 */
.tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.tok {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 4px 9px 5px;
    border-radius: 7px;
    border: 1px solid var(--line-2);
    background: rgba(20, 33, 56, .55);
    font-size: 14px;
    transition: .16s;
    cursor: default;
    animation: tokIn .4s backwards;
}
@keyframes tokIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.tok:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.tok small {
    font-size: 9.5px; font-family: var(--mono);
    padding: 0 4px; border-radius: 4px;
    background: rgba(255, 255, 255, .07);
}
.tok[data-p="n"]  { border-color: rgba(59, 130, 246, .4); }
.tok[data-p="n"] small  { color: #8fc0ff; }
.tok[data-p="v"]  { border-color: rgba(34, 211, 163, .4); }
.tok[data-p="v"] small  { color: #7ff0cb; }
.tok[data-p="a"]  { border-color: rgba(255, 176, 32, .4); }
.tok[data-p="a"] small  { color: #ffd38a; }
.tok[data-p="d"], .tok[data-p="p"], .tok[data-p="c"], .tok[data-p="u"] { opacity: .74; }
.tok[data-p="d"] small { color: #c7b6ff; }
.tok[data-p="t"], .tok[data-p="ns"], .tok[data-p="nt"], .tok[data-p="nr"], .tok[data-p="m"] { border-color: rgba(167, 139, 250, .42); }
.tok[data-p="t"] small, .tok[data-p="m"] small { color: #cbb8ff; }
.tok[data-p="ns"] small { color: #7ff0d0; }
.tok[data-p="nt"] small { color: #9ecbff; }
.tok[data-p="nr"] small { color: #ffcf7a; }
.tok[data-p="w"] { opacity: .5; background: transparent; border-color: rgba(88, 148, 220, .2); }

/* 实体高亮原文 */
.article {
    font-size: 14.5px; line-height: 2.15; color: var(--txt-2);
    letter-spacing: .01em;
}
mark.ent {
    position: relative;
    background: color-mix(in srgb, var(--c) 16%, transparent);
    border-bottom: 1.5px solid var(--c);
    color: #fff;
    padding: 1px 3px 2px;
    border-radius: 4px;
    cursor: help;
    transition: .16s;
}
mark.ent:hover { background: color-mix(in srgb, var(--c) 30%, transparent); }
mark.ent i {
    font-style: normal; font-size: 9.5px; font-family: var(--mono);
    vertical-align: super; margin-left: 2px; color: var(--c);
    opacity: .95;
}

/* 实体列表 */
.ent-list { display: flex; flex-wrap: wrap; gap: 7px; }
.ent-item {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 5px 10px; border-radius: 8px;
    border: 1px solid var(--line-2);
    background: rgba(20, 33, 56, .5);
    font-size: 12.5px;
    animation: tokIn .35s backwards;
}
.ent-item .d { width: 7px; height: 7px; border-radius: 50%; }
.ent-item small { font-size: 10px; color: var(--muted); font-family: var(--mono); }


/* 实体面板左右分栏 */
.ent-split { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1320px) { .ent-split { grid-template-columns: 1fr; } }

/* 情感仪表读数 */
.gauge-read { display: flex; align-items: center; justify-content: center; gap: 16px; }

/* 关键词云 */
.cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kw {
    padding: 3px 9px; border-radius: 7px;
    border: 1px solid rgba(34, 211, 238, .28);
    background: rgba(34, 211, 238, .07);
    font-weight: 500;
    transition: .16s;
}
.kw:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34, 211, 238, .28); }
.kw small { font-size: 9.5px; color: var(--muted); font-family: var(--mono); margin-left: 4px; }

/* 摘要 */
.summary {
    border-left: 3px solid var(--cyan);
    background: linear-gradient(90deg, rgba(34, 211, 238, .09), transparent);
    padding: 11px 14px; border-radius: 0 9px 9px 0;
    font-size: 13.5px; line-height: 2; color: var(--txt);
}

/* 意图排行 */
.intent-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.intent-badge {
    padding: 8px 14px; border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, .45);
    background: linear-gradient(120deg, rgba(34, 211, 238, .18), rgba(59, 130, 246, .14));
    font-size: 15px; font-weight: 600; color: #e6feff;
}
.intent-conf { font-family: var(--mono); font-size: 22px; color: var(--cyan); text-shadow: 0 0 18px rgba(34, 211, 238, .5); }

/* 统计小卡 */
.mini { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-c {
    flex: 1; min-width: 92px;
    padding: 9px 11px; border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(20, 33, 56, .42);
}
.mini-c b { display: block; font-family: var(--mono); font-size: 18px; color: #fff; line-height: 1.25; }
.mini-c span { font-size: 11px; color: var(--muted); }

/* 句法树 */
.syntax-wrap { overflow-x: auto; padding: 4px 0 0; }
.syntax-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 9px; }
.syntax-legend span { display: inline-flex; align-items: center; gap: 5px; }
.syntax-legend i { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }

/* 流水线时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before {
    content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
    background: linear-gradient(180deg, rgba(34, 211, 238, .6), rgba(34, 211, 238, .06));
}
.tl-item { position: relative; padding: 0 0 11px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.tl-item::before {
    content: ""; position: absolute; left: -17px; top: 7px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--cyan);
    box-shadow: 0 0 9px rgba(34, 211, 238, .7);
}
.tl-item .n { flex: 1; color: var(--txt-2); }
.tl-item .ms { font-family: var(--mono); font-size: 11px; color: var(--cyan); }
.tl-item .ok { color: var(--teal); font-size: 11px; font-family: var(--mono); }

/* 空状态 */
.empty {
    text-align: center; padding: 46px 20px; color: var(--muted);
}
.empty svg { width: 44px; height: 44px; opacity: .35; margin-bottom: 12px; }
.empty b { display: block; font-size: 14px; color: var(--txt-2); margin-bottom: 5px; }

/* 页脚 */
.page-foot {
    padding: 16px 24px; border-top: 1px solid var(--line);
    font-size: 11.5px; color: #55688a; font-family: var(--mono);
    display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.page-foot .sp { flex: 1; }

/* 架构图 */
.arch { display: flex; flex-direction: column; gap: 10px; }
.arch-layer {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 11px;
    border: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(20, 33, 56, .7), rgba(12, 22, 40, .5));
}
.arch-layer .lname {
    flex: 0 0 108px; font-size: 11.5px; font-family: var(--mono);
    color: var(--cyan); letter-spacing: .05em;
}
.arch-layer .lbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 7px; flex: 1; text-align: center; }
.arch-box {
    padding: 5px 11px; border-radius: 7px; font-size: 12px;
    border: 1px solid var(--line-2); background: rgba(24, 40, 68, .6);
    color: var(--txt-2);
}
.arch-box.hi { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .12); color: #d8f9ff; }

/* 代码块 */
pre.code {
    background: rgba(4, 9, 18, .85);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 15px;
    font-family: var(--mono); font-size: 12px; line-height: 1.75;
    color: #b9d4f2; overflow-x: auto;
    white-space: pre;
}
pre.code .k { color: #ff9ec4; }
pre.code .s { color: #9ae6b4; }
pre.code .c { color: #5b7093; }
pre.code .n { color: #ffd68a; }

/* 模型卡 */
.model-card { padding: 14px; border-radius: 11px; border: 1px solid var(--line); background: rgba(20, 33, 56, .5); }
.model-card h4 { font-size: 13.5px; margin-bottom: 3px; display: flex; align-items: center; gap: 7px; }
.model-card p { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.7; }
.model-meta { display: flex; gap: 14px; font-size: 11px; font-family: var(--mono); color: var(--txt-2); margin-bottom: 10px; flex-wrap: wrap; }
.model-meta b { color: #fff; }

/* 杂项 */
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(88, 148, 220, .12); font-size: 12.5px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }
.kv b { font-family: var(--mono); color: var(--txt); font-weight: 500; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.hl-cy { color: var(--cyan); }
.hl-gr { color: var(--teal); }
.hl-am { color: var(--amber); }
.hl-rd { color: var(--red); }
.nowrap { white-space: nowrap; }
