/* 全站统一字体：Cormorant Garamond */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-600.woff2') format('woff2');
}

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #0d9488;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #222;
    --font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: var(--font-family);
    --font-display: var(--font-family);
    /* 与 Tailwind md 对齐：移动端 <=767px，桌面端 >=768px */
    --bp-md: 768px;

    /* Home / section accents — blue-green primary */
    --home-accent-hero: #14b8a6;
    --home-accent-magazine: #0f766e;
    --home-accent-about: #0d9488;
    --home-accent-team: #2dd4bf;
    --home-accent-newsletter: #06b6d4;
}

.text-accent-color {
    color: var(--accent-color);
}

.bg-accent-color {
    background-color: var(--accent-color);
}

.ring-accent-color {
    --tw-ring-color: var(--accent-color);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

* {
    box-sizing: border-box;
}

/* 图片懒加载 / 加载中骨架 */
.lazy-image {
    background-color: #ececec;
    background-image: linear-gradient(90deg, #ececec 0%, #f5f5f5 40%, #ececec 80%);
    background-size: 200% 100%;
    animation: img-shimmer 1.2s ease-in-out infinite;
}

/* 图片容器：加载中显示骨架 + 转圈 + 文案 */
.img-loading-wrap {
    position: relative;
    overflow: hidden;
    background-color: #ececec;
}

.img-loading-wrap.is-loading {
    background-image: linear-gradient(90deg, #ececec 0%, #f5f5f5 40%, #ececec 80%);
    background-size: 200% 100%;
    animation: img-shimmer 1.2s ease-in-out infinite;
    min-height: 8rem;
}

.img-loading-wrap.is-loading::before {
    content: '';
    position: absolute;
    top: calc(50% - 1.75rem);
    left: 50%;
    width: 1.75rem;
    height: 1.75rem;
    margin-left: -0.875rem;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-top-color: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    animation: img-spin 0.7s linear infinite;
    z-index: 2;
    pointer-events: none;
}

.img-loading-wrap.is-loading::after {
    content: 'Loading...';
    position: absolute;
    top: calc(50% + 0.6rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.45);
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
    font-family: var(--font-family);
}

.img-loading-wrap.is-loading > img.image-loading {
    opacity: 0;
}

.img-loading-wrap.is-loaded > img,
.img-loading-wrap.is-error > img {
    opacity: 1;
    transition: opacity 0.35s ease;
}

.img-loading-wrap.is-loaded {
    background: transparent;
    animation: none;
    min-height: 0;
}

.img-loading-wrap.is-error {
    background-color: #f3f3f3;
    animation: none;
}

.img-loading-wrap.is-error::after {
    content: 'Image unavailable';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
    font-family: var(--font-family);
}

/* 无包裹容器时，直接作用在 img 上的兜底样式 */
.image-loading {
    background-color: #ececec;
    background-image: linear-gradient(90deg, #ececec 0%, #f5f5f5 40%, #ececec 80%);
    background-size: 200% 100%;
    animation: img-shimmer 1.2s ease-in-out infinite;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.image-loaded {
    opacity: 1;
    background: none;
    animation: none;
    transition: opacity 0.35s ease;
}

.image-error {
    opacity: 0.45;
    filter: grayscale(0.4);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes img-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes img-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 图片优化：防止布局偏移和提升加载性能 */
img {
    /* 使用 GPU 加速 */
    transform: translateZ(0);
    will-change: transform;
    /* 优化图片渲染 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* 防止图片闪烁 */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    max-width: 100%;
    height: auto;
    display: block;
}

/* 图片容器优化 */
.article-image,
.hero-image,
.magazine-small-card-item img,
.magazine-large-card-item img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

/* 表单控件默认不继承字体，强制与全站一致 */
button,
input,
select,
textarea {
    font-family: inherit;
}

.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 首页的hero-section正常显示轮播图（导航在文档流内，扣除顶栏高度） */
.home-page .hero-section {
    background-color: transparent;
    height: calc(100vh - 4.75rem);
    height: calc(100dvh - 4.75rem);
}

/* 非首页的hero-section使用淡灰色背景（如果存在） */
.hero-section:not(.home-page .hero-section) {
    background-color: #e5e5e5 !important;
    height: auto !important;
    min-height: auto !important;
    padding-top: 120px !important;
    padding-bottom: 40px !important;
}

.hero-carousel-container {
    width: 100%;
    height: 100%;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 粒子 Canvas 样式 */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    image-rendering: pixelated;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.38), rgba(0,0,0,0.72));
    z-index: 2;
}

/* 首页的hero内容使用白色文字 */
.home-page .hero-content-fixed {
    z-index: 10;
    color: white !important;
}

/* 非首页的hero内容使用深色文字 */
.hero-content-fixed {
    z-index: 10;
    color: #333 !important;
}

/* Hero text container */
.hero-text-container {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    color: white;
    max-width: 1200px;
    text-align: center;
    padding: 0 20px;
    width: 90%;
}

/* Hero description text - 桌面端 */
.hero-description-text {
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin: 0 0 1.75rem;
    letter-spacing: 0.3px;
    padding: 0;
}

.hero-cta {
    display: inline-block;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 0.85rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
    background-color: var(--home-accent-hero);
    color: #fff;
    border-color: var(--home-accent-hero);
    outline: none;
}

.home-page .hero-carousel-indicators .indicator {
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-page .hero-carousel-indicators .indicator.active {
    background-color: var(--home-accent-hero);
    border-color: var(--home-accent-hero);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.28);
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 768px) {
    .hero-description-text {
        font-size: 20px;
        line-height: 1.55;
        letter-spacing: 0.2px;
    }
}

/* Mobile adjustments - 重新设计 */
@media (max-width: 767px) {
    .hero-text-container {
        bottom: 8.5rem;
        padding: 0 12px;
        max-width: 92%;
        width: 90%;
    }

    .hero-description-text {
        font-size: 17px;
        line-height: 1.65;
        font-weight: 300;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.95),
                     0 0 30px rgba(0,0,0,0.8);
        letter-spacing: 0.3px;
        padding: 0;
        text-align: left;
    }

    .home-page .hero-carousel-indicators {
        bottom: 1.5rem !important;
        right: 1rem !important;
        left: 1rem !important;
        justify-content: center;
    }

    .home-page .hero-text-container {
        bottom: 5rem !important;
    }

    .home-page .hero-carousel-indicators .indicator {
        width: 10px;
        height: 10px;
        padding: 6px;
        box-sizing: content-box;
        background-clip: content-box;
    }
}

/* Small mobile adjustments */
@media (max-width: 640px) {
    .hero-text-container {
        bottom: 5rem;
        padding: 0 10px;
        width: 92%;
    }

    .home-page .hero-text-container {
        bottom: 5rem !important;
    }

    .hero-description-text {
        font-size: 16px;
        line-height: 1.6;
        font-weight: 300;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.95),
                     0 0 30px rgba(0,0,0,0.8);
    }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
    .hero-text-container {
        bottom: 4.5rem;
        width: 94%;
    }

    .home-page .hero-text-container {
        bottom: 4.5rem !important;
    }

    .home-page .hero-carousel-indicators {
        bottom: 1.25rem !important;
    }

    .hero-description-text {
        font-size: 15px;
        line-height: 1.55;
        font-weight: 300;
    }
}

.hero-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: #333 !important; /* 深色文字以适应淡灰色背景 */
    z-index: 10;
}

.hero-carousel-indicators {
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* Page Header Section (独立于Hero区域) */
.page-header-section {
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6.5vw, 5.25rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #111827; /* gray-900 */
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    position: relative;
}

.page-description {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: 300;
    line-height: 1.7;
    color: #4b5563; /* gray-600 */
    max-width: 700px;
}

/* Navigation bar main container — in document flow, not floating overlay */
.nav-container {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    z-index: 100;
    background-color: #000000;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
    max-width: 100%;
    transform: none !important;
}

.nav-logo-link,
.nav-right {
    position: relative;
    z-index: 2;
}

#auth-nav-container {
    display: none;
}

@media (min-width: 768px) {
    #auth-nav-container {
        display: block;
    }
}

