/* 引入字体：思源黑体 (Noto Sans SC) 和 衬线体 (Playfair Display 用于艺术感标题) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

/* 全局变量与重置 */
:root {
    --color-bg: #121212; /* 炭黑 */
    --color-text: #f5f5f5; /* 米白 */
    --color-accent: #d4c4b7; /* 沙色点缀 */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: default;
}

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

.font-light-sys {
    font-weight: 300;
}

/* 动画：淡入 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 1.5s var(--ease-out-expo) forwards;
}

/* 动画：上浮淡入 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    opacity: 0;
    animation: fadeInUp 1.2s var(--ease-out-expo) 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; }
.delay-700 { animation-delay: 0.7s; }

/* 交互：图片悬停缩放 */
.img-hover-zoom {
    overflow: hidden;
    display: block;
    position: relative;
}

.img-hover-zoom img {
    transition: transform 1.2s var(--ease-out-expo);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

::-webkit-scrollbar-track {
    background: #000;
}

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

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

/* 隐藏滚动条但保留功能 (用于横向滚动区) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 蒙层与文字效果 */
.hover-overlay {
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.5s ease;
}

/* 灯箱效果 */
.lightbox-modal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

/* 选中态颜色 */
::selection {
    background: rgba(212, 196, 183, 0.3);
    color: #fff;
}

/* 移动端汉堡菜单动画 */
.hamburger line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.menu-open .line-top {
    transform: translateY(6px) rotate(45deg);
}
.menu-open .line-middle {
    opacity: 0;
}
.menu-open .line-bottom {
    transform: translateY(-6px) rotate(-45deg);
}