html {
    scroll-behavior: smooth;
    scroll-padding-top: 220px;
}

[id] {
    scroll-margin-top: 220px;
}

.pc-only { display: block; }
.mobile-only { display: none; }
.header-m-nav { display: none; }

.series-detail-page {
    background: #f7f4ef;
    color: #222;
}

.series-banner {
    padding-top: 80px;
    background: #eee7dd;
}

.series-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.series-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Nav ===== */
.style-nav,
.space-nav {
    position: sticky;
    z-index: 32;
    backdrop-filter: blur(10px);
    border-top: 1px solid #e9e1d5;
    border-bottom: 1px solid #e9e1d5;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.style-nav {
    top: 80px;
    background: rgba(247,244,239,.96);
}

.space-nav {
    top: 146px;
    z-index: 31;
    background: rgba(255,255,255,.96);
}

.style-nav-inner,
.style-nav-inner-style,
.space-nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.style-nav a,
.space-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #d9cfbf;
    border-radius: 999px;
    background: #fff;
    color: #6b4b2f;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: all .25s ease;
    white-space: nowrap;
}

.space-nav a {
    color: #333;
    font-size: 16px;
    min-height: 38px;
}

.style-nav a:first-child,
.space-nav a:first-child {
    min-width: 118px;
    background: #f1e7da;
    border-color: #cbb99f;
    color: #5a3b24;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.style-nav a:not(:first-child),
.space-nav a:not(:first-child) {
    min-width: 96px;
}

.style-nav a:first-child::before,
.space-nav a:first-child::before {
    content: "ALL";
    font-size: 11px;
    letter-spacing: .08em;
    margin-right: 7px;
    opacity: .75;
}

.style-nav a.active,
.style-nav a:hover {
    background: #6b4b2f !important;
    color: #fff !important;
    border-color: #6b4b2f !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(107,75,47,.35);
}

.space-nav a.active,
.space-nav a:hover {
    background: #2f4b5a !important;
    color: #fff !important;
    border-color: #2f4b5a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47,75,90,.35);
}

.style-nav a.active::after,
.space-nav a.active::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #fff;
    margin-left: 8px;
    opacity: .95;
}

.nav-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0c3b4;
    font-size: 18px;
    user-select: none;
    pointer-events: none;
}

/* ===== Desktop Nav Grid ===== */
@media (min-width: 769px) {
    .style-nav-inner {
                    width: fit-content;
                    max-width: calc(100% - 40px);
                    margin: 0 auto;
                    padding: 12px 20px;
                    display: grid;
                    grid-template-columns:
                        118px 2px 96px 96px 96px 96px 128px 96px 96px 96px;
                    justify-content: center;
                    gap: 10px;
                }

                .space-nav-inner.space-nav-grid {
                    width: fit-content;
                    max-width: calc(100% - 40px);
                    margin: 0 auto;
                    margin-left: 480px;
                    /* 往左移 */
                    padding: 12px 20px;
                    display: grid;
                    grid-template-columns:
                        118px 2px 96px 96px 96px 96px 96px 96px 96px 96px;
                    justify-content: center;
                    gap: 10px;
                }

                .style-nav-inner-style {
                    width: fit-content;
                    max-width: calc(100% - 40px);
                    margin: 0 auto;
                    padding: 12px 20px;
                    display: grid;
                    grid-template-columns:
                        118px 2px 96px 96px 96px 96px 128px 96px 96px;
                    justify-content: center;
                    gap: 10px;
                }

                .space-nav-inner-style.space-nav-grid {
                    width: fit-content;
                    max-width: calc(100% - 40px);
                    margin: 0 auto;
                    padding: 12px 20px;
                    display: grid;
                    grid-template-columns:
                        118px 2px 96px 96px 96px 96px 128px 96px 96px;
                    justify-content: center;
                    gap: 10px;
                }

    .style-nav a,
    .space-nav a {
        width: 100%;
        min-width: 0 !important;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }


}

/* ===== Detail Content ===== */
.breadcrumb {
    padding: 26px 0 0;
    font-size: 15px;
    color: #777;
    line-height: 1.8;
}

.breadcrumb a {
    color: #6b4b2f;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.series-hero {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 44px;
    align-items: center;
    padding: 44px 0 54px;
}

.series-hero-text .kicker,
.section-kicker,
.card-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #8a7155;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 14px;
}

.series-hero-text h1 {
    font-size: 46px;
    line-height: 1.25;
    color: #111;
    margin: 0 0 16px;
}

.series-hero-text p {
    font-size: 19px;
    line-height: 1.9;
    color: #555;
    margin: 0 0 20px;
}

.hero-image-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #eee5d9;
    box-shadow: 0 18px 42px rgba(0,0,0,.08);
}

.hero-image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.hero-image-caption {
    padding: 18px 22px 22px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.detail-section {
    padding: 70px 0 10px;
}

.section-head {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e7dfd3;
}

.section-head h2 {
    font-size: 34px;
    line-height: 1.35;
    color: #111;
    margin: 0 0 10px;
}

.section-head p {
    max-width: 880px;
    margin: 0;
    font-size: 18px;
    line-height: 1.85;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.gallery-card {
    display: block;
    background: #fff;
    border: 1px solid #eee5d9;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    box-shadow: 0 14px 36px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #eee7dd;
}

.gallery-card-body {
    padding: 18px 20px 22px;
}

.gallery-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.35;
    color: #111;
}

.gallery-card p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.75;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 180px;
    }

    [id] {
        scroll-margin-top: 180px;
    }

    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .series-banner {
        padding-top: 0;
    }

    .series-wrap {
        padding: 0 22px;
    }

    .series-hero {
        grid-template-columns: 1fr;
        padding: 34px 0 42px;
        gap: 26px;
    }

    .series-hero-text h1 {
        font-size: 34px;
    }

    .series-hero-text p,
    .section-head p {
        font-size: 17px;
    }

    .style-nav {
        top: 60px;
    }

    .space-nav {
        top: 121px;
    }

    .style-nav-inner,
    .style-nav-inner-style,
    .space-nav-inner {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 20px;
        gap: 8px;
    }

    .style-nav-inner::-webkit-scrollbar,
    .style-nav-inner-style::-webkit-scrollbar,
    .space-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .style-nav a,
    .space-nav a {
        flex-shrink: 0;
        font-size: 16px;
        padding: 0 15px;
        min-height: 36px;
        min-width: auto !important;
    }

    .space-nav-empty {
        display: none !important;
    }

    .detail-section {
        padding: 52px 0 0;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

  .gallery.gallery-mixed {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .gallery.gallery-mixed .gallery-full {
        grid-column: 1 / -1;
    }

    .gallery.gallery-mixed a {
        display: block;
        overflow: hidden;
    }

    .gallery.gallery-mixed img {
        width: 100%;
        height: auto;
        display: block;
    }

    @media (max-width: 768px) {
        .gallery.gallery-mixed {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .gallery.gallery-mixed .gallery-full {
            grid-column: auto;
        }
    }