/* 桌面端导航菜单水平居中 */
.nav-links-desktop {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
        align-items: center;
    }
}

.nav-dropdown {
    left: 50%;
    transform: translateX(-50%);
}

/* Nav wordmark — text logo matching site serif */
.navbar-wordmark {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-logo-link:hover .navbar-wordmark,
.nav-logo-link:focus-visible .navbar-wordmark {
    opacity: 0.88;
}

/* 非首页 / 首页：顶栏黑底白字（不再悬浮透明） */
body:not(.home-page) .nav-container,
.home-page .nav-container,
body:not(.home-page) .nav-container.nav-scrolled,
.home-page .nav-container.nav-scrolled {
    background-color: #000000 !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body:not(.home-page) .nav-container .nav-link,
.home-page .nav-container .nav-link,
body:not(.home-page) .nav-container.nav-scrolled .nav-link,
.home-page .nav-container.nav-scrolled .nav-link {
    color: #ffffff !important;
}

body:not(.home-page) .nav-container .mobile-menu-btn,
.home-page .nav-container .mobile-menu-btn,
body:not(.home-page) .nav-container.nav-scrolled .mobile-menu-btn,
.home-page .nav-container.nav-scrolled .mobile-menu-btn {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* 移动端：顶栏始终在文档流顶部，不再上滑隐藏 */
@media (max-width: 767px) {
    .nav-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100%;
        z-index: 100;
        background-color: #000000 !important;
        transform: none !important;
        transition: none;
    }
    
    /* 三条线菜单按钮始终在右侧，不随 logo 显示/隐藏左右移动 */
    .nav-container .mobile-menu-btn {
        margin-left: auto !important;
    }
    
    .nav-container.nav-visible {
        transform: none !important;
    }
    
    /* 移动端导航链接和按钮白色 */
    .nav-container .nav-link,
    .nav-container .mobile-menu-btn {
        color: #ffffff !important;
    }
    
    /* 首页移动端：hero 在导航下方占满剩余视口 */
    .home-page .hero-section {
        height: calc(100vh - 4.5rem);
        height: calc(100dvh - 4.5rem);
    }
    
    .nav-container.nav-scrolled {
        background-color: #000000 !important;
    }

    .home-page .nav-container.nav-visible:not(.nav-scrolled),
    .home-page .nav-container.nav-scrolled {
        background-color: #000000 !important;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .home-page .nav-container.nav-scrolled > a:first-child {
        display: flex !important;
        align-items: center;
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 3.5rem);
    }

    .navbar-wordmark {
        font-size: 1.45rem;
    }

    .home-page .nav-container.nav-visible .mobile-menu-btn,
    .home-page .nav-container.nav-scrolled .mobile-menu-btn {
        color: #ffffff !important;
        background: transparent !important;
        border-radius: 0;
    }
}

.nav-container.py-4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

/* Ensure desktop navigation shows on medium and larger screens */
.hidden.md\:flex {
    display: none;
    gap: 2rem;
    align-items: center;
}

/* Only show on medium and larger screens */
@media (min-width: 768px) {
    .hidden.md\:flex {
        display: flex;
    }
}

/* Mobile menu button - only on small screens */
@media (max-width: 767px) {
    button.md\:hidden {
        display: block;
    }
}
/* 首页导航栏滚动后：白底黑字 */
.home-page .nav-scrolled {
    background-color: #000000;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.home-page .nav-scrolled .nav-link {
    color: #ffffff;
}

/* 首页桌面端：字标尺寸 */
@media (min-width: 768px) {
    .navbar-wordmark {
        font-size: 1.75rem;
    }

    .home-page .nav-container.nav-scrolled {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

.nav-link {
    position: relative;
    color: var(--secondary-color);
    transition: color 0.3s ease;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 1.125rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 移动端菜单字体与站点展示字体一致 */
.mobile-menu,
.mobile-nav-link,
.mobile-magazine-toggle,
.mobile-exhibitions-toggle,
.mobile-dropdown a {
    font-family: var(--font-display);
}

.mobile-nav-link,
.mobile-magazine-toggle,
.mobile-exhibitions-toggle {
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.mobile-menu-btn {
    color: var(--secondary-color);
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
    /* 桌面端隐藏；仅移动端显示（避免覆盖 Tailwind md:hidden） */
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* 首页导航栏滚动后移动端按钮 */
.home-page .nav-scrolled .mobile-menu-btn {
    color: #ffffff;
    background-color: transparent;
    border-radius: 0;
}

/* 移动端导航栏：首页滚动后紧凑顶栏，非首页始终黑底白字 */
@media (max-width: 767px) {
    /* 非首页移动端导航栏始终黑底白字 */
    body:not(.home-page) .nav-container {
        background-color: #000000 !important;
    }
    
    body:not(.home-page) .nav-container .nav-link,
    body:not(.home-page) .nav-container .mobile-menu-btn {
        color: #ffffff !important;
    }
    
    body:not(.home-page) .nav-container.nav-scrolled {
        background-color: #000000 !important;
    }
    
    body:not(.home-page) .nav-container.nav-scrolled .nav-link,
    body:not(.home-page) .nav-container.nav-scrolled .mobile-menu-btn {
        color: #ffffff !important;
    }
    
    body:not(.home-page) .nav-container.nav-scrolled .mobile-menu-btn {
        background-color: transparent !important;
    }
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

/* 首页 About / Team / Exhibitions 标题不显示下划线（标题旁已有 View all） */
#about .section-title::after,
#team .section-title::after,
#magazine .section-title::after {
    display: none;
}

/* —— Home section color accents —— */
.home-section-head {
    position: relative;
}

#magazine {
    --home-section-accent: var(--home-accent-magazine);
    background:
        linear-gradient(180deg, rgba(13, 148, 136, 0.06) 0%, transparent 45%),
        #f5fafa;
}

#magazine .section-title::after {
    display: none;
}

#magazine .home-view-all {
    color: #111;
    transition: color 0.2s ease;
}

#magazine .home-view-all i {
    color: inherit;
}

#magazine .home-view-all:hover,
#magazine .home-view-all:focus-visible {
    color: #4b5563;
}

#magazine .magazine-small-card-item,
#magazine .magazine-large-card-item {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#magazine .magazine-small-card-item:hover,
#magazine .magazine-large-card-item:hover {
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.08);
}

