/* 核心样式.css */

:root {
    --bg-color: #080c14;
    --surface-color: rgba(20, 30, 54, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* 渐变与主题色 */
    --primary-color: #8b5cf6; /* 霓虹紫 - 智能体决策 */
    --secondary-color: #06b6d4; /* 霓虹青 - RAG数据流 */
    --accent-color: #ec4899; /* 霓虹粉 - 检测与报警 */
    --success-color: #10b981; /* 翡翠绿 - 成功或无风险 */
    --warning-color: #f59e0b; /* 琥珀黄 - 异常/提示 */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b1329;
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    min-width: 0;
}

/* 玻璃魔幻卡片基础样式 */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

/* 顶部演示简介区 (Hero) */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
    position: relative;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.glow-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed var(--secondary-color);
    animation: rotate-dashed 20s linear infinite;
}

@keyframes rotate-dashed {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--primary-color) 70%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero .bio {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* 技术栈标签 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tag.highlight {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    color: #c084fc;
}

.tag:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

/* 旧版联系信息布局 */
.contacts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--primary-color);
}

/* 分割标题 */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 核心内容区布局 */
.project-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    min-width: 0;
}

#project-ops {
    order: 1;
}

#project-document {
    order: 2;
}

#project-evaluation {
    order: 3;
}

#project-audit {
    order: 4;
}

.project-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.project-meta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.project-meta .role {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.project-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* 交互画布与容器 */
.interactive-container {
    background: #0d1527;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
}

.interactive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    z-index: 10;
}

.toolbar-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-title .indicator {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 交互画布绘图区 */
.canvas-area {
    flex-grow: 1;
    position: relative;
    width: 100%;
    height: 320px;
}

/* 流程图节点 */
.flow-node {
    position: absolute;
    background: rgba(19, 27, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flow-node:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

.flow-node.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
}

.flow-node .node-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.flow-node .node-desc {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* 状态框 */
.state-panel {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 260px;
    background: rgba(10, 15, 29, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.8rem;
    font-family: monospace;
    font-size: 0.75rem;
    z-index: 8;
    max-height: 180px;
    overflow-y: auto;
}

.state-panel h4 {
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

/* 拓扑图SVG背景线 */
.flow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.connection-line {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 4 4;
}

.connection-line.active {
    stroke: var(--secondary-color);
    stroke-width: 3;
    stroke-dasharray: 8 4;
    animation: flow-dash 1s linear infinite;
}

@keyframes flow-dash {
    to {
        stroke-dashoffset: -20;
    }
}

/* ==========================================
 * 1. 交互演示一：LangGraph 工作流与终端
 * ========================================== */

.bid-review-container {
    min-height: 620px;
}

.bid-review-stage {
    position: relative;
    flex: 1;
    min-width: 1120px;
    min-height: 540px;
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        radial-gradient(circle at 22% 22%, rgba(6, 182, 212, 0.12), transparent 30%),
        radial-gradient(circle at 78% 72%, rgba(139, 92, 246, 0.14), transparent 34%),
        rgba(5, 9, 19, 0.86);
    background-size: 34px 34px, 34px 34px, auto, auto, auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bid-flow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.lane-label {
    position: absolute;
    left: 1rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 3;
}

.tender-label { top: 1rem; }
.bid-label { top: 16.8rem; }

.review-node {
    position: absolute;
    width: 130px;
    height: 120px;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(12, 19, 35, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    z-index: 4;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.review-node.active {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--secondary-color);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.28), 0 18px 34px rgba(0, 0, 0, 0.38);
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.13), rgba(139, 92, 246, 0.12));
}

.review-node:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--secondary-color);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.2), 0 12px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.review-node.done {
    border-color: rgba(16, 185, 129, 0.5);
}

.review-node .node-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
}

.review-node .node-desc {
    font-size: 0.62rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.tender-file { top: 58px; left: 34px; }
.soffice-node { top: 58px; left: 204px; }
.agent-node { top: 58px; left: 374px; }
.criteria-node { top: 58px; left: 544px; }
.bid-file { top: 318px; left: 34px; }
.split-node { top: 318px; left: 204px; }
.mineru-node { top: 318px; left: 374px; }
.structure-node { top: 318px; left: 544px; }
.vector-node { top: 188px; right: 214px; }
.audit-node { top: 188px; right: 38px; }

.file-sheet {
    width: 42px;
    height: 54px;
    padding: 10px 7px;
    border-radius: 4px 10px 4px 4px;
    background: linear-gradient(150deg, #f8fafc 0 78%, #bfd7ff 79%);
    box-shadow: 0 0 18px rgba(255,255,255,0.12);
}

.file-sheet span,
.parse-lines span,
.scan-doc span {
    display: block;
    height: 3px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
}

.review-node.active .file-sheet {
    animation: file-hop 0.7s ease-in-out infinite alternate;
}

@keyframes file-hop {
    from { transform: translateY(0) rotate(-1deg); }
    to { transform: translateY(-6px) rotate(2deg); }
}

.node-icon {
    position: relative;
    width: 54px;
    height: 54px;
}

.office-icon {
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.parse-orbit {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed var(--secondary-color);
}

.review-node.active .parse-orbit {
    animation: rotate-dashed 1.2s linear infinite;
}

.parse-lines {
    position: absolute;
    inset: 15px 12px;
}

.review-node.active .parse-lines span {
    animation: parse-sweep 0.55s ease-in-out infinite alternate;
}

@keyframes parse-sweep {
    from { width: 32%; background: rgba(6, 182, 212, 0.4); }
    to { width: 100%; background: rgba(6, 182, 212, 0.95); }
}

.agent-core {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.34), rgba(139, 92, 246, 0.06));
}

.agent-core strong {
    font-size: 0.85rem;
    color: #fff;
    z-index: 2;
}

.agent-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.55);
}

