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

/* Tailwind CSS 配置补充与全局基础样式 */
:root {
    --color-bg: #f9f9f7; /* 珍珠白/米白基调 */
    --color-text-primary: #333333;
    --color-text-secondary: #666666;
    --color-accent: #bfaea8; /* 柔和陶土色 */
}

/* 基础重置与字体设定 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* 防止水平溢出 */
    line-height: 1.6;
}

/* 标题字体系统 - 优雅衬线风格 */
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
}

/* 自定义动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpLine {
    from { height: 0; }
    to { height: 60px; }
}

/* 动画工具类 */
.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; /* 初始隐藏 */
}

.animate-fade-in {
    animation: fadeIn 1.5s ease-out 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; }

/* 导航交互设计 - 极简下划线 */
.nav-link {
    position: relative;
    display: inline-block;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #333;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 图片微交互 - 优雅放大 */
.img-container {
    overflow: hidden;
    position: relative;
}
.img-container img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.img-container:hover img {
    transform: scale(1.03); /* 轻微放大，保持克制 */
}

/* 极简滚动条美化 */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 工具类补充 */
.text-justify-custom {
    text-align: justify;
    text-justify: inter-ideograph;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 隐藏特定的 UI 元素 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}