/* 赛博朋克风格主样式文件 */

/* 基础重置和变量 */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-bg: #2a2a2a;
    --neon-color: #00ffff;
    --neon-secondary: #ff00ff;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --success-color: #00ff00;
    --warning-color: #ffff00;
    --error-color: #ff0000;
    --glow-intensity: 0 0 10px;
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background: 
        radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #111111 50%, #0a0a0a 75%, #000000 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background-attachment: fixed;
}

/* 矩阵雨背景 */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.1;
}

/* 扫描线效果 */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* 主容器 */
.cyberpunk-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
.cyber-header {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(5, 5, 5, 0.95) 50%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    border-bottom: 2px solid var(--neon-color);
    box-shadow: 
        var(--glow-intensity) var(--neon-color),
        0 0 20px rgba(0, 255, 255, 0.2);
    padding: 1rem 2rem;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.cyber-logo .logo-text {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-color);
    text-shadow: var(--glow-intensity) var(--neon-color);
    letter-spacing: 2px;
}

.status-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-color);
    border-radius: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--neon-color);
    letter-spacing: 1px;
}

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

/* 主内容区域 */
.cyber-main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 2rem;
    height: 100%;
}

/* 侧边面板 */
.side-panel {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(10, 10, 10, 0.9) 50%, rgba(0, 0, 0, 0.8) 100%),
        radial-gradient(circle at center, rgba(0, 255, 255, 0.03) 0%, transparent 70%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.side-panel.right {
    background: 
        linear-gradient(225deg, rgba(0, 0, 0, 0.8) 0%, rgba(10, 10, 10, 0.9) 50%, rgba(0, 0, 0, 0.8) 100%),
        radial-gradient(circle at center, rgba(0, 255, 255, 0.03) 0%, transparent 70%);
}

.panel-header h3 {
    font-family: var(--font-primary);
    color: var(--neon-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* 信息块 */
.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-block {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
}

.info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.info-value {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.info-value.status-active {
    color: var(--success-color);
    text-shadow: var(--glow-intensity) var(--success-color);
}

/* 活动日志 */
.activity-log {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-entry {
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--neon-color);
    padding: 0.5rem;
    font-size: 0.8rem;
}

.log-time {
    color: var(--neon-color);
    font-family: var(--font-primary);
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.log-message {
    color: var(--text-secondary);
}

/* 主内容区 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-color);
    text-shadow: var(--glow-intensity) var(--neon-color);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    opacity: 0.8;
}

/* 选项卡系统样式 */
.cyber-tabs {
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid #00ffff;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

/*.cyber-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: scan 3s infinite;
    z-index: 1;
}*/

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 选项卡头部 */
.tab-headers {
    display: flex;
    border-bottom: 2px solid #00ffff;
    background: rgba(0, 10, 20, 0.8);
    position: relative;
    z-index: 2;
}

.tab-header {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(0, 30, 60, 0.5);
    border-right: 1px solid #00ffff;
    color: #00ffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-header:last-child {
    border-right: none;
}

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

.tab-header:hover::before {
    left: 100%;
}

.tab-header:hover {
    background: rgba(0, 50, 100, 0.7);
    color: #ffffff;
    text-shadow: 0 0 10px #00ffff;
}

.tab-header.active {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
    text-shadow: none;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.tab-header.active::before {
    display: none;
}

/* 选项卡内容 */
.tab-content {
    display: none;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.tab-content.active {
    display: block;
}

/* 授权卡片 */
.auth-card {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.95) 50%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    border: 2px solid var(--neon-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 50px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    max-width: 600px;
    margin: 0 auto;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--neon-color);
    letter-spacing: 1px;
}

.title-icon {
    font-size: 1.8rem;
}

.card-status .status-indicator-small {
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* 表单样式 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cyber-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--neon-color);
    box-shadow: var(--glow-intensity) var(--neon-color);
    background: rgba(0, 255, 255, 0.05);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-color);
    transition: width 0.3s ease;
}

.cyber-input:focus + .input-border {
    width: 100%;
}

/* 按钮样式 */
.cyber-button {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--neon-color) 0%, var(--neon-secondary) 100%);
    border: none;
    border-radius: 6px;
    color: var(--primary-bg);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cyber-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.cyber-button:active {
    transform: translateY(0);
}

.cyber-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cyber-button.loading .button-text::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.button-glow {
    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;
}

.cyber-button:hover .button-glow {
    left: 100%;
}

/* 授权结果 */
.auth-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 6px;
    text-align: center;
}

.result-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.result-icon {
    font-size: 2rem;
    color: var(--success-color);
}

.result-text {
    font-family: var(--font-primary);
    color: var(--success-color);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* 功能面板 */
.function-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.function-panel {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(5, 5, 5, 0.9) 50%, rgba(0, 0, 0, 0.85) 100%),
        radial-gradient(circle at center, rgba(0, 255, 255, 0.04) 0%, transparent 70%);
   border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.function-panel:hover {
    border-color: var(--neon-color);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    transform: translateY(-8px);
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.95) 50%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at center, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
}

.function-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.function-panel:hover::before {
    opacity: 1;
}

.panel-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--neon-color);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    transition: all 0.3s ease;
}

.function-panel:hover .panel-icon {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
    transform: scale(1.1);
}

.panel-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--neon-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 底部样式 */
.cyber-footer {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(5, 5, 5, 0.95) 50%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(ellipse at center, rgba(0, 255, 255, 0.03) 0%, transparent 70%);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem 2rem;
    margin-top: auto;
    box-shadow: 0 -5px 15px rgba(0, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.version-info {
    font-family: var(--font-primary);
    letter-spacing: 1px;
}

/* 故障效果 */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--neon-secondary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--warning-color);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    70% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    90% { transform: translate(-2px, -2px); }
}

/* 高亮脉冲效果 */
.highlight-pulse {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
        transform: scale(1.02);
    }
}

