/* 字体资源引入 - 使用国内镜像加速加载 */
@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 基础变量定义 - 保持设计一致性 */
:root {
    --color-dark-gray: #2C2C2C;
    --color-pure-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-warm-gray: #E8E8E8;
    --color-metal-silver: #C0C0C0;
    --color-deep-blue: #1A3A5F;
}

/* 全局基础设置 */
body {
    font-family: 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background-color: var(--color-pure-white);
    color: var(--color-dark-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 滚动条美化 - 提升高端感 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #D4D4D4;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #A3A3A3;
}

/* 动画关键帧 - 用于页面元素平滑过渡 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(1.05);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 动画工具类 */
.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 动画延迟控制 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* 辅助类 - 文本阴影增强图片上文字可读性 */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 动态内容槽位预置 - 方便后续扩展 */
.slot-container {
    min-height: 1px;
    width: 100%;
    display: block;
}

/* 图片懒加载占位骨架屏 */
.img-placeholder {
    background-color: var(--color-warm-gray);
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

/* 强制隐藏 */
[x-cloak] {
    display: none !important;
}