/* ========================================
   赛博朋克风格登录页 CSS
   VRChat Download System
   ======================================== */

/* ========== CSS 变量定义 ========== */
:root {
    /* 配色方案 */
    --cyber-bg-dark: #0a0e27;
    --cyber-bg-gradient-start: #0a0e27;
    --cyber-bg-gradient-end: #1a1a2e;
    
    --cyber-primary: #00d4ff;
    --cyber-secondary: #ff006e;
    --cyber-accent: #7c3aed;
    --cyber-success: #00ff9f;
    --cyber-warning: #ffbe0b;
    --cyber-error: #ff006e;
    
    --cyber-card-bg: rgba(26, 26, 46, 0.85);
    --cyber-card-border: rgba(0, 212, 255, 0.5);
    
    --cyber-text-primary: #e0e0e0;
    --cyber-text-secondary: #8892b0;
    --cyber-text-glow: #00d4ff;
    
    /* 字体 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;
}

/* ========== 全局样式重置 ========== */
body {
    background: linear-gradient(135deg, var(--cyber-bg-gradient-start) 0%, var(--cyber-bg-gradient-end) 50%, #16213e 100%);
    font-family: var(--font-primary);
    color: var(--cyber-text-primary);
    position: relative;
    overflow-x: hidden;
}

/* ========== 网格背景 ========== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ========== 扫描线效果 ========== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 212, 255, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    animation: scanline 8s linear infinite;
    z-index: 1;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ========== 主容器 ========== */
.cyber-container {
    position: relative;
    z-index: 10;
}

/* ========== 标题样式 ========== */
.cyber-title {
    color: var(--cyber-text-primary);
    text-shadow: 
        0 0 10px var(--cyber-primary),
        0 0 20px var(--cyber-primary),
        0 0 30px var(--cyber-primary),
        0 0 40px var(--cyber-primary);
    font-weight: 700;
    letter-spacing: 2px;
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--cyber-primary),
            0 0 20px var(--cyber-primary),
            0 0 30px var(--cyber-primary);
    }
    50% {
        text-shadow: 
            0 0 15px var(--cyber-primary),
            0 0 30px var(--cyber-primary),
            0 0 45px var(--cyber-primary),
            0 0 60px var(--cyber-primary);
    }
}

.cyber-subtitle {
    color: var(--cyber-text-secondary);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

/* ========== 登录卡片 ========== */
.cyber-card {
    background: var(--cyber-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--cyber-card-border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
    animation: card-entrance 0.8s ease-out;
}

@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 卡片角落装饰 */
.cyber-card::before,
.cyber-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cyber-primary);
    box-shadow: 0 0 10px var(--cyber-primary);
}

