/* ==========================================================================
   Project: MOKE - Modern Gentleman's Wardrobe Visual Guide
   Style: Minimalist, Dark Mode, High Fidelity
   ========================================================================== */

/* 1. Core Variables & Reset */
:root {
    --bg-primary: #000000;
    --bg-secondary: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --accent-brown: #9C6F5E; /* 陶土棕 */
    --accent-blue: #5C7E9B;  /* 灰蓝色 */
    --font-main: 'Helvetica Neue', Helvetica, Arial, "Noto Sans SC", sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 2. Custom Scrollbar (Minimalist) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

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

/* 3. Utility Components */

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Parallax Effect Utility */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

/* Text Selection */
::selection {
    background: var(--accent-brown);
    color: #fff;
}

/* 4. Animations */

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

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle Zoom for Images */
@keyframes subtleZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

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

.animate-fade-up {
    animation: fadeInUp 1s var(--transition-smooth) forwards;
    opacity: 0; /* Initially hidden */
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }

/* 5. Interactive Elements */

/* Hover Underline Animation */
.hover-line {
    position: relative;
    display: inline-block;
}

.hover-line::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent-brown);
    transition: width 0.3s ease, left 0.3s ease;
}

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

/* Image Hover Overlay */
.group:hover .group-hover\:scale-102 {
    transform: scale(1.02);
}

/* Modal Transitions */
.modal-enter {
    opacity: 0;
    transform: scale(0.98);
}
.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.modal-exit {
    opacity: 1;
    transform: scale(1);
}
.modal-exit-active {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 200ms ease-in, transform 200ms ease-in;
}

/* Hide Scrollbar but keep functionality */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Dynamic Content Slots Placeholder Styling */
.content-slot:empty::before {
    content: '<!-- Slot: Content Area -->';
    display: none; 
}

/* Typography Enhancements for Chinese */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.05em;
    font-weight: 300; /* Lighter weights for elegance */
}

p {
    letter-spacing: 0.02em;
}