/* ========================================
   Hi Art Studio — Global Design System
   Museum-Grade Institutional Aesthetic
   ======================================== */

/* ========== CSS 变量系统 — Museum Palette ========== */
:root {
    /* ── Colour System ── */
    --color-bg-primary:    #f9f7f4;   /* alabaster — gallery wall         */
    --color-bg-secondary:  #f2efe9;   /* warm off-white — section alt     */
    --color-bg-dark:       #1a1917;   /* near-black — hero, footer        */
    --color-surface:       #ffffff;   /* pure white cards/inputs          */
    --color-border:        #ddd8d0;   /* muted warm-grey rule             */
    --color-border-light:  #ebe7e1;   /* softer divider                   */

    --color-text-primary:  #1a1917;   /* deep charcoal                    */
    --color-text-secondary:#5a5550;   /* warm mid-grey                    */
    --color-text-muted:    #9b948b;   /* quiet — captions, labels         */
    --color-text-inverse:  #f9f7f4;   /* text on dark bg                  */

    --color-accent:        #7a6a58;   /* muted umber — primary CTA        */
    --color-accent-light:  #a8977f;   /* hover tint                       */
    --color-accent-warm:   #b05c3a;   /* warm terracotta — rare emphasis  */

    /* ── Glass / Surface ── */
    --glass-bg:     rgba(249, 247, 244, 0.82);
    --glass-border: rgba(221, 216, 208, 0.5);
    --glass-shadow: rgba(26, 25, 23, 0.06);
    --glass-blur:   18px;

    /* ── Spacing — generous, gallery-like ── */
    --space-xs:   0.5rem;    /*  8px */
    --space-sm:   1rem;      /* 16px */
    --space-md:   2rem;      /* 32px */
    --space-lg:   3.5rem;    /* 56px */
    --space-xl:   6rem;      /* 96px */
    --space-2xl:  9rem;      /* 144px */

    /* ── Radius ── */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-full: 9999px;

    /* ── Transitions — slow, deliberate, no bounce ── */
    --transition-fast: 0.25s ease;
    --transition-base: 0.4s  ease;
    --transition-slow: 0.6s  ease;

    /* ── Typography ── */
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-body:  var(--font-sans);
    --font-display: var(--font-serif);
    --font-accent:  'Noto Serif SC', serif;
    --font-gallery: var(--font-serif);
}

/* ========== Global Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: 0px;
}

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

/* ── Global heading typography — serif throughout ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

p, span, li, a, label, input, textarea, button {
    font-family: var(--font-sans);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

/* ========== Navbar — glassmorphism on alabaster ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.35rem var(--space-md);
    background: rgba(249, 247, 244, 0.88);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 1px 0 var(--color-border-light);
    transition: padding var(--transition-base), box-shadow var(--transition-base);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.navbar-logo:hover {
    opacity: 0.85;
}

.navbar-logo-img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply;
    flex-shrink: 0;
}

.navbar-logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--color-text-primary);
    white-space: nowrap;
}

/* 手机端：logo 适当缩小，显示文字 */
@media (max-width: 768px) {
    .navbar-logo-img {
        height: 40px;
    }
    .navbar-logo-text {
        display: inline-block;
        font-size: 0.95rem;
        font-weight: 500;
        margin-left: 0.35rem;
    }
}

.navbar-menu {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.navbar-menu a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition-base);
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text-primary);
    transition: width var(--transition-base);
}

.navbar-menu a:hover {
    color: var(--color-text-primary);
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* ========== Hero 区域 - Full Screen Background Slider ========== */
.hero {
    min-height: 100vh;
    height: 100vh;
    /* Exact full screen for scroll-snap */
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}


/* ── Hero Video Mosaic ── */
.hero-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    /* 4 asymmetric columns — gives the mosaic its uneven, editorial feel */
    grid-template-columns: 5fr 4fr 3fr 3fr;
    grid-template-rows: 3fr 2fr;
    gap: 3px;
    z-index: 1;
    background: #0a0a0a;
    /* gap colour */
}

.mosaic-cell {
    position: relative;
    overflow: hidden;
    background: #111;
}

/* Cell placements */
.cell-1 {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* tall left, full height */
.cell-2 {
    grid-column: 2;
    grid-row: 1;
}

.cell-3 {
    grid-column: 3 / 5;
    grid-row: 1;
}

/* spans 2 cols, top right */
.cell-4 {
    grid-column: 2;
    grid-row: 2;
}

.cell-5 {
    grid-column: 3;
    grid-row: 2;
}

.cell-6 {
    grid-column: 4;
    grid-row: 2;
}

/* Video: fades in once it starts playing */
.mosaic-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease;
}

.mosaic-video.playing {
    opacity: 1;
}