.cyber-card::before {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.cyber-card::after {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

/* ========== 表单标签 ========== */
.cyber-label {
    color: var(--cyber-text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

/* ========== 输入框样式 ========== */
.cyber-input {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--cyber-text-primary);
    padding: 0.875rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    position: relative;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--cyber-primary);
    background: rgba(10, 14, 39, 0.8);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.5),
        inset 0 0 10px rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.cyber-input::placeholder {
    color: var(--cyber-text-secondary);
    opacity: 0.6;
}

.cyber-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 密码输入框容器 ========== */
.cyber-input-wrapper {
    position: relative;
}

.cyber-input-wrapper .cyber-input {
    padding-right: 3rem;
}

/* 密码显示切换按钮 */
.cyber-toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyber-text-secondary);
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

.cyber-toggle-password:hover {
    color: var(--cyber-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* ========== 复选框样式 ========== */
.cyber-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--cyber-primary);
    cursor: pointer;
    border: 1px solid var(--cyber-primary);
}

.cyber-checkbox:checked {
    filter: drop-shadow(0 0 5px var(--cyber-primary));
}

.cyber-checkbox-label {
    color: var(--cyber-text-secondary);
    font-size: 0.875rem;
    margin-left: 0.5rem;
    cursor: pointer;
    user-select: none;
}

/* ========== 按钮样式 ========== */
.cyber-button {
    position: relative;
    background: transparent;
    border: 2px solid var(--cyber-primary);
    color: var(--cyber-primary);
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    font-size: 0.95rem;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cyber-primary) 0%, var(--cyber-accent) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.cyber-button:hover {
    color: white;
    border-color: var(--cyber-primary);
    box-shadow: 
        0 0 20px var(--cyber-primary),
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.cyber-button:hover::before {
    left: 0;
}

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

.cyber-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.cyber-button:disabled:hover {
    box-shadow: none;
}

/* 按钮底部能量条 */
.cyber-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cyber-primary);
    box-shadow: 0 0 10px var(--cyber-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.cyber-button:hover::after {
    transform: scaleX(1);
}

/* ========== 加载动画 ========== */
.cyber-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top-color: white;
    border-right-color: var(--cyber-primary);
    border-radius: 50%;
    animation: cyber-spin 1s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes cyber-spin {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 5px var(--cyber-primary);
    }
    50% {
        box-shadow: 0 0 15px var(--cyber-primary);
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 5px var(--cyber-primary);
    }
}

/* ========== 错误提示 ========== */
.cyber-error {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid var(--cyber-error);
    color: #ffb3d4;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    box-shadow: 
        0 0 15px rgba(255, 0, 110, 0.3),
        inset 0 0 10px rgba(255, 0, 110, 0.05);
    animation: error-pulse 0.5s ease-out;
}

@keyframes error-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cyber-error-icon {
    color: var(--cyber-error);
    filter: drop-shadow(0 0 5px var(--cyber-error));
}

/* ========== 底部文本 ========== */
.cyber-footer-text {
    color: var(--cyber-text-secondary);
    font-size: 0.875rem;
}

.cyber-version {
    color: var(--cyber-text-secondary);
    font-size: 0.875rem;
    opacity: 0.7;
    font-family: var(--font-mono);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
}

/* ========== 动画效果类 ========== */
.cyber-fade-in {
    animation: cyber-fade-in 0.6s ease-out;
}

@keyframes cyber-fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 640px) {
    /* 移动端简化扫描线 */
    body::after {
        opacity: 0.3;
    }
    
    /* 简化标题发光 */
    .cyber-title {
        text-shadow: 
            0 0 10px var(--cyber-primary),
            0 0 20px var(--cyber-primary);
        font-size: 2rem;
    }
    
    /* 减少卡片发光 */
    .cyber-card {
        padding: 1.5rem;
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.2),
            inset 0 0 20px rgba(0, 212, 255, 0.05);
    }
    
    /* 优化输入框 */
    .cyber-input {
        font-size: 16px; /* 防止iOS自动缩放 */
        min-height: 48px;
    }
    
    /* 优化按钮 */
    .cyber-button {
        min-height: 48px;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* 简化悬停效果 */
    .cyber-button:hover {
        transform: none;
    }
}

/* ========== 打印样式 ========== */
@media print {
    body::before,
    body::after {
        display: none;
    }
    
    .cyber-card {
        border: 2px solid #000;
        box-shadow: none;
    }
}

/* ========== 深色模式支持 ========== */
@media (prefers-color-scheme: dark) {
    /* 已经是深色主题，无需额外调整 */
}

/* ========== 减少动画偏好 ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::after {
        animation: none;
    }
    
    .cyber-title {
        animation: none;
    }
}

/* ========== 高对比度模式 ========== */
@media (prefers-contrast: high) {
    .cyber-card {
        border-width: 3px;
    }
    
    .cyber-button {
        border-width: 3px;
    }
    
    .cyber-input {
        border-width: 2px;
    }
}

/* ========================================
   扩展组件样式 - Dashboard & 2FA
   ======================================== */

/* ========== 2FA验证码输入框 ========== */
.cyber-code-input {
    width: 3rem;
    height: 3.5rem;
    font-size: 1.5rem;
    text-align: center;
    background: rgba(10, 14, 39, 0.6);
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: var(--cyber-text-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    font-weight: 600;
}

.cyber-code-input:focus {
    outline: none;
    border-color: var(--cyber-primary);
    background: rgba(10, 14, 39, 0.8);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.6),
        inset 0 0 10px rgba(0, 212, 255, 0.2);
    transform: scale(1.05);
}

.cyber-code-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 2FA图标容器 */
.cyber-icon-container {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid var(--cyber-primary);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        inset 0 0 10px rgba(0, 212, 255, 0.1);
}

/* ========== Dashboard 导航栏 ========== */
.cyber-nav-bar {
    background: var(--cyber-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--cyber-card-border);
    border-radius: 12px;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.cyber-nav-tab {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--cyber-text-secondary);
    border-bottom: 2px solid transparent;
}

.cyber-nav-tab:hover {
    color: var(--cyber-primary);
    background: rgba(0, 212, 255, 0.05);
}

.cyber-nav-tab.active {
    color: var(--cyber-primary);
    border-bottom-color: var(--cyber-primary);
    background: rgba(0, 212, 255, 0.1);
    text-shadow: 0 0 10px var(--cyber-primary);
}

.cyber-nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyber-primary);
    box-shadow: 0 0 10px var(--cyber-primary);
}

/* ========== 用户头像 ========== */
.cyber-avatar {
    border: 4px solid var(--cyber-primary);
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    position: relative;
    animation: avatar-pulse 3s ease-in-out infinite;
}

