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

/* Tailwind CSS Config Integration Override */
/* 确保字体设置生效 */
:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
    --color-bg: #FAFAFA;
    --color-text: #333333;
    --color-muted: #666666;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* 防止横向滚动 */
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-serif);
}

p {
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* Custom Scrollbar - Minimalist */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Navigation Styles */
header {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-link {
    position: relative;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Hero Section & Animations */
.hero-text-shadow {
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 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; }

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

/* Image Interactions */
.img-container {
    overflow: hidden;
    position: relative;
}

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

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

/* Lightbox Styles */
#lightbox {
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.98);
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-height: 90vh;
    max-width: 90vw;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: scale(0.96);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#lightbox.active .lightbox-content {
    transform: scale(1);
}

/* Utility */
.cursor-pointer-zoom {
    cursor: zoom-in;
}

/* Footer Minimal */
footer {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #888;
}

/* Logo SVG Styling */
.logo-svg {
    transition: transform 0.5s ease;
}
.logo-link:hover .logo-svg {
    transform: rotate(180deg);
}

/* 动态槽位预留 */
.slot-container {
    display: contents;
}