/* =========================================================
   WILLAKE WOODS — ANNUAL PICTURE
   annual.css
   2020–2025
========================================================= */


/* =========================================================
   01. RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;

    background: #000;

    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: transparent;

    color: rgba(255,255,255,0.92);

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        Arial,
        sans-serif;

    font-weight: 300;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;

    opacity: 0;

    transition:
        opacity 1.2s ease;
}

body.annual-loaded {
    opacity: 1;
}

body.lightbox-open {
    overflow: hidden;
}


img {
    display: block;

    max-width: 100%;

    user-select: none;

    -webkit-user-drag: none;
}


a {
    color: inherit;

    text-decoration: none;
}


button {
    font: inherit;
}


/* =========================================================
   02. ANNUAL BACKGROUND
========================================================= */

/*
   年度照片作为整个页面的环境背景。

   重点：
   - fixed
   - 不使用负 z-index
   - 永远存在
   - 永远保持模糊
   - 不会滚动消失
   - 不会被 body 黑色背景盖掉
*/

.annual-background {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: 0;

    background:
        #050505;

    pointer-events: none;
}


/* ---------------------------------------------------------
   Background image
--------------------------------------------------------- */

.annual-background img {
    position: absolute;

    top: -10%;
    left: -10%;

    width: 120%;
    height: 120%;

    object-fit: cover;

    /*
       强模糊，但仍然保留年度照片的颜色
    */

    filter:
        blur(34px)
        brightness(0.50)
        saturate(0.82)
        contrast(0.94);

    opacity: 0.78;

    transform:
        scale(1.05);

    transform-origin:
        center center;

    pointer-events: none;

    user-select: none;

    /*
       防止浏览器在滚动时重新合成图层
    */

    will-change:
        transform,
        filter;
}


/* ---------------------------------------------------------
   Atmospheric dark layer
--------------------------------------------------------- */

.annual-background::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.34) 0%,
            rgba(0,0,0,0.16) 25%,
            rgba(0,0,0,0.24) 52%,
            rgba(0,0,0,0.42) 78%,
            rgba(0,0,0,0.58) 100%
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   Edge vignette
--------------------------------------------------------- */

.annual-background::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 3;

    background:
        radial-gradient(
            ellipse at center,
            rgba(0,0,0,0.00) 0%,
            rgba(0,0,0,0.06) 45%,
            rgba(0,0,0,0.38) 100%
        );

    pointer-events: none;
}


/* =========================================================
   03. PAGE LAYER
========================================================= */

.annual-page {
    position: relative;

    width: 100%;

    min-height: 100vh;

    z-index: 1;

    background:
        transparent;
}


/* =========================================================
   04. HEADER
========================================================= */

.annual-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 88px;

    padding:
        0
        42px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    z-index: 100;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.20),
            rgba(0,0,0,0)
        );

    transition:
        transform 0.55s cubic-bezier(.22,.61,.36,1),
        opacity 0.45s ease;
}


.annual-header.header-hidden {
    transform:
        translateY(-110%);

    opacity: 0;
}


/* ---------------------------------------------------------
   Brand
--------------------------------------------------------- */

.annual-brand {
    display: inline-block;

    font-size: 14px;

    line-height: 1;

    font-weight: 400;

    letter-spacing:
        -0.01em;

    color:
        rgba(255,255,255,0.90);

    white-space: nowrap;

    transition:
        opacity 0.3s ease;
}


.annual-brand:hover {
    opacity: 0.62;
}


/* ---------------------------------------------------------
   Navigation
--------------------------------------------------------- */

.annual-nav {
    display: flex;

    align-items: center;

    gap: 34px;
}


.annual-nav a {
    position: relative;

    font-size: 13px;

    line-height: 1;

    font-weight: 300;

    letter-spacing:
        -0.01em;

    color:
        rgba(255,255,255,0.72);

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}


.annual-nav a:hover {
    color:
        rgba(255,255,255,1);
}


/* =========================================================
   05. HERO
========================================================= */