#magazine .magazine-feature-copy {
    background: rgba(13, 148, 136, 0.07);
}

#about {
    --home-section-accent: var(--home-accent-about);
    background:
        linear-gradient(180deg, rgba(13, 148, 136, 0.06) 0%, transparent 42%),
        #f7fbfa;
}

#about .section-title {
    color: #111827;
}

#about .section-title::before {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0 auto 1rem;
    border-radius: 2px;
    background: var(--home-accent-about);
}

#about .home-section-cta {
    border-color: var(--home-accent-about);
    color: var(--home-accent-about);
}

#about .home-section-cta:hover,
#about .home-section-cta:focus-visible {
    background: var(--home-accent-about);
    border-color: var(--home-accent-about);
    color: #fff;
}

#team {
    --home-section-accent: var(--home-accent-team);
    background:
        linear-gradient(180deg, rgba(45, 212, 191, 0.08) 0%, transparent 40%),
        #fff;
}

#team .section-title::before {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0 auto 1rem;
    border-radius: 2px;
    background: var(--home-accent-team);
}

#newsletter {
    --home-section-accent: var(--home-accent-newsletter);
}

#newsletter .home-newsletter-title::after {
    content: '';
    display: block;
    width: 3.25rem;
    height: 3px;
    margin: 0.85rem auto 0;
    border-radius: 2px;
    background: var(--home-accent-newsletter);
}

#newsletter #subscribe-button {
    background: var(--home-accent-newsletter);
    border-color: var(--home-accent-newsletter);
    color: #fff;
}

#newsletter #subscribe-button:hover,
#newsletter #subscribe-button:focus-visible {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* —— Public pages: soft tinted backgrounds (match home accents) —— */
:root {
    --page-tint-about: rgba(13, 148, 136, 0.07);
    --page-tint-team: rgba(45, 212, 191, 0.08);
    --page-tint-magazine: rgba(15, 118, 110, 0.07);
    --page-tint-residency: rgba(13, 148, 136, 0.06);
    --page-tint-exhibitions: rgba(20, 184, 166, 0.07);
    --page-tint-education: rgba(6, 182, 212, 0.07);
    --page-tint-article: rgba(13, 148, 136, 0.05);
}

.about-page {
    background-color: #f7fbf9;
}

.about-page .page-header-section {
    background:
        linear-gradient(180deg, var(--page-tint-about) 0%, #f7fbf9 100%) !important;
}

.about-page #about-sections-container .mission-section.bg-white {
    background-color: #ffffff;
}

