/* ==========================================================================
   画廊和作品展示样式 - Gallery Styles
   用于实景展示、作品画廊等组件
   ========================================================================== */

/* ==================== 实景展示部分 ==================== */
.works-section {
    margin: 80px 0 100px 0;
    position: relative;
}

.works-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #A6A6A6;
}

.works-title {
    font-size: 35px;
    line-height: 49px;
    color: #000000;
    font-weight: 400;
}

.works-nav {
    display: flex;
    gap: 14px;
}

.works-nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.works-nav-btn:hover {
    opacity: 0.7;
}

.works-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.works-nav-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==================== 作品画廊 ==================== */
.works-gallery {
    position: relative;
    overflow: hidden;
}

.works-gallery-wrapper {
    display: flex;
    gap: 50px;
    transition: transform 0.5s ease;
}

.work-card {
    flex-shrink: 0;
    width: 500px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

/* ==================== 图片浮窗 ==================== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10001;
}

.image-modal-close::before,
.image-modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background: white;
}

.image-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.image-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ==================== 滚动触发动画 ==================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}