.annual-hero {
    position: relative;

    width: 100%;

    min-height: 100vh;

    padding:
        145px
        7vw
        100px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


/* =========================================================
   06. ANNUAL TITLE
========================================================= */

.annual-title {
    margin:
        0
        0
        48px;

    max-width: 900px;

    font-size:
        clamp(32px, 4.2vw, 64px);

    line-height:
        1.04;

    font-weight:
        300;

    letter-spacing:
        -0.045em;

    color:
        rgba(255,255,255,0.94);

    text-align:
        center;

    text-wrap:
        balance;
}


/* =========================================================
   07. PHOTO + YEAR NAVIGATION
========================================================= */

.annual-photo-navigation {
    width: 100%;

    max-width: 1280px;

    min-height: 62vh;

    display: grid;

    grid-template-columns:
        minmax(130px,1fr)
        minmax(420px,760px)
        minmax(130px,1fr);

    align-items: center;

    gap: 30px;
}


/* =========================================================
   08. MAIN ANNUAL COVER
========================================================= */

.annual-cover {
    position: relative;

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;
}


.annual-cover img {
    width: auto;

    max-width: 100%;

    max-height: 60vh;

    object-fit: contain;

    cursor: zoom-in;

    border-radius: 2px;

    box-shadow:
        0 24px 80px
        rgba(0,0,0,0.32);

    transition:
        transform 0.7s cubic-bezier(.22,.61,.36,1),
        opacity 0.5s ease;
}


.annual-cover img:hover {
    transform:
        scale(1.012);
}


/* =========================================================
   09. YEAR NAVIGATION
========================================================= */

.year-nav,
.annual-year-side {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-width: 110px;

    font-size: 13px;

    font-weight: 300;

    letter-spacing: 0;

    color:
        rgba(255,255,255,0.50);

    transition:
        color 0.35s ease,
        transform 0.35s ease,
        opacity 0.35s ease;
}


.year-nav:hover,
.annual-year-side:hover {
    color:
        rgba(255,255,255,0.92);

    transform:
        translateY(-2px);
}


.year-nav .arrow,
.year-arrow {
    font-size: 20px;

    line-height: 1;

    font-weight: 200;
}


.year-nav-empty {
    visibility: hidden;
}


/* =========================================================
   10. COVER NAME
========================================================= */

.annual-cover-name {
    margin:
        38px
        0
        0;

    font-size: 14px;

    line-height: 1.5;

    font-weight: 300;

    color:
        rgba(255,255,255,0.60);

    letter-spacing: 0;
}


/* =========================================================
   11. MAIN CONTENT
========================================================= */

.annual-content {
    position: relative;

    width: 100%;

    padding:
        100px
        7vw
        160px;

    background:
        transparent;
}


/* =========================================================
   12. DESCRIPTION
========================================================= */

.annual-description {
    width: 100%;

    max-width: 760px;

    margin:
        0
        auto
        150px;

    text-align: center;
}


/* ---------------------------------------------------------
   Description title
--------------------------------------------------------- */

.annual-description-title {
    margin:
        0
        0
        18px;

    font-size:
        clamp(26px,3vw,42px);

    line-height:
        1.08;

    font-weight:
        300;

    letter-spacing:
        -0.035em;

    color:
        rgba(255,255,255,0.92);
}


/* ---------------------------------------------------------
   Chinese name
--------------------------------------------------------- */

.annual-description-name {
    margin:
        0
        0
        9px;

    font-size: 15px;

    line-height: 1.5;

    font-weight: 300;

    color:
        rgba(255,255,255,0.68);
}


/* ---------------------------------------------------------
   Author
--------------------------------------------------------- */

.annual-description-author {
    margin:
        0
        0
        34px;

    font-size: 12px;

    line-height: 1.5;

    font-weight: 300;

    color:
        rgba(255,255,255,0.42);
}


/* ---------------------------------------------------------
   Description text
--------------------------------------------------------- */

.annual-description-text {
    margin:
        0
        auto;

    max-width: 650px;

    font-size: 14px;

    line-height: 1.95;

    font-weight: 300;

    color:
        rgba(255,255,255,0.60);
}


/* ---------------------------------------------------------
   Date
--------------------------------------------------------- */

.annual-description-date {
    margin:
        40px
        0
        0;

    font-size: 11px;

    line-height: 1.5;

    letter-spacing:
        0.08em;

    font-weight: 300;

    color:
        rgba(255,255,255,0.36);
}


/* =========================================================
   13. OTHER PHOTOGRAPHS
========================================================= */

.other-section {
    width: 100%;

    max-width: 1400px;

    margin:
        0
        auto;
}


.other-label {
    margin:
        0
        0
        30px;

    font-size: 11px;

    line-height: 1.5;

    font-weight: 300;

    letter-spacing:
        0.08em;

    color:
        rgba(255,255,255,0.42);
}


/* =========================================================
   14. OTHER PHOTO GRID

   关键：
   每一张都是正方形预览。

   2020–2022 → HTML 中有几张就显示几张
   2023–2025 → HTML 中有几张就显示几张

   CSS 不制造额外照片。
========================================================= */

.other-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 18px;
}


