/* ============================================================
   湘之绣官网 - 版本画册页样式（album-706.html 等共用）
   ============================================================ */

:root {
    --album-primary: #8b6f4e;
    --album-dark: #2b2420;
    --album-gray: #8a8378;
    --album-bg: #f7f5f2;
    --album-white: #ffffff;
    --album-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--album-bg);
    color: var(--album-dark);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== 顶部导航条 ===== */
.album-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.album-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.album-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--album-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.25s;
}

.album-back:hover {
    color: var(--album-primary);
}

.album-back svg {
    width: 18px;
    height: 18px;
}

/* 系列切换标签 */
.album-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.album-switch a {
    padding: 5px 12px;
    font-size: 0.8125rem;
    color: var(--album-gray);
    text-decoration: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    transition: all 0.25s;
    white-space: nowrap;
}

.album-switch a:hover {
    color: var(--album-primary);
}

.album-switch a.active {
    background: var(--album-primary);
    color: #fff;
}

/* ===== 系列头图区 ===== */
.album-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 8px;
}

.album-hero .crumbs {
    font-size: 0.8125rem;
    color: var(--album-gray);
    margin-bottom: 10px;
}

.album-hero .crumbs a {
    color: var(--album-gray);
    text-decoration: none;
}

.album-hero .crumbs a:hover {
    color: var(--album-primary);
}

.album-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.album-title .no {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--album-primary);
}

.album-title .name {
    font-size: 1.5rem;
    font-weight: 600;
}

.album-meta {
    margin-top: 6px;
    color: var(--album-gray);
    font-size: 0.9375rem;
}

/* 封面大图 */
.album-cover {
    margin-top: 24px;
    border-radius: var(--album-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.album-cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

/* ===== 图片分区 ===== */
.album-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 8px;
}

.album-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.album-section-head h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.album-section-head .count {
    font-size: 0.8125rem;
    color: var(--album-gray);
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 10px;
    border-radius: 999px;
}

.album-section-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.album-item {
    position: relative;
    border-radius: var(--album-radius);
    overflow: hidden;
    cursor: zoom-in;
    background: #e9e5df;
    aspect-ratio: 3 / 4;
}

/* 效果图多为横幅场景，单独放宽比例 */
.album-section[data-type="3"] .album-item {
    aspect-ratio: 4 / 3;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-item:hover img {
    transform: scale(1.05);
}

.album-item .idx {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 2px 10px;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* ===== 页脚 ===== */
.album-footer {
    margin-top: 64px;
    padding: 32px 24px 40px;
    text-align: center;
    color: var(--album-gray);
    font-size: 0.875rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--album-white);
}

.album-footer a {
    color: var(--album-primary);
    text-decoration: none;
}

/* ===== 灯箱 ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    background: rgba(15, 12, 10, 0.94);
}

.lightbox.open {
    display: flex;
    flex-direction: column;
}

.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 56px 72px;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.lightbox-close {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    padding: 8px;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

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

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .album-nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }

    .album-switch {
        justify-content: flex-start;
    }

    .album-hero,
    .album-section {
        padding: 28px 16px 4px;
    }

    .album-title .no {
        font-size: 1.875rem;
    }

    .album-title .name {
        font-size: 1.25rem;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lightbox-stage {
        padding: 56px 12px;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
    }
}
