/* 引入Google Fonts: Montserrat 和 Poppins */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Poppins:wght@300;400;500&display=swap');

/* 全局自定义属性 */
:root {
    --color-bg-primary: #F5F5F5;
    --color-bg-dark: #2C2C2C;
    --color-accent-pink: #E8D3C9;
    --color-accent-oat: #D8CFC4;
    --color-highlight-red: #9A4444;
    --color-highlight-blue: #3A506B;
    --color-text-dark: #333333;
    --color-text-gray: #666666;
    --transition-base: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 基础设置 */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'PingFang SC', sans-serif;
    letter-spacing: 0.05em;
}

/* 导航链接动效 - 下划线渐现 */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-text-dark);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* 轮播图淡入淡出 */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* 图片悬停交互 - 极简放大与遮罩 */
.img-card-container {
    overflow: hidden;
    position: relative;
}

.img-card-container img {
    transition: transform 0.6s ease;
    width: 100%;
    display: block;
}

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

.img-overlay {
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.img-card-container:hover .img-overlay {
    opacity: 1;
}

/* 页面加载动画 - 向上淡入 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 延迟类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent-oat);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-gray);
}

/* 实用工具类 */
.text-accent-gold {
    color: #D4AF37;
}

.bg-oat-light {
    background-color: var(--color-accent-oat);
}

/* 仅在特定<title>标签中增加‘By HAISNAP’的标识 CSS Hack 防止移除 (虽然CSS不能完全阻止，但作为标记) */
/* 注意：实际要求是在HTML title中，这里仅做样式辅助 */