.other-photo {
    position: relative;

    width: 100%;

    aspect-ratio:
        1 / 1;

    overflow: hidden;

    background:
        rgba(255,255,255,0.025);

    cursor: zoom-in;
}


.other-photo img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(.22,.61,.36,1),
        opacity 0.5s ease;
}


.other-photo:hover img {
    transform:
        scale(1.045);

    opacity:
        0.86;
}


/* =========================================================
   15. MOONLIGHT PHOTO
=========================================================

   ★★★ 最重要修复 ★★★

   你的 HTML 实际结构是：

   .moonlight-section
       ├── .moonlight-image
       └── .moonlight-info

   没有 .moonlight-content。

   所以这里直接让：

   .moonlight-section

   本身成为两列 Grid。

   Desktop：

   ┌──────────────────────┬──────────────────┐
   │                      │                  │
   │        IMAGE         │       TEXT       │
   │                      │                  │
   └──────────────────────┴──────────────────┘

========================================================= */

.moonlight-section {
    width: 100%;

    max-width: 1180px;

    margin:
        0
        auto
        170px;

    /*
       ★ 直接在 section 上建立两列
    */

    display: grid;

    grid-template-columns:
        minmax(0,1.12fr)
        minmax(300px,0.88fr);

    column-gap:
        70px;

    align-items:
        center;
}


/* ---------------------------------------------------------
   Left image
--------------------------------------------------------- */

.moonlight-image {
    width: 100%;

    min-width: 0;

    grid-column:
        1;
}


.moonlight-image img {
    width: 100%;

    height: auto;

    display: block;

    object-fit: contain;

    cursor: zoom-in;

    box-shadow:
        0 24px 70px
        rgba(0,0,0,0.22);

    transition:
        transform 0.7s cubic-bezier(.22,.61,.36,1),
        opacity 0.45s ease;
}


.moonlight-image img:hover {
    transform:
        scale(1.012);

    opacity:
        0.88;
}


/* ---------------------------------------------------------
   Right information
--------------------------------------------------------- */

.moonlight-info {
    width: 100%;

    min-width: 0;

    grid-column:
        2;

    text-align:
        left;

    padding:
        0
        10px
        0
        0;
}


/* ---------------------------------------------------------
   Rank
--------------------------------------------------------- */

.moonlight-rank {
    margin:
        0
        0
        20px;

    font-size: 11px;

    line-height: 1.5;

    font-weight: 300;

    letter-spacing:
        0.08em;

    color:
        rgba(255,255,255,0.40);
}


/* ---------------------------------------------------------
   Title
--------------------------------------------------------- */

.moonlight-title {
    margin:
        0
        0
        13px;

    font-size:
        clamp(25px,2.5vw,36px);

    line-height:
        1.08;

    font-weight:
        300;

    letter-spacing:
        -0.035em;

    color:
        rgba(255,255,255,0.90);
}


/* ---------------------------------------------------------
   Chinese name
--------------------------------------------------------- */

.moonlight-name {
    margin:
        0
        0
        8px;

    font-size:
        14px;

    line-height:
        1.5;

    font-weight:
        300;

    color:
        rgba(255,255,255,0.62);
}


/* ---------------------------------------------------------
   Author
--------------------------------------------------------- */

.moonlight-author {
    margin:
        0
        0
        28px;

    font-size:
        11px;

    line-height:
        1.5;

    font-weight:
        300;

    color:
        rgba(255,255,255,0.38);
}


/* ---------------------------------------------------------
   Shot
--------------------------------------------------------- */

.moonlight-shot {
    margin:
        0
        0
        24px;

    font-size:
        13px;

    line-height:
        1.9;

    font-weight:
        300;

    color:
        rgba(255,255,255,0.56);
}


/* ---------------------------------------------------------
   Story
--------------------------------------------------------- */

.moonlight-story {
    margin:
        0;

    font-size:
        13px;

    line-height:
        1.9;

    font-weight:
        300;

    color:
        rgba(255,255,255,0.56);
}


/* =========================================================
   16. LIGHTBOX
========================================================= */

.annual-lightbox {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        60px
        90px;

    background:
        rgba(0,0,0,0.94);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}