@keyframes avatar-pulse {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(0, 212, 255, 0.6),
            0 0 60px rgba(0, 212, 255, 0.4),
            inset 0 0 20px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 40px rgba(0, 212, 255, 0.8),
            0 0 80px rgba(0, 212, 255, 0.5),
            0 0 100px rgba(124, 58, 237, 0.3),
            inset 0 0 30px rgba(0, 212, 255, 0.2);
    }
}

/* 头像外围装饰环 */
.cyber-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.cyber-avatar-wrapper::before,
.cyber-avatar-wrapper::after {
    content: '';
    position: absolute;
    border: 2px solid var(--cyber-primary);
    border-radius: 50%;
    opacity: 0.3;
}

.cyber-avatar-wrapper::before {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    animation: avatar-ring-rotate 4s linear infinite;
    border-top-color: transparent;
    border-left-color: transparent;
}

.cyber-avatar-wrapper::after {
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    animation: avatar-ring-rotate 6s linear infinite reverse;
    border-bottom-color: transparent;
    border-right-color: transparent;
}

@keyframes avatar-ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 状态徽章 ========== */
.cyber-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    box-shadow: 0 0 10px;
}

.cyber-badge-online {
    background: rgba(0, 255, 159, 0.1);
    border-color: var(--cyber-success);
    color: var(--cyber-success);
    box-shadow: 0 0 10px var(--cyber-success);
}

.cyber-badge-active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyber-primary);
    color: var(--cyber-primary);
    box-shadow: 0 0 10px var(--cyber-primary);
}

.cyber-badge-offline {
    background: rgba(136, 146, 176, 0.1);
    border-color: var(--cyber-text-secondary);
    color: var(--cyber-text-secondary);
}

/* ========== 标签 ========== */
.cyber-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.cyber-tag::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;
}

.cyber-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px;
}

.cyber-tag:hover::before {
    left: 100%;
}

/* 不同颜色的标签 */
.cyber-tag-cyan {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--cyber-primary);
    color: var(--cyber-primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.cyber-tag-purple {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--cyber-accent);
    color: var(--cyber-accent);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.cyber-tag-pink {
    background: rgba(255, 0, 110, 0.15);
    border-color: var(--cyber-secondary);
    color: var(--cyber-secondary);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

.cyber-tag-green {
    background: rgba(0, 255, 159, 0.15);
    border-color: var(--cyber-success);
    color: var(--cyber-success);
    box-shadow: 0 0 10px rgba(0, 255, 159, 0.3);
}

.cyber-tag-yellow {
    background: rgba(255, 190, 11, 0.15);
    border-color: var(--cyber-warning);
    color: var(--cyber-warning);
    box-shadow: 0 0 10px rgba(255, 190, 11, 0.3);
}

/* ========== Avatar/World 卡片 ========== */
.cyber-item-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.cyber-item-card:hover {
    border-color: var(--cyber-primary);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        inset 0 0 10px rgba(0, 212, 255, 0.1);
    transform: translateY(-4px);
}

.cyber-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-item-card:hover::before {
    opacity: 1;
}

/* 卡片覆盖层 */
.cyber-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.9), transparent);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-item-card:hover .cyber-overlay {
    opacity: 1;
}

/* ========== 性能徽章 ========== */
.cyber-performance {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid;
}

.cyber-performance-excellent {
    background: rgba(0, 255, 159, 0.1);
    border-color: var(--cyber-success);
    color: var(--cyber-success);
}

.cyber-performance-good {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyber-primary);
    color: var(--cyber-primary);
}

.cyber-performance-medium {
    background: rgba(255, 190, 11, 0.1);
    border-color: var(--cyber-warning);
    color: var(--cyber-warning);
}

.cyber-performance-poor {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--cyber-error);
    color: var(--cyber-error);
}

/* ========== 进度条 ========== */
.cyber-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
}

.cyber-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-primary), var(--cyber-accent));
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px var(--cyber-primary);
}

.cyber-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========== 任务状态 ========== */
.cyber-task-item {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.cyber-task-item:hover {
    border-color: var(--cyber-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.cyber-task-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid;
}

.cyber-task-pending {
    background: rgba(136, 146, 176, 0.1);
    border-color: var(--cyber-text-secondary);
    color: var(--cyber-text-secondary);
}

.cyber-task-downloading {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyber-primary);
    color: var(--cyber-primary);
    box-shadow: 0 0 10px var(--cyber-primary);
    animation: task-pulse 2s ease-in-out infinite;
}

.cyber-task-completed {
    background: rgba(0, 255, 159, 0.1);
    border-color: var(--cyber-success);
    color: var(--cyber-success);
}

.cyber-task-failed {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--cyber-error);
    color: var(--cyber-error);
}

