/* ===== Self-hosted FangSong Web Font ===== */
@font-face {
    font-family: 'FangsongWeb';
    src: url('../fonts/Fangsong-Regular.subset.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
    --bg-primary: #faf8f4;
    --bg-secondary: #f4f1eb;
    --bg-tertiary: #ede9e1;
    --text-primary: #3a3a3a;
    --text-secondary: #666666;
    --text-muted: #8f8f8f;
    --accent: #343434;
    --accent-hover: #2a2a2a;
    --border-color: rgba(0, 0, 0, 0.08);
    --transition: 0.3s ease;
    --font-zh: 'FangsongWeb', 'STFangsong', '华文仿宋', 'FangSong', serif;
    --font-en: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    --font-sans: var(--font-zh);
    
    /* Scroll easing - �Ա�ο�վ������� */
    --scroll-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    /* ƽ������ - �Ա�ο�վ */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-zh);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.5;
    font-size: 18px;
    letter-spacing: 0.5px;
    overflow-x: hidden;
    /* ����ƽ������ */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.en {
    font-family: var(--font-en);
    font-weight: 300;
    letter-spacing: 0.02em;
}

body,
p,
span,
a,
button,
h1,
h2,
h3,
h4,
.nav-link,
.logo-zh,
.section-header h2,
.section-title,
.section-subtitle,
.gallery-hero h1,
.exhibition-hero-content h1 {
    font-family: var(--font-zh);
}

body.en,
body.en p,
body.en span,
body.en a,
body.en button,
body.en h1,
body.en h2,
body.en h3,
body.en h4,
body.en .logo-zh,
body.en .nav-link {
    font-family: var(--font-en);
    font-weight: 400;
    letter-spacing: 0.02em;
}

body.en h1,
body.en h2,
body.en h3 {
    font-weight: 300;
}

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

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== GPU Acceleration ===== */
.hero-banner,
.hero-overlay,
.hero-content,
.scroll-indicator,
.fade-up-element,
.exhibition-row,
.gallery-category-card,
.section-header {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.3;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color var(--transition);
}
.nav.nav-hidden { display: none; }

.nav-container {
    max-width: none;
    margin: 0;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-zh {
    font-family: var(--font-zh);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #3c3c3c;
}

body.en .logo-zh {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #3c3c3c;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.mobile-detail-nav {
    display: none;
}

.nav-link {
    font-family: var(--font-zh);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #474747;
    position: relative;
    padding: 0.5rem 0;
}

body.en .nav-link {
    font-family: var(--font-en);
    font-weight: 400;
    font-size: 17px;
    letter-spacing: 0.04em;
    color: #474747;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

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

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

/* Desktop Dropdown */
.nav-link.has-dropdown {
    position: relative;
    cursor: pointer;
    overflow: visible !important;
}
.nav-link.has-dropdown .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    min-width: 130px;
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1001;
}
.nav-link.has-dropdown.dropdown-open .nav-dropdown,
.nav-link.has-dropdown:hover .nav-dropdown,
.nav-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
    display: block;
    padding: 0.5rem 1.2rem;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #474747;
    white-space: nowrap;
    transition: color 0.25s ease;
    background: transparent;
    text-align: center;
}

body.en .nav-dropdown a {
    font-family: var(--font-en);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: #474747;
}
.nav-dropdown a:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    order: 1;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0 !important;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #faf8f4;
        backdrop-filter: none;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: none;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        border: none;
        box-shadow: none;
    }
    
    .nav-links .nav-link {
        padding: 1rem 2rem;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: #474747;
        text-align: center;
    }
    .nav-links .nav-link:not(.has-dropdown)::before { content: '·'; }
    .nav-links .nav-link:not(.has-dropdown)::after {
        content: '·';
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        left: auto;
        transform: none;
    }
    .nav-links .has-dropdown > span {
        display: block;
        padding: 1rem 2rem 0 2rem;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: #474747;
        text-align: center;
    }
    .nav-links .has-dropdown > span::before { content: '·'; }
    .nav-links .has-dropdown > span::after { content: '·'; }
    .nav-links .nav-dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
        overflow: visible;
        transform: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 0 0.25rem 0;
        box-shadow: none !important;
        pointer-events: auto !important;
    }
    .nav-links .nav-dropdown a {
        display: block;
        padding: 0.6rem 2rem;
        text-align: center;
        font-size: 18px;
        color: #474747;
        font-weight: 400;
        letter-spacing: 0.08em;
    }

    body.en .nav-links .nav-link {
        font-family: var(--font-en);
        font-weight: 400;
    }
    body.en .nav-links .has-dropdown > span {
        font-family: var(--font-en);
        font-weight: 400;
    }

    .mobile-detail-nav {
        display: block;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        max-height: calc(100vh - 260px);
        overflow-y: auto;
    }

    .mobile-detail-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-detail-nav a {
        display: block;
        padding: 0.65rem 2rem;
        color: var(--text-secondary);
        font-family: var(--font-sans);
        font-size: 0.9rem;
        text-align: center;
    }

    .mobile-detail-nav a.active,
    .mobile-detail-nav a:hover {
        color: var(--text-primary);
        background: var(--bg-tertiary);
    }
}