.annual-lightbox.open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.annual-lightbox img {
    max-width:
        92vw;

    max-height:
        88vh;

    width:
        auto;

    height:
        auto;

    object-fit:
        contain;

    cursor:
        default;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,0.55);
}


/* =========================================================
   17. LIGHTBOX CLOSE
========================================================= */

.lightbox-close {
    position: absolute;

    top: 26px;
    right: 32px;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        rgba(255,255,255,0.70);

    font-size:
        32px;

    line-height:
        44px;

    font-weight:
        200;

    cursor:
        pointer;

    z-index:
        5;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.lightbox-close:hover {
    color:
        rgba(255,255,255,1);

    transform:
        rotate(90deg);
}


/* =========================================================
   18. LIGHTBOX ARROWS
========================================================= */

.lightbox-arrow {
    position: absolute;

    top: 50%;

    width: 54px;
    height: 72px;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        rgba(255,255,255,0.52);

    font-size:
        46px;

    line-height:
        72px;

    font-weight:
        200;

    cursor:
        pointer;

    transform:
        translateY(-50%);

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.lightbox-arrow:hover {
    color:
        rgba(255,255,255,0.95);
}


.lightbox-arrow.left {
    left:
        22px;
}


.lightbox-arrow.right {
    right:
        22px;
}


.lightbox-arrow.left:hover {
    transform:
        translate(-4px,-50%);
}


.lightbox-arrow.right:hover {
    transform:
        translate(4px,-50%);
}


/* =========================================================
   19. PAGE ARRIVAL
========================================================= */

.annual-hero,
.annual-description,
.other-section,
.moonlight-section {
    opacity:
        0;

    transform:
        translateY(18px);

    transition:
        opacity 1.1s ease,
        transform 1.1s cubic-bezier(.22,.61,.36,1);
}


body.annual-loaded .annual-hero {
    opacity:
        1;

    transform:
        translateY(0);

    transition-delay:
        0.08s;
}


body.annual-loaded .annual-description {
    opacity:
        1;

    transform:
        translateY(0);

    transition-delay:
        0.18s;
}


body.annual-loaded .moonlight-section {
    opacity:
        1;

    transform:
        translateY(0);

    transition-delay:
        0.24s;
}


body.annual-loaded .other-section {
    opacity:
        1;

    transform:
        translateY(0);

    transition-delay:
        0.30s;
}


/* =========================================================
   20. TABLET
========================================================= */

@media (max-width:900px) {

    .annual-header {
        height:
            76px;

        padding:
            0 28px;
    }


    .annual-nav {
        gap:
            22px;
    }


    .annual-nav a {
        font-size:
            12px;
    }


    .annual-hero {
        padding:
            125px
            5vw
            80px;
    }


    .annual-photo-navigation {
        grid-template-columns:
            90px
            minmax(0,1fr)
            90px;

        gap:
            15px;

        min-height:
            55vh;
    }


    .annual-cover img {
        max-height:
            55vh;
    }


    .annual-content {
        padding:
            80px
            5vw
            120px;
    }


    .other-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    /*
       ★ Tablet 仍然左图右文字
    */

    .moonlight-section {
        grid-template-columns:
            minmax(0,1.08fr)
            minmax(260px,0.92fr);

        column-gap:
            45px;
    }


    .moonlight-title {
        font-size:
            clamp(24px,3vw,32px);
    }
}


/* =========================================================
   21. MOBILE
========================================================= */

@media (max-width:650px) {

    .annual-header {
        height:
            68px;

        padding:
            0 20px;
    }


    .annual-brand {
        font-size:
            12px;
    }


    .annual-nav {
        gap:
            10px;

        padding:
            8px 12px;

        border:
            1px solid rgba(255,255,255,.16);

        border-radius:
            999px;

        background:
            rgba(255,255,255,.055);

        backdrop-filter:
            blur(22px) saturate(145%);

        -webkit-backdrop-filter:
            blur(22px) saturate(145%);

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.20),
            0 12px 38px rgba(0,0,0,.16);

        flex-wrap:
            nowrap;

        white-space:
            nowrap;
    }


    .annual-nav a {
        font-size:
            9px;

        flex:
            0 0 auto;

        padding:
            2px 1px;

        white-space:
            nowrap;
    }


    /* -----------------------------------------------------
       Hero
    ----------------------------------------------------- */

    .annual-hero {
        min-height:
            auto;

        padding:
            105px
            20px
            80px;
    }


    .annual-title {
        margin-bottom:
            35px;

        font-size:
            clamp(29px,9vw,42px);

        line-height:
            1.06;
    }


    /* -----------------------------------------------------
       Main photo
    ----------------------------------------------------- */

    .annual-photo-navigation {
        display:
            grid;

        grid-template-columns:
            1fr 1fr;

        grid-template-areas:
            "photo photo"
            "prev next";

        gap:
            26px;

        min-height:
            auto;

        width:
            100%;
    }


    .annual-cover {
        grid-area:
            photo;

        width:
            100%;
    }


    .annual-cover img {
        width:
            100%;

        max-width:
            100%;

        max-height:
            65vh;
    }


    .year-nav.prev,
    .annual-year-prev {
        grid-area:
            prev;

        justify-content:
            flex-start;

        min-width:
            0;
    }


    .year-nav.next,
    .annual-year-next {
        grid-area:
            next;

        justify-content:
            flex-end;

        min-width:
            0;
    }


    .year-nav,
    .annual-year-side {
        font-size:
            11px;
    }


    .annual-cover-name {
        margin-top:
            28px;

        font-size:
            12px;
    }


    /* -----------------------------------------------------
       Content
    ----------------------------------------------------- */

    .annual-content {
        padding:
            70px
            20px
            100px;
    }


    .annual-description {
        margin-bottom:
            100px;
    }


    .annual-description-title {
        font-size:
            28px;
    }


    .annual-description-name {
        font-size:
            14px;
    }


    .annual-description-author {
        margin-bottom:
            28px;

        font-size:
            11px;
    }


    .annual-description-text {
        font-size:
            13px;

        line-height:
            1.85;
    }


    .annual-description-date {
        margin-top:
            32px;

        font-size:
            10px;
    }


    /* -----------------------------------------------------
       Other photographs
    ----------------------------------------------------- */

    .other-label {
        margin-bottom:
            22px;

        font-size:
            10px;
    }


    .other-grid {
        grid-template-columns:
            1fr;

        gap:
            12px;
    }


    /* -----------------------------------------------------
       ★ Moonlight mobile
       
       手机才变成：
       
       图片
       ↓
       文字
       
       桌面端绝不会进入这里。
    ----------------------------------------------------- */

    .moonlight-section {
        display:
            grid;

        grid-template-columns:
            1fr;

        row-gap:
            32px;

        column-gap:
            0;

        margin-bottom:
            110px;
    }


    .moonlight-image {
        grid-column:
            1;
    }


    .moonlight-info {
        grid-column:
            1;

        padding-right:
            0;

        text-align:
            left;
    }


    .moonlight-title {
        font-size:
            28px;
    }


    .moonlight-name {
        font-size:
            13px;
    }


    .moonlight-author {
        margin-bottom:
            22px;

        font-size:
            10px;
    }


    .moonlight-shot,
    .moonlight-story {
        font-size:
            12px;

        line-height:
            1.8;
    }


    /* -----------------------------------------------------
       Lightbox
    ----------------------------------------------------- */

    .annual-lightbox {
        padding:
            50px
            18px;
    }


    .annual-lightbox img {
        max-width:
            94vw;

        max-height:
            82vh;
    }


    .lightbox-close {
        top:
            15px;

        right:
            16px;

        font-size:
            28px;
    }


    .lightbox-arrow {
        width:
            40px;

        height:
            60px;

        font-size:
            34px;

        line-height:
            60px;
    }


    .lightbox-arrow.left {
        left:
            3px;
    }


    .lightbox-arrow.right {
        right:
            3px;
    }
}


/* =========================================================
   22. VERY SMALL MOBILE
========================================================= */

@media (max-width:420px) {

    .annual-header {
        padding:
            0 15px;
    }


    .annual-nav {
        gap:
            8px;

        padding:
            7px 10px;
    }


    .annual-nav a {
        font-size:
            8.5px;
    }


    .annual-hero {
        padding:
            95px
            15px
            65px;
    }


    .annual-title {
        font-size:
            27px;
    }


    .annual-content {
        padding:
            60px
            15px
            80px;
    }


    .annual-description-title {
        font-size:
            25px;
    }


    .annual-lightbox {
        padding:
            45px
            12px;
    }
}


/* =========================================================
   23. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion:reduce) {

    html {
        scroll-behavior:
            auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;
    }
}