/* 简块目录（SimTOC）科技主题 - 设计 */

.simtoc-container.theme-tech {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #0ea5e9;
    color: #e0f2fe;
    box-shadow: 
        0 0 25px rgba(14, 165, 233, 0.3),
        inset 0 0 25px rgba(14, 165, 233, 0.08);
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
    position: relative;
}

.simtoc-container.theme-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(14, 165, 233, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(14, 165, 233, 0.02) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
    animation: techGrid 8s linear infinite;
}

.simtoc-container.theme-tech .simtoc-header {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
    color: #f0f9ff;
    border-bottom: 2px solid #0ea5e9;
    position: relative;
    overflow: hidden;
}

.simtoc-container.theme-tech .simtoc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    animation: techScan 2s ease-in-out infinite;
}

.simtoc-container.theme-tech .simtoc-header::after {
    content: '⚡';
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    z-index: 1;
    animation: techPulse 1.5s ease-in-out infinite;
}

.simtoc-container.theme-tech .simtoc-title {
    color: #f0f9ff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
    z-index: 1;
    position: relative;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.simtoc-container.theme-tech .simtoc-toggle {
    color: #f0f9ff;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid #0ea5e9;
    border-radius: 2px;
    padding: 4px 8px;
    font-family: inherit;
    font-weight: 600;
    z-index: 1;
    position: relative;
    transition: all 0.2s ease;
}

.simtoc-container.theme-tech .simtoc-toggle:hover {
    background-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
    transform: scale(1.05);
}

.simtoc-container.theme-tech .simtoc-content {
    background: rgba(12, 20, 35, 0.9);
    position: relative;
    z-index: 1;
}

.simtoc-container.theme-tech .simtoc-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #0ea5e9 0%, transparent 100%);
}

.simtoc-container.theme-tech .simtoc-link {
    color: #bae6fd;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 12px;
}

.simtoc-container.theme-tech .simtoc-link:hover {
    color: #e0f2fe;
    background-color: rgba(14, 165, 233, 0.1);
    border-left-color: #0ea5e9;
    transform: translateX(3px);
    text-shadow: 0 0 6px rgba(14, 165, 233, 0.6);
    box-shadow: inset 0 0 10px rgba(14, 165, 233, 0.1);
}

.simtoc-container.theme-tech .simtoc-link.active {
    color: #0ea5e9;
    border-left-color: #0ea5e9;
    background-color: rgba(14, 165, 233, 0.15);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.8);
}

.simtoc-container.theme-tech .simtoc-link.active::before {
    content: '>';
    position: absolute;
    left: -15px;
    font-size: 10px;
    color: #0ea5e9;
    animation: techBlink 1s ease-in-out infinite;
}

/* 层级样式 - 代码结构风格 */
.simtoc-container.theme-tech .simtoc-item.level-2 .simtoc-link {
    color: #e0f2fe;
    font-weight: 600;
}

.simtoc-container.theme-tech .simtoc-item.level-2 .simtoc-link::before {
    content: '// ';
    color: #64748b;
    font-weight: 400;
}

.simtoc-container.theme-tech .simtoc-item.level-3 .simtoc-link {
    color: #bae6fd;
    font-weight: 500;
    padding-left: 20px;
}

.simtoc-container.theme-tech .simtoc-item.level-3 .simtoc-link::before {
    content: '  └ ';
    color: #64748b;
    font-weight: 400;
}

.simtoc-container.theme-tech .simtoc-item.level-4 .simtoc-link {
    color: #7dd3fc;
    font-weight: 400;
    padding-left: 28px;
}

.simtoc-container.theme-tech .simtoc-item.level-4 .simtoc-link::before {
    content: '    ├ ';
    color: #64748b;
    font-weight: 400;
}

/* 进度条样式 - 加载条风格 */
.simtoc-container.theme-tech .simtoc-progress {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
    box-shadow: 
        0 0 12px rgba(14, 165, 233, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.2);
    height: 3px;
    animation: techProgress 3s ease-in-out infinite;
}

.simtoc-container.theme-tech .simtoc-progress-container {
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.3);
    height: 3px;
}

/* 底部信息 */
.simtoc-container.theme-tech .simtoc-footer {
    background: rgba(8, 15, 25, 0.95);
    border-top: 2px solid #0ea5e9;
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 滚动条样式 */
.simtoc-container.theme-tech .simtoc-content::-webkit-scrollbar {
    width: 6px;
}

.simtoc-container.theme-tech .simtoc-content::-webkit-scrollbar-track {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.simtoc-container.theme-tech .simtoc-content::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.5);
    border: 1px solid #0ea5e9;
    box-shadow: 0 0 4px rgba(14, 165, 233, 0.3);
}

.simtoc-container.theme-tech .simtoc-content::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.7);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
}

/* 科技风格的动画效果 */
@keyframes techGrid {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 16px 16px;
    }
}

@keyframes techScan {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 0;
        opacity: 1;
    }
}

@keyframes techPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }
}

@keyframes techBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

@keyframes techProgress {
    0%, 100% {
        box-shadow: 
            0 0 12px rgba(14, 165, 233, 0.6),
            inset 0 0 8px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(14, 165, 233, 0.8),
            inset 0 0 12px rgba(255, 255, 255, 0.3);
    }
}

/* 整体容器的科技效果 */
.simtoc-container.theme-tech {
    animation: techGlow 6s ease-in-out infinite;
}

@keyframes techGlow {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(14, 165, 233, 0.3),
            inset 0 0 25px rgba(14, 165, 233, 0.08);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(14, 165, 233, 0.4),
            inset 0 0 35px rgba(14, 165, 233, 0.12);
    }
}

/* 特殊装饰：代码符号 */
.simtoc-container.theme-tech .simtoc-item:nth-child(3n+1)::after {
    content: '{';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.3;
    color: #0ea5e9;
}

.simtoc-container.theme-tech .simtoc-item:nth-child(3n+2)::after {
    content: '}';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.3;
    color: #0ea5e9;
}

/* 鼠标悬停时的代码高亮效果 */
.simtoc-container.theme-tech .simtoc-item:hover {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
}

/* 终端风格的边框 */
.simtoc-container.theme-tech {
    border-radius: 4px;
    border: 1px solid #0ea5e9;
}