.about-page #about-sections-container .mission-section.bg-gray-50 {
    background-color: #f0f7f4 !important;
}

.team-page {
    --team-page-bg: #f4fafa;
    --team-card-bg: #fbfffe;
    background-color: var(--team-page-bg);
}

.team-page .page-header-section {
    background: transparent !important;
    padding-bottom: 1.5rem !important;
}

.team-page .page-header-section .page-title {
    text-align: center;
}

.team-page .page-header-section .page-description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.team-page .page-header-section .max-w-4xl {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.team-page .team-section {
    background: transparent !important;
    padding-top: 1.5rem !important;
    padding-bottom: 4rem !important;
}

.team-page #team-members-container {
    margin-top: 0.5rem !important;
}

.team-page .team-member {
    background: var(--team-card-bg) !important;
    border: 1px solid rgba(13, 148, 136, 0.12);
    box-shadow: 0 4px 18px rgba(13, 80, 70, 0.04);
}

.team-page .team-member a[href^="mailto:"] {
    color: #0f766e;
}

@media (hover: hover) and (pointer: fine) {
    .team-page .team-member:hover {
        box-shadow: 0 12px 28px rgba(13, 148, 136, 0.12);
        border-color: rgba(13, 148, 136, 0.22);
    }
}

.category-page {
    background-color: #fafaf8;
}

.category-page .page-header-section {
    background:
        linear-gradient(180deg, var(--page-tint-magazine) 0%, #fafaf8 100%) !important;
}

.category-page[data-category="magazine"] {
    --page-category-tint: var(--page-tint-magazine);
    --page-category-accent: var(--home-accent-magazine);
    background-color: #f5fafa;
}

.category-page[data-category="residency"] {
    --page-category-tint: var(--page-tint-residency);
    --page-category-accent: #0d9488;
    background-color: #f6fbfa;
}

.category-page[data-category="exhibitions"] {
    --page-category-tint: var(--page-tint-exhibitions);
    --page-category-accent: #14b8a6;
    background-color: #f5fbfa;
}

.category-page[data-category="education"] {
    --page-category-tint: var(--page-tint-education);
    --page-category-accent: #0284c7;
    background-color: #f6fafc;
}

.category-page[data-category="magazine"] .page-header-section,
.category-page[data-category="residency"] .page-header-section,
.category-page[data-category="exhibitions"] .page-header-section,
.category-page[data-category="education"] .page-header-section {
    background:
        linear-gradient(180deg, var(--page-category-tint) 0%, transparent 100%) !important;
}

.category-page .category-section {
    background-color: transparent !important;
}

.category-page .category-section:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.72) !important;
}

.category-page .category-section:nth-child(even) {
    background-color: var(--page-category-tint, var(--page-tint-magazine)) !important;
}

.category-page .section-title-small {
    position: relative;
    padding-bottom: 0.55rem;
}

.category-page .section-title-small::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--page-category-accent, var(--home-accent-magazine));
}

.article-page {
    background:
        linear-gradient(180deg, var(--page-tint-article) 0%, #f8fafc 28%, #fff 70%);
    min-height: 100vh;
}

.article-page .progress-bar {
    background: var(--accent-color);
}

.article-page #related-articles {
    padding: 1.5rem 1.25rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(56, 189, 248, 0.06);
}



.article-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

/* Article Card Styles - 编辑式扁平卡片（无圆角阴影 / 无彩色 pill） */
.article-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}

/* 统一卡片封面图容器高度 */
.article-card > a > .article-card-image,
.article-card > div:first-child,
.article-card-image {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* 移动端：覆盖固定高度，使用16:9比例 */
@media (max-width: 767px) {
    .article-card > a > .article-card-image,
    .article-card > div:first-child,
    .article-card-image {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important;
    }
}

/* 卡片内容区域 - 使用flex布局固定元素位置 */
.article-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    padding: 1.5rem 0 0;
}

