/* ========================================================================
   全景身份威胁溯源模块样式
   ======================================================================== */

/* ========= 模块容器 ========= */
.threat-tracing-section {
    background: #1b1b1b;
    position: relative;
    overflow: hidden;
}

/* ========= 科技感画布 ========= */
.threat-canvas {
    position: relative;
    background-color: #0f0f0f;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(54, 201, 88, 0.05) 2px,
            rgba(54, 201, 88, 0.05) 3px,
            transparent 3px,
            transparent 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(54, 201, 88, 0.05) 2px,
            rgba(54, 201, 88, 0.05) 3px,
            transparent 3px,
            transparent 20px
        );
    background-size: 20px 20px, 20px 20px;
    border: 1px solid rgba(54, 201, 88, 0.15);
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(54, 201, 88, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 40px rgba(54, 201, 88, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: visible;
    height: 580px;
}

.threat-canvas > * {
    position: relative;
    z-index: 1;
}

/* ========= 标题模块样式（使用网站标准样式）========= */
.section-descr {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ========= 标签切换导航 ========= */
.threat-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.threat-tab {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.7) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(54, 201, 88, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(54, 201, 88, 0.05);
    white-space: nowrap;
}

.threat-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(54, 201, 88, 0.3) 25%,
        rgba(54, 201, 88, 0.6) 50%,
        rgba(54, 201, 88, 0.3) 75%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.threat-tab:hover::before {
    opacity: 1;
}

.threat-tab:hover {
    color: #36c958;
    border-color: rgba(54, 201, 88, 0.4);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(54, 201, 88, 0.15),
        0 0 20px rgba(54, 201, 88, 0.1);
    transform: translateY(-2px);
}

.threat-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.25), rgba(54, 201, 88, 0.15));
    border-color: rgba(54, 201, 88, 0.5);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(54, 201, 88, 0.3),
        0 0 30px rgba(54, 201, 88, 0.2);
}

.threat-tab.active::before {
    opacity: 1;
}

/* ========= 标签内容容器 ========= */
.threat-content {
    position: relative;
    height: 100%;
}

.threat-panel {
    display: none !important;
}

.threat-panel.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 1;
}