/* SVG图标样式 */
.panel-icon svg {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.function-panel:hover .panel-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px #00ffff);
}

.function-panel:hover .panel-icon svg path {
    stroke: #ffffff;
}

/* 确保图标在面板中居中显示 */
.panel-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 200px 1fr 200px;
        gap: 1.5rem;
    }
    
    .cyber-main {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .side-panel {
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .side-panel.right {
        order: 3;
    }
    
    .function-panels {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .cyber-main {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .function-panels {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .header-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .status-section {
        justify-content: center;
    }
    
    /* 选项卡在移动端的优化 */
    .tab-headers {
        flex-direction: column;
    }
    
    .tab-header {
        border-right: none;
        border-bottom: 1px solid #00ffff;
    }
    
    .tab-header:last-child {
        border-bottom: none;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .cyber-input {
        padding: 0.8rem;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .cyber-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cyber-header {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .panel-icon {
        font-size: 2.5rem;
    }
    
    .panel-title {
        font-size: 1.2rem;
    }
}
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    30% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    70% { transform: translate(2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    90% { transform: translate(2px, 2px); }
}

/* 下拉选择框样式 */
.cyber-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 30, 60, 0.8);
    border: 2px solid #00ffff;
    border-radius: 8px;
    color: #00ffff;
    font-size: 14px;
    font-family: 'Orbitron', monospace;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%2300ffff' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.cyber-select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    background-color: rgba(0, 50, 100, 0.9);
}

.cyber-select option {
    background: rgba(0, 30, 60, 0.95);
    color: #00ffff;
    padding: 10px;
}

/* 单选按钮组样式 */
.query-type-group {
    margin: 20px 0;
}

.query-type-label {
    display: block;
    color: #00ffff;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cyber-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 10px 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 30, 60, 0.3);
    transition: all 0.3s ease;
}

.cyber-radio:hover {
    background: rgba(0, 50, 100, 0.5);
    border-color: #00ffff;
}

.cyber-radio input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #00ffff;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.cyber-radio input[type="radio"]:checked + .radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.cyber-radio input[type="radio"]:checked + .radio-mark {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.radio-text {
    color: #00ffff;
    font-size: 14px;
    font-weight: 500;
}

.cyber-radio input[type="radio"]:checked ~ .radio-text {
    color: #ffffff;
    text-shadow: 0 0 5px #00ffff;
}

.button-glow {
    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;
}

.cyber-button:hover .button-glow {
    left: 100%;
}

/* 授权结果 */
.auth-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 6px;
    text-align: center;
}

.result-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.result-icon {
    font-size: 2rem;
    color: var(--success-color);
}

.result-text {
    font-family: var(--font-primary);
    color: var(--success-color);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* 功能面板 */
.function-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.function-panel {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(5, 5, 5, 0.9) 50%, rgba(0, 0, 0, 0.85) 100%),
        radial-gradient(circle at center, rgba(0, 255, 255, 0.04) 0%, transparent 70%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.function-panel:hover {
    border-color: var(--neon-color);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    transform: translateY(-8px);
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.95) 50%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(circle at center, rgba(0, 255, 255, 0.08) 0%, transparent 70%);
}

.function-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.function-panel:hover::before {
    opacity: 1;
}

.panel-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--neon-color);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    transition: all 0.3s ease;
}

.function-panel:hover .panel-icon {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
    transform: scale(1.1);
}

.panel-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--neon-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 底部样式 */
.cyber-footer {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(5, 5, 5, 0.95) 50%, rgba(0, 0, 0, 0.9) 100%),
        radial-gradient(ellipse at center, rgba(0, 255, 255, 0.03) 0%, transparent 70%);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem 2rem;
    margin-top: auto;
    box-shadow: 0 -5px 15px rgba(0, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.version-info {
    font-family: var(--font-primary);
    letter-spacing: 1px;
}

/* 故障效果 */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--neon-secondary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--warning-color);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    70% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
/* 响应式设计 */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 200px 1fr 200px;
        gap: 1.5rem;
    }
    
    .cyber-main {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .side-panel {
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .side-panel.right {
        order: 3;
    }
    
    .function-panels {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .cyber-main {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .function-panels {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .header-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .status-section {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cyber-header {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .panel-icon {
        font-size: 2.5rem;
    }
    
    .panel-title {
        font-size: 1.2rem;
    }
}
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    30% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    70% { transform: translate(2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    90% { transform: translate(2px, 2px); }
}
   :root {
            --neon-color: {if condition="$SF_Config.neon_color == 'cyan'"}#00ffff{elseif condition="$SF_Config.neon_color == 'magenta'"}#ff00ff{elseif condition="$SF_Config.neon_color == 'yellow'"}#ffff00{else}#00ff00{/if};
        }
        
        /* 强制覆盖背景样式 */
        body {
            background: 
                radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
                linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #111111 50%, #0a0a0a 75%, #000000 100%) !important;
            background-attachment: fixed !important;
        }
        
        /* 模态框样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(20, 0, 40, 0.95));
            border: 2px solid var(--neon-color);
            border-radius: 15px;
            box-shadow: 
                0 0 30px var(--neon-color),
                inset 0 0 30px rgba(0, 255, 255, 0.1);
            max-width: 90vw;
            max-height: 90vh;
            width: 800px;
            overflow: hidden;
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1);
        }

        .modal-header {
            background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
            padding: 20px;
            border-bottom: 1px solid var(--neon-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            color: var(--neon-color);
            font-size: 24px;
            font-weight: bold;
            text-shadow: 0 0 10px var(--neon-color);
            margin: 0;
        }

        .modal-close {
            background: none;
            border: none;
            color: var(--neon-color);
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: rgba(255, 0, 0, 0.2);
            box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
        }

        .modal-body {
            padding: 30px;
            max-height: 70vh;
            overflow-y: auto;
            color: #ffffff;
        }

        /* 数据统计面板样式 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
            border: 1px solid var(--neon-color);
            border-radius: 10px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            box-shadow: 0 0 20px var(--neon-color);
            transform: translateY(-5px);
        }

        .stat-icon {
            flex-shrink: 0;
        }

        .stat-number {
            font-size: 28px;
            font-weight: bold;
            color: var(--neon-color);
            text-shadow: 0 0 10px var(--neon-color);
        }

        .stat-label {
            font-size: 14px;
            color: #cccccc;
            margin-top: 5px;
        }

        .chart-section {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--neon-color);
            border-radius: 10px;
            padding: 20px;
        }

        .chart-section h4 {
            color: var(--neon-color);
            margin: 0 0 20px 0;
            text-shadow: 0 0 10px var(--neon-color);
        }

        .chart-placeholder {
            display: flex;
            align-items: end;
            gap: 10px;
            height: 150px;
            padding: 10px;
        }

        .chart-bar {
            flex: 1;
            background: linear-gradient(to top, var(--neon-color), rgba(0, 255, 255, 0.3));
            border-radius: 3px;
            min-height: 20px;
            box-shadow: 0 0 10px var(--neon-color);
            animation: chartGlow 2s ease-in-out infinite alternate;
        }

        @keyframes chartGlow {
            from { box-shadow: 0 0 10px var(--neon-color); }
            to { box-shadow: 0 0 20px var(--neon-color), 0 0 30px var(--neon-color); }
        }

        /* 系统设置面板样式 */
        .settings-section {
            margin-bottom: 30px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--neon-color);
            border-radius: 10px;
            padding: 20px;
        }

        .settings-section h4 {
            color: var(--neon-color);
            margin: 0 0 20px 0;
            text-shadow: 0 0 10px var(--neon-color);
            border-bottom: 1px solid rgba(0, 255, 255, 0.3);
            padding-bottom: 10px;
        }

        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding: 10px 0;
        }

        .setting-item label {
            color: #ffffff;
            font-weight: 500;
        }

        .cyber-select {
            background: rgba(0, 0, 0, 0.7);
            border: 1px solid var(--neon-color);
            border-radius: 5px;
            color: var(--neon-color);
            padding: 8px 12px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s ease;
        }

        .cyber-select:focus {
            box-shadow: 0 0 15px var(--neon-color);
        }

        .toggle-switch {
            position: relative;
            width: 60px;
            height: 30px;
        }

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

        .toggle-label {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            border: 1px solid var(--neon-color);
            border-radius: 30px;
            transition: 0.3s;
        }

        .toggle-label:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 3px;
            bottom: 3px;
            background: var(--neon-color);
            border-radius: 50%;
            transition: 0.3s;
            box-shadow: 0 0 10px var(--neon-color);
        }

        .toggle-switch input:checked + .toggle-label {
            background: rgba(0, 255, 255, 0.3);
        }

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

        .settings-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 30px;
        }

        .cyber-button {
            padding: 12px 24px;
            border: 2px solid var(--neon-color);
            background: transparent;
            color: var(--neon-color);
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .cyber-button:hover {
            background: var(--neon-color);
            color: #000000;
            box-shadow: 0 0 20px var(--neon-color);
            transform: translateY(-2px);
        }

        .cyber-button.primary {
            background: var(--neon-color);
            color: #000000;
        }

        .cyber-button.primary:hover {
            background: transparent;
            color: var(--neon-color);
        }

        .cyber-button.secondary {
            border-color: #ff6b6b;
            color: #ff6b6b;
        }

        .cyber-button.secondary:hover {
            background: #ff6b6b;
            color: #000000;
            box-shadow: 0 0 20px #ff6b6b;
        }

        /* 工具箱面板样式 */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
/* 提交按钮赛博朋克增强样式（统一用于 primary） */
.cyber-button.primary {
    position: relative;
    background: linear-gradient(135deg, var(--neon-color) 0%, var(--neon-secondary) 100%) !important;
     color: #ffffff !important;
    border: 2px solid rgba(0, 255, 255, 0.6) !important;
    box-shadow:
        0 0 12px rgba(0, 255, 255, 0.6),
        0 0 24px rgba(255, 0, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    overflow: hidden;
}

.cyber-button.primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 16px rgba(0, 255, 255, 0.85),
        0 0 32px rgba(255, 0, 255, 0.55);
}

/* 霓虹环绕边框光晕 */
.cyber-button.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from 180deg at 50% 50%, rgba(0,255,255,0.6), rgba(255,0,255,0.6), rgba(0,255,255,0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: blur(6px);
    opacity: 0.35;
    pointer-events: none;
}

/* 霓虹扫光（与 button-glow 协同增强） */
.cyber-button.primary .button-glow {
    filter: drop-shadow(0 0 8px rgba(0,255,255,0.6)) drop-shadow(0 0 14px rgba(255,0,255,0.5));
}

.cyber-button.primary .button-text {
    position: relative;
    z-index: 1;
    letter-spacing: 1.6px;
}
        .tool-item {
            background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
            border: 1px solid var(--neon-color);
            border-radius: 10px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tool-item:hover {
            box-shadow: 0 0 25px var(--neon-color);
            transform: translateY(-5px);
            background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
        }

        .tool-icon {
            flex-shrink: 0;
            padding: 10px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            border: 1px solid var(--neon-color);
        }

        .tool-title {
            font-size: 18px;
            font-weight: bold;
            color: var(--neon-color);
            text-shadow: 0 0 10px var(--neon-color);
            margin-bottom: 5px;
        }

        .tool-desc {
            font-size: 14px;
            color: #cccccc;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .modal-content {
                width: 95vw;
                margin: 10px;
            }

            .modal-body {
                padding: 20px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .tools-grid {
                grid-template-columns: 1fr;
            }

            .settings-actions {
                flex-direction: column;
            }

            .setting-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
        }

        /* 滚动条样式 */
        .modal-body::-webkit-scrollbar {
            width: 8px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: var(--neon-color);
            border-radius: 4px;
            box-shadow: 0 0 10px var(--neon-color);
        }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 255, 255, 0.8);
        }