/* ========================================================================
   AI 智能研判与响应 · itdr-ai-response.css
   ======================================================================== */


/* ================================================================
   三层 AI 研判架构 · Three-Layer AI Analysis
   ================================================================ */

.layer-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.layer-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.88) 0%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.layer-card:hover {
    border-color: rgba(54, 201, 88, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.layer-card-left {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}

.layer-badge-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(54, 201, 88, 0.1);
    color: #36c958;
    border: 1px solid rgba(54, 201, 88, 0.2);
}

.layer-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    margin: 0;
}

.layer-perspective {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
}

.layer-role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.layer-role-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.layer-card-right {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.layer-io-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-io-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 4px;
}

.layer-output-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.layer-output-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 4px;
    background: rgba(54, 201, 88, 0.08);
    color: rgba(54, 201, 88, 0.85);
    border: 1px solid rgba(54, 201, 88, 0.15);
}

.layer-example {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 4px;
    border-left: 2px solid rgba(54, 201, 88, 0.25);
    font-style: italic;
}

/* Disposal Examples */
.disposal-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.disposal-examples {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.disposal-item {
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.85) 0%, rgba(15, 15, 15, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.disposal-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.disposal-priority {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0.06em;
}

.priority-p1 { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.priority-p2 { background: rgba(249, 115, 22, 0.12); color: #f97316; border: 1px solid rgba(249,115,22,0.2); }
.priority-p3 { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.priority-p4 { background: rgba(107, 114, 128, 0.12); color: #9ca3af; border: 1px solid rgba(107,114,128,0.2); }

.disposal-urgency {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
    display: block;
}

.disposal-action {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

@media (max-width: 991px) {
    .layer-card { grid-template-columns: 1fr; }
    .layer-card-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 24px; }
    .disposal-examples { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .disposal-examples { grid-template-columns: 1fr; }
    .layer-card-right { padding: 20px; }
}


/* ================================================================
   攻击故事线可视化 · Attack Storyline
   ================================================================ */

.storyline-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Left: 说明文字 */
.storyline-legend {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.storyline-legend-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 12px;
}

.node-legend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.node-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.node-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.node-dot.attacker  { background: #ef4444; }
.node-dot.ip-source { background: #f97316; }
.node-dot.device    { background: #eab308; }
.node-dot.client    { background: #8b5cf6; }
.node-dot.account   { background: #3b82f6; }
.node-dot.action    { background: #06b6d4; }
.node-dot.result-block { background: #36c958; }
.node-dot.result-breach { background: #ef4444; border: 2px solid rgba(239,68,68,0.5); }
.node-dot.app-node  { background: rgba(255,255,255,0.3); }

.edge-legend-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edge-legend-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
}

.edge-line-demo {
    width: 40px;
    height: 2px;
    flex-shrink: 0;
    border-radius: 1px;
    position: relative;
}

.edge-line-demo.active-flow {
    background: repeating-linear-gradient(90deg, #ef4444 0, #ef4444 6px, transparent 6px, transparent 12px);
}

.edge-line-demo.defense-trigger {
    background: repeating-linear-gradient(90deg, #f97316 0, #f97316 4px, transparent 4px, transparent 8px);
}

.edge-line-demo.blocked {
    background: #36c958;
}

.edge-line-demo.breached {
    background: #ef4444;
}

/* Right: 故事线示意图 */
.storyline-flow-demo {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}

.storyline-flow-demo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(239,68,68,0.5), transparent);
}

.storyline-flow-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
    text-align: center;
}

.storyline-nodes {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.sn-row {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

.sn-node {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    flex-shrink: 0;
}

.sn-node-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sn-node.type-attacker  { color: rgba(239,68,68,0.9); border-color: rgba(239,68,68,0.2); }
.sn-node.type-ip        { color: rgba(249,115,22,0.9); border-color: rgba(249,115,22,0.2); }
.sn-node.type-device    { color: rgba(234,179,8,0.9); border-color: rgba(234,179,8,0.2); }
.sn-node.type-account   { color: rgba(59,130,246,0.9); border-color: rgba(59,130,246,0.2); }
.sn-node.type-rule      { color: rgba(6,182,212,0.9); border-color: rgba(6,182,212,0.2); }
.sn-node.type-block     { color: rgba(54,201,88,0.9); border-color: rgba(54,201,88,0.2); }
.sn-node.type-breach    { color: rgba(239,68,68,0.9); border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }
.sn-node.type-app       { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.1); }

.sn-edge {
    flex: 1;
    height: 1px;
    min-width: 8px;
    position: relative;
}

.sn-edge.flow-active { background: rgba(239,68,68,0.5); }
.sn-edge.flow-defense { background: rgba(249,115,22,0.4); }
.sn-edge.flow-blocked { background: rgba(54,201,88,0.5); }
.sn-edge.flow-breach  { background: rgba(239,68,68,0.7); }

.sn-connector {
    width: 1px;
    height: 16px;
    margin-left: 19px;
}

.sn-connector.flow-active  { background: rgba(239,68,68,0.35); }
.sn-connector.flow-defense { background: rgba(249,115,22,0.3); }

.storyline-branch {
    margin-left: 19px;
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,0.06);
    margin-top: 0;
}

.sn-branch-label {
    font-size: 10.5px;
    color: rgba(255,255,255,0.2);
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 4px 0 8px 0;
    display: block;
}

@media (max-width: 991px) {
    .storyline-wrapper { grid-template-columns: 1fr; gap: 32px; }
}


/* ================================================================
   AI Agent 治理专用视图 · Agent Governance
   ================================================================ */

.agent-view-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Left: compare table */
.agent-compare-wrapper {
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.agent-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 400px;
}

.agent-compare-table thead th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    letter-spacing: 0.04em;
}

.agent-compare-table thead th:last-child {
    color: #36c958;
    background: rgba(54, 201, 88, 0.04);
    border-bottom-color: rgba(54, 201, 88, 0.2);
}

.agent-compare-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.agent-compare-table tbody tr:last-child { border-bottom: none; }
.agent-compare-table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }

.agent-compare-table tbody td {
    padding: 11px 16px;
    color: rgba(255, 255, 255, 0.45);
    vertical-align: middle;
    font-size: 12.5px;
}

.agent-compare-table tbody td:first-child {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    font-size: 13px;
}

.agent-compare-table tbody td:last-child {
    color: rgba(54, 201, 88, 0.8);
    background: rgba(54, 201, 88, 0.02);
    font-weight: 500;
}

/* Right: alert cards */
.agent-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.agent-alert-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 4px;
}

.agent-alert-card {
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.88) 0%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 18px 20px;
    transition: border-color 0.25s ease;
}

.agent-alert-card:hover {
    border-color: rgba(54, 201, 88, 0.18);
}

.agent-alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.agent-alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(54, 201, 88, 0.1);
    color: #36c958;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-alert-icon svg { width: 15px; height: 15px; }

.agent-alert-name {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.agent-alert-trigger {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.65;
    margin-bottom: 10px;
    border-left: 2px solid rgba(255,255,255,0.06);
    padding-left: 10px;
}

.agent-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.agent-action-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
}

.act-block   { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.18); }
.act-notify  { background: rgba(54,201,88,0.1); color: #36c958; border: 1px solid rgba(54,201,88,0.18); }
.act-hold    { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.18); }
.act-approve { background: rgba(139,92,246,0.1); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.18); }
.act-verify  { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.18); }

@media (max-width: 991px) {
    .agent-view-wrapper { grid-template-columns: 1fr; gap: 32px; }
}


/* ================================================================
   多模型灵活支持 · Model Support
   ================================================================ */

.model-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.model-column-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-column-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.model-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.model-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.85) 0%, rgba(15, 15, 15, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    transition: all 0.25s ease;
}

.model-card:hover {
    border-color: rgba(54, 201, 88, 0.2);
    transform: translateX(4px);
}

.model-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255,255,255,0.6);
}

.model-icon svg { width: 17px; height: 17px; }

.model-body { flex: 1; min-width: 0; }

.model-name {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3px;
}

.model-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
}

.model-stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.model-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    flex-shrink: 0;
}

.badge-default { background: rgba(54,201,88,0.1); color: #36c958; border: 1px solid rgba(54,201,88,0.2); }
.badge-gpu     { background: rgba(139,92,246,0.1); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.2); }

/* Privacy notice */
.model-privacy-notice {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 4px;
    padding: 18px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.privacy-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.privacy-icon svg { width: 16px; height: 16px; }

.privacy-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

.privacy-text strong {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

@media (max-width: 767px) {
    .model-columns { grid-template-columns: 1fr; }
    .model-card:hover { transform: none; }
}


/* ================================================================
   关键指标 Stats Banner
   ================================================================ */

.ai-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-stat-item {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    padding: 28px 24px;
    text-align: center;
}

.ai-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #36c958;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    line-height: 1;
}

.ai-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.5;
}

@media (max-width: 767px) {
    .ai-stats-row { grid-template-columns: repeat(2, 1fr); }
    .ai-stat-num { font-size: 26px; }
}


/* ================================================================
   身份威胁溯源分析 · Identity Threat Tracing
   ================================================================ */

.trace-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.trace-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.trace-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(54, 201, 88, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.trace-feature-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.trace-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.15) 0%, rgba(54, 201, 88, 0.05) 100%);
    border: 1px solid rgba(54, 201, 88, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #36c958;
}

.trace-feature-icon svg {
    width: 22px;
    height: 22px;
}

.trace-feature-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 6px;
}

.trace-feature-scene {
    font-size: 12px;
    color: rgba(54, 201, 88, 0.8);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.trace-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trace-feature-list li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.trace-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #36c958;
    opacity: 0.7;
}

/* Capability Highlights Grid */
.trace-cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trace-cap-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 20px;
    transition: border-color 0.3s ease;
}

.trace-cap-item:hover {
    border-color: rgba(54, 201, 88, 0.2);
}

.trace-cap-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 4px;
    background: rgba(54, 201, 88, 0.08);
    border: 1px solid rgba(54, 201, 88, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #36c958;
}

.trace-cap-icon svg {
    width: 16px;
    height: 16px;
}

.trace-cap-body {
    flex: 1;
}

.trace-cap-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    line-height: 1.3;
}

.trace-cap-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
}

/* Responsive */
@media (max-width: 992px) {
    .trace-cards-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .trace-cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .trace-cap-grid { grid-template-columns: 1fr; }
    .trace-feature-card { padding: 20px; }
}
