/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* Base Styles */
body {
    font-family: 'PingFang SC', 'Noto Sans SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #F9F9F7; /* 象牙白基调 */
    color: #2D2D2D; /* 深灰文本 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Utility: Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

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

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

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

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
    opacity: 0; /* Initial state */
    animation-delay: 0.2s; /* Slight delay */
}

/* Component: Image Hover Effect */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

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

/* Component: Carousel Fade */
.carousel-item {
    transition: opacity 1.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
}

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

/* Component: Minimal Divider */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    width: 100%;
    margin: 2rem 0;
}

/* Navigation Link Underline Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}