/* 科技感主题样式 */

/* 主题变量 */
:root {
    /* 主色调 - 科技蓝 */
    --primary-color: #1890ff;
    --primary-light: #40a9ff;
    --primary-dark: #096dd9;
    
    /* 辅助色 */
    --success-color: #00c853;
    --warning-color: #ffab00;
    --error-color: #ff1744;
    --info-color: #00b0ff;
    
    /* 中性色 */
    --text-primary: #ffffff;
    --text-secondary: #b0bec5;
    --text-disabled: #78909c;
    
    /* 背景色 */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --bg-hover: #475569;
    
    /* 边框色 */
    --border-color: #475569;
    --border-light: #64748b;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.3);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.4);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.5);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #1890ff 0%, #00b0ff 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-success: linear-gradient(135deg, #00c853 0%, #64dd17 100%);
    
    /* 发光效果 */
    --glow-primary: 0 0 10px rgba(24, 144, 255, 0.5);
    --glow-success: 0 0 10px rgba(0, 200, 83, 0.5);
    --glow-warning: 0 0 10px rgba(255, 171, 0, 0.5);
    --glow-error: 0 0 10px rgba(255, 23, 68, 0.5);
    
    /* 动画速度 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* 深色主题 */
body.theme-dark {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* 科技感按钮 */
.btn-tech {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.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 var(--transition-slow);
}

.btn-tech:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.btn-tech:hover::before {
    left: 100%;
}

.btn-tech:active {
    transform: translateY(0);
}

/* 科技感卡片 */
.card-tech {
    background: var(--gradient-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-normal);
}

.card-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.card-tech:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-tech .card-header {
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}

.card-tech .card-body {
    padding: 20px;
}

/* 发光边框效果 */
.glow-border {
    position: relative;
    border-radius: 12px;
    background: var(--bg-card);
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.glow-border:hover::before {
    opacity: 1;
}

/* 数据展示卡片 */
.data-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.data-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.data-card.success::after {
    background: var(--gradient-success);
}

.data-card .data-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 8px 0;
}

.data-card .data-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 进度条 - 科技感 */
.progress-tech {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-tech-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    position: relative;
    transition: width var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-tech-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shine 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes shine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 数字计数器 */
.counter {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(24, 144, 255, 0.5);
    padding: 8px 16px;
    background: rgba(24, 144, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(24, 144, 255, 0.3);
}

/* 状态指示器 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

.status-online {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.status-online::before {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

.status-offline {
    background: rgba(255, 23, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 23, 68, 0.3);
}

.status-offline::before {
    background: var(--error-color);
}

.status-warning {
    background: rgba(255, 171, 0, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 171, 0, 0.3);
}

.status-warning::before {
    background: var(--warning-color);
    box-shadow: 0 0 10px var(--warning-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 输入框 - 科技感 */
.input-tech {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 14px;
    transition: all var(--transition-normal);
}

.input-tech:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.input-tech::placeholder {
    color: var(--text-disabled);
}

/* 开关 - 科技感 */
.switch-tech {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch-tech input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-tech {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    border-radius: 34px;
}

.slider-tech::before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: all var(--transition-normal);
    border-radius: 50%;
}

input:checked + .slider-tech {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

input:checked + .slider-tech::before {
    transform: translateX(24px);
    background-color: white;
}

/* 时钟样式 - 科技感 */
.clock-tech {
    font-family: 'Courier New', monospace;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(24, 144, 255, 0.5);
    text-align: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.clock-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    animation: scan 2s linear infinite;
}

.clock-tech .date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 图表容器 */
.chart-container-tech {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.chart-container-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

/* 网格线背景 */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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;
    opacity: 0.3;
    z-index: 0;
}

/* 标签 - 科技感 */
.tag-tech {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(24, 144, 255, 0.1);
    border: 1px solid rgba(24, 144, 255, 0.3);
    border-radius: 20px;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-tech.success {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.3);
    color: var(--success-color);
}

.tag-tech.warning {
    background: rgba(255, 171, 0, 0.1);
    border-color: rgba(255, 171, 0, 0.3);
    color: var(--warning-color);
}

.tag-tech.error {
    background: rgba(255, 23, 68, 0.1);
    border-color: rgba(255, 23, 68, 0.3);
    color: var(--error-color);
}

/* 分割线 - 科技感 */
.divider-tech {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-light) 50%, 
        transparent 100%);
    margin: 20px 0;
    position: relative;
}

.divider-tech::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

/* 悬停效果增强 */
.hover-glow {
    transition: all var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: var(--glow-primary);
}