# -*- coding: utf-8 -*-
/* --- 基础与全局复位 --- */
[v-cloak] { display: none; }
#chart-container, #heatmap-container { width: 100%; }

/* --- 动态生机背景 (Mesh Gradient) --- */
body {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(249, 115, 22, 0.05) 0px, transparent 50%);
    overflow: hidden;
}

/* 漂浮光斑 */
.bg-blob {
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    animation: move 20s infinite alternate;
}
@keyframes move {
    from { transform: translate(-10%, -10%); }
    to { transform: translate(20%, 20%); }
}

/* --- 看板转场动画 (page-fade) --- */
.page-fade-enter-active, .page-fade-leave-active {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-fade-enter-from, .page-fade-leave-to {
    opacity: 0;
    transform: scale(0.98);
}

/* --- 高级玻璃拟态 --- */
.glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.8) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- 按钮微交互样式 --- */
.btn-interactive {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-interactive:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}
.btn-interactive:active {
    transform: scale(0.96);
}

/* --- 加载流光效果 (Shimmer) --- */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer-anim 1.5s infinite;
}
@keyframes shimmer-anim {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- 趋势信号呼吸灯 --- */
.dot-green { background: #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); animation: pulse-green 2s infinite; }
.dot-red { background: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); animation: pulse-red 2s infinite; }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); animation: pulse-yellow 2s infinite; }

@keyframes pulse-green { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.2); } }
@keyframes pulse-red { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.2); } }
@keyframes pulse-yellow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.2); } }

/* --- 环形进度条 --- */
.temp-ring {
    position: relative;
    width: 140px; height: 140px;
    display: flex; align-items: center; justify-content: center;
}
.temp-ring svg { transform: rotate(-90deg); }
.temp-ring circle {
    fill: none; stroke-width: 8; stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

/* --- 研报/侧滑转场 (modal-slide) --- */
.modal-slide-enter-active, .modal-slide-leave-active {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-slide-enter-active .backdrop, .modal-slide-leave-active .backdrop {
    transition: opacity 0.4s ease;
}
.modal-slide-enter-from .modal-panel, .modal-slide-leave-to .modal-panel {
    transform: translateX(100%);
    opacity: 0;
}
.modal-slide-enter-from .backdrop, .modal-slide-leave-to .backdrop {
    opacity: 0;
}

/* 兼容旧的动画定义 */
.animate-slide-in { animation: slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.markdown-body, .markdown-body-dark { line-height: 1.8; font-family: system-ui, sans-serif; }
.markdown-body h2 { border-left: 4px solid #3b82f6; padding-left: 12px; font-size: 1.25rem; font-weight: 800; }
.markdown-body-dark h2 { border-left: 3px solid #60a5fa; padding-left: 10px; color: #f3f4f6; font-weight: 700; }
.markdown-body-dark { color: #d1d5db; }
.markdown-body-dark strong { color: #ffffff; }

/* 自定义滚动条 */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-thumb { background: #374151; border-radius: 10px; }