.lang-toggle {
    order: 2;
    background: transparent;
    border: 1px solid var(--border-color);
    color: #474747;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

body.en .lang-zh { display: none; }
body:not(.en) .lang-en { display: none; }

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    position: relative;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    /* ���Ե���Ч�� - ���� opacity */
    opacity: 1;
    transition: opacity 0.1s linear;
    pointer-events: none;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(248, 246, 241, 0.05) 0%, rgba(248, 246, 241, 0.1) 60%, rgba(248, 246, 241, 0.45) 100%);
    z-index: 2;
    opacity: 1;
    transition: opacity 0.1s linear;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 6rem 2rem 8rem;
    text-align: center;
    display: none;
}

.hero-title {
    display: none;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-intro {
    display: none;
}

.hero-image {
    display: none;
}

.scroll-indicator {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 0, 0, 0.7);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid rgba(255, 255, 255, 0.95);
    transform: rotate(45deg);
    margin: 0.6rem auto 0;
    animation: scrollBounce 2s infinite;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ===== Fade Up Animation System ===== */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--scroll-ease),
                transform 0.8s var(--scroll-ease);
}

.fade-up-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.fade-up-element[data-delay="1"] { transition-delay: 0.1s; }
.fade-up-element[data-delay="2"] { transition-delay: 0.2s; }
.fade-up-element[data-delay="3"] { transition-delay: 0.3s; }
.fade-up-element[data-delay="4"] { transition-delay: 0.4s; }
.fade-up-element[data-delay="5"] { transition-delay: 0.5s; }
.fade-up-element[data-delay="6"] { transition-delay: 0.6s; }
.fade-up-element[data-delay="7"] { transition-delay: 0.7s; }

/* ===== Section Styles ===== */
section {
    position: relative;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5.5rem;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-divider {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

/* ===== Exhibitions Section - 与作品页统一设计 ===== */
.exhibitions {
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
    padding-top: 8rem;
}

.exhibitions .section-header h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.exhibitions .section-divider {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
}

.exhibitions > * {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.exhibitions-home-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.exhibition-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: all var(--transition);
    cursor: pointer;
}

.exhibition-row:hover {
    padding-left: 1rem;
    background: rgba(240, 237, 230, 0.5);
    margin: 0 -1rem;
    padding-right: 1rem;
}

.exhibition-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exhibition-year {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.exhibition-info h3 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
}

.exhibition-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.exhibition-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.exhibition-thumbnails img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: all var(--transition);
    filter: grayscale(20%);
}

.exhibition-row:hover .exhibition-thumbnails img {
    filter: grayscale(0%);
}

.exhibition-thumbnails img:hover {
    transform: scale(1.05);
}

/* ===== Gallery Section ===== */
.work .section-header h2 {
    font-size: 1.2rem;
}

.work .section-divider {
    font-size: 0.6rem;
}

.work {
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.gallery-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 940px !important;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-category-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    transition: all var(--transition);
}

.gallery-category-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gallery-category-card .category-image {
    aspect-ratio: 4/5;
    overflow: hidden;
}

.gallery-category-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-category-card:hover .category-image img {
    transform: scale(1.05);
}

.gallery-category-card .category-info {
    padding: 1.5rem;
    text-align: center;
}

.gallery-category-card .category-info h3 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.gallery-category-card .category-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== About Section ===== */
.about .section-header h2 {
    font-size: 1.2rem;
}

.about .section-divider {
    font-size: 0.6rem;
}

.about {
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

.about-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    position: relative;
}

.about-image {
    position: relative;
    flex-shrink: 0;
    width: 45%;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
}

.about-text {
    flex: 1;
    padding-top: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.about-text-inner {
    flex: 1;
}

.about-more-wrapper {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.about-text p {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.65;
    text-align: justify;
    font-size: 0.8rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-expanded {
    margin-top: 0.6rem;
}

.about-expanded p {
    margin-bottom: 0.6rem;
}

.about-bio p.about-cv-row,
.about-expanded p.about-cv-row {
    display: grid;
    grid-template-columns: 3.15rem minmax(0, 1fr);
    gap: 0.35rem;
    margin: 0 !important;
    padding: 0.38rem 0 0.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.11);
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5 !important;
    letter-spacing: 0.02em;
    text-align: left;
}

.about-bio p:not(.about-cv-row) + p.about-cv-row {
    border-top: none;
}

.about-year {
    color: var(--text-primary);
    font-weight: 550;
    letter-spacing: 0.04em;
}

.about-entry {
    color: var(--text-secondary);
}

.about-bio p:not(.about-cv-row) {
    margin: 0 0 0.65rem !important;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 0.08em;
    line-height: 1.45 !important;
    text-align: left;
}

.about-more-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
}

.about-more-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.home-more-btn,
.about-more-btn,
.description-toggle,
.back-link,
.back-btn,
.exhibition-enter-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.28rem !important;
    width: auto !important;
    min-height: auto !important;
    padding: 0.12rem 0 0.18rem !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(58, 58, 58, 0.34) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
    font-family: var(--font-sans) !important;
    font-size: 0.82rem !important;
    font-weight: 430 !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease !important;
}

.home-more-btn:hover,
.about-more-btn:hover,
.description-toggle:hover,
.back-link:hover,
.back-btn:hover,
.exhibition-enter-btn:hover {
    border-color: var(--text-primary) !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    transform: none !important;
}

.home-more-btn::after,
.about-more-btn::after,
.description-toggle::after,
.back-link::after,
.back-btn::after,
.exhibition-enter-btn::after {
    display: none !important;
}

.lang-toggle {
    border-radius: 0;
    background: transparent;
    border-color: rgba(58, 58, 58, 0.2);
}

/* ===== Contact Section ===== */
.contact .section-header h2 {
    font-size: 1.2rem;
}

.contact .section-divider {
    font-size: 0.6rem;
}

.contact {
    text-align: center;
    padding-bottom: 4rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    margin-bottom: 2rem;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.contact-text a {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

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

.contact-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 0;
    background: var(--bg-secondary, #f4f1eb);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    transition: opacity var(--transition);
}

.footer-social-icons a:hover {
    opacity: 0.7;
}

.footer-social-icons img {
    height: 21px;
    width: auto;
}

/* ===== Gallery Page Styles ===== */
.gallery-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
    background: var(--bg-primary);
}

.gallery-hero h1 {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.gallery-hero .breadcrumb {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.gallery-hero .breadcrumb a {
    color: var(--text-secondary);
}

.gallery-hero .breadcrumb a:hover {
    color: var(--accent);
}

.gallery-hero .exhibition-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.gallery-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Exhibition Hero Banner ===== */
.exhibition-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.exhibition-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.exhibition-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.exhibition-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(248, 246, 241, 0) 0%, 
        rgba(248, 246, 241, 0) 30%,
        rgba(248, 246, 241, 0.7) 60%,
        rgba(248, 246, 241, 0.98) 100%);
    z-index: 2;
}

.exhibition-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 2rem 6rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.exhibition-hero-content .breadcrumb {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.exhibition-hero-content .breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition);
}

.exhibition-hero-content .breadcrumb a:hover {
    color: var(--accent);
}

.exhibition-hero-content h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Long English title - allow wrapping and center */
.exhibition-hero-content h1.title-center-en {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.exhibition-hero-content .exhibition-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.exhibition-hero-content .exhibition-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
}

.exhibition-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.exhibition-scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    margin: 0.75rem auto 0;
}