/* Fallback image behind the video — always visible until video loads */
.mosaic-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ── Ken Burns animations (different direction/speed per cell) ── */
@keyframes kb-zoom-in {
    0% {
        transform: scale(1.1) translate(-2%, -2%);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

@keyframes kb-zoom-out {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(2%, 2%);
    }
}

@keyframes kb-pan-r {
    0% {
        transform: scale(1.07) translateX(-3%);
    }

    100% {
        transform: scale(1.07) translateX(3%);
    }
}

@keyframes kb-pan-l {
    0% {
        transform: scale(1.07) translateX(3%);
    }

    100% {
        transform: scale(1.07) translateX(-3%);
    }
}

@keyframes kb-pan-u {
    0% {
        transform: scale(1.07) translateY(3%);
    }

    100% {
        transform: scale(1.07) translateY(-3%);
    }
}

@keyframes kb-pan-d {
    0% {
        transform: scale(1.07) translateY(-3%);
    }

    100% {
        transform: scale(1.07) translateY(3%);
    }
}

.cell-1 .mosaic-fallback {
    animation: kb-zoom-in 20s ease-in-out infinite alternate;
}

.cell-2 .mosaic-fallback {
    animation: kb-pan-r 8s ease-in-out infinite alternate;
}

.cell-3 .mosaic-fallback {
    animation: kb-zoom-out 16s ease-in-out infinite alternate;
}

.cell-4 .mosaic-fallback {
    animation: kb-pan-l 6s ease-in-out infinite alternate;
}

.cell-5 .mosaic-fallback {
    animation: kb-pan-u 10s ease-in-out infinite alternate;
}

.cell-6 .mosaic-fallback {
    animation: kb-pan-d 13s ease-in-out infinite alternate;
}

/* Overlay — darker than before so text pops over busy mosaic */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.58) 0%,
            rgba(0, 0, 0, 0.38) 50%,
            rgba(0, 0, 0, 0.58) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 2;
}

/* Hero Content - Above overlay */
.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    color: #ffffff;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    font-family: var(--font-accent);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: inline-flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

/* ========== Buttons — warm umber, no bounce ========== */
.btn {
    display: inline-block;
    padding: 0.85rem var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background var(--transition-base),
                color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

.btn-primary {
    background: var(--color-text-primary);
    color: var(--color-text-inverse);
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--color-accent);
    color: var(--color-text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 25, 23, 0.18);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-inverse);
    border: 1px solid rgba(249, 247, 244, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(249, 247, 244, 0.15);
    border-color: rgba(249, 247, 244, 0.8);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}


/* ========== Work Gallery Sections ========== */
.gallery-section {
    padding: var(--space-xl) var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery section — full-screen snap */
#gallery {
    height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
}

#gallery .section-header {
    margin-bottom: var(--space-sm);
    padding: 0 var(--space-md);
}

#gallery .section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

#gallery .section-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}


/* ========== Section titles — serif ========== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.7;
}

.section-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* 瀑布流容器 */
.masonry-grid {
    column-count: 3;
    column-gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 2px 12px rgba(26, 25, 23, 0.05);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
    cursor: pointer;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(26, 25, 23, 0.10);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.9);
    transition: filter var(--transition-slow), transform var(--transition-slow);
}

.masonry-item:hover img {
    filter: saturate(1);
    transform: scale(1.03);
}

.masonry-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.masonry-item:hover .masonry-item-overlay {
    opacity: 1;
}

.masonry-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.masonry-item-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== Infinite Loop Art Gallery Slider ========== */
.infinite-gallery-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: var(--space-sm) 0;
    margin: 0;
    flex-shrink: 0;
}

/* Gradient vignette on left/right edges — natural soft boundary */
.infinite-gallery-wrapper::before,
.infinite-gallery-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    /* Width = gap between center slide and screen edge, with 8px safety inset */
    width: calc((100vw - clamp(400px, calc(88vw - 100px), 1300px)) / 2 - 8px);
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.infinite-gallery-wrapper::before {
    left: 0;
    background: linear-gradient(to right,
            var(--color-bg-primary) 0%,
            rgba(253, 253, 253, 0.6) 60%,
            transparent 100%);
}

.infinite-gallery-wrapper::after {
    right: 0;
    background: linear-gradient(to left,
            var(--color-bg-primary) 0%,
            rgba(253, 253, 253, 0.6) 60%,
            transparent 100%);
}


.infinite-gallery-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}


.slider-viewport {
    position: relative;
    overflow: visible;
    width: 100%;
    border-radius: var(--radius-lg);
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slider-track.no-transition {
    transition: none;
}

.slider-slide {
    flex: 0 0 auto;
    width: clamp(400px, calc(88vw - 100px), 1300px);
    margin: 0 12px;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.75;
    /* bright enough to see content */
    filter: brightness(0.62) saturate(0.7);
    cursor: pointer;
}


/* Center slide (active) visual prominence */
.slider-slide.active {
    transform: scale(1.04) !important;
    z-index: 10;
    opacity: 1 !important;
    filter: brightness(1) !important;
    cursor: default;
}


.slide-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 1080;
    height: auto;
    max-height: calc(100vh - 170px);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 24px rgba(26, 25, 23, 0.07);
    transition: box-shadow var(--transition-base);
}


