/**
 * AI.UGOOE.CN - 科技感暗色调主题
 * 增强科技感、添加主题切换、优化细节
 */

:root {
    /* 科技感配色方案 */
    --tech-primary: #00d4ff;
    --tech-secondary: #7b61ff;
    --tech-accent: #ff2e63;
    --tech-success: #00ff9d;
    --tech-warning: #ffcc00;
    --tech-info: #00b8ff;
    
    /* 暗色调背景 */
    --tech-bg-dark: #0a0a0f;
    --tech-bg-darker: #050508;
    --tech-bg-card: #121218;
    --tech-bg-surface: #1a1a24;
    
    /* 科技感渐变 */
    --gradient-tech: linear-gradient(135deg, var(--tech-primary), var(--tech-secondary));
    --gradient-dark: linear-gradient(135deg, var(--tech-bg-dark), var(--tech-bg-darker));
    --gradient-card: linear-gradient(145deg, var(--tech-bg-card), var(--tech-bg-surface));
    
    /* 科技感边框 */
    --border-tech: 1px solid rgba(0, 212, 255, 0.2);
    --border-glow: 0 0 15px rgba(0, 212, 255, 0.3);
    --shadow-tech: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* 科技感文字 */
    --text-tech: #ffffff;
    --text-muted: #a0a0c0;
    --text-glow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* 科技感暗色主题 */
.tech-dark-theme {
    /* 背景系统 */
    --bg-primary: var(--tech-bg-dark);
    --bg-secondary: var(--tech-bg-darker);
    --bg-card: var(--tech-bg-card);
    --bg-surface: var(--tech-bg-surface);
    
    /* 文字系统 */
    --text-primary: var(--text-tech);
    --text-secondary: var(--text-muted);
    --text-muted: #8a8aa8;
    
    /* 边框系统 */
    --border-color: rgba(0, 212, 255, 0.15);
    --border-radius: 12px;
    
    /* 阴影系统 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* 特殊效果 */
    --glow-effect: var(--border-glow);
    --tech-gradient: var(--gradient-tech);
}

/* 科技感组件 */
.tech-card {
    background: var(--gradient-card);
    border: var(--border-tech);
    border-radius: 16px;
    box-shadow: var(--shadow-tech);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-tech);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

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

/* 科技感按钮 */
.btn-tech {
    background: var(--gradient-tech);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-tech:hover::before {
    left: 100%;
}

/* 科技感输入框 */
.input-tech {
    background: rgba(18, 18, 24, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-tech);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-tech:focus {
    outline: none;
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* 科技感导航栏 */
.navbar-tech {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 科技感英雄区域 */
.hero-tech {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123, 97, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 科技感网格 */
.grid-tech {
    display: grid;
    gap: 24px;
}

/* 科技感动画 */
@keyframes tech-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes tech-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes tech-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}

/* 科技感元素 */
.tech-element {
    animation: tech-float 6s ease-in-out infinite;
}

.tech-glow {
    animation: tech-glow 2s ease-in-out infinite;
}

.tech-pulse {
    animation: tech-pulse 3s ease-in-out infinite;
}

/* 科技感代码块 */
.code-tech {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    color: var(--tech-success);
    overflow-x: auto;
}

/* 科技感进度条 */
.progress-tech {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-tech-bar {
    height: 100%;
    background: var(--gradient-tech);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 科技感开关 */
.switch-tech {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch-tech input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-tech-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    transition: .4s;
}

.switch-tech-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background: var(--tech-primary);
    border-radius: 50%;
    transition: .4s;
}

.switch-tech input:checked + .switch-tech-slider {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--tech-primary);
}

.switch-tech input:checked + .switch-tech-slider:before {
    transform: translateX(30px);
}

/* 科技感标签 */
.tag-tech {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: var(--tech-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-card {
        border-radius: 12px;
    }
    
    .btn-tech {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 主题切换过渡 */
.theme-transition * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}