/* 企业相册 album.php 专用样式
 * 风格：苹果照片紧凑方形网格，集合分组保留
 * 主蓝 #12a0f8（站点主色），底色克制，让照片成为主角
 */

/* ===== 顶部 banner ===== */
#album-banner {
    height: 280px;
    background: url("../images/inside/help_banner.jpg") center/cover no-repeat;
    text-align: center;
    position: relative;
}
#album-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 35, 60, .65) 0%, rgba(20, 35, 60, .45) 100%);
}
#album-banner h3,
#album-banner h4 {
    position: relative;
    color: #fff;
}
#album-banner h3 {
    font-size: 32px;
    padding-top: 95px;
    letter-spacing: 4px;
}
#album-banner h4 {
    font-size: 18px;
    padding-top: 16px;
    font-weight: normal;
    letter-spacing: 2px;
    opacity: .85;
}

/* ===== 空状态 ===== */
.album-empty {
    text-align: center;
    padding: 120px 0 160px;
    color: #999;
}
.album-empty p {
    font-size: 22px;
    color: #555;
    margin-bottom: 12px;
}
.album-empty span {
    font-size: 13px;
    color: #b0b0b0;
}

/* ===== 集合 section ===== */
.album-section {
    padding: 56px 0 64px;
}
.album-section--white { background-color: #ffffff; }
.album-section--gray  { background-color: #fafafa; }

.album-hd {
    text-align: center;
    margin-bottom: 28px;
}
.album-title {
    font-size: 24px;
    color: #1f1f1f;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
}
.album-line {
    width: 32px;
    height: 2px;
    background-color: #12a0f8;
    margin: 14px auto 12px;
    border-radius: 2px;
}
.album-meta {
    font-size: 13px;
    color: #999;
    letter-spacing: 1px;
}

/* ===== 苹果照片紧凑网格 ===== */
.album-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
@media (max-width: 1100px) { .album-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 900px)  { .album-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 700px)  { .album-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 500px)  { .album-grid { grid-template-columns: repeat(3, 1fr); } }

.album-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #ececec;
    cursor: zoom-in;
}
.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease, filter .25s ease;
    filter: brightness(.98);
}
.album-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.02);
}

/* aspect-ratio 兜底 */
@supports not (aspect-ratio: 1) {
    .album-item { height: 0; padding-bottom: 100%; }
    .album-item img { position: absolute; inset: 0; }
}

/* ===== Lightbox ===== */
.album-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.album-lightbox.is-open {
    display: flex;
}
.album-lightbox-stage {
    max-width: 92vw;
    max-height: 90vh;
    text-align: center;
}
.album-lightbox-img {
    max-width: 92vw;
    max-height: 84vh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    border-radius: 4px;
}
.album-lightbox-caption {
    color: #ccc;
    font-size: 13px;
    padding-top: 18px;
    letter-spacing: 1px;
    font-feature-settings: "tnum";
}
.album-lightbox-close,
.album-lightbox-prev,
.album-lightbox-next {
    position: absolute;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: color .2s ease, transform .2s ease, background .2s ease;
}
.album-lightbox-close {
    top: 24px;
    right: 32px;
    font-size: 36px;
    line-height: 1;
}
.album-lightbox-prev,
.album-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    width: 52px;
    height: 52px;
    line-height: 52px;
    text-align: center;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
}
.album-lightbox-prev { left: 32px; }
.album-lightbox-next { right: 32px; }
.album-lightbox-close:hover,
.album-lightbox-prev:hover,
.album-lightbox-next:hover {
    color: #12a0f8;
    background: rgba(255, 255, 255, .12);
}
.album-lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.album-lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

@media (max-width: 700px) {
    .album-lightbox-prev,
    .album-lightbox-next { display: none; }
}
