@charset "UTF-8";

/* ============================================================================
   ✨ 终极防跳动核心：强制浏览器永远保留滚动条轨道占位，彻底杜绝页面整体左右位移
   ============================================================================ */
html {
    scrollbar-gutter: stable;
    /* 针对 Firefox 的优雅降级美化 */
    scrollbar-width: thin; 
    scrollbar-color: rgba(100, 116, 139, 0.3) transparent; 
}

/* ============================================================================
   ✨ 高颜值半透明滚动条定制（兼容 Chrome, Edge, Safari）
   ============================================================================ */
::-webkit-scrollbar {
    width: 8px;              /* 纵向滚动条宽度，精致且方便拖拽 */
    height: 8px;             /* 横向滚动条高度 */
    background: transparent; /* 轨道背景完全透明，完美融合网页背景 */
}

::-webkit-scrollbar-track {
    background: transparent; /* 保持轨道透明 */
}

::-webkit-scrollbar-thumb {
    background-color: rgba(100, 116, 139, 0.2); /* 半透明高级 Slate 灰 */
    border-radius: 9999px;                       /* 胶囊状圆角 */
    border: 2px solid transparent;               /* 隐形边框衬托，形成视觉悬浮效果 */
    background-clip: padding-box;                
    transition: background-color 0.2s ease;     
}

/* 鼠标悬停在滑块上时，丝滑转为科技蓝 */
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(37, 99, 235, 0.5);   
}

/* ============================================================================
   首屏强力加载动画遮罩 - 采用内嵌防挤压 Flex 物理锁定
   ============================================================================ */
#app-loading-mask {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: #ffffff !important; 
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    
    will-change: opacity;
    transition: opacity 0.3s ease;
}

/* 圆圈与文字块级渲染，绝对稳定 */
.spinner {
    width: 32px !important;              
    height: 32px !important;             
    border: 2px solid #e2e8f0 !important;      
    border-top-color: #2563eb !important;      
    border-radius: 50% !important;
    animation: strict-spin 0.8s linear infinite !important; 
    flex-shrink: 0;
    margin-bottom: 12px !important; 
}

.loading-text {
    white-space: nowrap !important;       
    margin: 0 !important;
    padding: 0 !important;
    color: #64748b !important;           
    font-size: 12px !important;          
    font-weight: 700 !important;          
    letter-spacing: 0.05em;              
    text-align: center !important;
}

@keyframes strict-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================================================
   其他核心功能通用 CSS 样式
   ============================================================================ */
[v-cloak] {
    display: none !important;
}

.animate-pulse-slow {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.custom-toast {
    min-width: 280px;
    padding: 14px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-toast.show {
    transform: translateX(0);
}
.toast-success { background-color: #10b981; border-left: 5px solid #047857; }
.toast-error { background-color: #ef4444; border-left: 5px solid #b91c1c; }
.toast-info { background-color: #3b82f6; border-left: 5px solid #3b82f6; }