/* 全局视觉变量：保留原有糖果色与玻璃拟态风格。 */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #FAF3F0;
    color: #4A4A4A;
}

/* 自定义颜色类，兼容现有 Tailwind 静态写法。 */
.bg-candy-pink { background-color: #FFB7B2; }
.bg-candy-purple { background-color: #E2B6CF; }
.bg-candy-mint { background-color: #B5EAD7; }
.bg-candy-cream { background-color: #FAF3F0; }
.text-candy-text { color: #4A4A4A; }
.text-candy-dark { color: #2D3748; }
.from-candy-pink { --tw-gradient-from: #FFB7B2; }
.to-candy-purple { --tw-gradient-to: #E2B6CF; }

/* 原有漂浮动效。 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-blob { animation: blob 7s infinite; }

/* 玻璃拟态卡片。 */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(226, 182, 207, 0.2);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* 主按钮交互保持原有视觉节奏。 */
.btn-primary {
    background: linear-gradient(135deg, #FFB7B2 0%, #FF9A9E 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(255, 154, 158, 0.5);
}

/* 细滚动条，保留滚动能力。 */
.hide-scroll::-webkit-scrollbar {
    width: 6px;
}

.hide-scroll::-webkit-scrollbar-thumb {
    background-color: #E2B6CF;
    border-radius: 3px;
}

.hide-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* 侧边栏导航状态。 */
.sidebar-nav-item {
    transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
    background-color: rgba(255, 183, 178, 0.2);
}

.sidebar-nav-item.active {
    background-color: rgba(255, 183, 178, 0.3);
    border-left: 3px solid #FFB7B2;
}

@media (max-width: 767px) {
    #sidebar {
        height: calc(100vh - 80px);
    }
}

@media (min-width: 768px) {
    #sidebar {
        position: relative;
        transform: translateX(0) !important;
    }
}

/* 指标变化颜色。 */
.metric-up { color: #10B981; }
.metric-down { color: #EF4444; }
.metric-neutral { color: #6B7280; }
