/**
 * SynVow 控制台公共样式
 * 统一所有控制台页面的布局，避免页面切换时的位移问题
 */

/* 基础设置 */
html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

body.console-preload {
    visibility: hidden;
}

body.console-ready {
    visibility: visible;
}

/* CSS 变量 */
:root {
    --card-gap: 16px;
    --sidebar-content-gap: 32px;
    --card-radius: 40px;
    --max-width: 1440px;
    --sidebar-width: 200px;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--card-radius);
    padding: 24px 16px;
}

/* 菜单项 */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item.active {
    background: rgba(16, 194, 150, 0.15);
    color: #10c296;
}

.menu-item svg {
    width: 20px;
    height: 20px;
}

/* 控制台卡片 */
.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--card-radius);
    padding: 24px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: rgba(16, 194, 150, 0.3);
    box-shadow: 0 0 30px rgba(16, 194, 150, 0.1);
}

/* 卡片标题 */
.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.card-title svg {
    width: 16px;
    height: 16px;
}

/* 余额显示 */
.balance-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.balance-currency {
    color: #10c296;
}

/* 统计值 */
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

/* 动画 */
@keyframes flyInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flyInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fly-in-up {
    animation: flyInUp 0.6s ease-out forwards;
}

.fly-in-right {
    animation: flyInRight 0.6s ease-out forwards;
}

.fly-in-left {
    animation: flyInLeft 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -40;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(16, 194, 150, 0.6);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }
    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

.particle:nth-child(1) {
    left: 5%;
    animation-duration: 12s;
    animation-delay: 0s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(2) {
    left: 15%;
    animation-duration: 15s;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
    background: rgba(16, 194, 150, 0.4);
}

.particle:nth-child(3) {
    left: 25%;
    animation-duration: 10s;
    animation-delay: 4s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(4) {
    left: 35%;
    animation-duration: 18s;
    animation-delay: 1s;
    width: 4px;
    height: 4px;
    background: rgba(29, 91, 166, 0.5);
}

.particle:nth-child(5) {
    left: 45%;
    animation-duration: 14s;
    animation-delay: 3s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(6) {
    left: 55%;
    animation-duration: 11s;
    animation-delay: 5s;
    width: 6px;
    height: 6px;
    background: rgba(16, 194, 150, 0.3);
}

.particle:nth-child(7) {
    left: 65%;
    animation-duration: 16s;
    animation-delay: 2s;
    width: 2px;
    height: 2px;
    background: rgba(29, 91, 166, 0.4);
}

.particle:nth-child(8) {
    left: 75%;
    animation-duration: 13s;
    animation-delay: 4s;
    width: 4px;
    height: 4px;
}

.particle:nth-child(9) {
    left: 85%;
    animation-duration: 17s;
    animation-delay: 1s;
    width: 3px;
    height: 3px;
    background: rgba(16, 194, 150, 0.5);
}

.particle:nth-child(10) {
    left: 95%;
    animation-duration: 12s;
    animation-delay: 3s;
    width: 5px;
    height: 5px;
    background: rgba(29, 91, 166, 0.3);
}

/* 雾气效果 */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -45;
    overflow: hidden;
}

.fog {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.12;
}

.fog-1 {
    background: radial-gradient(ellipse 80% 50% at 20% 60%, rgba(6, 182, 212, 0.5) 0%, transparent 60%);
    animation: fogDrift1 25s ease-in-out infinite;
}

.fog-2 {
    background: radial-gradient(ellipse 60% 40% at 70% 30%, rgba(16, 194, 150, 0.4) 0%, transparent 50%);
    animation: fogDrift2 30s ease-in-out infinite;
}

.fog-3 {
    background: radial-gradient(ellipse 70% 60% at 50% 80%, rgba(8, 145, 178, 0.45) 0%, transparent 55%);
    animation: fogDrift3 35s ease-in-out infinite;
}

@keyframes fogDrift1 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(5%) translateY(-3%) scale(1.1);
    }
    50% {
        transform: translateX(-3%) translateY(5%) scale(0.95);
    }
    75% {
        transform: translateX(-5%) translateY(-2%) scale(1.05);
    }
}

@keyframes fogDrift2 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    33% {
        transform: translateX(-4%) translateY(4%) scale(1.08);
    }
    66% {
        transform: translateX(6%) translateY(-3%) scale(0.92);
    }
}

@keyframes fogDrift3 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    50% {
        transform: translateX(4%) translateY(-5%) scale(1.1);
    }
}

/* 控制台布局容器 */
.console-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 32px 24px;
    padding-top: 7rem;
}

/* 欢迎区域 */
.console-welcome {
    margin-bottom: 24px;
}

.console-welcome h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.console-welcome .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.console-welcome .user-name {
    font-size: 1.25rem;
    color: #d1d5db;
}

.console-welcome .user-id {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.console-welcome .copy-btn {
    color: #6b7280;
    transition: color 0.2s;
}

.console-welcome .copy-btn:hover {
    color: #d1d5db;
}

/* 控制台主布局 */
.console-layout {
    display: flex;
    gap: 32px;
}

/* 侧边栏 */
.console-sidebar {
    width: 200px;
    flex-shrink: 0;
}

/* 主内容区 */
.console-main {
    flex: 1;
    min-width: 0;
}