/* ========= 攻击故事线 - 节点容器 ========= */
.attack-storyline {
    position: relative;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 场景说明文字 */
.storyline-description {
    position: absolute;
    top: 30px;
    left: 20px;
    max-width: 550px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    z-index: 1;
    padding: 12px 16px;
    background: rgba(15, 15, 15, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(54, 201, 88, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

/* 画像模式下隐藏说明文字 */
.attack-storyline:has(.profile-detail-panel.active) .storyline-description {
    opacity: 0;
    pointer-events: none;
}

/* ========= 节点类型图例 ========= */
.storyline-legend {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px 20px;
    padding: 10px 16px;
    background: rgba(15, 15, 15, 0.25);
    border-radius: 6px;
    border: 1px solid rgba(54, 201, 88, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legend-icon i,
.legend-icon svg {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

/* 攻击者图标样式 */
.legend-icon.attacker-icon {
    background: linear-gradient(135deg, #ff4747 0%, #ff6b6b 100%);
}

.legend-icon.attacker-icon i,
.legend-icon.attacker-icon svg {
    color: #ffffff;
}

/* 设备指纹图标样式 */
.legend-icon.device-icon {
    background: rgba(54, 201, 88, 0.12);
    border: 1px solid rgba(54, 201, 88, 0.3);
}

.legend-icon.device-icon i,
.legend-icon.device-icon svg {
    color: #36c958;
}

/* 客户端图标样式 */
.legend-icon.client-icon {
    background: rgba(54, 201, 88, 0.12);
    border: 1px solid rgba(54, 201, 88, 0.3);
}

.legend-icon.client-icon i,
.legend-icon.client-icon svg {
    color: #36c958;
}

/* 网络身份图标样式 */
.legend-icon.network-icon {
    background: rgba(54, 201, 88, 0.12);
    border: 1px solid rgba(54, 201, 88, 0.3);
}

.legend-icon.network-icon i,
.legend-icon.network-icon svg {
    color: #36c958;
}

/* 账号身份图标样式 */
.legend-icon.account-icon {
    background: rgba(54, 201, 88, 0.12);
    border: 1px solid rgba(54, 201, 88, 0.3);
}

.legend-icon.account-icon i,
.legend-icon.account-icon svg {
    color: #36c958;
}

/* 应用项目图标样式 */
.legend-icon.project-icon {
    background: rgba(54, 201, 88, 0.15);
    border: 1px solid rgba(54, 201, 88, 0.4);
}

.legend-icon.project-icon i,
.legend-icon.project-icon svg {
    color: #36c958;
}

.legend-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

/* 画像模式下隐藏图例 */
.attack-storyline:has(.profile-detail-panel.active) .storyline-legend {
    opacity: 0;
    pointer-events: none;
}

.storyline-nodes {
    position: relative;
    max-width: 1400px;
    margin: 0;
    padding: 0 20px;
    width: 100%;
}

/* 横向多层布局 */
.storyline-nodes-multilayer {
    display: flex;
    flex-direction: row;
    gap: 38px;
    align-items: center;
    justify-content: center;
}

.storyline-layer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* 第一层（攻击者）- 单个大卡片 */
.storyline-layer-0 {
    flex-shrink: 0;
}

/* 第二、三、四、五层（设备、客户端、网络、账号）- 小标签卡片 */
.storyline-layer-1,
.storyline-layer-2,
.storyline-layer-3,
.storyline-layer-4 {
    gap: 12px;
}

/* 第六层（项目）- 单个大卡片 */
.storyline-layer-5 {
    flex-shrink: 0;
}

/* ========= 小标签卡片样式（中间层）========= */
/* 第二、三、四、五层使用横向小标签卡片 */
.storyline-layer-1 .node-card,
.storyline-layer-2 .node-card,
.storyline-layer-3 .node-card,
.storyline-layer-4 .node-card {
    width: auto;
    min-width: 180px;
    max-width: 240px;
    padding: 8px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.storyline-layer-1 .node-icon,
.storyline-layer-2 .node-icon,
.storyline-layer-3 .node-icon,
.storyline-layer-4 .node-icon {
    width: 32px;
    height: 32px;
    margin: 0;
    flex-shrink: 0;
}

.storyline-layer-1 .node-icon i,
.storyline-layer-2 .node-icon i,
.storyline-layer-3 .node-icon i,
.storyline-layer-4 .node-icon i {
    width: 16px;
    height: 16px;
}

.storyline-layer-1 .node-content,
.storyline-layer-2 .node-content,
.storyline-layer-3 .node-content,
.storyline-layer-4 .node-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.storyline-layer-1 .node-title,
.storyline-layer-2 .node-title,
.storyline-layer-3 .node-title,
.storyline-layer-4 .node-title {
    font-size: 13px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storyline-layer-1 .node-subtitle,
.storyline-layer-2 .node-subtitle,
.storyline-layer-3 .node-subtitle,
.storyline-layer-4 .node-subtitle {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 小标签卡片悬停效果调整 */
.storyline-layer-1 .story-node:hover,
.storyline-layer-2 .story-node:hover,
.storyline-layer-3 .story-node:hover,
.storyline-layer-4 .story-node:hover {
    transform: translateX(8px);
}

/* ========= 大卡片样式（攻击者和项目层）========= */
/* 第一层和第六层保持纵向布局 */
.storyline-layer-0 .node-card,
.storyline-layer-5 .node-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.storyline-layer-0 .node-content,
.storyline-layer-5 .node-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ========= SVG 连接线容器 ========= */
.storyline-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========= 节点卡片样式 ========= */
.story-node {
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-node:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.node-card {
    width: 130px;
    padding: 12px 10px;
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid rgba(54, 201, 88, 0.15);
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(54, 201, 88, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* 节点顶部装饰线 */
.node-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(54, 201, 88, 0.3) 25%,
        rgba(54, 201, 88, 0.6) 50%,
        rgba(54, 201, 88, 0.3) 75%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.story-node:hover .node-card::before {
    opacity: 1;
}

.story-node:hover .node-card {
    border-color: rgba(54, 201, 88, 0.4);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(54, 201, 88, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 30px rgba(54, 201, 88, 0.15);
}

/* 节点图标 */
.node-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(54, 201, 88, 0.2), rgba(54, 201, 88, 0.05));
    border-radius: 50%;
    border: 2px solid rgba(54, 201, 88, 0.3);
    transition: all 0.3s ease;
}

.story-node:hover .node-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: #36c958;
    box-shadow: 0 0 20px rgba(54, 201, 88, 0.4);
}

.node-icon i {
    width: 24px;
    height: 24px;
    color: #36c958;
}

/* 自定义 SVG 图标样式 */
.node-icon .custom-svg-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* 节点标题 */
.node-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.node-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

/* 特殊节点样式 - 攻击者节点（红色） */
.story-node.attacker-node .node-card {
    border-color: rgba(255, 107, 53, 0.3);
}

.story-node.attacker-node .node-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.05));
    border-color: rgba(255, 107, 53, 0.3);
}

.story-node.attacker-node .node-icon i {
    color: #ff6b35;
}

.story-node.attacker-node:hover .node-card {
    border-color: #ff6b35;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.story-node.attacker-node:hover .node-icon {
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.story-node.attacker-node .node-card::before {
    display: none !important;
}

/* 异常节点样式 - 警告标记 */
.story-node.anomaly-node .node-card {
    border-color: rgba(255, 193, 7, 0.3);
}

.story-node.anomaly-node .node-icon {
    position: relative;
}

.story-node.anomaly-node .node-icon::after {
    content: '!';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ffc107;
    color: #1b1b1b;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

/* ========= 攻击者画像布局 ========= */
.attacker-profile {
    position: relative;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 320px 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* 中心头像 */
.profile-center {
    text-align: center;
    position: relative;
}

.attacker-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.avatar-outer-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    animation: rotate-ring 20s linear infinite;
}

.avatar-outer-ring::before,
.avatar-outer-ring::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b35;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

.avatar-outer-ring::before {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.avatar-outer-ring::after {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes rotate-ring {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.avatar-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.05));
    border: 3px solid #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
}

.avatar-image img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-image i {
    width: 80px;
    height: 80px;
    color: #ff6b35;
}

.attacker-id {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.attacker-rating {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.rating-item {
    text-align: center;
}

.rating-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
}

.rating-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* 左右侧信息卡片 */
.profile-left,
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-card {
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
    border: 1px solid rgba(54, 201, 88, 0.15);
    border-radius: 10px;
    padding: 16px 18px;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(54, 201, 88, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-card:hover {
    border-color: rgba(54, 201, 88, 0.4);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(54, 201, 88, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 20px rgba(54, 201, 88, 0.15);
    transform: translateY(-2px);
}

.profile-right .profile-card:hover {
    transform: translateY(-2px);
}

/* 顶部装饰线 */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(54, 201, 88, 0.3) 25%,
        rgba(54, 201, 88, 0.6) 50%,
        rgba(54, 201, 88, 0.3) 75%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #36c958;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card-title i {
    width: 18px;
    height: 18px;
}

.profile-card-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.6;
}

/* 横向布局卡片（标题和内容在一行） */
.profile-card:has(.tag-list) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.profile-card:has(.tag-list) .profile-card-title {
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
}

.profile-card:has(.tag-list) .profile-card-content {
    flex: 1;
    min-width: 0;
}

.profile-card:has(.tag-list) .tag-list {
    margin-top: 0;
}

.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.profile-list li:last-child {
    border-bottom: none;
}

.profile-list .label {
    color: rgba(255, 255, 255, 0.5);
    min-width: 70px;
    flex-shrink: 0;
    white-space: nowrap;
}

.profile-list .label:empty {
    min-width: 0;
}

.profile-list .value {
    color: #ffffff;
    font-weight: 500;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    /* 隐藏滚动条但保留滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab; /* 显示拖拽光标 */
}

/* 隐藏 Webkit 浏览器的滚动条 */
.tag-list::-webkit-scrollbar {
    display: none;
}

/* 拖拽时改变光标 */
.tag-list:active {
    cursor: grabbing;
}

.tag {
    padding: 2px 7px;
    background: rgba(54, 201, 88, 0.1);
    border: 1px solid rgba(54, 201, 88, 0.3);
    border-radius: 10px;
    font-size: 11px;
    color: #36c958;
    white-space: nowrap;
    line-height: 1.4;
}

/* ========= 响应式设计 ========= */
@media (max-width: 1200px) {
    .storyline-nodes {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px 30px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-left,
    .profile-right {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .threat-tracing-title {
        font-size: 36px;
    }

    .threat-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .threat-tab {
        width: 100%;
    }

    .node-card {
        width: 140px;
        padding: 20px 15px;
    }

    .node-icon {
        width: 50px;
        height: 50px;
    }

    .node-icon i {
        width: 24px;
        height: 24px;
    }

    .attacker-avatar {
        width: 200px;
        height: 200px;
    }

    .avatar-outer-ring {
        width: 220px;
        height: 220px;
    }

    .avatar-image i {
        width: 80px;
        height: 80px;
    }
}

/* ========= 攻击故事线内的画像详情面板 ========= */
.profile-detail-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* 左右侧信息卡片容器 */
.profile-slide-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: visible;
    pointer-events: auto;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

/* 左侧面板初始位置（画布外） */
.profile-detail-panel .profile-left {
    left: -420px;
}

/* 右侧面板初始位置（画布外） */
.profile-detail-panel .profile-right {
    right: -420px;
}

/* 激活状态：左侧面板滑入 */
.profile-detail-panel.active .profile-left {
    left: 10px;
    opacity: 1;
}

/* 激活状态：右侧面板滑入 */
.profile-detail-panel.active .profile-right {
    right: 10px;
    opacity: 1;
}

/* 隐藏滚动条但保留滚动功能 */
.profile-slide-panel::-webkit-scrollbar {
    width: 4px;
}

.profile-slide-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.profile-slide-panel::-webkit-scrollbar-thumb {
    background: rgba(54, 201, 88, 0.3);
    border-radius: 2px;
}

.profile-slide-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(54, 201, 88, 0.5);
}

/* 为画布内的卡片优化样式 */
.profile-detail-panel .profile-card {
    width: 100%;
    margin: 0;
}

/* 确保标签列表不会超出容器 */
.profile-detail-panel .tag-list {
    max-width: 100%;
}

/* 优化列表项布局，防止内容被截断 */
.profile-detail-panel .profile-list li {
    min-height: 30px;
    align-items: flex-start;
}

.profile-detail-panel .profile-list .value {
    padding-left: 8px;
}

/* 确保卡片 hover 效果不会被截断 */
.profile-detail-panel .profile-left,
.profile-detail-panel .profile-right {
    padding: 5px;
}

.profile-detail-panel .profile-left {
    padding-right: 10px;
}

.profile-detail-panel .profile-right {
    padding-left: 10px;
}

/* 攻击者节点卡片允许溢出，以便显示时间戳 */
.attacker-node .node-card {
    overflow: visible;
}

/* ========= 攻击者时间戳显示 ========= */
.attacker-timestamp {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
}

/* 画像模式下显示时间戳 */
.attacker-node.profile-mode .attacker-timestamp {
    opacity: 1;
}

.timestamp-icon {
    width: 10px;
    height: 10px;
    color: #36c958;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timestamp-icon i,
.timestamp-icon svg {
    width: 10px !important;
    height: 10px !important;
}

.timestamp-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.timestamp-value {
    color: #36c958;
    font-size: 11px;
    font-family: 'Courier New', 'Monaco', monospace;
    letter-spacing: 0.3px;
}

/* 画像模式下禁用攻击者卡片的 hover 装饰线 */
.attacker-node.profile-mode .node-card::before {
    opacity: 0 !important;
}
