/*
    展览页面专用样式
    此文件包含作品展示/展览页面的样式

    自定义指南：
    - 通过在HTML中将col-lg-4改为col-lg-3或col-lg-6来修改网格列数
    - 在.artwork-card部分调整作品卡片样式
    - 更改悬停效果和过渡动画
    - 修改模态框样式以实现全屏查看
*/

/* ===== 页面布局 ===== */
.main-content {
    padding-top: 100px; /* Space for fixed navbar */
    min-height: 100vh;
    background: linear-gradient(135deg, #fefefe 0%, #f8f8f8 100%);
}

/* ===== 签名样式（在所有页面中保持一致） ===== */
.signature-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.signature-text:hover {
    color: #666;
    transform: scale(1.05);
}

/* ===== 展览页面标题 ===== */
/*
    页面标题和副标题区域
    在这里自定义字体、颜色和间距
*/
.portfolio-header {
    padding: 60px 0 40px;
    text-align: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== 年份筛选区域 ===== */
/*
    Year selection buttons
    Modify button styles, colors, and layout here
*/
.year-filter-section {
    padding: 40px 0;
    background: rgba(248, 248, 248, 0.5);
}

.year-filter-container {
    text-align: center;
}

.filter-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.year-filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 单个年份筛选按钮样式 */
.year-btn {
    background: transparent;
    border: 2px solid rgba(26, 26, 26, 0.2);
    color: #666;
    padding: 12px 24px;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 年份按钮悬停效果 */
.year-btn:hover {
    border-color: rgba(26, 26, 26, 0.4);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 26, 26, 0.1);
}

/* 活动年份按钮（当前选中） */
.year-btn.active {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fefefe;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.15);
}

.year-btn.active:hover {
    background-color: #333;
    border-color: #333;
}

/* 按钮点击动画 */
.year-btn:active {
    transform: translateY(0);
}

/* ===== 作品展示区域 ===== */
.gallery-grid-section {
    padding: 60px 0 80px;
}

/* 作品统计显示 */
#galleryGrid,
#noResults {
    opacity: 1;
    transition: opacity 0.22s ease;
    will-change: opacity;
}

#galleryGrid {
    position: relative;
    --gallery-gap: 28px;
    min-height: 0;
}

#galleryGrid.is-fading,
#noResults.is-fading {
    opacity: 0;
    pointer-events: none;
}

.gallery-stats {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666;
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ===== 作品卡片 ===== */
/*
    Individual artwork card styling
    This is where you can customize the appearance of each artwork
*/
.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.32s ease;
    margin: 0;
    min-width: 0;
    width: 100%;
    z-index: 1;
}

/* 筛选动画类 */
.gallery-item.hidden {
    opacity: 0;
    pointer-events: none;
}

.gallery-item.show {
    opacity: 1;
}

/* 主作品卡片容器 */
.artwork-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.08);
    position: relative;
    cursor: pointer;
}

/* 整个卡片悬停效果 */
.artwork-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 26, 26, 0.15);
}

/* ===== 作品图片容器 ===== */
.artwork-image-container {
    position: relative;
    overflow: hidden;
    background: #f6f1eb;
}

/* 作品图片样式 */
.artwork-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: none;
}

.artwork-card:hover .artwork-image {
    transform: scale(1.05);
    filter: none;
}

/* ===== 作品覆盖层 ===== */
/*
    Overlay that appears when hovering over artwork images
    Contains the "View Full Size" button
*/
.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.7) 0%,
        rgba(26, 26, 26, 0.5) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(2px);
}

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

/* 覆盖层中的查看按钮 */
.view-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ===== 作品详细信息 ===== */
/*
    Title and information displayed below each artwork
*/
.artwork-details {
    padding: 1.5rem;
    text-align: center;
}

.artwork-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.artwork-info {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
    margin: 0 0 0.75rem;
    letter-spacing: 0.3px;
}

.artwork-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #4d4d4d;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

/* ===== 无结果消息 ===== */
.no-results {
    padding: 4rem 2rem;
}

.no-results h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.no-results p {
    font-family: 'Inter', sans-serif;
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* ===== 全屏模态框样式 ===== */
/*
    Styles for the fullscreen artwork viewing modal
    Customize the modal appearance and layout here
*/

/* 模态框内容容器 */
.modal-content {
    background: #000;
    border: none;
    border-radius: 0;
}

.modal-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1060;
}

.artwork-modal-layout {
    min-height: 90vh;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
}

.artwork-modal-nav-col {
    display: flex;
    justify-content: center;
}