.article-card-meta {
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* 标题固定高度 - 最多2行（完整行，不显示半行） */
.article-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    height: auto;
    min-height: 0;
    max-height: calc(1.5rem * 1.3 * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    margin-bottom: 0.75rem;
    word-break: break-word;
    padding: 0;
    box-sizing: border-box;
}

/* 日期固定位置 */
.article-card-date {
    height: 20px;
    min-height: 20px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* 简介 - 最多3行 */
.article-card-excerpt {
    font-size: 1rem;
    line-height: 1.55;
    min-height: 0;
    max-height: calc(1rem * 1.55 * 3);
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    margin-bottom: 0;
    flex-grow: 1;
    word-break: break-word;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
}

/* Read more按钮固定在底部 */
.article-card-readmore {
    margin-top: auto;
    padding-top: 1rem;
    flex-shrink: 0;
    height: 32px;
    min-height: 32px;
}

.article-card .article-image,
.magazine-small-card-item img,
.magazine-large-card-item img {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.magazine-large-card-item h3 {
    font-family: var(--font-display);
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .article-card:hover .article-image,
    .magazine-small-card-item:hover img,
    .magazine-large-card-item:hover img {
        transform: scale(1.03);
    }
}

.article-card:active,
.magazine-small-card-item:active,
.magazine-large-card-item:active {
    opacity: 0.92;
}

.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* 统一容器样式 - 确保所有模块在指定范围内显示 */
#magazine-features-container,
#market-articles-container,
#artant-articles-container,
#events-articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%; /* 适应父容器宽度 */
    margin: 0 auto;
    padding: 0 20px;
}

/* 大屏幕上的布局 */
@media (min-width: 768px) {
    #magazine-features-container,
    #market-articles-container,
    #artant-articles-container,
    #events-articles-container {
        padding: 0 40px;
    }
}

/* 更大屏幕上显示5列 */
@media (min-width: 1200px) {
    #magazine-features-container,
    #market-articles-container,
    #artant-articles-container,
    #events-articles-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 移动端响应式设计 - 确保卡片适应屏幕宽度 */
@media (max-width: 767px) {
    .article-card {
        width: 100% !important; /* 强制使用屏幕宽度 */
        max-width: 100% !important; /* 移除最大宽度限制 */
        margin-left: 0 !important; /* 移除左边距 */
        margin-right: 0 !important; /* 移除右边距 */
        margin-bottom: 1.5rem !important; /* 增加底部间距 */
        border-radius: 16px !important; /* 更大的圆角 */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 
                    0 2px 4px rgba(0, 0, 0, 0.04) !important; /* 更柔和的阴影 */
        background-color: #ffffff !important;
        overflow: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* 移动端卡牌悬停效果 */
    .article-card:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
                    0 1px 2px rgba(0, 0, 0, 0.06) !important;
    }
    
    /* 调整网格容器在移动端的间距 */
    #magazine-features-container,
    #market-articles-container,
    #artant-articles-container,
    #events-articles-container {
        padding: 0 1rem; /* 增加两侧内边距，避免卡牌贴边 */
        gap: 1.5rem !important; /* 增加卡片间距 */
        grid-template-columns: 1fr; /* 单列布局 */
    }
    
    /* 调整文章图片高度适应移动端 - 16:9比例 */
    .article-card-image,
    .article-card > div:first-child {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important; /* 16:9比例 */
        border-radius: 16px 16px 0 0 !important; /* 顶部圆角 */
        overflow: hidden;
        position: relative;
    }
    
    /* 覆盖内联样式 */
    .article-card-image[style*="height"],
    .article-card > div:first-child[style*="height"] {
        height: auto !important;
        min-height: auto !important;
    }
    
    /* 图片添加渐变遮罩效果 */
    .article-card-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
        pointer-events: none;
    }
    
    /* 图片过渡效果 */
    .article-card-image img {
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .article-card:active .article-card-image img {
        transform: scale(1.05) !important;
    }
    
    /* 确保article-card > div:first-child也应用16:9 */
    .article-card > div:first-child {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important;
    }
    
    /* 分类标签美化 */
    .article-card-image .absolute {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px !important;
        padding: 0.5rem 1rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        font-weight: 600 !important;
        letter-spacing: 0.5px;
    }
    
    /* 调整卡片内容内边距 - 增加左右内边距避免文字贴边 */
    .article-card-content {
        padding: 1.5rem 1.25rem !important; /* 增加左右内边距 */
        min-height: auto !important; /* 移除固定最小高度，让内容自然流动 */
        background: linear-gradient(to bottom, #ffffff, #fafafa);
    }
    
    /* 覆盖Tailwind的p-8类在移动端的表现 */
    .article-card-content.p-8 {
        padding: 1.5rem 1.25rem !important;
    }
    
    /* 移动端通用grid容器间距 - 仅适用于category.html等页面，排除magazine区域 */
    .category-section .grid.grid-cols-1 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* 确保magazine区域的grid不受影响 */
    #magazine .grid.grid-cols-1 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* category.html 等页面的容器也需要间距 - 确保左右对称 */
    .category-section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* 覆盖Tailwind的px-6类在移动端 */
    .category-section.px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .category-section .grid,
    [id$="-container"].grid {
        padding-left: 0 !important; /* 移除grid的padding，由category-section统一控制 */
        padding-right: 0 !important;
    }
    
    /* article-detail.html 相关文章卡片移动端间距 */
    .related-articles-grid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .related-article-card {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    
    /* 移动端卡牌整体：高度随内容，不固定 */
    .article-card,
    .magazine-small-card,
    .magazine-small-card-item {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* 移动端标题 - 最多2行 */
    .article-card-title {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.4 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        -webkit-line-clamp: 2 !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        letter-spacing: -0.3px;
        margin-bottom: 0.75rem !important;
    }
    
    /* 移动端日期样式优化 */
    .article-card-date {
        font-size: 0.8125rem !important; /* 13px */
        color: #6b7280 !important;
        font-weight: 500 !important;
        letter-spacing: 0.2px;
        margin-bottom: 1rem !important;
    }
    
    /* 移动端卡牌内容区域高度调整 */
    .article-card-content {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
    }
    
    /* 移动端简介 - 最多5行，高度随内容，卡牌随之变高 */
    .article-card-excerpt {
        font-size: 0.9375rem !important; /* 15px */
        line-height: 1.6 !important;
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        -webkit-line-clamp: 5 !important; /* 手机端最多5行 */
        color: #4b5563 !important;
        text-align: justify !important;
    }
    
    /* Read more按钮美化 - 保持Tailwind的mt-auto */
    .article-card-readmore {
        /* 保持Tailwind的mt-auto，不覆盖 */
        padding-top: 0 !important; /* 移除上边距 */
    }
    
    .article-card-readmore a {
        display: inline-flex !important;
        align-items: center !important;
        font-weight: 600 !important;
        font-size: 0.9375rem !important; /* 15px */
        padding: 0.625rem 1rem !important;
        border-radius: 8px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background-color: rgba(0, 0, 0, 0.03) !important;
    }
    
    .article-card-readmore a:hover,
    .article-card-readmore a:active {
        background-color: rgba(0, 0, 0, 0.08) !important;
        transform: translateX(4px) !important;
    }
    
    .article-card-readmore a svg {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .article-card-readmore a:hover svg,
    .article-card-readmore a:active svg {
        transform: translateX(4px) !important;
    }
    
    /* 调整文章摘要显示行数 */
    .article-card .card-body .article-excerpt {
        height: 72px; /* 调整高度适应3行 */
        -webkit-line-clamp: 3;
    }
    
    /* Magazine小卡牌移动端美化 - 与article-card保持一致 */
    .magazine-small-card-item {
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 
                    0 2px 4px rgba(0, 0, 0, 0.04) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
        overflow: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .magazine-small-card-item:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
                    0 1px 2px rgba(0, 0, 0, 0.06) !important;
    }
    
    /* Magazine小卡牌图片容器 */
    .magazine-small-card-item > div:first-child,
    .magazine-small-card-item .relative.overflow-hidden {
        height: auto !important;
        min-height: auto !important;
        aspect-ratio: 16 / 9 !important; /* 16:9比例 */
    }
    
    .magazine-small-card-item img {
        border-radius: 16px 16px 0 0 !important;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    /* 覆盖内联样式 */
    .magazine-small-card-item > div:first-child[style*="height"],
    .magazine-small-card-item .relative.overflow-hidden[style*="height"] {
        height: auto !important;
        min-height: auto !important;
    }
    
    .magazine-small-card-item:active img {
        transform: scale(1.05) !important;
    }
    
    /* Magazine大卡牌移动端美化 */
    .magazine-large-card-item {
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 
                    0 2px 4px rgba(0, 0, 0, 0.04) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
        overflow: visible !important; /* 改为visible，确保内容不被裁剪 */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .magazine-large-card-item:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
                    0 1px 2px rgba(0, 0, 0, 0.06) !important;
    }
    
    /* Magazine大卡牌移动端grid布局优化 */
    .magazine-large-card-item .grid {
        display: flex !important;
        flex-direction: column !important; /* 移动端垂直排列 */
    }
    
    /* Magazine大卡牌图片容器 */
    .magazine-large-card-item > .grid > div:first-child,
    .magazine-large-card-item .relative.overflow-hidden {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important; /* 16:9比例 */
        overflow: hidden; /* 图片容器保持hidden */
    }
    
    /* Magazine大卡牌内容区域移动端优化 */
    .magazine-large-card-item .p-8 {
        padding: 1.5rem 1.25rem !important; /* 减少移动端padding */
        min-height: auto !important;
        max-height: none !important;
        justify-content: flex-start !important; /* 改为顶部对齐，不要居中 */
    }
    
    /* Magazine大卡牌标题移动端优化 */
    .magazine-large-card-item h3 {
        font-size: 1.25rem !important; /* 移动端标题大小 */
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* 最多3行 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Magazine大卡牌日期移动端优化 */
    .magazine-large-card-item .text-sm {
        font-size: 0.8125rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Magazine大卡牌简介移动端优化 */
    .magazine-large-card-item .line-clamp-4 {
        font-size: 0.9375rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0 !important; /* 移除底部margin */
        -webkit-line-clamp: 3 !important; /* 移动端显示3行 */
    }
    
    .magazine-large-card-item img {
        border-radius: 16px 16px 0 0 !important;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    /* 覆盖内联样式 */
    .magazine-large-card-item > div:first-child[style*="height"],
    .magazine-large-card-item .relative.overflow-hidden[style*="height"],
    .magazine-large-card-item > div:first-child[style*="min-height"],
    .magazine-large-card-item .relative.overflow-hidden[style*="min-height"] {
        height: auto !important;
        min-height: auto !important;
    }
    
    .magazine-large-card-item:active img {
        transform: scale(1.05) !important;
    }
    
    /* 相关文章卡牌移动端美化 */
    .related-article-card {
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 
                    0 2px 4px rgba(0, 0, 0, 0.04) !important;
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
        margin-bottom: 1.5rem !important;
        overflow: hidden;
        background-color: #ffffff !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .related-article-card:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
                    0 1px 2px rgba(0, 0, 0, 0.06) !important;
    }
    
    .related-article-image {
        border-radius: 16px 16px 0 0 !important;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important; /* 16:9比例 */
    }
    
    .related-article-card:active .related-article-image {
        transform: scale(1.05) !important;
    }
    
    .related-article-title {
        font-weight: 700 !important;
        color: #1a1a1a !important;
        letter-spacing: -0.3px;
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
    }
    
    .related-article-date {
        font-size: 0.8125rem !important;
        color: #6b7280 !important;
        font-weight: 500 !important;
        letter-spacing: 0.2px;
    }
}



.exhibition-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.exhibition-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.exhibition-card:hover .exhibition-image {
    transform: scale(1.02);
}

.exhibition-info {
    padding: 1.5rem;
}

.exhibition-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exhibition-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.exhibition-location {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-color);
}

.artist-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.artist-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artist-card:hover .artist-image {
    transform: scale(1.02);
}

.artist-info {
    padding: 1.5rem;
}

.artist-name {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.artist-nationality {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-color);
}


/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive design */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .artwork-grid {
        grid-template-columns: 1fr;
    }
    
    .exhibitions-grid {
        grid-template-columns: 1fr;
    }
    
    .artists-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        bottom: 20%;
        left: 10%;
        right: 10%; /* 添加右边距防止内容贴边 */
    }
    
    /* Hero text adjustments for mobile - 已在上方统一处理 */
    
    /* 优化hero区域按钮在小屏幕下的显示 */
    .hero-content .flex {
        gap: 1rem; /* 确保按钮之间有足够间距 */
    }
    
    .hero-content a {
        min-width: 140px; /* 设置最小宽度确保按钮可读性 */
        font-size: 0.75rem; /* 稍微减小字体大小 */
    }
}

/* 针对超小屏幕的额外优化 */
@media (max-width: 480px) {
    .hero-content {
        bottom: 15%;
        left: 5%;
        right: 5%;
    }
    
    .hero-content .flex {
        gap: 0.75rem;
    }
    
    .hero-content a {
        min-width: 120px;
        padding: 0.75rem 1rem; /* 调整内边距 */
        font-size: 0.7rem;
    }
}

/* Magazine Section - New Design Styles (Full Width) */
#magazine {
    width: 100%;
    max-width: 100%;
}

.magazine-small-card {
    position: relative;
    min-height: 520px;
    width: 100%;
    margin: 0 !important;
}

.magazine-small-card-item {
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    position: relative;
    background: white;
    width: 100%;
    margin: 0 !important;
}

.magazine-small-card-item img {
    width: 100%;
    height: 360px;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.magazine-large-card {
    position: relative;
    width: 100%;
    margin: 0 !important;
}

.magazine-large-card-item {
    border: 1px solid #e5e7eb;
    position: relative;
    width: 100%;
    background: white;
    margin: 0 !important;
}

/* Ensure full width on all screen sizes */
#magazine-top-row,
#magazine-bottom-row {
    width: 100%;
    max-width: 100%;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments for Magazine section */
@media (max-width: 767px) {
    #magazine .section-title {
        font-size: 1.5rem;
    }
    
    .magazine-large-card-item .grid {
        grid-template-columns: 1fr !important;
    }
    
    .magazine-large-card-item .p-8 {
        padding: 1.5rem;
    }
    
    .magazine-large-card-item h3 {
        font-size: 1.5rem;
    }
    
    /* 移动端首页 Magazine 左右只留一点间隙 */
    #magazine {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    #magazine-top-row,
    #magazine-bottom-row {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #magazine-top-row.px-6,
    #magazine-bottom-row.px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* 确保grid容器完全填充宽度，不居中 */
    #magazine-top-row > .grid,
    #magazine-bottom-row > .magazine-large-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* 移动端magazine卡片无左右间距，完全填充宽度 */
    .magazine-small-card-item,
    .magazine-large-card-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* 移动端magazine卡片内容区域增加内边距 */
    .magazine-small-card-item .p-6,
    .magazine-large-card-item .p-8 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Footer移动端样式优化 */
@media (max-width: 767px) {
    /* Footer整体padding优化 */
    footer.bg-gray-900,
    footer.bg-black {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Footer容器padding优化 */
    footer .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Footer grid间距优化 */
    footer .grid {
        gap: 2.5rem !important;
    }
    
    /* Footer标题字体大小优化 */
    footer h3 {
        font-size: 1.125rem !important; /* 18px */
        margin-bottom: 1rem !important;
        font-weight: 600 !important;
    }
    
    /* Footer段落和链接字体大小优化 */
    footer p,
    footer li,
    footer a {
        font-size: 0.9375rem !important; /* 15px */
        line-height: 1.6 !important;
    }
    
    /* Footer链接列表横向排列 - 移动端 */
    footer ul.space-y-2 {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.75rem 1rem !important; /* 行间距0.75rem，列间距1rem */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    footer ul.space-y-2 li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        white-space: nowrap; /* 防止链接文字换行 */
    }
    
    /* Footer链接可点击区域优化（仅栏目列表，不含联系邮箱） */
    footer ul li a {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 0.75rem !important;
        min-height: 44px;
        white-space: nowrap;
    }

    /* 联系邮箱允许换行，避免长地址撑出横向滚动 */
    footer [data-contact-email] {
        display: block !important;
        white-space: normal !important;
        word-break: break-all;
        padding: 0.25rem 0 !important;
        min-height: auto !important;
    }
    
    /* Footer社交媒体图标优化 */
    footer .flex.space-x-4 {
        gap: 1rem !important;
        margin-top: 1rem !important;
    }
    
    footer .flex.space-x-4 a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem !important;
    }
    
    footer .flex.space-x-4 i {
        font-size: 1.25rem !important; /* 20px */
    }
    
    /* Footer联系信息优化 */
    footer .space-y-2 p {
        margin-bottom: 0.5rem !important;
        line-height: 1.5 !important;
    }
    
    /* Footer底部版权信息优化 */
    footer .border-t {
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 0 !important;
    }
    
    footer .border-t p {
        font-size: 0.875rem !important; /* 14px */
        line-height: 1.5 !important;
    }
    
    /* Footer "Follow Us"标题优化 */
    footer h4 {
        font-size: 1rem !important; /* 16px */
        margin-bottom: 0.75rem !important;
        margin-top: 1.5rem !important;
    }
}

/* Large screens - maximize visual impact */
@media (min-width: 1920px) {
    #magazine-top-row,
    #magazine-bottom-row {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* Team 成员头像响应式尺寸 */
.team-member-avatar {
    width: clamp(8rem, 34vw, 12rem);
    height: clamp(8rem, 34vw, 12rem);
}

.team-member-avatar img {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member {
    text-align: center;
    border-radius: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
    .team-member:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

    .team-member:hover .team-member-avatar img {
        transform: scale(1.04);
    }

    .team-member a[href^="mailto:"]:hover {
        color: var(--accent-color);
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-wordmark,
    .team-member,
    .team-member-avatar img {
        transition: none;
    }

    .team-member:hover {
        transform: none;
    }

    .team-member:hover .team-member-avatar img {
        transform: none;
    }

    .article-card:hover,
    .magazine-small-card-item:hover,
    .magazine-large-card-item:hover {
        transform: none;
    }

    .article-card:hover .article-image,
    .magazine-small-card-item:hover img,
    .magazine-large-card-item:hover img {
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .team-section .grid {
        gap: 2rem !important;
    }

    .team-member-avatar {
        width: clamp(7.5rem, 22vw, 10rem);
        height: clamp(7.5rem, 22vw, 10rem);
    }
}

@media (max-width: 767px) {
    .team-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .team-section .grid {
        gap: 2rem !important;
    }

    .team-member {
        padding: 1.5rem !important;
    }

    #magazine .flex.items-center.justify-between {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* About 页面排版与段落间距 */
.mission-section {
    padding: 4.5rem 0;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-title-large {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #4a5568;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.section-text:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
    line-height: 1.3;
}

.section-content > .subsection-title:first-of-type {
    margin-top: 0;
}

.approach-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.approach-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1a202c;
    line-height: 1.3;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .approach-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.approach-subtitle {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
    margin-top: 0;
    line-height: 1.4;
}

.approach-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: justify;
}

.approach-column .approach-text:last-child {
    margin-bottom: 0;
}

.about-page .page-description {
    text-align: justify;
}

@media (max-width: 767px) {
    .mission-section {
        padding: 3rem 0 !important;
    }

    .section-title-large {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .section-text,
    .approach-text {
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: 1rem;
    }

    .subsection-title {
        margin-top: 2rem;
        margin-bottom: 0.875rem;
        font-size: 1.25rem;
    }

    .approach-title {
        margin-bottom: 2rem;
        font-size: 1.25rem;
    }

    .approach-grid {
        gap: 1.75rem;
    }
}

/* Accessibility helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.article-card-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.article-card-link:hover .article-card-title {
    color: var(--accent-color);
}

/* Image library context menu */
.library-context-menu {
    position: fixed;
    z-index: 130;
    min-width: 10rem;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.library-context-menu.hidden {
    display: none;
}

.library-context-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    color: #1f2937;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.library-context-item:hover {
    background: #f3f4f6;
}

.library-context-item.library-context-danger {
    color: #dc2626;
}

.library-context-item.library-context-danger:hover {
    background: #fef2f2;
}

/* ===== Image Library modal ===== */
#image-library-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    background: rgba(12, 12, 12, 0.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
}

#image-library-modal.is-open,
#image-library-modal.flex {
    display: flex;
}

#image-library-modal .library-dialog {
    width: 100%;
    max-width: 68rem;
    max-height: calc(100vh - 3rem);
    margin: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

#image-library-modal .library-dialog-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1.15rem 1.25rem 1rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

#image-library-modal .library-dialog-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff3e00;
}

#image-library-modal .library-dialog-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}

#image-library-modal .library-dialog-count {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

#image-library-modal .library-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

#image-library-modal .library-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f8f8;
}

#image-library-modal .library-search-wrap {
    position: relative;
    flex: 1 1 12rem;
    min-width: 0;
}

#image-library-modal .library-search-wrap i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
}

#image-library-modal .library-search-wrap input,
#image-library-modal .library-toolbar select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.875rem;
    padding: 0.55rem 0.75rem 0.55rem 2.15rem;
    outline: none;
}

#image-library-modal .library-toolbar select {
    width: auto;
    min-width: 9.5rem;
    padding-left: 0.75rem;
}

#image-library-modal .library-search-wrap input:focus,
#image-library-modal .library-toolbar select:focus {
    border-color: #ff3e00;
    box-shadow: 0 0 0 2px rgba(255, 62, 0, 0.15);
}

#image-library-modal .library-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#image-library-modal .library-tool-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

#image-library-modal .library-tool-btn.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
}

#image-library-modal .library-tool-btn.library-upload-btn {
    border-color: #ff3e00;
    background: #ff3e00;
    color: #fff;
}

#image-library-modal .library-tool-btn.library-upload-btn:hover {
    background: #e03600;
    border-color: #e03600;
}

