/* 全局基础样式 */
body {
    margin: 0;
    overflow: hidden;
    background: #02050a;
    /* 极暗的深渊背景 */
    font-family: 'DIN Alternate', 'Consolas', monospace;
    color: #8b949e;
}

/* 3D画布容器 */
#canvas-container {
    width: 100vw;
    height: 100vh;
    display: block;
}

/* --- 影视级 UI 与屏幕滤镜 --- */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 99;
    opacity: 0.6;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 2, 5, 0.9) 100%);
    pointer-events: none;
    z-index: 98;
}

.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 顶部标题栏 */
.header {
    padding: 20px 40px; /* 减小内边距 */
    background: linear-gradient(to bottom, rgba(2, 5, 10, 0.95), transparent);
    border-top: 4px solid #00f0ff;
    /* 赛博青色 */
    display: flex;
    justify-content: flex-start; /* 改为左对齐 */
    align-items: center; /* 改为 center 垂直对齐 */
    pointer-events: auto; /* 允许点击按钮 */
    gap: 15px; /* 按钮间距 */
}

.nav-btn-next {
    padding: 8px 20px; /* 减小按钮内边距 */
    background: transparent;
    border: 1px solid #00f0ff;
    color: #00f0ff;
    font-family: 'DIN Alternate', sans-serif;
    font-size: 13px; /* 减小字体 */
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 0 !important; /* 移除行内样式的 margin */
}

/* 按钮悬浮和激活状态 */
.nav-btn-next:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px); /* 向上微动 */
}

.nav-btn-next:active {
    transform: scale(0.95);
}

.app-title {
    font-size: 28px; /* 稍微减小标题 */
    font-weight: bold;
    color: #e0f7fa;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.sub-title {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
    letter-spacing: 2px;
    color: #00f0ff;
}

.title-group {
    display: flex;
    flex-direction: column;
    margin-left: auto; /* 将标题推到右侧 */
    text-align: right; /* 右对齐文本 */
    margin-right: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #00f0ff;
    letter-spacing: 1px;
    z-index: 101; /* 确保在顶层 */
    pointer-events: auto; /* 允许交互 */
    background: rgba(4, 9, 18, 0.6);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
    margin-left: 0; /* 移除之前的 margin */
}

.status-indicator:hover {
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.blink-dot {
    width: 8px;
    height: 8px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f0ff;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* 极度精致的悬浮窗 */
.tooltip {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(4, 9, 18, 0.95); /* 加深背景不透明度 */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.5); /* 增加边框亮度 */
    border-left: 4px solid #00f0ff;
    padding: 25px;
    border-radius: 4px; /* 稍微圆润一点 */
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translate(25px, 25px);
    pointer-events: none;
    max-width: 350px; /* 进一步加宽 */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 240, 255, 0.2) inset;
    z-index: 200; /* 确保在最上层 */
}

.tooltip.visible {
    opacity: 1;
}

.tooltip .tag {
    display: inline-block;
    background: rgba(0, 240, 255, 0.15);
    color: #00f0ff;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 11px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.tooltip h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tooltip p {
    margin: 0;
    font-size: 13px; /* 稍微减小字体大小 */
    color: #a9b9cc;
    line-height: 1.6;
    font-family: 'PingFang SC', sans-serif;
}

/* 右下角数据面板 */
.title-block {
    position: absolute;
    bottom: 40px;
    right: 40px;
    padding: 25px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(4, 9, 18, 0.9);
    backdrop-filter: blur(8px);
    font-size: 11px;
    color: #00f0ff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 340px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    transition: transform 0.3s;
}

.title-block:hover {
    transform: translateY(-5px);
    border-color: #00f0ff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
}

.tb-row {
    grid-column: span 2;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 10px;
    font-size: 14px;
    color: #fff;
    letter-spacing: 2px;
}

.tb-label {
    color: #5a7a99;
    display: inline-block;
    width: 70px;
}

.tb-value {
    color: #e0f7fa;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.4);
}

/* 左下角交互提示 */
.interaction-hint {
    position: absolute;
    bottom: 40px;
    left: 40px;
    font-size: 12px;
    color: #a9b9cc;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(4, 9, 18, 0.8);
    padding: 12px 25px;
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.hint-key {
    color: #00f0ff;
    font-weight: bold;
}