/* =====================================
   BASIC
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f1e7;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}


/* =====================================
   HEADER
===================================== */

.header {
    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6vw;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);

    position: relative;
    z-index: 20;

    background: rgba(245, 241, 231, 0.88);
}

.logo {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header nav a {
    font-size: 9px;
    letter-spacing: 0.08em;
}

.language {
    border: 1px solid #d4d0c6;
    background: transparent;

    padding: 7px 12px;

    font-size: 9px;
}

.language.active {
    color: white;
    background: #111;
    border-color: #111;
}


/* =====================================
   HERO
===================================== */

.hero {
    height: 650px;

    position: relative;

    overflow: hidden;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.hero-background {
    position: absolute;

    inset: 0;

    background-image: url("https://res.cloudinary.com/q5hjcmf4/image/upload/v1790185202/background.webp");

    background-size: cover;
    background-position: center;

    z-index: 0;
}

.hero-content {
    position: absolute;

    left: 10vw;
    top: 105px;

    width: 330px;

    z-index: 5;
}

.small-title {
    font-size: 10px;

    letter-spacing: 0.16em;

    margin-bottom: 15px;

    font-weight: 600;
}

.hero h1 {
    font-size: clamp(48px, 5vw, 78px);

    line-height: 0.92;

    letter-spacing: -0.045em;

    font-weight: 800;

    margin-bottom: 25px;
}

.hero-content p {
    width: 320px;

    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 24px;
}

.explore-button {
    display: inline-flex;

    align-items: center;
    gap: 25px;

    background: #111;

    color: white;

    padding: 12px 17px;

    font-size: 10px;

    letter-spacing: 0.05em;
}

.explore-button span {
    font-size: 14px;
}


/* =====================================
   LUCKY CAT
===================================== */

.lucky-cat {
    position: absolute;

    z-index: 3;

    width: min(48vw, 650px);

    height: auto;

    right: 3vw;

    bottom: -10px;

    object-fit: contain;

    display: block;

    pointer-events: none;
}


/* =====================================
   STORY
===================================== */

.story {
    min-height: 420px;

    padding: 75px 10vw;

    display: grid;

    grid-template-columns: 0.9fr 1.4fr;

    gap: 70px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.story-left h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(38px, 4vw, 60px);

    line-height: 0.95;

    font-weight: 400;

    letter-spacing: -0.04em;

    margin-bottom: 25px;
}

.story-left p {
    width: 360px;

    font-size: 13px;

    line-height: 1.7;
}

.story-cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}

.story-card {
    height: 120px;

    border: 1px solid #ddd8cd;

    padding: 14px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.story-card span {
    font-size: 8px;

    color: #777;

    margin-bottom: 12px;
}

.story-card h3 {
    font-size: 10px;

    letter-spacing: 0.05em;

    margin-bottom: 7px;
}

.story-card p {
    font-size: 9px;

    color: #777;
}


/* =====================================
   MAWANGDUI
===================================== */

.mawangdui {
    padding: 80px 10vw;

    display: grid;

    grid-template-columns: 0.75fr 1.25fr;

    gap: 70px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.mawangdui-text h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(40px, 4vw, 60px);

    line-height: 0.95;

    font-weight: 400;

    margin-bottom: 25px;
}

.mawangdui-text p {
    font-size: 13px;

    line-height: 1.7;

    max-width: 350px;

    margin-bottom: 25px;
}

.black-button {
    display: inline-block;

    background: #111;

    color: white;

    padding: 14px 18px;

    font-size: 9px;

    letter-spacing: 0.05em;
}

.black-button span {
    margin-left: 25px;
}


/* =====================================
   MAWANGDUI IMAGE AREA
===================================== */

.mawangdui-gallery {
    width: 100%;
}


/* 大图片 */

.image-placeholder.main-image {
    width: 100%;

    height: 300px;

    background: #ddd9cf;

    overflow: hidden;

    display: block;
}

.main-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* =====================================
   五个小图片
===================================== */

.mawangdui-thumbnails {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 10px;

    margin-top: 10px;
}

.mawangdui-thumbnail {
    width: 100%;

    height: 65px;

    background: #ddd9cf;

    overflow: hidden;
}

.mawangdui-thumbnail img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* =====================================
   GALLERY
===================================== */

.gallery {
    padding: 80px 10vw;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.gallery > h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 28px;

    font-weight: 400;

    margin-bottom: 40px;
}

.gallery-layout {
    display: grid;

    grid-template-columns: 130px 1fr;

    gap: 50px;
}

.gallery-layout aside h3 {
    font-size: 10px;

    letter-spacing: 0.1em;

    margin-bottom: 14px;

    margin-top: 25px;
}

.gallery-layout aside h3:first-child {
    margin-top: 0;
}

.gallery-layout aside label {
    display: block;

    font-size: 11px;

    margin-bottom: 10px;
}

.gallery-layout aside input {
    margin-right: 8px;
}

.gallery-layout aside p {
    font-size: 11px;

    margin-bottom: 7px;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.gallery-card {
    border: 1px solid #ddd8cd;

    padding: 12px;
}

.gallery-image {
    height: 160px;

    background: #dfdbd1;

    overflow: hidden;
}

.gallery-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.gallery-card p {
    font-size: 10px;

    margin-top: 12px;
}


/* =====================================
   MEANING
===================================== */

.meaning {
    padding: 85px 10vw;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.meaning-top {
    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: 100px;

    margin-bottom: 60px;
}

.meaning h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(42px, 5vw, 65px);

    line-height: 0.95;

    font-weight: 400;

    margin-bottom: 20px;
}

.meaning-top p {
    font-size: 13px;

    line-height: 1.7;
}

.meaning-description {
    max-width: 360px;

    padding-top: 10px;
}

.meaning-cards {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.meaning-cards > div {
    border: 1px solid #ddd8cd;

    min-height: 120px;

    padding: 18px;
}

.meaning-cards span {
    font-size: 8px;

    color: #777;
}

.meaning-cards h3 {
    font-size: 10px;

    letter-spacing: 0.08em;

    margin-top: 16px;

    margin-bottom: 8px;
}

.meaning-cards p {
    font-size: 9px;

    color: #777;
}


/* =====================================
   ANCIENT
===================================== */

.ancient {
    padding: 80px 10vw;

    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 90px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.ancient-title h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(40px, 4vw, 62px);

    line-height: 0.92;

    font-weight: 400;

    margin-bottom: 25px;
}

.ancient-title p {
    font-size: 12px;
}

.ancient-list {
    display: flex;

    flex-direction: column;
}

.ancient-item {
    display: grid;

    grid-template-columns: 95px 1fr;

    gap: 25px;

    align-items: center;

    padding: 15px 0;

    border-bottom: 1px solid #ddd8cd;
}

.small-image {
    width: 95px;

    height: 65px;

    background: #dedad0;

    overflow: hidden;
}

.small-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.ancient-item h3 {
    font-size: 10px;

    margin-bottom: 8px;
}

.ancient-item p {
    font-size: 9px;

    color: #777;
}


/* =====================================
   HAPPY MOMENTS
===================================== */

.happy {
    min-height: 480px;

    position: relative;

    overflow: hidden;

    padding: 80px 10vw;

    background: #e9e4d8;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.happy-overlay {
    position: relative;

    z-index: 3;

    padding-top: 120px;
}
.happy-overlay h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(42px, 5vw, 70px);

    line-height: 0.95;

    font-weight: 400;

    margin-bottom: 15px;
}

.happy-overlay p {
    font-size: 13px;
}

.polaroids {
    position: absolute;

    inset: 0;

    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 25px;

    padding-right: 8vw;
}

.polaroid {
    width: 170px;

    height: 220px;

    box-sizing: border-box;

    background: #f5f2e9;

    padding: 12px 12px 30px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transform: rotate(-7deg);

    overflow: hidden;
}

.polaroid:nth-child(2) {
    transform: rotate(5deg) translateY(-20px);
}

.polaroid:nth-child(3) {
    transform: rotate(-3deg) translateY(10px);
}

.polaroid:nth-child(4) {
    transform: rotate(7deg);
}

.polaroid div {
    width: 100%;
    height: 100%;

    background: #ddd9cf;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #aaa;
    font-size: 9px;

    overflow: hidden;
}


/* HAPPY MOMENTS 图片 */
.polaroid div img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

/* =====================================
   FOOTER
===================================== */

footer {
    min-height: 200px;

    padding: 60px 10vw;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;

    gap: 40px;
}

footer h4 {
    font-size: 9px;

    letter-spacing: 0.1em;

    margin-bottom: 15px;
}

footer p {
    font-size: 9px;

    color: #666;

    margin-bottom: 7px;
}

.footer-logo {
    font-size: 12px;

    letter-spacing: 0.08em;
}

.footer-logo p {
    margin-top: 20px;

    line-height: 1.5;
}

.copyright {
    align-self: end;

    font-size: 8px;

    color: #777;
}


/* =====================================
   TABLET
===================================== */

@media (max-width: 1000px) {

    .header {
        padding: 0 5vw;
    }

    .header nav {
        gap: 10px;
    }

    .hero-content {
        left: 7vw;
    }

    .lucky-cat {
        width: 52vw;

        right: -3vw;
    }

    .story {
        padding: 60px 7vw;

        grid-template-columns: 1fr;
    }

    .mawangdui {
        padding: 60px 7vw;
    }

    .gallery {
        padding: 60px 7vw;
    }

    .meaning {
        padding: 60px 7vw;
    }

    .ancient {
        padding: 60px 7vw;
    }

    footer {
        padding: 50px 7vw;
    }
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 700px) {

    .header {
        height: 60px;

        padding: 0 20px;
    }

    .logo {
        font-size: 11px;
    }

    .header nav a {
        display: none;
    }

    .language {
        font-size: 8px;

        padding: 6px 9px;
    }


    /* HERO */

    .hero {
        height: 650px;
    }

    .hero-content {
        left: 25px;

        top: 70px;

        width: 230px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-content p {
        width: 230px;

        font-size: 11px;
    }

    .lucky-cat {
        width: 320px;

        right: -45px;

        bottom: -5px;

        z-index: 2;
    }


    /* STORY */

    .story {
        padding: 55px 25px;

        display: block;
    }

    .story-left {
        margin-bottom: 35px;
    }

    .story-left h2 {
        font-size: 42px;
    }

    .story-left p {
        width: auto;
    }

    .story-cards {
        grid-template-columns: 1fr 1fr;
    }


    /* =================================
       MAWANGDUI MOBILE
    ================================= */

    .mawangdui {
        padding: 55px 25px;

        display: block;
    }

    .mawangdui-text {
        margin-bottom: 35px;
    }


    /* 手机端大图片 */

    .image-placeholder.main-image {
        width: 100%;

        height: 220px;
    }


    /* 手机端五个小图片 */

    .mawangdui-thumbnails {
        grid-template-columns: repeat(5, 1fr);

        gap: 5px;

        margin-top: 8px;
    }

    .mawangdui-thumbnail {
        height: 48px;
    }


    /* GALLERY */

    .gallery {
        padding: 55px 25px;
    }

    .gallery-layout {
        display: block;
    }

    .gallery-layout aside {
        margin-bottom: 35px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-image {
        height: 120px;
    }


    /* MEANING */

    .meaning {
        padding: 55px 25px;
    }

    .meaning-top {
        display: block;
    }

    .meaning-description {
        margin-top: 30px;
    }

    .meaning-cards {
        grid-template-columns: 1fr 1fr;
    }


    /* ANCIENT */

    .ancient {
        padding: 55px 25px;

        display: block;
    }

    .ancient-title {
        margin-bottom: 40px;
    }


    /* HAPPY */

    .happy {
        min-height: 550px;

        padding: 55px 25px;
    }

    .happy-overlay {
        padding-top: 20px;
    }

    .polaroids {
        justify-content: center;

        align-items: flex-end;

        padding: 0 20px 40px;

        gap: 5px;
    }

    .polaroid {
        width: 100px;

        height: 140px;
    }


    /* FOOTER */

    footer {
        padding: 50px 25px;

        grid-template-columns: 1fr 1fr;
    }

}
/* =====================================
   HAPPY MOMENTS RESPONSIVE
===================================== */

/* TABLET */
@media (max-width: 1000px) {

    .happy {
        min-height: 500px;
        padding: 60px 7vw;
    }

    .happy-overlay {
        width: 40%;
        padding-top: 80px;
        position: relative;
        z-index: 5;
    }

    .happy-overlay h2 {
        font-size: clamp(30px, 4.5vw, 44px);
        line-height: 0.95;
        margin-bottom: 15px;
    }

    .happy-overlay p {
        font-size: clamp(9px, 1.3vw, 12px);
    }

    .polaroids {
        position: absolute;
        left: 42%;
        right: 4vw;
        top: 0;
        bottom: 0;

        padding: 0;

        display: flex;
        justify-content: center;
        align-items: center;

        gap: 10px;
    }

    .polaroid {
        width: clamp(90px, 13vw, 125px);
        height: clamp(130px, 18vw, 175px);

        padding: 9px 9px 23px;

        box-sizing: border-box;
    }

    .polaroid div {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .polaroid div img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .polaroid:nth-child(1) {
        transform: rotate(-7deg);
    }

    .polaroid:nth-child(2) {
        transform: rotate(5deg) translateY(-15px);
    }

    .polaroid:nth-child(3) {
        transform: rotate(-3deg) translateY(8px);
    }

    .polaroid:nth-child(4) {
        transform: rotate(7deg);
    }
}


/* MOBILE */
@media (max-width: 700px) {

    .happy {
        min-height: 520px;
        padding: 50px 25px;
    }

    .happy-overlay {
        width: 100%;
        padding-top: 20px;
    }

    .happy-overlay h2 {
        font-size: clamp(28px, 9vw, 38px);
        line-height: 0.95;
        margin-bottom: 12px;
    }

    .happy-overlay p {
        font-size: clamp(9px, 2.8vw, 11px);
    }

    .polaroids {
        position: absolute;

        left: 20px;
        right: 20px;

        bottom: 35px;
        top: auto;

        padding: 0;

        display: flex;

        justify-content: center;
        align-items: center;

        gap: 5px;
    }

    .polaroid {
        width: 22vw;
        height: 29vw;

        min-width: 70px;
        min-height: 100px;

        padding: 7px 7px 18px;

        box-sizing: border-box;
    }

    .polaroid div {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .polaroid div img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .polaroid:nth-child(1) {
        transform: rotate(-7deg);
    }

    .polaroid:nth-child(2) {
        transform: rotate(5deg) translateY(-10px);
    }

    .polaroid:nth-child(3) {
        transform: rotate(-3deg) translateY(5px);
    }

    .polaroid:nth-child(4) {
        transform: rotate(7deg);
    }
}
/* =====================================
   HAPPY MOMENTS TITLE - FINAL
===================================== */

.happy-overlay h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 5vw, 60px) !important;
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.04em;
    margin-bottom: 15px;
}

/* 平板 */
@media (max-width: 1000px) {
    .happy-overlay h2 {
        font-size: clamp(26px, 5vw, 48px) !important;
    }
}

/* 手机 */
@media (max-width: 700px) {
    .happy-overlay h2 {
        font-size: clamp(24px, 8vw, 38px) !important;
    }
}


/* =====================================
   BASIC MOTION
===================================== */

/* -------------------------
   1. IMAGE HOVER
------------------------- */

.gallery-image img,
.main-image img,
.mawangdui-thumbnail img,
.small-image img,
.polaroid div img {
    transition: transform 0.5s ease;
}

.gallery-image:hover img,
.main-image:hover img,
.mawangdui-thumbnail:hover img,
.small-image:hover img,
.polaroid:hover div img {
    transform: scale(1.04);
}


/* -------------------------
   2. IMAGE CLICK
------------------------- */

.clickable-image {
    cursor: pointer;
}

.clickable-image.active {
    transform: scale(1.08);
}


/* -------------------------
   3. SCROLL REVEAL
------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* -------------------------
   4. STORY CARDS
------------------------- */

.story-card {
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.story-card:hover {
    transform: translateY(-4px);
}


/* -------------------------
   5. MEANING CARDS
------------------------- */

.meaning-cards > div {
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.meaning-cards > div:hover {
    transform: translateY(-4px);
}


/* -------------------------
   6. GALLERY CARDS
------------------------- */

.gallery-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
}


/* -------------------------
   7. BUTTON HOVER
------------------------- */

.explore-button,
.black-button {
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.explore-button:hover,
.black-button:hover {
    transform: translateY(-2px);
}


/* -------------------------
   8. NAVIGATION HOVER
------------------------- */

.header nav a {
    transition: opacity 0.25s ease;
}

.header nav a:hover {
    opacity: 0.5;
}


/* -------------------------
   9. HERO ENTRANCE
------------------------- */

.hero-reveal {
    animation: heroTextAppear 1s ease forwards;
}

@keyframes heroTextAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lucky-cat {
    animation: luckyCatAppear 1.2s ease forwards;
}

@keyframes luckyCatAppear {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* -------------------------
   10. ACCESSIBILITY
------------------------- */

@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