@keyframes task-pulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--cyber-primary);
    }
    50% {
        box-shadow: 0 0 20px var(--cyber-primary);
    }
}

/* ========== 文件列表项 ========== */
.cyber-file-item {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.cyber-file-item:hover {
    background: rgba(26, 26, 46, 0.6);
    border-color: var(--cyber-primary);
    transform: translateX(4px);
}

/* ========== 小按钮 ========== */
.cyber-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--cyber-primary);
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyber-primary);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cyber-btn-small svg {
    flex-shrink: 0;
}

.cyber-btn-small:hover {
    background: var(--cyber-primary);
    color: white;
    box-shadow: 0 0 15px var(--cyber-primary);
}

.cyber-btn-danger {
    border-color: var(--cyber-error);
    background: rgba(255, 0, 110, 0.1);
    color: var(--cyber-error);
}

.cyber-btn-danger svg {
    flex-shrink: 0;
}

.cyber-btn-danger:hover {
    background: var(--cyber-error);
    color: white;
    box-shadow: 0 0 15px var(--cyber-error);
}

/* ========== 信息提示框 ========== */
.cyber-info-box {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--cyber-primary);
    border-radius: 8px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.2),
        inset 0 0 15px rgba(0, 212, 255, 0.05);
}

.cyber-info-icon {
    color: var(--cyber-primary);
    filter: drop-shadow(0 0 5px var(--cyber-primary));
}

/* ========== 移动端底部导航 ========== */
.cyber-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cyber-card-bg);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--cyber-card-border);
    box-shadow: 0 -5px 30px rgba(0, 212, 255, 0.3);
    z-index: 50;
}

.cyber-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    color: var(--cyber-text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cyber-mobile-nav-item svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.25rem;
}

.cyber-mobile-nav-item.active {
    color: var(--cyber-primary);
    background: rgba(0, 212, 255, 0.1);
    text-shadow: 0 0 10px var(--cyber-primary);
}

.cyber-mobile-nav-item.active svg {
    filter: drop-shadow(0 0 5px var(--cyber-primary));
}

/* ========== 头部横幅 ========== */
.cyber-header-banner {
    height: 8rem;
    background: linear-gradient(135deg,
        var(--cyber-primary) 0%,
        var(--cyber-accent) 50%,
        var(--cyber-secondary) 100%);
    position: relative;
    overflow: hidden;
}

/* 网格背景 */
.cyber-header-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

/* 光效扫描 */
.cyber-header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: banner-shine 4s ease-in-out infinite;
}

@keyframes banner-shine {
    0% { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(150%) skewX(-20deg); }
}
/* ========== 用户信息头部区域(替代 banner) ========== */
.cyber-profile-header {
    position: relative;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.15) 0%,
        rgba(124, 58, 237, 0.15) 50%,
        rgba(255, 0, 110, 0.15) 100%);
    min-height: 12rem;
    overflow: hidden;
}

/* 网格背景效果 */
.cyber-profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* 扫描光效 */
.cyber-profile-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    animation: profile-shine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes profile-shine {
    0% { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(150%) skewX(-20deg); }
}

/* 确保内容在效果之上 */
.cyber-profile-header > * {
    position: relative;
    z-index: 1;
}


/* ========== 数据显示区 ========== */
.cyber-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.cyber-data-row:hover {
    background: rgba(0, 212, 255, 0.05);
    padding-left: 0.5rem;
    border-bottom-color: var(--cyber-primary);
}

.cyber-data-label {
    color: var(--cyber-text-secondary);
    font-size: 0.875rem;
}

.cyber-data-value {
    color: var(--cyber-text-primary);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ========== 空状态 ========== */
.cyber-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--cyber-text-secondary);
}

.cyber-empty-state svg {
    opacity: 0.3;
    filter: drop-shadow(0 0 10px var(--cyber-primary));
}

/* ========== 通知徽章 ========== */
.cyber-notification-badge {
    background: var(--cyber-error);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 0 10px var(--cyber-error);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px var(--cyber-error);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px var(--cyber-error);
    }
}

/* ========== 响应式调整 ========== */
@media (max-width: 640px) {
    .cyber-code-input {
        width: 2.5rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .cyber-mobile-nav {
        display: flex;
    }
    
    .cyber-header-banner {
        height: 6rem;
    }
    
    .cyber-profile-header {
        min-height: 10rem;
    }
}

@media (min-width: 641px) {
    .cyber-mobile-nav {
        display: none;
    }
}

/* ========== 加载状态覆盖层 ========== */
.cyber-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cyber-loading-overlay .cyber-loader {
    width: 60px;
    height: 60px;
    border-width: 4px;
}