.ring-one { inset: 4px; }
.ring-two { inset: 11px; border-color: rgba(6, 182, 212, 0.58); }
.ring-three { inset: 18px; border-color: rgba(255, 255, 255, 0.38); }

.agent-node.active .agent-ring {
    animation: absorb-ring 1s ease-in infinite;
}

.agent-node.active .ring-two { animation-delay: 0.15s; }
.agent-node.active .ring-three { animation-delay: 0.3s; }

@keyframes absorb-ring {
    from { transform: scale(1.55); opacity: 0; }
    55% { opacity: 1; }
    to { transform: scale(0.42); opacity: 0; }
}

.criteria-stack {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    width: 96px;
    margin-bottom: 0.1rem;
}

.criteria-stack span {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #d1fae5;
    font-size: 0.55rem;
    border-radius: 4px;
    padding: 0.12rem 0.25rem;
    text-align: center;
}

.scope-card {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #d1fae5;
    font-size: 0.62rem;
    border-radius: 5px;
    padding: 0.22rem 0.35rem;
}

.criteria-node.active .criteria-stack span {
    animation: criteria-pop 0.7s ease both;
}

.criteria-node.active .criteria-stack span:nth-child(2) { animation-delay: 0.12s; }
.criteria-node.active .criteria-stack span:nth-child(3) { animation-delay: 0.24s; }

