/* ============================================================
   设计案例页样式
   ============================================================ */

/* ---------------------------------------- */
/* 加载中状态
/* ---------------------------------------- */
.gallery-loader {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

/* ---------------------------------------- */
/* 空状态
/* ---------------------------------------- */
.gallery-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.gallery-empty i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.gallery-empty p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ---------------------------------------- */
/* 加载更多按钮
/* ---------------------------------------- */
.gallery-load-more {
    padding: 12px 40px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    min-width: 160px;
}

.gallery-load-more:hover:not(:disabled) {
    background: var(--primary-dark, #007a67);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 147, 128, 0.3);
}

.gallery-load-more:disabled,
.gallery-load-more.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reset {
    padding: 8px 24px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: var(--primary);
    color: #fff;
}

/* 筛选样式已移至 page-common.css */
.gallery-page .scene-filter {
    border-bottom: none;
}

/* 精选案例 */
.gallery-featured {
    padding: 60px 0;
    background: var(--bg-primary);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 40px;
    margin-top: 40px;
}

.featured-project {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.featured-project:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.featured-project img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) brightness(0.6);
    transition: all 0.4s ease;
}

.featured-project:hover img {
    filter: grayscale(0%) brightness(0.8);
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 11, 9, 0.95) 0%, rgba(12, 11, 9, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 28px;
    transition: all 0.4s ease;
}

.featured-project:hover .featured-overlay {
    background: linear-gradient(to top, rgba(12, 11, 9, 0.98) 0%, rgba(12, 11, 9, 0.5) 60%, rgba(212, 175, 55, 0.1) 100%);
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-category {
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.featured-project:hover .featured-title {
    color: var(--gold);
}

.featured-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-arrow {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.featured-project:hover .featured-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* 案例画廊 */
.gallery-projects {
    padding: 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 40px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.project-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: all 0.4s ease;
}

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

.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--gold);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
}

.project-info {
    padding: 24px 28px;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.project-category {
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--gold);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card.hidden,
.featured-project.hidden {
    display: none;
}

/* 响应式 */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 20px;
    }

    .gallery-featured {
        padding: 40px 0;
    }

    .gallery-projects {
        padding: 0;
    }

    .featured-grid {
        padding: 0 20px;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px;
    }

    .featured-grid {
        padding: 0 12px;
        gap: 12px;
    }

    .gallery-featured {
        padding: 30px 0;
    }

    .featured-overlay {
        padding: 18px 20px;
    }

    .featured-arrow {
        top: 18px;
        right: 20px;
    }

    .project-info {
        padding: 18px 20px;
    }
}
