/* assets/css/themes/tech.css */
:root {
    --primary: #0066cc;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #212529;
    --body-bg: #0a0e17;
    --card-bg: #1a2238;
    --text-color: #e9ecef;
    --border-color: #2a344a;
}

body.theme-tech {
    background: var(--body-bg);
    color: var(--text-color);
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

.theme-tech .navbar {
    background: linear-gradient(135deg, var(--primary) 0%, #0044cc 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.3);
}

.theme-tech .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.theme-tech .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.theme-tech .card-header {
    background: linear-gradient(135deg, #2a344a 0%, #1a2238 100%);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.theme-tech .table {
    color: var(--text-color);
    border-color: var(--border-color);
}

.theme-tech .table th {
    background: linear-gradient(135deg, #2a344a 0%, #1a2238 100%);
    border-color: var(--border-color);
    font-weight: 600;
}

.theme-tech .table td {
    border-color: var(--border-color);
    background: var(--card-bg);
}

.theme-tech .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.theme-tech .list-group-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.theme-tech .list-group-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-tech .list-group-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, #0044cc 100%);
    border-color: var(--primary);
}

.theme-tech .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
}

.theme-tech .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    color: var(--text-color);
}

.theme-tech .form-select {
    background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e9ecef' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") right 0.75rem center/16px 12px no-repeat;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
}

.theme-tech .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.theme-tech .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.theme-tech .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0044cc 100%);
    border: none;
}

.theme-tech .btn-primary:hover {
    background: linear-gradient(135deg, #0055dd 0%, #0033aa 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.theme-tech .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.theme-tech .btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.theme-tech .alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-tech .badge {
    border-radius: 6px;
    font-weight: 500;
}

.theme-tech .modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.theme-tech .modal-header {
    border-bottom: 1px solid var(--border-color);
}

.theme-tech .modal-footer {
    border-top: 1px solid var(--border-color);
}

.theme-tech .exercise-item {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.theme-tech .exercise-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.theme-tech ::-webkit-scrollbar {
    width: 8px;
}

.theme-tech ::-webkit-scrollbar-track {
    background: var(--card-bg);
}

.theme-tech ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.theme-tech ::-webkit-scrollbar-thumb:hover {
    background: #0055dd;
}

/* 霓虹效果 */
.neon-text {
    text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--primary);
}

/* 网格背景 */
.tech-bg {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 动画效果 */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 102, 204, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 102, 204, 0.8); }
    100% { box-shadow: 0 0 5px rgba(0, 102, 204, 0.5); }
}

.glow-effect {
    animation: glow 2s infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .theme-tech .container {
        padding: 0 10px;
    }
    
    .theme-tech .card {
        border-radius: 8px;
    }
}