@keyframes criteria-pop {
    from { opacity: 0.2; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.split-pages {
    position: relative;
    width: 58px;
    height: 48px;
}

.split-pages span {
    position: absolute;
    width: 34px;
    height: 42px;
    border-radius: 4px;
    background: #e2e8f0;
    border-top: 5px solid var(--warning-color);
    left: 12px;
    top: 2px;
    transition: transform 0.45s ease;
}

.split-node.active .split-pages span:nth-child(1) { transform: translateX(-20px) rotate(-10deg); }
.split-node.active .split-pages span:nth-child(2) { transform: translateX(-7px) rotate(-3deg); }
.split-node.active .split-pages span:nth-child(3) { transform: translateX(8px) rotate(4deg); }
.split-node.active .split-pages span:nth-child(4) { transform: translateX(22px) rotate(10deg); }

.scan-doc {
    position: relative;
    width: 62px;
    height: 50px;
    padding: 12px 9px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.95);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    box-shadow: 0 0 12px #38bdf8;
    opacity: 0;
}

.mineru-node.active .scan-line {
    opacity: 1;
    animation: mineru-scan 1.1s linear infinite;
}

@keyframes mineru-scan {
    0% { transform: translateY(0); }
    50% { transform: translateY(30px); }
    100% { transform: translateY(0); }
}

.grid-build {
    display: grid;
    grid-template-columns: repeat(3, 18px);
    gap: 5px;
}

.grid-build span {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.structure-node.active .grid-build span,
.structure-node.done .grid-build span {
    animation: grid-fill 0.7s ease both;
}

.structure-node.active .grid-build span:nth-child(2), .structure-node.done .grid-build span:nth-child(2) { animation-delay: 0.08s; }
.structure-node.active .grid-build span:nth-child(3), .structure-node.done .grid-build span:nth-child(3) { animation-delay: 0.16s; }
.structure-node.active .grid-build span:nth-child(4), .structure-node.done .grid-build span:nth-child(4) { animation-delay: 0.24s; }
.structure-node.active .grid-build span:nth-child(5), .structure-node.done .grid-build span:nth-child(5) { animation-delay: 0.32s; }
.structure-node.active .grid-build span:nth-child(6), .structure-node.done .grid-build span:nth-child(6) { animation-delay: 0.4s; }

@keyframes grid-fill {
    from { transform: scale(0.55); background: rgba(255, 255, 255, 0.08); }
    to { transform: scale(1); background: rgba(6, 182, 212, 0.35); border-color: rgba(6, 182, 212, 0.6); }
}

.vector-radar {
    position: relative;
    width: 62px;
    height: 46px;
}

.vector-radar span {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 12px var(--secondary-color);
}

.vector-radar span:nth-child(1) { left: 3px; top: 5px; }
.vector-radar span:nth-child(2) { left: 24px; top: 22px; background: var(--primary-color); }
.vector-radar span:nth-child(3) { left: 47px; top: 7px; }
.vector-radar span:nth-child(4) { left: 10px; top: 34px; background: var(--success-color); }
.vector-radar span:nth-child(5) { left: 42px; top: 32px; background: var(--warning-color); }

.vector-node.active .vector-radar span {
    animation: radar-pulse 0.75s ease-in-out infinite alternate;
}

@keyframes radar-pulse {
    from { transform: scale(0.85); opacity: 0.45; }
    to { transform: scale(1.45); opacity: 1; }
}

.robot-face {
    width: 58px;
    height: 48px;
    border-radius: 16px 16px 12px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(203, 213, 225, 0.95));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    padding: 12px 10px 8px;
    position: relative;
    box-shadow: 0 0 18px rgba(255,255,255,0.16);
}

/* 节点产物气泡卡片样式 */
.node-output {
    position: absolute;
    bottom: -46px; /* 贴合在节点下方 */
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 140px;
    background: rgba(8, 12, 22, 0.88);
    border: 1px dashed rgba(255, 255, 255, 0.12); /* 默认淡色虚线框 */
    color: var(--text-muted); /* 默认暗色文字 */
    font-size: 0.62rem;
    line-height: 1.3;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0.75; /* 默认半透明可见 */
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    text-align: center;
    word-break: break-all;
    white-space: normal;
}

/* 处于激活状态时高亮蓝色 */
.review-node.active .node-output {
    opacity: 1;
    border: 1px solid rgba(6, 182, 212, 0.6);
    color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 8px rgba(6, 182, 212, 0.25);
    transform: translateX(-50%) scale(1.05);
}

/* 处于完成状态时高亮绿色 */
.review-node.done .node-output {
    opacity: 1;
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: var(--success-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 8px rgba(16, 185, 129, 0.25);
    transform: translateX(-50%) scale(1);
}

/* 模型审核节点的高科技脉冲波形动效 */
.audit-pulse {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 50px;
    height: 30px;
}

.audit-pulse span {
    display: block;
    width: 3px;
    height: 12px;
    background-color: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 激活时呈现活跃跳动 */
.review-node.active .audit-pulse span {
    background-color: var(--accent-color);
    animation: wave-pulse 0.8s ease-in-out infinite alternate;
}
.review-node.active .audit-pulse span:nth-child(2) {
    animation-delay: 0.15s;
}
.review-node.active .audit-pulse span:nth-child(3) {
    animation-delay: 0.3s;
}

/* 完成时呈现绿色常量状态 */
.review-node.done .audit-pulse span {
    background-color: var(--success-color);
    height: 18px;
    box-shadow: 0 0 8px var(--success-color);
}

@keyframes wave-pulse {
    0% { height: 6px; transform: scaleY(0.7); }
    100% { height: 24px; transform: scaleY(1.3); }
}

.review-output-panel {
    position: absolute;
    right: 110px; /* 右移，居于模型审核和匹配审核范围两个节点的下中间 */
    bottom: 26px;
    width: 180px;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(8, 12, 22, 0.86);
    border: 1px solid rgba(6, 182, 212, 0.16);
    z-index: 4;
    opacity: 0; /* 默认完全隐藏 */
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.35s ease;
}

.review-output-panel.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.14);
}

.review-output-panel .panel-title {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.scope-card {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    opacity: 0;
    transform: translateX(12px);
    margin-bottom: 0.35rem;
}

.review-output-panel.show .scope-card {
    animation: scope-in 0.42s ease both;
}

.review-output-panel.show .scope-card:nth-child(3) { animation-delay: 0.12s; }
.review-output-panel.show .scope-card:nth-child(4) { animation-delay: 0.24s; }

.scope-card span {
    color: var(--success-color);
    white-space: nowrap;
}

@keyframes scope-in {
    to { opacity: 1; transform: translateX(0); }
}

.bid-data-packet {
    position: absolute;
    width: 26px;
    height: 32px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(139, 92, 246, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    box-shadow: 0 0 12px var(--secondary-color), 0 0 24px rgba(6, 182, 212, 0.5);
    z-index: 100; /* 置于所有流程节点之上飞行 */
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.85);
    transition-property: left, top, transform, opacity;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bid-data-packet::before {
    content: "📄";
    font-size: 13px;
    filter: drop-shadow(0 0 1px #fff);
}

.bid-data-packet.structured {
    width: 30px;
    height: 36px;
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
    box-shadow: 0 0 12px var(--success-color), 0 0 24px rgba(16, 185, 129, 0.5);
}

.bid-data-packet.structured::before {
    content: "📊";
}

.langgraph-layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
    margin-top: 1rem;
}

.langgraph-layout .canvas-area {
    flex: 1.2;
    min-height: 340px;
    background: rgba(10, 15, 29, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.terminal-panel {
    flex: 1;
    background: rgba(8, 12, 22, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.1);
    min-height: 340px;
}

.terminal-header {
    background: rgba(19, 27, 46, 0.9);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 0.4rem;
}

.dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-btn.close { background-color: #ef4444; }
.dot-btn.shrink { background-color: #eab308; }
.dot-btn.zoom { background-color: #22c55e; }

.terminal-header .terminal-title {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.terminal-body {
    flex-grow: 1;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #38bdf8;
    overflow-y: auto;
    line-height: 1.5;
    background-color: #050811;
}

.terminal-text {
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-text.text-muted {
    color: var(--text-muted);
}

.terminal-body .agent-thought {
    color: #a78bfa;
}

.terminal-body .agent-action {
    color: #34d399;
}

.state-dashboard {
    display: flex;
    background: rgba(19, 27, 46, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0.5rem;
}

.dash-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-item:last-child {
    border-right: none;
}

.dash-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.dash-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ==========================================
 * 2. 交互演示二：图工作流智能体
 * ========================================== */

.workflow-container {
    min-height: 600px;
}

.workflow-stage {
    position: relative;
    width: 1250px;
    height: 480px;
    border-radius: 16px;
    background: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05), transparent 60%),
        rgba(8, 12, 24, 0.95);
    background-size: 30px 30px, 30px 30px, auto, auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.workflow-flow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.wf-node {
    position: absolute;
    width: 140px;
    height: 85px;
    padding: 0.6rem 0.4rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    z-index: 4;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: help;
}

.wf-node-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.wf-node-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.25;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.wf-node.wf-terminal {
    border-color: rgba(111, 91, 232, 0.4);
    box-shadow: 0 4px 20px rgba(111, 91, 232, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.wf-node.wf-terminal .wf-node-icon {
    background: rgba(111, 91, 232, 0.1);
    border-color: rgba(111, 91, 232, 0.25);
}

.wf-node.wf-decision {
    border-color: rgba(212, 155, 0, 0.4);
    box-shadow: 0 4px 20px rgba(212, 155, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.wf-node.wf-decision .wf-node-icon {
    background: rgba(212, 155, 0, 0.1);
    border-color: rgba(212, 155, 0, 0.25);
}

.wf-node.wf-branch {
    border-color: rgba(73, 166, 106, 0.4);
    box-shadow: 0 4px 20px rgba(73, 166, 106, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.wf-node.wf-branch .wf-node-icon {
    background: rgba(73, 166, 106, 0.1);
    border-color: rgba(73, 166, 106, 0.25);
}

.wf-node:hover {
    transform: translateY(-4px) scale(1.04);
    border-color: var(--primary-color);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(139, 92, 246, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.wf-node.active {
    transform: translateY(-4px) scale(1.04);
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: linear-gradient(135deg, rgba(20, 30, 60, 0.95) 0%, rgba(35, 25, 60, 0.95) 100%) !important;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(139, 92, 246, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}
.wf-node.active .wf-node-title {
    color: #fff;
}
.wf-node.active .wf-node-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.wf-node.done {
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}
.wf-node.done .wf-node-icon {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
    color: rgba(16, 185, 129, 0.8);
}

.wf-packet {
    position: absolute;
    width: 20px;
    height: 26px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(139, 92, 246, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6), 0 0 16px rgba(139, 92, 246, 0.4);
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.85);
}

.wf-packet::before {
    content: "📄";
    font-size: 11px;
    filter: drop-shadow(0 0 1px #fff);
}

.wf-terminal-line {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.wf-thought {
    color: #a78bfa;
}

.wf-action {
    color: #38bdf8;
}

.wf-normal {
    color: var(--text-secondary);
}

.workflow-stage .connection-line {
    stroke-dasharray: none;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.workflow-stage .connection-line.active {
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 1.5px;
    stroke-dasharray: none;
    animation: none;
}

.workflow-stage .connection-line.wf-dashed-line {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.5px;
    stroke-dasharray: 5, 5;
    animation: flow-dash 1s linear infinite;
}

.workflow-stage .connection-line.flowing-line {
    stroke: var(--primary-color) !important;
    stroke-width: 3px !important;
    animation: none !important;
}

/* ==========================================
 * 3. 交互演示三：长文本双通道检索与重排漏斗
 * ========================================== */

.query-bar {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.query-tag {
    background: var(--secondary-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.query-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-style: italic;
}

.retrieval-dashboard {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    height: 360px;
}

.retrieval-side {
    flex: 1;
    background: rgba(10, 15, 29, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
}

.side-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 0.4rem;
}

.chunk-pool {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 0.35rem;
}

.chunk-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: all 0.3s;
}

.chunk-block.active-vec {
    background: rgba(139, 92, 246, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 6px var(--primary-color);
    transform: scale(1.05);
}

.chunk-block.active-es {
    background: rgba(6, 182, 212, 0.4);
    border-color: var(--secondary-color);
    box-shadow: 0 0 6px var(--secondary-color);
    transform: scale(1.05);
}

.funnel-core {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 15, 29, 0.8);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

.funnel-mouth, .funnel-nozzle {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.flow-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--text-muted);
}

.flow-arrow.down-arrow {
    border-top-color: var(--secondary-color);
    animation: bounce-arrow 1s infinite alternate;
}

@keyframes bounce-arrow {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
}

.funnel-neck-zone {
    width: 80%;
    height: 120px;
    border-left: 2px solid rgba(255,255,255,0.05);
    border-right: 2px solid rgba(255,255,255,0.05);
    background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(245, 158, 11, 0.05) 50%, rgba(16, 185, 129, 0.05) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.funnel-tips {
    font-size: 0.7rem;
    color: var(--text-muted);
    z-index: 5;
}

.funnel-neck-card {
    position: absolute;
    width: 90%;
    padding: 0.4rem;
    background: rgba(20, 30, 54, 0.95);
    border: 1px solid var(--warning-color);
    border-radius: 6px;
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-primary);
    transform: translateY(-80px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.funnel-neck-card.flowing {
    transform: translateY(0);
    opacity: 1;
}

.funnel-neck-card.reordered {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.08);
    transform: translateY(80px);
}

.funnel-output {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 120px;
    justify-content: center;
}

.funnel-output-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.funnel-output-card.show {
    opacity: 1;
    transform: translateY(0);
}

.funnel-score {
    float: right;
    color: var(--success-color);
    font-weight: 700;
}

/* ==========================================
 * 4. 交互演示四：双标书雷同扫描碰撞
 * ========================================== */

.scanner-layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.doc-container {
    flex: 1.5;
    display: flex;
    gap: 1rem;
    position: relative;
    background: #060913;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
    overflow: hidden;
    height: 340px;
}

.doc-panel {
    flex: 1;
    background: rgba(13, 21, 39, 0.75);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.doc-title-bar {
    background: rgba(20, 30, 54, 0.9);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.doc-content {
    flex-grow: 1;
    padding: 0.8rem;
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-y: auto;
}

.doc-content p {
    margin-bottom: 0.6rem;
}

.highlight-target {
    transition: all 0.3s ease;
}

.highlight-target.text-scanned-match {
    background: rgba(236, 72, 153, 0.2);
    border-left: 2px solid var(--accent-color);
    color: #fff;
    padding-left: 4px;
}

.highlight-target.typo-scanned-match {
    background: rgba(245, 158, 11, 0.2);
    border-bottom: 2px dashed var(--warning-color);
    color: #fff;
    font-weight: 700;
}

.img-box {
    margin-top: 0.5rem;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.4rem;
    text-align: center;
    background: rgba(0,0,0,0.2);
}

.img-box span {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.fake-img {
    height: 60px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    transition: all 0.5s ease;
    border-radius: 4px;
}

/* 模拟图片资源 */
#img-a-view {
    background-image: linear-gradient(45deg, #1e293b 25%, transparent 25%), linear-gradient(-45deg, #1e293b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #1e293b 75%), linear-gradient(-45deg, transparent 75%, #1e293b 75%);
    background-size: 20px 20px;
}
#img-b-view {
    background-image: linear-gradient(45deg, #1e293b 25%, transparent 25%), linear-gradient(-45deg, #1e293b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #1e293b 75%), linear-gradient(-45deg, transparent 75%, #1e293b 75%);
    background-size: 20px 20px;
}

.fake-img.scanned-img-match {
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-color);
    border: 1px solid var(--accent-color);
    background-color: rgba(236, 72, 153, 0.1);
}

/* 扫描线效果 */
.scan-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 8px var(--accent-color);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.scan-bar.scanning {
    opacity: 1;
    animation: scan-move 4s linear infinite;
}

@keyframes scan-move {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.channel-status-grid {
    flex: 1;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 0.6rem;
}

.status-card {
    background: rgba(19, 27, 46, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s;
}

.status-card.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.15);
    background: rgba(236, 72, 153, 0.04);
}

.status-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.status-card-body {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* ==========================================
 * 5. 交互演示五：关联特征穿透网络图谱
 * ========================================== */

.hexagon-mesh {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    position: relative;
    width: 320px;
}

.center-node {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(236, 72, 153, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 0 25px var(--accent-color);
    z-index: 10;
    position: absolute;
}

.sat-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(19, 27, 46, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    text-align: center;
    padding: 0.2rem;
    z-index: 5;
    transition: all 0.3s;
    cursor: pointer;
}

.sat-node:hover, .sat-node.highlighted {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
    transform: scale(1.1);
}

/* 六方向排列 */
.sat-node:nth-child(2) { transform: translate(0, -100px); }  /* 上 */
.sat-node:nth-child(3) { transform: translate(90px, -50px); }  /* 右上 */
.sat-node:nth-child(4) { transform: translate(90px, 50px); }   /* 右下 */
.sat-node:nth-child(5) { transform: translate(0, 100px); }   /* 下 */
.sat-node:nth-child(6) { transform: translate(-90px, 50px); }  /* 左下 */
.sat-node:nth-child(7) { transform: translate(-90px, -50px); } /* 左上 */

.relation-layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

.relation-layout .hexagon-mesh-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.relation-visual-panel {
    flex: 1.4;
    background: rgba(10, 15, 29, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 380px;
}

.relation-canvas-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.4rem;
    margin-bottom: 0.8rem;
}

.relation-canvas {
    flex-grow: 1;
    position: relative;
    border-radius: 8px;
    background: #040712;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.relation-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.relation-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.relation-tips {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    z-index: 5;
    padding: 2rem;
}

/* 动态节点样式 */
.graph-node {
    position: absolute;
    width: auto;
    min-width: 64px;
    height: auto;
    padding: 0.4rem 0.6rem;
    background: rgba(20, 30, 54, 0.9);
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    color: #fff;
    font-size: 0.65rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    animation: pulse-node 2s infinite alternate;
}

@keyframes pulse-node {
    from { box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
    to { box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2); }
}

.graph-node.firm-a {
    border-color: var(--accent-color);
}

.graph-node.firm-b {
    border-color: var(--secondary-color);
}

.graph-node.middle-ent {
    border-color: var(--warning-color);
}

.graph-node .node-tag {
    display: block;
    font-size: 0.55rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.graph-edge {
    stroke: rgba(255,255,255,0.15);
    stroke-width: 1.5;
    fill: none;
}

.graph-edge.edge-highlight {
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-dasharray: 5 3;
    animation: flow-dash 1.2s linear infinite;
}

.graph-edge.edge-highlight-sec {
    stroke: var(--secondary-color);
    stroke-width: 2;
    stroke-dasharray: 5 3;
    animation: flow-dash 1.2s linear infinite;
}

/* ==========================================
 * 响应式适配
 * ========================================== */

@media (max-width: 992px) {
    .langgraph-layout, .retrieval-dashboard, .scanner-layout, .relation-layout {
        flex-direction: column;
        height: auto;
    }

    .bid-review-stage {
        min-height: 860px;
    }

    .review-node {
        width: 132px;
    }

    .tender-file { top: 56px; left: 24px; }
    .soffice-node { top: 56px; left: 184px; }
    .agent-node { top: 56px; left: 344px; }
    .criteria-node { top: 56px; left: 504px; }
    .bid-label { top: 15.9rem; }
    .bid-file { top: 302px; left: 24px; }
    .split-node { top: 302px; left: 184px; }
    .mineru-node { top: 302px; left: 344px; }
    .structure-node { top: 302px; left: 504px; }
    .vector-node { top: 552px; left: 184px; right: auto; }
    .audit-node { top: 552px; left: 384px; right: auto; }
    .review-output-panel { right: auto; left: 184px; bottom: 36px; width: 332px; }
    
    .retrieval-dashboard {
        height: auto;
    }
    
    .relation-visual-panel, .doc-container {
        height: 360px;
    }
    
    .chunk-pool {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .bid-review-container {
        padding: 1rem;
    }

    .bid-review-stage {
        min-height: 1660px;
    }

    .review-node {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }

    .review-node.active {
        transform: translateX(-50%) translateY(-3px) scale(1.03);
    }

    .tender-file { top: 54px; }
    .soffice-node { top: 194px; }
    .agent-node { top: 334px; }
    .criteria-node { top: 474px; }
    .bid-label { top: 39.6rem; }
    .bid-file { top: 674px; }
    .split-node { top: 814px; }
    .mineru-node { top: 954px; }
    .structure-node { top: 1094px; }
    .vector-node { top: 1234px; }
    .audit-node { top: 1374px; }
    .review-output-panel {
        position: absolute;
        left: 1rem;
        right: auto;
        bottom: auto;
        top: 1516px;
        width: calc(100% - 2rem);
        margin: 0;
    }

    .sat-node:nth-child(2) { transform: translate(0, -85px); }
    .sat-node:nth-child(3) { transform: translate(75px, -42px); }
    .sat-node:nth-child(4) { transform: translate(75px, 42px); }
    .sat-node:nth-child(5) { transform: translate(0, 85px); }
    .sat-node:nth-child(6) { transform: translate(-75px, 42px); }
    .sat-node:nth-child(7) { transform: translate(-75px, -42px); }

    .doc-container {
        flex-direction: column;
        height: 520px;
    }
}

/* 旧版分栏布局 */
.profile-layout {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch;
    width: 100%;
}

.profile-layout .hero {
    margin-bottom: 0;
    height: 100%;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.skills-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem 2.5rem;
}

.skills-card-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.skills-card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 30%, var(--primary-color) 70%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skills-card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 0.2rem;
}

.skills-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
    z-index: 2;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 calc(33.333% - 0.5rem);
    justify-content: center;
    min-width: 110px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.tab-btn.active {
    color: #fff;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

/* 为激活的Tab定制主题色边框 */
.tab-btn[data-tab="ai-framework"].active {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--primary-color);
}
.tab-btn[data-tab="rag-search"].active {
    background: rgba(6, 182, 212, 0.12);
    border-color: var(--secondary-color);
}
.tab-btn[data-tab="doc-intel"].active {
    background: rgba(236, 72, 153, 0.12);
    border-color: var(--accent-color);
}
.tab-btn[data-tab="backend"].active {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--success-color);
}
.tab-btn[data-tab="devops"].active {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--warning-color);
}

.tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.skills-content {
    flex: 1;
    position: relative;
}

.tab-panel {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-panel.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-level {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.skill-progress-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .tab-btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 480px) {
    .tab-btn {
        flex: 1 1 100%;
    }
}

/* ==========================================
 * 侧边栏与历史弹窗按钮样式
 * ========================================== */

/* 侧边抽屉导航栏 */
.sidebar-nav {
    position: fixed;
    left: -220px;
    top: 0;
    width: 240px;
    height: 100vh;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 0 1.5rem 0;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
}

/* 悬浮滑出 */
.sidebar-nav:hover {
    left: 0;
    border-right-color: rgba(139, 92, 246, 0.4);
    box-shadow: 10px 0 35px rgba(139, 92, 246, 0.15), 5px 0 20px rgba(0, 0, 0, 0.6);
}

/* 右侧边缘的指示发光线 */
.sidebar-sensor {
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0.6;
    transition: opacity 0.3s;
}

.sidebar-nav:hover .sidebar-sensor {
    opacity: 0;
}

/* 导航栏内部组件 */
.sidebar-header {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', var(--font-family);
    background: linear-gradient(135deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-tag {
    font-size: 0.7rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.8rem;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: #fff;
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--primary-color);
    padding-left: calc(1rem - 3px);
}

.sidebar-menu li a.highlight {
    background: rgba(6, 182, 212, 0.08);
    color: var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
    padding-left: calc(1rem - 3px);
}

.sidebar-menu li a.highlight:hover {
    background: rgba(6, 182, 212, 0.15);
    color: #fff;
}

.sidebar-menu .separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.8rem 0;
}

/* 演示入口页补充样式 */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 4rem);
    margin-bottom: 3rem;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: -1px;
    background:
        linear-gradient(120deg, rgba(139, 92, 246, 0.18), transparent 40%),
        linear-gradient(300deg, rgba(6, 182, 212, 0.16), transparent 45%);
    pointer-events: none;
}

.home-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.status-dot-mini {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--success-color);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.75);
}

.home-hero h1 {
    position: relative;
    max-width: 100%;
    font-size: clamp(2.2rem, 5.4vw, 6.8rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 20%, var(--secondary-color) 58%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-subtitle {
    position: relative;
    max-width: 780px;
    margin: 1.4rem 0 1.8rem;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.6vw, 1.24rem);
    line-height: 1.8;
}

.digital-human {
    --dh-main: var(--secondary-color);
    --dh-accent: var(--primary-color);
    --dh-main-rgb: 6, 182, 212;
    --dh-accent-rgb: 139, 92, 246;
    position: relative;
    display: block;
    width: 132px;
    height: 150px;
    flex: 0 0 auto;
    filter: drop-shadow(0 18px 32px rgba(6, 182, 212, 0.16));
}

.digital-human--audit {
    --dh-main: var(--accent-color);
    --dh-accent: var(--warning-color);
    --dh-main-rgb: 236, 72, 153;
    --dh-accent-rgb: 245, 158, 11;
    filter: drop-shadow(0 18px 32px rgba(236, 72, 153, 0.18));
}

.digital-human--ops {
    --dh-main: var(--warning-color);
    --dh-accent: var(--success-color);
    --dh-main-rgb: 245, 158, 11;
    --dh-accent-rgb: 16, 185, 129;
    filter: drop-shadow(0 18px 32px rgba(245, 158, 11, 0.18));
}

.digital-human--document {
    --dh-main: var(--success-color);
    --dh-accent: var(--secondary-color);
    --dh-main-rgb: 16, 185, 129;
    --dh-accent-rgb: 6, 182, 212;
    filter: drop-shadow(0 18px 32px rgba(16, 185, 129, 0.18));
}

.digital-human--mini {
    width: 118px;
    height: 132px;
    margin-bottom: 1.15rem;
}

.digital-human--panel {
    width: 118px;
    height: 132px;
    margin: -0.4rem 0;
}

.digital-human span {
    position: absolute;
    display: block;
}

.dh-orbit {
    inset: 10px 18px 20px;
    border: 1px solid rgba(var(--dh-main-rgb), 0.52);
    border-radius: 999px;
    transform: rotate(-12deg);
    animation: dh-orbit 14s linear infinite;
}

.dh-orbit-two {
    inset: 18px 10px 28px;
    border-color: rgba(var(--dh-accent-rgb), 0.45);
    transform: rotate(22deg);
    animation-duration: 18s;
    animation-direction: reverse;
}

.dh-head {
    top: 20px;
    left: 50%;
    width: 46px;
    height: 50px;
    transform: translateX(-50%);
    border-radius: 48% 48% 44% 44%;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.42), transparent 24%),
        linear-gradient(150deg, rgba(var(--dh-main-rgb), 0.42), rgba(12, 18, 34, 0.95));
    border: 1px solid rgba(var(--dh-main-rgb), 0.55);
    box-shadow: inset 0 -10px 24px rgba(0, 0, 0, 0.22), 0 0 28px rgba(var(--dh-main-rgb), 0.32);
}

.dh-face {
    top: 23px;
    left: 50%;
    width: 26px;
    height: 9px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(var(--dh-main-rgb), 0.92), transparent);
    box-shadow: 0 0 14px rgba(var(--dh-main-rgb), 0.52);
}

.dh-neck {
    top: 68px;
    left: 50%;
    width: 18px;
    height: 16px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(var(--dh-main-rgb), 0.34), rgba(13, 21, 39, 0.2));
    border-radius: 4px;
}

.dh-torso {
    left: 50%;
    bottom: 12px;
    width: 82px;
    height: 58px;
    transform: translateX(-50%);
    border-radius: 34px 34px 20px 20px;
    background:
        linear-gradient(110deg, rgba(var(--dh-main-rgb), 0.34), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(18, 27, 49, 0.88));
    border: 1px solid rgba(var(--dh-main-rgb), 0.48);
    box-shadow: inset 0 1px 18px rgba(255, 255, 255, 0.08), 0 0 26px rgba(var(--dh-main-rgb), 0.24);
}

.dh-core {
    top: 18px;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 12%, var(--dh-main) 22% 48%, transparent 58%);
    box-shadow: 0 0 20px rgba(var(--dh-main-rgb), 0.65);
}

.dh-scan {
    left: 18px;
    right: 18px;
    top: 35px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(var(--dh-main-rgb), 0.95), transparent);
    box-shadow: 0 0 14px rgba(var(--dh-main-rgb), 0.58);
    animation: dh-scan 3.2s ease-in-out infinite;
}

@keyframes dh-orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dh-scan {
    0%, 100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(42px); opacity: 0.95; }
}

.agent-home-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.agent-entry-card {
    min-height: 286px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    color: var(--text-primary);
    text-align: left;
    font-family: var(--font-family);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.agent-entry-card--major {
    padding: 1.45rem;
}

.agent-entry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 24% 12%, rgba(6, 182, 212, 0.18), transparent 42%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.agent-entry-card:hover,
.agent-entry-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.44);
    box-shadow: 0 18px 48px rgba(6, 182, 212, 0.12);
    outline: none;
}

.agent-entry-card:hover::before,
.agent-entry-card:focus-visible::before {
    opacity: 1;
}

.agent-entry-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(6, 182, 212, 0.9));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 28px rgba(139, 92, 246, 0.26);
}

.agent-entry-type {
    position: relative;
    display: block;
    margin-top: 1rem;
    color: var(--secondary-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.agent-entry-card strong {
    position: relative;
    display: block;
    margin-top: 0.42rem;
    font-size: clamp(1.05rem, 1.2vw, 1.35rem);
    line-height: 1.25;
}

.agent-entry-desc {
    position: relative;
    display: block;
    margin-top: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.document-animation-frame {
    padding: 0;
    min-height: 800px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.document-animation-frame iframe {
    display: block;
    width: 100%;
    height: 800px;
    border: 0;
    background: transparent;
}

.retrieval-animation-frame {
    padding: 0;
    height: 1300px;
    min-height: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.retrieval-animation-frame iframe {
    display: block;
    width: 100%;
    height: 1300px;
    border: 0;
    overflow: hidden;
    background: transparent;
}

@media (max-width: 1180px) {
    .agent-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .home-hero {
        padding: 1.4rem;
    }

    .home-hero h1 {
        font-size: 1.75rem;
    }

    .agent-home-grid {
        grid-template-columns: 1fr;
    }

    .agent-entry-card {
        min-height: auto;
    }

    .digital-human--mini {
        width: 98px;
        height: 112px;
    }
}

@media (max-width: 380px) {
    .home-hero h1 {
        font-size: 1.56rem;
    }
}

@media (max-width: 760px) {
    .project-header {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .project-date {
        white-space: normal;
    }

    .digital-human--panel {
        width: 96px;
        height: 110px;
        justify-self: start;
        margin: 0;
    }
}

/* 运营专家智能体 */
.ops-agent-section {
    position: relative;
    overflow: hidden;
}

.ops-agent-section::before {
    content: '';
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(circle at 18% 8%, rgba(245, 158, 11, 0.12), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(16, 185, 129, 0.1), transparent 36%);
    pointer-events: none;
}

.ops-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1.3rem;
    align-items: stretch;
}

.ops-chat-panel,
.ops-side-card {
    background: rgba(8, 14, 28, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.ops-chat-panel {
    min-height: 740px;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.ops-hero-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.07)),
        rgba(255, 255, 255, 0.035);
}

.ops-kicker {
    color: var(--warning-color);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.ops-hero-card h3 {
    margin-top: 0.35rem;
    font-size: clamp(1.35rem, 2.4vw, 2.1rem);
    line-height: 1.15;
}

.ops-hero-card p {
    margin-top: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.ops-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0;
}

.ops-quick-questions button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ops-quick-questions button:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fff;
    background: rgba(245, 158, 11, 0.12);
}

.ops-chat-window {
    flex: 1;
    min-height: 360px;
    max-height: 430px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
        rgba(5, 9, 19, 0.58);
}

.ops-message {
    display: flex;
    margin-bottom: 0.9rem;
}

.ops-message.user {
    justify-content: flex-end;
}

.ops-bubble {
    max-width: min(720px, 86%);
    border-radius: 16px;
    padding: 0.82rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

.ops-message.user .ops-bubble {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(139, 92, 246, 0.16));
    color: #fff;
    border-color: rgba(6, 182, 212, 0.22);
}

.ops-message.assistant .ops-bubble {
    border-color: rgba(245, 158, 11, 0.18);
}

.ops-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.45rem;
    color: var(--warning-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ops-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ops-actions a,
.ops-actions button {
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: rgba(6, 182, 212, 0.08);
    color: var(--secondary-color);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.ops-citations {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.ops-input-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.ops-input-bar textarea {
    resize: none;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    background: rgba(5, 9, 19, 0.72);
    color: var(--text-primary);
    font: inherit;
    outline: none;
}

.ops-input-bar textarea:focus {
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.ops-icon-button,
.ops-send-button {
    border: 0;
    border-radius: 14px;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ops-icon-button {
    width: 58px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(6, 182, 212, 0.85));
}

.ops-icon-button.listening {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(245, 158, 11, 0.9));
    box-shadow: 0 0 26px rgba(236, 72, 153, 0.24);
}

.ops-icon-button.pending {
    width: 64px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.94), rgba(6, 182, 212, 0.86));
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.22);
}

.ops-icon-button.unsupported {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.72), rgba(71, 85, 105, 0.66));
    box-shadow: none;
}

.ops-speech-button {
    width: 72px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(16, 185, 129, 0.86));
}

.ops-speech-button.speaking {
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.24);
}

.ops-speech-button.paused {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.94), rgba(6, 182, 212, 0.86));
}

.ops-speech-stop-button {
    width: 64px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(245, 158, 11, 0.88));
}

.ops-icon-button:disabled,
.ops-send-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
    box-shadow: none;
}

.ops-send-button {
    min-width: 88px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(139, 92, 246, 0.9));
}

.ops-icon-button:hover,
.ops-send-button:hover {
    transform: translateY(-2px);
}

.ops-icon-button:disabled:hover,
.ops-send-button:disabled:hover {
    transform: none;
}

.ops-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.ops-side-card {
    padding: 1.05rem;
}

.ops-side-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.ops-side-title span {
    color: #fff;
    font-weight: 900;
}

.ops-side-title strong {
    color: var(--secondary-color);
    font-size: 0.78rem;
}

.ops-link-grid {
    display: grid;
    gap: 0.7rem;
}

.ops-link-grid a {
    display: block;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ops-link-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.36);
}

.ops-link-grid span {
    display: block;
    font-weight: 900;
}

.ops-link-grid small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.ops-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.ops-flow span {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.55rem;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.16);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 900;
}

.ops-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.ops-tags span {
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    color: var(--warning-color);
    background: rgba(245, 158, 11, 0.07);
    font-size: 0.72rem;
    font-weight: 800;
}

.ops-knowledge-card p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.7;
}

.ops-upload-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.55rem;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.ops-upload-box input[type="file"] {
    display: none;
}

.ops-upload-label {
    min-width: 0;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
}

.ops-upload-box button {
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 10px;
    padding: 0.42rem 0.58rem;
    background: rgba(6, 182, 212, 0.08);
    color: var(--secondary-color);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.ops-upload-box button:hover {
    border-color: rgba(6, 182, 212, 0.42);
    background: rgba(6, 182, 212, 0.14);
}

.ops-upload-status {
    min-height: 1.2rem;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.6;
}

.ops-upload-status.success {
    color: #4ade80;
}

.ops-upload-status.error {
    color: #fb7185;
}

.ops-knowledge-list {
    display: grid;
    gap: 0.55rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.ops-knowledge-item {
    padding: 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.ops-knowledge-item strong {
    display: block;
    color: #fff;
    font-size: 0.82rem;
}

.ops-knowledge-item span {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.72rem;
}

@media (max-width: 1120px) {
    .ops-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ops-chat-panel {
        min-height: 680px;
        padding: 1rem;
    }

    .ops-hero-card,
    .ops-input-bar {
        grid-template-columns: 1fr;
    }

    .ops-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-bubble {
        max-width: 100%;
    }
}