.artwork-modal-stage {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-modal-sidebar {
    min-width: 0;
}

.artwork-modal-sidebar,
.modal-artwork-info,
.modal-artwork-title,
.modal-artwork-details,
.modal-artwork-description {
    display: none !important;
}

/* 关闭按钮样式 */
button.artwork-modal-close {
    background: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    color: #000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

button.artwork-modal-close:hover {
    background: #ffffff !important;
    color: #000 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* 模态框作品图片 */
.modal-artwork-image {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    display: block !important;
    margin: 0 auto !important;
}

/* 模态框导航按钮 */
.modal-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 模态框作品信息 */
.modal-artwork-info {
    color: #fff;
    padding: 2rem;
}

.modal-artwork-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.modal-artwork-details {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
}

.modal-artwork-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 300;
}

/* ===== 响应式设计 ===== */
/*
    Responsive breakpoints for different screen sizes
    Modify these for different responsive behavior
*/

/* 平板样式 */
@media (max-width: 992px) {
    #galleryGrid {
        --gallery-gap: 24px;
    }

    .main-content {
        padding-top: 80px;
    }

    .page-title {
        font-size: 3rem;
    }

    .year-filter-buttons {
        gap: 12px;
    }

    .year-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .artwork-title {
        font-size: 1.2rem;
    }

    /* 平板的模态框调整 */
    .modal-artwork-title {
        font-size: 1.8rem;
    }

    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .artwork-modal-layout {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "prev stage next";
    }

    .artwork-modal-layout .artwork-modal-nav-col:first-child {
        grid-area: prev;
    }

    .artwork-modal-stage {
        grid-area: stage;
    }

    .artwork-modal-layout .artwork-modal-nav-col:last-child {
        grid-area: next;
    }

}

/* 移动端样式 */
@media (max-width: 768px) {
    #galleryGrid {
        --gallery-gap: 20px;
    }

    .signature-text {
        font-size: 1.8rem;
    }

    .portfolio-header {
        padding: 40px 0 30px;
    }

    .page-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .year-filter-section {
        padding: 30px 0;
    }

    .filter-title {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .year-filter-buttons {
        justify-content: center;
        gap: 10px;
    }

    .year-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex: 0 0 auto;
        min-width: 80px;
    }

    .gallery-grid-section {
        padding: 40px 0 60px;
    }

    .gallery-stats {
        margin-bottom: 2rem;
    }

    .artwork-details {
        padding: 1rem;
    }

    .artwork-title {
        font-size: 1.1rem;
    }

    .artwork-info {
        font-size: 0.85rem;
    }

    /* 移动端模态框调整 */
    .modal-artwork-info {
        padding: 1rem;
    }

    .modal-artwork-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .modal-artwork-details {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .artwork-modal-layout {
        min-height: auto;
        gap: 0.75rem;
        padding: 4.5rem 0 1.5rem;
    }

    .modal-artwork-image {
        max-height: 62vh;
    }
}

/* 小尺寸移动端样式 */
@media (max-width: 480px) {
    .year-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }

    .artwork-card {
        margin-bottom: 1.5rem;
    }

    .artwork-details {
        padding: 0.8rem;
    }

    .artwork-modal-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "stage";
        gap: 1rem;
    }

    .artwork-modal-nav-col {
        position: fixed;
        bottom: 20px;
        z-index: 1060;
    }

    .artwork-modal-layout .artwork-modal-nav-col:first-child {
        left: 20px;
    }

    .artwork-modal-layout .artwork-modal-nav-col:last-child {
        right: 20px;
    }

    .no-results {
        padding: 3rem 1rem;
    }
}

/* ===== 动画类 ===== */
/*
    Animation keyframes for smooth transitions
    Used by JavaScript for filtering animations
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-out {
    animation: fadeOut 0.4s ease forwards;
}

/* 图片加载动画 */
.artwork-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/*
    CUSTOMIZATION TIPS:

    1. GRID LAYOUT:
       - Change col-lg-4 to col-lg-3 in HTML for 4 columns
       - Change to col-lg-6 for 2 columns
       - Adjust aspect-ratio in .artwork-image-container

    2. COLOR SCHEME:
       - Replace #1a1a1a with your primary color
       - Replace #666 with your secondary text color
       - Modify background gradients

    3. SPACING:
       - Adjust padding values throughout for tighter/looser layout
       - Modify margin-bottom on .gallery-item for different spacing

    4. HOVER EFFECTS:
       - Change transform values in hover states
       - Modify transition timing for faster/slower animations
       - Adjust box-shadow values for different shadow effects

    5. MODAL APPEARANCE:
       - Change modal background color
       - Modify modal-artwork-info padding and layout
       - Adjust modal navigation button styling
*/