/* Active center slide: breathing glow border animation */
@keyframes breath-glow {

    0%,
    100% {
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.25);
    }

    50% {
        box-shadow: 0 32px 100px rgba(0, 0, 0, 0.4),
            0 0 70px rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

.slider-slide.active .slide-card {
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: breath-glow 3.5s ease-in-out infinite;
}


/* Side slides: brighten a little more on hover to signal clickability */
.slider-slide:not(.active):hover {
    opacity: 0.92 !important;
    filter: brightness(0.82) saturate(0.9) !important;
}


.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-slow);
    display: block;
}

/* Subtle zoom on hover only for the active slide */
.slider-slide.active .slide-card:hover .slide-image {
    transform: scale(1.04);
}


/* Glassmorphism overlay for text */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    transform: translateY(0);
    transition: transform var(--transition-base);
}

.slide-card:hover .slide-overlay {
    transform: translateY(0);
}

.slide-title {
    font-family: var(--font-gallery);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.slide-artist {
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navigation buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--color-text-primary);
    font-size: 1.5rem;
    user-select: none;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav-prev {
    left: var(--space-md);
}

.slider-nav-next {
    right: var(--space-md);
}

/* Progress indicators (optional dots) */
.slider-progress {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    opacity: 0.3;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.progress-dot.active {
    opacity: 1;
    background: var(--color-accent);
    transform: scale(1.3);
}

/* Lazy loading placeholder */
.slide-image[data-src] {
    background: linear-gradient(135deg,
            var(--color-bg-secondary) 0%,
            var(--color-bg-primary) 100%);
}

.slide-image.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Touch feedback for mobile */
.slider-viewport.dragging {
    cursor: grabbing;
}

.slider-viewport.dragging .slider-track {
    transition: none;
}


/* ========== ASMR 播放器容器 ========== */
#asmr-player-container {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: 0 8px 40px var(--glass-shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
    pointer-events: none;
    z-index: 999;
}

#asmr-player-container.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.player-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.player-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.player-close:hover {
    color: var(--color-text-primary);
}

/* ========== Footer — dark institutional ========== */
.footer {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-dark);
    border-top: none;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-text {
    font-family: var(--font-sans);
    color: rgba(249, 247, 244, 0.45);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.footer-location {
    font-family: var(--font-sans);
    color: rgba(249, 247, 244, 0.3);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

/* ========== 动画系统 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 通用淡入类 */
.fade-in {
    animation: fadeIn var(--transition-slow) ease-out;
}

.fade-in-up {
    animation: fadeInUp var(--transition-slow) ease-out;
}

/* ========== 响应式设计 (Mobile-First) ========== */

/* 平板电脑及以下 */
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }

    .navbar-menu {
        gap: var(--space-sm);
    }

    /* Infinite Gallery - Tablet: center slide ~80vw */
    .slider-slide {
        width: clamp(300px, 80vw, 700px);
    }

    .slide-card {
        height: min(60vh, 600px);
    }

}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-xl:  4rem;
        --space-2xl: 6rem;
    }

    .navbar {
        padding: var(--space-sm);
    }

    .navbar-menu {
        display: none;
    }

    .hero {
        padding: var(--space-xl) var(--space-sm);
    }

    .masonry-grid {
        column-count: 1;
        column-gap: var(--space-sm);
    }

    .masonry-item {
        margin-bottom: var(--space-sm);
    }

    #asmr-player-container {
        width: calc(100% - var(--space-md) * 2);
        left: var(--space-sm);
        right: var(--space-sm);
        bottom: var(--space-sm);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .slider-slide {
        width: clamp(280px, 88vw, 480px);
        margin: 0 8px;
    }

    .slide-card {
        height: min(55vh, 500px);
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-artist {
        font-size: 0.95rem;
    }

    .slider-nav {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .slider-nav-prev {
        left: var(--space-xs);
    }

    .slider-nav-next {
        right: var(--space-xs);
    }
}

/* 小手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* ========== 辅助工具类 ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section {
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border-light);
}

.about-body {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.about-para {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin-bottom: 1.75rem;
}

.about-para em {
    font-style: normal;
    color: var(--color-text-primary);
    font-weight: 500;
}

.about-para--closing {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
}

.contact-body {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.contact-details {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 1.25rem;
}

.contact-key {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
}

.contact-val {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-align: left;
}

.contact-link {
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1px;
    transition: color var(--transition-base), border-color var(--transition-base);
}

.contact-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* =====================================================
   SECTION TRANSITION — seamless Hero → Directory
   A thin ornamental rule between major sections
   ===================================================== */
#legacy-directory {
    border-top: 1px solid var(--color-border-light);
}

/* About and Contact alternate background for visual rhythm */
#about  { background: var(--color-bg-primary); }
#contact { background: var(--color-bg-secondary); }

/* =====================================================
   HERO SUBTITLE / DESCRIPTION — align with serif system
   ===================================================== */
.hero-title {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-weight: 300;
    font-style: italic;
}

.slide-title {
    font-family: var(--font-serif);
}

/* Slide-nav buttons — muted on alabaster bg */
.slider-nav {
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.slider-nav:hover {
    background: var(--color-surface);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 16px rgba(26, 25, 23, 0.10);
}
/* ========== 手机端首屏文字精简 ========== */
.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}
