/* ===== 画廊页面样式 ===== */

/* 页面容器 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 0;
}

/* 页面标题 */
.page-title {
    font-size: 48px;
    font-weight: 600;
    color: #121212;
    margin-bottom: 10px;
}

.title-underline {
    width: 46px;
    height: 3px;
    background: #B90804;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 40px;
    color: #A77E30;
    margin-bottom: 30px;
}

/* 画廊区域 */
.gallery-section {
    width: 100%;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 43px 62px;
}

.gallery-card {
      width: 423px;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    display: block;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card .gallery-image {
    width: 100%;
    height: 275px;
    overflow: hidden;
    background-color: #F4F4F4;
}

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

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

.gallery-card .gallery-title {
    font-size: 22px;
    font-weight: 600;
    color: #262626;
    line-height: 1.4;
    text-align: left;
    background: #F6F6F6;
    padding: 24px 5px 17px 26px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #D3D3D3;
    background-color: #FFFFFF;
    color: #262626;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background-color: #BA9F6F;
    color: #FFFFFF;
    border-color: #BA9F6F;
}

.pagination button.active {
    background-color: #BA9F6F;
    color: #FFFFFF;
    border-color: #BA9F6F;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-card .gallery-image {
        height: 200px;
    }
}
