/* 引入Google Fonts: Playfair Display (英文衬线) & Noto Serif SC (中文衬线) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+SC:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* 全局变量定义：色彩系统 */
:root {
    /* 主色调 */
    --color-pearl-white: #FAFAFA;
    --color-premium-gray: #E8E8E8;
    --color-charcoal-black: #1A1A1A;
    
    /* 强调色 */
    --color-terracotta: #A86454;
    --color-oatmeal: #D9C7B8;
    --color-haze-blue: #7C9EB2;

    /* 字体栈 */
    --font-heading: 'Playfair Display', 'Noto Serif SC', serif;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 基础重置与全局样式 */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-pearl-white);
    color: #333333;
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden; /* 防止水平滚动 */
}

/* 标题字体覆盖 */
h1, h2, h3, h4, h5, h6, .font-serif-custom {
    font-family: var(--font-heading);
}

/* 隐藏滚动条但保留功能 (Webkit) */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 交互动效类 */
.hover-reveal-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-reveal-image:hover {
    transform: scale(1.03);
}

/* 页面过渡与加载动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUpFade 0.8s ease-out forwards;
    opacity: 0; /* 初始隐藏 */
}

.animate-ken-burns {
    animation: kenBurns 20s ease-out infinite alternate;
}

/* 动画延迟工具类 */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }

/* 磨砂玻璃效果 (补充Tailwind backdrop-blur) */
.glass-effect {
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 文本选择颜色 */
::selection {
    background-color: var(--color-oatmeal);
    color: var(--color-charcoal-black);
}

/* 动态槽位预留样式 */
.dynamic-slot {
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed var(--color-premium-gray);
    color: #999;
}