/* ===== Exhibition Introduction ===== */
.exhibition-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.exhibition-intro h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.exhibition-intro .intro-content {
    position: relative;
}

.exhibition-intro .intro-text {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.exhibition-intro .intro-text.collapsed {
    max-height: 6em; /* �������� */
}

.exhibition-intro .intro-text:not(.collapsed) {
    max-height: 2000px;
}

.exhibition-intro .intro-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(to bottom, transparent, var(--bg-primary, #faf8f4));
}

.exhibition-intro p {
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.exhibition-intro p:last-child {
    margin-bottom: 0;
}

.exhibition-intro .author {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ���ఴť��ʽ */
.description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-zh);
    font-size: 14px;
    color: #8B5E3C;
    background: transparent;
    border: 1px solid #8B5E3C;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.description-toggle:hover {
    background: #8B5E3C;
    color: #fff;
}

.description-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.description-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* ===== Exhibition Detail Page ===== */
.exhibition-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

/* ������� */
.exhibition-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.category-section {
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.category-section:first-child {
    border-top: none;
    padding-top: 0;
}

.category-header {
    margin-bottom: 2rem;
}

.category-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 图集卡片 - 主图+缩略图 */
.album-card {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
    background: var(--bg-secondary);
    /* 移除边框 */
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    /* 移除 align-items: stretch，让每列根据自身内容决定高度 */
}

.album-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.album-main {
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: stretch;
    /* 主图比例 6:5 */
    aspect-ratio: 6 / 5;
}

.album-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

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

.album-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    /* 移除 padding，消除边框视觉效果 */
    background: var(--bg-tertiary);
}

.album-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(20%);
    transition: filter var(--transition), transform 0.6s ease;
    /* 确保缩略图是正方形 */
    aspect-ratio: 1;
}

.album-card:hover .album-thumbnails img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ===== Exhibition Gallery Masonry Layout ===== */
.exhibition-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.gallery-masonry .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.gallery-masonry .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
    filter: grayscale(10%);
}

.gallery-masonry .gallery-item:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* ��ͼ - ��ߴ� */
.gallery-masonry .gallery-item.featured {
    grid-column: span 8;
    grid-row: span 2;
    aspect-ratio: 16/10;
}

/* �еȳߴ�ͼƬ */
.gallery-masonry .gallery-item.medium {
    grid-column: span 4;
    aspect-ratio: 4/3;
}

/* С�ߴ�ͼƬ */
.gallery-masonry .gallery-item.small {
    grid-column: span 3;
    aspect-ratio: 1;
}

/* ����ͼƬ */
.gallery-masonry .gallery-item.wide {
    grid-column: span 6;
    aspect-ratio: 3/2;
}

/* ����ͼƬ */
.gallery-masonry .gallery-item.tall {
    grid-column: span 4;
    grid-row: span 2;
    aspect-ratio: 2/3;
}

/* ���沼���� */
.gallery-masonry .gallery-item.offset-right {
    grid-column: span 4;
    grid-column-start: 9;
}

.gallery-masonry .gallery-item.offset-left {
    grid-column-start: 1;
}

