/**
 * 智能识图/解析态 — 图生视频、快创、识视频、图片拆解等共用
 * v20260528
 */
.nova-ref-desc {
    position: relative;
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(145deg, #080d14 0%, #121f35 52%, #0a1220 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: rgba(226, 232, 240, 0.92);
}
.nova-ref-desc[hidden] { display: none !important; }
.nova-ref-desc__fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.nova-ref-desc__grid {
    position: absolute;
    inset: -30% -10%;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.22) 1px, transparent 1px);
    background-size: 32px 32px;
    transform: perspective(320px) rotateX(62deg);
    transform-origin: 50% 0%;
    animation: h5NeuralRefGrid 12s linear infinite;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 100%);
}
@keyframes h5NeuralRefGrid {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 64px, 64px 0; }
}
.nova-ref-desc__scan {
    position: absolute;
    left: 0; right: 0;
    height: 40%;
    top: -40%;
    background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.05), rgba(165, 243, 252, 0.14), rgba(56, 189, 248, 0.05), transparent);
    animation: h5NeuralRefScan 2.4s ease-in-out infinite;
}
.nova-ref-desc:not(.is-busy) .nova-ref-desc__scan { animation: none; opacity: 0; }
@keyframes h5NeuralRefScan {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(320%); opacity: 0; }
}
.nova-ref-desc__glow {
    position: absolute;
    width: 120px; height: 120px;
    top: -40px; right: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 68%);
    animation: h5NeuralRefGlow 3s ease-in-out infinite alternate;
}
@keyframes h5NeuralRefGlow {
    from { opacity: 0.45; transform: scale(1); }
    to { opacity: 0.85; transform: scale(1.08); }
}
.nova-ref-desc__core {
    position: relative;
    z-index: 1;
    padding: 12px 14px 13px;
}
.nova-ref-desc__kicker {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(125, 211, 252, 0.88);
    text-transform: uppercase;
}
.nova-ref-desc.is-ok .nova-ref-desc__kicker { color: rgba(110, 231, 183, 0.92); }
.nova-ref-desc.is-err .nova-ref-desc__kicker { color: rgba(252, 165, 165, 0.9); }
.nova-ref-desc__main {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nova-ref-desc__orb {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.nova-ref-desc__orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-top-color: rgba(165, 243, 252, 0.95);
    animation: h5NeuralRefSpin 1.1s linear infinite;
}
.nova-ref-desc.is-ok .nova-ref-desc__orb-ring,
.nova-ref-desc.is-err .nova-ref-desc__orb-ring { animation: none; border-color: rgba(110, 231, 183, 0.55); border-top-color: rgba(110, 231, 183, 0.95); }
.nova-ref-desc.is-err .nova-ref-desc__orb-ring { border-color: rgba(248, 113, 113, 0.45); border-top-color: rgba(252, 165, 165, 0.9); }
.nova-ref-desc__orb-core {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 243, 252, 0.95) 0%, rgba(56, 189, 248, 0.35) 55%, transparent 72%);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
    animation: h5NeuralRefCore 1.8s ease-in-out infinite alternate;
}
.nova-ref-desc.is-ok .nova-ref-desc__orb-core {
    background: radial-gradient(circle, rgba(167, 243, 208, 0.95) 0%, rgba(52, 211, 153, 0.35) 55%, transparent 72%);
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.45);
    animation: none;
}
.nova-ref-desc.is-err .nova-ref-desc__orb-core {
    background: radial-gradient(circle, rgba(254, 202, 202, 0.9) 0%, rgba(248, 113, 113, 0.35) 55%, transparent 72%);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
    animation: none;
}
@keyframes h5NeuralRefSpin { to { transform: rotate(360deg); } }
@keyframes h5NeuralRefCore {
    from { opacity: 0.65; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.nova-ref-desc__label {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
}
.nova-ref-desc__hint {
    margin: 3px 0 0;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.45;
}
.nova-ref-desc__meter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.nova-ref-desc__meter[hidden] { display: none !important; }
.nova-ref-desc__meter-track {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.nova-ref-desc__meter-track i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.5), rgba(165, 243, 252, 0.95));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
    transition: width 0.45s ease;
}
.nova-ref-desc.is-ok .nova-ref-desc__meter-track i {
    width: 100% !important;
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.55), rgba(167, 243, 208, 0.95));
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.45);
}
.nova-ref-desc__meter-txt {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(125, 211, 252, 0.85);
}
.nova-ref-desc.is-ok .nova-ref-desc__meter-txt { color: rgba(110, 231, 183, 0.92); }
.nova-ref-desc__channels {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}
.nova-ref-desc__channels:empty { display: none; }
.nova-ref-desc__ch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: rgba(148, 163, 184, 0.9);
}
.nova-ref-desc__ch-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(110, 231, 183, 0.95);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
    flex-shrink: 0;
}
.nova-ref-desc__ch-name {
    flex: 0 0 auto;
    min-width: 52px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(203, 213, 225, 0.88);
}
.nova-ref-desc__ch-mask {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    color: rgba(56, 189, 248, 0.55);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.nova-ref-desc__ch-st {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(110, 231, 183, 0.88);
}

/* 全屏/弹层 NEURAL 宿主（笔记解析、图文对标等） */
.neural-overlay-host {
    background: rgba(7, 11, 18, 0.88) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.neural-overlay-host .nova-ref-desc {
    margin-top: 0;
    width: 100%;
    max-width: 360px;
}
.neural-overlay-card {
    width: 100%;
    max-width: 360px;
    padding: 0 4px;
}
.neural-overlay-card .nova-ref-desc {
    margin-top: 0;
}
.neural-overlay-card .tuwen-workflow-cancel {
    display: block;
    width: 100%;
    margin-top: 14px;
}
.diagnosis-status .nova-ref-desc {
    margin-top: 0;
    border-color: rgba(56, 189, 248, 0.16);
}
.content-stream-loading .nova-ref-desc {
    margin-top: 0;
    width: 100%;
    max-width: 340px;
}
.gen-progress-bar .nova-ref-desc {
    margin-top: 10px;
}
.gen-progress-bar .gen-progress-tip.is-neural-hidden {
    display: none;
}
