/**
 * Zeus 客户端界面视觉升级 v1.0
 * 基于 Uiverse.io 设计系统
 * 应用现代玻璃态、3D 效果和渐变动画
 */

/* ==================== 动画定义 ==================== */

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes buttonRipple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes lightSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.6); }
}

/* ==================== 主按钮升级 ==================== */

.primary-btn {
    position: relative !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 3s ease infinite !important;
    border: none !important;
    color: white !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3),
                0 2px 10px rgba(99, 102, 241, 0.2) !important;
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5),
                0 3px 15px rgba(99, 102, 241, 0.3) !important;
}

.primary-btn:active {
    transform: translateY(0px) scale(0.98) !important;
}

.primary-btn::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
}

.primary-btn:active::after {
    width: 300px !important;
    height: 300px !important;
    opacity: 0 !important;
}

/* ==================== 次级按钮升级 ==================== */

.secondary-btn {
    position: relative !important;
    background: rgba(30, 30, 46, 0.7) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #a78bfa !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.secondary-btn:hover {
    background: rgba(40, 40, 60, 0.8) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.2) !important;
}

.secondary-btn::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%) !important;
    transition: left 0.5s ease !important;
}

.secondary-btn:hover::before {
    left: 100% !important;
}

/* ==================== 钱包按钮升级 ==================== */

.wallet-btn {
    position: relative !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 4s ease infinite !important;
    border: none !important;
    color: white !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4),
                0 4px 15px rgba(99, 102, 241, 0.3) !important;
}

.wallet-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6),
                0 6px 25px rgba(99, 102, 241, 0.4) !important;
}

/* ==================== 统计卡片升级 ==================== */

.stat-card {
    position: relative !important;
    background: rgba(30, 30, 46, 0.7) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(139, 92, 246, 0.1) !important;
}

.stat-card:hover {
    transform: translateY(-8px) rotateX(5deg) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
                0 4px 16px rgba(139, 92, 246, 0.3) !important;
}

.stat-card::before {
    content: "" !important;
    position: absolute !important;
    top: -50% !important;
    left: -100% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    animation: lightSweep 3s infinite !important;
}

/* ==================== 任务卡片升级 ==================== */

.task-card {
    position: relative !important;
    background: rgba(30, 30, 46, 0.7) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.task-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
                0 4px 16px rgba(139, 92, 246, 0.2) !important;
}

.task-card::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef) !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform 0.3s ease !important;
}

.task-card:hover::after {
    transform: scaleX(1) !important;
}

/* ==================== 导航栏升级 ==================== */

.navbar, nav {
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

/* ==================== 侧边栏升级 ==================== */

.sidebar, .sidebar-menu {
    background: rgba(18, 18, 26, 0.85) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3) !important;
}

.sidebar-item:hover, .menu-item:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-left: 3px solid #8b5cf6 !important;
    transform: translateX(5px) !important;
}

/* ==================== 输入框升级 ==================== */

input[type="text"],
input[type="number"],
input[type="email"],
textarea {
    background: rgba(30, 30, 46, 0.7) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: white !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

input:focus,
textarea:focus {
    outline: none !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3) !important;
    background: rgba(40, 40, 60, 0.8) !important;
}

/* ==================== 模态框升级 ==================== */

.modal-overlay {
    backdrop-filter: blur(12px) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.modal-content, .modal {
    background: rgba(18, 18, 26, 0.95) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
                0 8px 32px rgba(139, 92, 246, 0.2) !important;
}

/* ==================== 社交任务按钮 ==================== */

.social-task-btn {
    position: relative !important;
    background: rgba(30, 30, 46, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    color: #a78bfa !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.social-task-btn:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ==================== Toast 通知升级 ==================== */

.toast {
    background: rgba(30, 30, 46, 0.95) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 2px 8px rgba(139, 92, 246, 0.2) !important;
}

/* ==================== 响应式优化 ==================== */

@media (max-width: 768px) {
    .primary-btn, .secondary-btn, .wallet-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    .stat-card, .task-card {
        padding: 16px !important;
    }

    .stat-card:hover, .task-card:hover {
        transform: translateY(-4px) !important;
    }
}

/* ==================== 加载动画 ==================== */

}

/* ==================== 滚动条美化 ==================== */

::-webkit-scrollbar {
    width: 10px !important;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 46, 0.5) !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6) !important;
    border-radius: 5px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #a78bfa) !important;
}

/* ==================== 特殊效果：签到按钮 ==================== */

#checkinBtn {
    position: relative !important;
    overflow: hidden !important;
}

#checkinBtn::before {
    content: "⚡" !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    opacity: 0.8 !important;
    animation: glowPulse 2s ease infinite !important;
}

/* ==================== 特殊效果：提现按钮 ==================== */

#withdrawBtn {
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%) !important;
}

#withdrawBtn:hover {
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.5),
                0 6px 25px rgba(139, 92, 246, 0.3) !important;
}