/* Gallery Grid (ԭ����ʽ����) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    padding: 0 2rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Portrait orientation for gallery items */
.gallery-item.portrait {
    aspect-ratio: 3/4;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-flip-hint {
    color: rgba(200, 200, 200, 0.7);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    pointer-events: none;
    white-space: nowrap;
    margin-top: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: #f5f5f5;
    cursor: pointer;
    transition: color var(--transition);
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* .lightbox-title {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    text-align: center;
    letter-spacing: 0.05em;
} */

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-nav svg {
    width: 20px;
    height: 20px;
    fill: #f5f5f5;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #a0a0a0;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* Gallery Section Title - Smaller */
.gallery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

.gallery-section .section-year {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Tears of Nv Wa - Full Screen Display */
.tears-of-nv-wa-section {
    padding: 0;
    margin-bottom: 3rem;
}

.tears-of-nv-wa-section .section-year {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tears-of-nv-wa-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.tears-of-nv-wa-grid .gallery-item {
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
}

.tears-of-nv-wa-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tears-of-nv-wa-grid .gallery-item:hover img {
    transform: scale(1.05);
}

/* 64 Gua Page Styles */
.gua-page {
    min-height: 100vh;
    padding-top: 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gua-page .gallery-hero {
    background: rgba(248, 246, 241, 0.9);
    padding: 4rem 2rem 2rem;
}

.gua-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gua-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.gua-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.gua-card.flipped .gua-card-inner {
    transform: rotateY(180deg);
}

.gua-card-front,
.gua-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.gua-card-back {
    transform: rotateY(180deg);
    background: rgba(248, 246, 241, 0.95);
}

.gua-card-front img,
.gua-card-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

/* 7UP Page Styles */
.sevenup-hero {
    text-align: center;
    padding: 6rem 2rem 3rem;
    background: var(--bg-secondary);
}

.sevenup-hero-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.sevenup-hero-images img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

.sevenup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sevenup-grid .gallery-item {
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
}

.sevenup-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sevenup-grid .gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .gua-grid,
    .sevenup-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tears-of-nv-wa-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gua-grid,
    .sevenup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tears-of-nv-wa-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .sevenup-hero-images {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .sevenup-hero-images img {
        max-height: 150px;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-grid-three {
        grid-template-columns: 1fr;
    }
    
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
        max-width: 600px;
    }
    
    .about-image {
        width: 100%;
    }
    
    .about-more-wrapper {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }
    
    .album-card {
        grid-template-columns: 1fr;
    }
    
    .album-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-masonry {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
    
    .gallery-masonry .gallery-item.featured {
        grid-column: span 6;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }
    
    .gallery-masonry .gallery-item.medium {
        grid-column: span 3;
    }
    
    .gallery-masonry .gallery-item.small {
        grid-column: span 2;
    }
    
    .gallery-masonry .gallery-item.wide {
        grid-column: span 6;
    }
    
    .gallery-masonry .gallery-item.tall {
        grid-column: span 3;
        grid-row: span 2;
    }
    
    .exhibition-row,
    .exhibitions-home-list .exhibition-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exhibition-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1.2rem 1rem;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .hero-content {
        padding: 4rem 1rem 6rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .series-grid {
        grid-template-columns: 1fr;
    }
    
    .exhibition-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .gallery-masonry .gallery-item.featured,
    .gallery-masonry .gallery-item.medium,
    .gallery-masonry .gallery-item.small,
    .gallery-masonry .gallery-item.wide,
    .gallery-masonry .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 4/3;
    }
    
    .exhibition-row,
    .exhibitions-home-list .exhibition-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exhibition-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exhibition-thumbnails img {
        height: 100px;
    }
    
    .exhibition-thumbnails .object-right {
        object-position: right center;
    }
    
    .exhibition-thumbnails .object-right-80 {
        object-position: 20% center;
    }
    
    .exhibition-thumbnails .object-left {
        object-position: 25% center;
    }
    
    .exhibition-thumbnails .object-pos-30 {
        object-position: 30% center;
    }
    
    .exhibition-thumbnails .object-pos-70 {
        object-position: 70% center;
    }
    
    .gallery-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-categories .series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-categories .series-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
        max-width: 600px;
    }
    
    .about-image {
        width: 100%;
    }
    
    .about-more-wrapper {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }
}

/* ===== Exhibition Preview Section ===== */
.exhibitions-preview-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.exhibition-preview {
    margin-bottom: 4rem;
}

.exhibition-preview:last-child {
    margin-bottom: 0;
}

.exhibition-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

/* ===== Exhibitions List Section (Horizontal) ===== */
.exhibitions-list-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.exhibition-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: all var(--transition);
    cursor: pointer;
}

.exhibition-row:hover {
    padding-left: 1rem;
    background: var(--bg-secondary);
    margin: 0 -1rem;
    padding-right: 1rem;
}

.exhibition-row .exhibition-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exhibition-row .exhibition-year {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.exhibition-row h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

.exhibition-row .exhibition-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.exhibition-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.exhibition-thumbnails img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: all var(--transition);
    filter: grayscale(20%);
}

.exhibition-row:hover .exhibition-thumbnails img {
    filter: grayscale(0%);
}

.exhibition-thumbnails img:hover {
    transform: scale(1.05);
}

/* ===== Gallery Categories (Centered) ===== */
.gallery-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.gallery-categories .category-section {
    margin-bottom: 5rem;
}

.gallery-categories .category-section:last-child {
    margin-bottom: 0;
}

.gallery-categories .series-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.gallery-categories .category-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.gallery-categories .series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-categories .series-grid:last-child {
    margin-bottom: 0;
}

/* 6�в��� - �������鷨 */
.gallery-categories .series-grid-6col {
    grid-template-columns: repeat(6, 1fr);
}

/* 5�в��� - �־� */
.gallery-categories .series-grid-5col {
    grid-template-columns: repeat(5, 1fr);
}

/* Series Card - ��С�ߴ磬����߼��� */
.series-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.series-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 42, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.series-card:hover .series-overlay {
    opacity: 1;
}

.series-overlay span {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #f5f5f5;
    font-weight: 300;
}

/* Design section 1x4 grid - aligned with other categories' container width */
.gallery-categories .series-grid-4col {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Gallery Series Section (��ͼ+��ͼ����) ===== */
.gallery-series-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.series-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.series-header:first-child {
    border-top: none;
    padding-top: 0;
}

.series-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.series-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.series-main-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
}

.series-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.series-main-image:hover img {
    transform: scale(1.03);
}

.series-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.series-thumbnails .gallery-item {
    aspect-ratio: 1;
}

.series-thumbnails .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .series-layout {
        grid-template-columns: 1fr;
    }
    
    .series-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .series-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== Design Entry Section ===== */
.design-entry-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.design-entry-link {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.design-entry-link:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.design-entry-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 2rem;
}

.design-entry-image img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.design-entry-link:hover .design-entry-image img {
    transform: scale(1.05);
}

.design-entry-info {
    padding: 2rem;
    text-align: center;
}

.design-entry-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.design-entry-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Ice Painting Page Styles ===== */
.ice-painting-page {
    display: flex;
    min-height: 100vh;
    padding-top: 60px;
}

/* Side Navigation - Collapsible Style */
.detail-nav-wrapper {
    position: fixed;
    left: 0;
    top: 60px;
    width: 228px; /* 200px nav + 28px toggle */
    height: calc(100vh - 60px);
    z-index: 100;
    display: flex;
    align-items: stretch;
}

.detail-nav-toggle {
    width: 28px;
    background: var(--bg-secondary);
    border: none;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.detail-nav-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.detail-nav-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

/* Collapsed state - nav hidden, toggle visible */
.detail-nav-wrapper.collapsed {
    width: 28px;
}

.detail-nav-wrapper.collapsed .ice-painting-nav {
    width: 0;
    padding: 0;
    overflow: hidden;
    border-right: none;
}

.detail-nav-wrapper.collapsed .detail-nav-toggle svg {
    transform: rotate(180deg);
}

/* Nav content wrapper - holds nav width */
.detail-nav-content {
    width: var(--nav-width, 200px);
    overflow: hidden;
    transition: width 0.3s ease, padding 0.3s ease;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Ice Painting Navigation - simplified, clean */
.ice-painting-nav {
    width: 200px;
    height: 100%;
    background: var(--bg-secondary);
    padding: 1.5rem 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 94, 60, 0.2) transparent;
    flex-shrink: 0;
}

.ice-painting-nav::-webkit-scrollbar {
    width: 4px;
}

.ice-painting-nav::-webkit-scrollbar-thumb {
    background: rgba(139, 94, 60, 0.2);
    border-radius: 2px;
}

.ice-painting-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ice-painting-nav li {
    margin: 0;
}

.ice-painting-nav a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-zh);
    transition: all 0.25s ease;
    border-left: 2px solid transparent;
    white-space: nowrap;
}

.ice-painting-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-left-color: var(--accent);
}

.ice-painting-nav a.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-left-color: var(--accent);
    font-weight: 500;
}

.ice-painting-nav .nav-subitem a::before,
.ice-painting-nav > ul > li > ul > li > a::before {
    content: '・';
    margin-right: 0.3rem;
}

.ice-painting-nav .nav-subitem a,
.ice-painting-nav .nav-sublink {
    padding-left: 2.5rem;
    font-size: 0.85rem;
}

.ice-painting-nav .sub-icon {
    margin-right: 0.5rem;
    color: var(--text-muted);
}

.ice-painting-content {
    margin-left: 228px; /* 200px nav + 28px toggle */
    flex: 1;
    padding: 2rem 3rem;
    padding-top: calc(60px + 2rem);
    transition: margin-left 0.3s ease, padding 0.3s ease;
    max-width: calc(100% - 228px);
}

/* Content expands when nav is collapsed */
.detail-nav-wrapper.collapsed ~ .ice-painting-content,
.detail-nav-wrapper.collapsed + .ice-painting-content {
    margin-left: 28px;
    max-width: calc(100% - 28px);
}

/* Series Section */
.series-section {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.series-section:first-child {
    padding-top: 0;
}

.section-title {
    font-family: var(--font-zh);
    font-size: 16px;
    font-weight: 430;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Series Description */
.series-description-long {
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.series-description-long p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: justify;
    font-size: 0.8rem;
}

.series-description-long .author-sig {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Full Width Image */
.full-width-image {
    margin-bottom: 2rem;
}

.full-width-image .gallery-item {
    cursor: pointer;
}

.full-width-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Video Container */
.video-container {
    margin: 2rem 0;
    max-width: 100%;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

/* NG Subsection */
.ng-subsection {
    padding-top: 1rem;
    margin-top: 1rem;
}

.ng-preview {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.ng-preview-left {
    flex: 1;
}

.ng-preview-images {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ng-preview-images .gallery-item {
    flex: 1;
    min-width: 150px;
    max-width: 300px;
    cursor: pointer;
}

.ng-preview-images .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ng-preview-right {
    width: 200px;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.preview-text-link {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

.preview-text-link:hover {
    color: var(--accent-hover);
}

/* Grid Single Row - Horizontal Scroll */
.grid-single-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow: visible;
    padding-bottom: 0;
    scroll-behavior: smooth;
    justify-content: flex-start;
    align-items: flex-end;
}

.grid-single-row::-webkit-scrollbar {
    height: 6px;
}

.grid-single-row::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.grid-single-row::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.grid-single-row::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.grid-single-row .gallery-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    cursor: pointer;
}

.grid-single-row .gallery-item img {
    width: 100%;
    height: auto;
    max-height: 280px;
    aspect-ratio: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.grid-single-row .gallery-item:hover img {
    transform: scale(1.03);
}

/* Butterfly Grid - 2 columns, 6 images */
.grid-butterfly {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
}

.grid-butterfly .gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.grid-butterfly .gallery-item img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.grid-butterfly .gallery-item:hover img {
    transform: scale(1.03);
}

/* 2X5m & 3X10m Grid - 2 columns side by side, yin/yang vertical */
.grid-2x5m {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
}

.pair-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pair-vertical .gallery-item {
    cursor: pointer;
}

.pair-vertical .gallery-item img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.pair-vertical .gallery-item:hover img {
    transform: scale(1.02);
}

/* Gourd Grid - 5 images, compact */
.grid-gourd {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
}

.grid-gourd .gallery-item {
    cursor: pointer;
}

.grid-gourd .gallery-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.grid-gourd .gallery-item:hover img {
    transform: scale(1.03);
}

/* Irregular Grid - 8 images, compact */
.grid-irregular {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
}

.grid-irregular .gallery-item {
    cursor: pointer;
}

.grid-irregular .gallery-item img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.grid-irregular .gallery-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08), 0 3px 12px rgba(0, 0, 0, 0.05);
}

/* Grid 2x3 */
.grid-2x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.grid-2x3 .gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.grid-2x3 .gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.grid-2x3 .gallery-item:hover img {
    transform: scale(1.05);
}

/* Grid 2 Columns */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
}

.grid-2-col .gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.grid-2-col .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.grid-2-col .gallery-item:hover img {
    transform: scale(1.02);
}

/* Grid Pair 2 Columns - for 2x5m and 3x10m */
.grid-pair-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pair-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pair-column .gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.pair-column .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.pair-column .gallery-item:hover img {
    transform: scale(1.02);
}

/* Grid Gourd Wrapper */
.grid-gourd-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.row-4 .gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.row-4 .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.row-4 .gallery-item:hover img {
    transform: scale(1.03);
}

.row-1-centered {
    display: flex;
    justify-content: center;
}

.row-1-centered .gallery-item {
    max-width: 300px;
    cursor: pointer;
}

.row-1-centered .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Grid 2x4 - Others series */
.grid-2x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
}

.grid-2x4 .gallery-item {
    cursor: pointer;
}

.grid-2x4 .gallery-item img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.grid-2x4 .gallery-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08), 0 3px 12px rgba(0, 0, 0, 0.05);
}

/* Language visibility - use !important to override inline styles */
body:not(.en) .lang-zh { display: block !important; }
body:not(.en) .lang-en { display: none !important; }
body.en .lang-zh { display: none !important; }
body.en .lang-en { display: block !important; }

/* Responsive for Detail Pages with Collapsible Nav */
@media (max-width: 1024px) {
    .detail-nav-content {
        width: 180px;
    }
    
    .ice-painting-nav {
        width: 180px;
    }
    
    .ice-painting-content {
        margin-left: 208px; /* 180px nav + 28px toggle */
        max-width: calc(100% - 208px);
        padding: 2rem;
    }
    
    .detail-nav-wrapper.collapsed ~ .ice-painting-content,
    .detail-nav-wrapper.collapsed + .ice-painting-content {
        margin-left: 28px;
        max-width: calc(100% - 28px);
    }
    
    .grid-2x3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2x4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .row-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-2x5m {
        gap: 1.5rem;
    }
    
    .grid-gourd {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-irregular {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-nav-wrapper {
        display: none;
    }
    
    .ice-painting-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1.5rem;
        overflow-x: hidden;
    }
    
    .ng-preview {
        flex-direction: column;
    }
    
    .ng-preview-right {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
    }
    
    .grid-2x5m {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-butterfly {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .grid-gourd {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-irregular {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-single-row .gallery-item img {
        max-height: 200px;
    }
    
    .grid-2x3,
    .grid-2x4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-pair-2col {
        grid-template-columns: 1fr;
    }
    
    .row-4 {
        grid-template-columns: repeat(2, fr);
    }
}

/* NG Detail Page Styles */
.detail-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

.detail-header {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

.detail-title {
    font-family: var(--font-zh);
    font-size: 2rem;
    font-weight: 430;
    margin-top: 1rem;
}

.detail-content {
    margin-top: 2rem;
}

.ng-section {
    margin-bottom: 3rem;
}

.ng-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.ng-description .lang-zh,
.ng-description .lang-en {
    margin-bottom: 1.5rem;
}

.ng-description p {
    font-size: 12.8px;
    color: var(--text-secondary);
    line-height: 2;
    text-align: justify;
    margin-bottom: 1rem;
}

.ng-description .author {
    text-align: right;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 1.5rem;
}

.ng-section-title {
    font-family: var(--font-zh);
    font-size: 18px;
    font-weight: 430;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Landscape grid - �����Ʒ */
.ng-landscape-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ng-landscape-grid .gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}

.ng-landscape-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ng-landscape-grid .gallery-item:hover img {
    transform: scale(1.02);
}

/* Portrait grid - ������Ʒ */
.ng-portrait-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ng-portrait-grid .gallery-item {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
}

.ng-portrait-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ng-portrait-grid .gallery-item:hover img {
    transform: scale(1.02);
}

@media (max-width: 1100px) {
    .ng-landscape-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ng-portrait-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-page {
        padding: 5rem 1.5rem 2rem;
    }
    
    .ng-landscape-grid,
    .ng-portrait-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .ng-landscape-grid,
    .ng-portrait-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Storyboard Detail Pages ===== */
.storyboard-full,
.storyboard-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.storyboard-full .gallery-item,
.storyboard-grid .gallery-item {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.storyboard-full .gallery-item img,
.storyboard-grid .gallery-item img {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    cursor: pointer;
}

@media (max-width: 768px) {
    .storyboard-full,
    .storyboard-grid {
        padding: 0 1rem;
        gap: 2rem;
    }

    .storyboard-full .gallery-item img,
    .storyboard-grid .gallery-item img {
        max-height: 50vh;
    }
}

/* ===== Ice Painting Gallery Components ===== */

/* Single Row Container - 横向滚动图片容器 */
.single-row-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
}

.single-row-container .gallery-item {
    flex: 0 0 auto;
    width: calc(25% - 0.75rem);
    min-width: 200px;
    max-width: 300px;
}

.single-row-container .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.single-row-container .gallery-item:hover img {
    transform: scale(1.03);
}

/* Series Remark - 系列备注 */
.series-remark {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.series-remark p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.series-remark p:last-child {
    margin-bottom: 0;
}

/* ===== Carousel Components ===== */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Carousel Arrow Buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(248, 246, 241, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text-secondary);
}

.carousel-arrow:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Carousel Thumbnail Strip */
.carousel-thumbnail-strip {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.carousel-thumb {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.carousel-thumb:hover,
.carousel-thumb.active {
    opacity: 1;
}

.carousel-thumb.active {
    border-color: var(--accent);
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Card */
.carousel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-card .card-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.carousel-card .card-image img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.duangehang-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 12px;
    font-family: var(--font-zh);
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-weight: 430;
}

.duangehang-caption > span[data-zh],
.duangehang-caption > span[data-en] {
    display: block;
}

/* 2017系列幻灯片底部尺寸标注 - 与名称标注字体统一 */
.carousel-slide-caption {
    font-size: 12px;
    font-family: var(--font-zh);
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-weight: 430;
}

.carousel-slide-caption .caption-size {
    font-weight: 430;
    color: inherit;
}

.carousel-card .card-caption {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 12px;
    font-family: var(--font-zh);
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-weight: 430;
}

.carousel-card .caption-size {
    font-weight: 430;
    color: inherit;
}

.carousel-card .caption-year {
    color: var(--accent);
}

.carousel-page-caption {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 短歌行 - 单行横向排列 */
.duangehang-full-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
}

.duangehang-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.duangehang-group-images {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.duangehang-group-images .gallery-item {
    position: relative;
    overflow: visible;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    padding: 0 0.25rem;
}

.duangehang-group-images .gallery-item img {
    width: auto;
    height: auto;
    max-height: 18vh;
    max-width: 80px;
    object-fit: contain;
    display: block;
}

.duangehang-group-images .gallery-item .duangehang-caption {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0.5rem;
    font-size: 12px;
    font-family: var(--font-zh);
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-weight: 430;
    height: auto;
    min-height: 1.4em;
}

.duangehang-group-images .gallery-item .duangehang-caption > span[data-zh] {
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1.4;
    align-self: flex-start;
}

.duangehang-group-caption {
    margin-top: 0.75rem;
    font-size: 12px;
    font-family: var(--font-zh);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
    letter-spacing: 0.04em;
    font-weight: 430;
}

.duangehang-hint {
    text-align: center;
    font-size: 12px;
    font-family: var(--font-zh);
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    font-weight: 430;
}

/* Butterfly Card - 蝴蝶形卡片 */
.carousel-butterfly .carousel-card .card-image img {
    max-height: 50vh;
}

/* Yin-Yang LR - 左右阴阳结构 */
.yin-yang-lr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.yin-yang-lr .card-image {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.yin-yang-lr .card-image img {
    max-height: 50vh;
    max-width: 45vw;
    object-fit: contain;
}

/* ===== Movie Series ===== */
.movie-container {
    max-width: 800px;
    margin: 0 auto;
}

.movie-pair {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.movie-img-wrap {
    flex: 1;
    max-width: 350px;
}

.movie-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.movie-caption {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Tears of Nv Wa Section ===== */
.tears-media-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tears-media-container .video-container {
    max-width: 900px;
    margin: 0 auto;
}

.tears-media-container .video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.tears-media-container .full-width-image {
    max-width: 900px;
    margin: 0 auto;
}

.tears-media-container .full-width-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tears-info {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===== Irregular Series ===== */
.irregular-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
}

.irregular-item img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.irregular-caption {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.irregular-item-pair {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.irregular-item-pair .irregular-item {
    max-width: 250px;
}

.irregular-caption-single {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Others Series ===== */
.others-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.others-card .card-image img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
}

.others-yin-yang .card-image {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.others-yin-yang .card-image img {
    max-height: 50vh;
    max-width: 45vw;
    object-fit: contain;
}

.others-page-caption {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Carousel Responsive ===== */
@media (max-width: 1024px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .yin-yang-lr .card-image img {
        max-width: 42vw;
    }
    
    .others-yin-yang .card-image img {
        max-width: 42vw;
    }
}

@media (max-width: 768px) {
    .single-row-container .gallery-item {
        width: calc(50% - 0.5rem);
        min-width: 150px;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
    }
    
    .carousel-prev {
        left: 0.5rem;
    }
    
    .carousel-next {
        right: 0.5rem;
    }
    
    /* 手机端轮播容器优化 */
    .carousel-slide.active {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .carousel-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .carousel-card .card-image {
        width: 100%;
        justify-content: center;
    }
    
    /* 2x5m、3x10m系列：上下阴阳对应布局 */
    .yin-yang-lr .card-image {
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    
    .yin-yang-lr .card-image img {
        width: 100%;
        max-width: 100%;
        max-height: 35vh;
        object-fit: contain;
    }

    .carousel-2x5m,
    .carousel-3x10m,
    .carousel-2x5m .carousel-main,
    .carousel-3x10m .carousel-main,
    .carousel-2x5m .carousel-wrapper,
    .carousel-3x10m .carousel-wrapper,
    .carousel-2x5m .carousel-slide,
    .carousel-3x10m .carousel-slide {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .carousel-2x5m .carousel-slide.active,
    .carousel-3x10m .carousel-slide.active {
        width: 100%;
        flex-wrap: nowrap;
    }
    
    .others-yin-yang .card-image {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .others-yin-yang .card-image img {
        width: 100%;
        max-width: 100%;
        max-height: 35vh;
        object-fit: contain;
    }
    
    /* 圆形系列：根据图片数量自适应 */
    .carousel-round .carousel-slide.active {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
    
    .carousel-round .carousel-card {
        flex: 0 0 auto;
        width: auto;
        max-width: 32%;
    }
    
    .carousel-round .carousel-card .card-image img {
        max-width: 100%;
        max-height: 30vh;
        object-fit: contain;
    }
    
    /* 电影生命系列：左右布局 */
    .movie-pair {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .movie-img-wrap {
        max-width: 48%;
    }
    
    .movie-img-wrap img {
        max-height: 30vh;
    }
    
    .irregular-item img {
        max-height: 250px;
    }
    
    .carousel-butterfly .carousel-card .card-image img {
        max-height: 40vh;
    }
    
    /* 修复第一个系列标题被导航栏遮挡 */
    .series-section:first-child {
        padding-top: 4.5rem;
    }
    
    .series-section:first-child .section-title {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .single-row-container .gallery-item {
        width: 100%;
        max-width: none;
    }
    
    .carousel-thumbnail-strip {
        justify-content: flex-start;
    }
    
    .carousel-thumb {
        width: 50px;
        height: 50px;
    }
}

/* Work Card Styles */
.work-card {
    display: block;
    text-decoration: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.work-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-content {
    padding: 1.5rem;
}

.work-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.work-card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

/* ===== Index Page Mobile Responsive ===== */
@media (max-width: 768px) {
    /* Hero section */
    .hero-banner {
        height: 100vh;
    }
    
    .scroll-indicator {
        bottom: 2rem;
        font-size: 0.75rem;
    }
    
    .scroll-arrow {
        width: 16px;
        height: 16px;
    }
    
    /* Exhibitions section */
    .exhibitions-home-list {
        padding: 0 1rem;
    }
    
    .exhibition-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .exhibition-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .exhibition-thumbnails img {
        height: 80px;
    }
    
    .exhibition-info {
        gap: 0.25rem;
    }
    
    /* Gallery categories */
    .gallery-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .gallery-category-card .category-image {
        aspect-ratio: 1/1;
    }
    
    .gallery-category-card .category-info {
        padding: 1rem 0.5rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .gallery-category-card .category-info h3 {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* About section */
    .about-content {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-bio p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    /* Contact section */
    .contact-content {
        padding: 0 1rem;
    }
    
    .contact-text {
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-social-icons {
        gap: 1.5rem;
    }
    
    .footer-social-icons img {
        height: 18px;
    }
}

@media (max-width: 480px) {
    /* Exhibitions */
    .exhibition-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exhibition-thumbnails img {
        height: 70px;
    }
    
    .exhibition-info h3 {
        font-size: 0.8rem;
    }
    
    /* Gallery categories */
    .gallery-categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .about-bio p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    /* Footer */
    .footer-social-icons {
        gap: 1.2rem;
    }
    
    .footer-social-icons img {
        height: 16px;
    }
} 