#image-library-modal .library-tool-btn.library-danger-btn {
    border-color: #ef4444;
    background: #ef4444;
    color: #fff;
}

#image-library-modal .library-tool-btn.library-icon-btn {
    width: 2.5rem;
    padding-left: 0;
    padding-right: 0;
}

#image-library-modal .library-body {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

#image-library-modal .library-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #eee;
    background: #fafafa;
    font-size: 0.75rem;
    color: #6b7280;
}

#image-library-modal .image-library-item {
    border-radius: 0.65rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#image-library-modal .image-library-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
    #image-library-modal {
        padding: 1rem 0.65rem;
        align-items: flex-end;
    }

    #image-library-modal .library-dialog {
        max-height: calc(100vh - 2rem);
        border-radius: 1rem 1rem 0.65rem 0.65rem;
    }

    #image-library-modal .library-dialog-header,
    #image-library-modal .library-toolbar,
    #image-library-modal .library-body,
    #image-library-modal .library-footer {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

/* ===== Admin pages: full-width shell + mobile ===== */
.admin-page {
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    padding-top: 5.5rem;
    padding-bottom: 3rem;
}

.admin-shell {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 640px) {
    .admin-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) {
    .admin-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .admin-shell {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.admin-section-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .admin-section-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table-wrap table {
    width: 100%;
    min-width: 640px;
    table-layout: auto;
}

.admin-touch-btn {
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 767px) {
    .admin-page {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .admin-table-wrap th,
    .admin-table-wrap td {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .admin-page .chart-container {
        height: 220px;
    }
}

/* web-config: full-width main content when using admin shell */
.admin-page.config-main-content,
main.config-main-content.admin-page {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}