/* 全局样式文件 */

/* 引入字体：Noto Sans SC (无衬线) 和 Playfair Display (衬线，用于高雅标题) */
@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* 基础设置 */
:root {
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-accent: #D4C3B7; /* 柔和的淡驼色 */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text-main);
    background-color: #FFFFFF; /* 纯白背景或根据设计调整为极浅灰 */
    -webkit-font-smoothing: antialiased; /* 字体平滑 */
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
    overflow-x: hidden;
}

/* 字体工具类补充 */
.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Noto Sans SC', sans-serif;
}

/* 自定义滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #D4D4D4;
}

/* 实用动画类 */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

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

/* 轮播图淡入淡出 */
.carousel-fade {
    transition: opacity 1.2s ease-in-out;
}

/* 图片容器交互 */
.img-container {
    overflow: hidden;
    position: relative;
}

.img-hover-scale {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.group:hover .img-hover-scale {
    transform: scale(1.05);
}

/* 文本选中样式 - 保持低调高端 */
::selection {
    background-color: rgba(212, 195, 183, 0.3); /* 淡驼色透明背景 */
    color: #333;
}

/* 导航栏毛玻璃效果 */
.glass-nav {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

/* 隐藏滚动条但允许滚动 (特定区域) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}