/* ===== 我的作品页面独立样式 ===== */

/* 覆盖 hero-wrapper 背景 */
.hero-wrapper {
    background: url('../bg.jpg') top/100% auto no-repeat;
}

/* ===== Hero: "我的作品" 标题区 ===== */
.about-hero {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 280px;
    padding-bottom: 0;
    margin-bottom: -40px;
}

.about-hero-title-box {
    background: #000000;
    padding: 24px 64px;
    border-radius: 4px;
}

.about-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 8px;
    text-align: center;
    line-height: 1.2;
}

/* ===== 作品图片展示区 ===== */
.works-gallery-section {
    background: #F5F5F5;
    padding: 48px 24px 60px;
    display: flex;
    justify-content: center;
}

.works-gallery-grid {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ===== 图片卡片 ===== */
.works-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.works-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.works-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.works-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    background: #E5E7EB;
}

.works-card-info {
    padding: 14px 18px;
    text-align: center;
}

.works-card-info span {
    font-size: 14px;
    color: #666666;
    letter-spacing: 1px;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox--active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

/* 关闭按钮 */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
}

/* 左右箭头 */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1010;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.2s;
    padding: 0;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-arrow svg {
    width: 24px;
    height: 24px;
}

.lightbox-arrow--prev {
    left: 16px;
}

.lightbox-arrow--next {
    right: 16px;
}

/* ===== 页脚 ===== */
.works-footer {
    background-color: #4A5568;
    text-align: center;
    padding: 20px 48px;
}

.works-footer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    line-height: 1.6;
}

.works-footer-text a {
    color: #63B3ED;
    transition: color 0.2s;
}

.works-footer-text a:hover {
    color: #90CDF4;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .about-hero {
        min-height: 160px;
        margin-bottom: -20px;
    }

    .about-hero-title-box {
        padding: 12px 36px;
    }

    .about-hero-title {
        font-size: 26px;
        letter-spacing: 4px;
    }

    .works-gallery-section {
        padding: 32px 16px 48px;
    }

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

    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox-arrow svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-arrow--prev {
        left: 8px;
    }

    .lightbox-arrow--next {
        right: 8px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .lightbox-close svg {
        width: 18px;
        height: 18px;
    }

    .works-footer {
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        min-height: 130px;
        margin-bottom: -16px;
    }

    .about-hero-title-box {
        padding: 10px 24px;
    }

    .about-hero-title {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .works-gallery-section {
        padding: 24px 12px 36px;
    }

    .works-gallery-grid {
        gap: 16px;
    }

    .works-card-info {
        padding: 10px 14px;
    }

    .works-card-info span {
        font-size: 13px;
    }
}
