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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    color: #111;
    background: white;
}

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

a {
    color: inherit;
    text-decoration: none;
}



.header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 4%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: white;
}

.brand-logo {
    display: block;
    width: 390px;
}

.brand-logo img {
    width: 390px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 20px;
}

.nav a {
    font-size: 18px;
    line-height: 1;
}

.nav a:hover {
    opacity: .55;
}

.home-page {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
}

.home-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.home-title {
    position: absolute;
    right: 20%;
    top: 42%;
    color: white;
    text-align: center;
}

.home-title p {
    font-size: 80px;
    line-height: 1.3;
    font-weight: 300;
}



.story-page {
    min-height: 65vh;
    padding: 84px 10%;
    display: grid;
    grid-template-columns: 1.4fr .72fr;
    gap: 12%;
    align-items: center;
}

.story-text {
    max-width: 620px;
}

.story-label {
    display: inline-block;
    padding: 7px 10px;
    margin-bottom: 38px;
    background: #000;
    color: #fff;
    font-size: 15px;
}

.story-text h2 {
    margin-bottom: 38px;
    font-size: 29px;
    font-weight: 600;
}

.story-text p {
    margin-bottom: 39px;
    font-size: 16px;
    line-height: 1.35;
}

.story-image {
    width: 320px;
}

.story-image img {
    width: 320px;
    height: auto;
    object-fit: contain;
}




.page-title {
    margin-bottom: 10px;
    text-align: center;
    font-size: 27px;
    font-weight: 400;
}

.page-title.left {
    text-align: left;
}




.products-page {
    padding: 38px 7% 90px;
    background: #eeeeee;
}

.product-filter {
    width: 320px;
    height: 30px;
    margin: 5px auto 58px;
    display: flex;
    border-radius: 30px;
    background: #fff;
    overflow: hidden;
}

.product-filter input {
    display: none;
}

.product-filter label {
    width: 33.333%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
}

#all:checked + label,
#classic:checked + label,
#seasonal:checked + label {
    background: #f4cccc;
}


.product-grid {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 55px;
}

.product-card {
    width: 100%;
    min-height: 315px;
    background: #fff;
    border-radius: 21px;
    overflow: hidden;
    box-shadow: 10px 17px 19px rgba(0, 0, 0, .18);
}

.product-card img {
    width: 100%;
    height: 225px;
    object-fit: contain;
    background: #fff;
}

.product-info {
    padding: 10px 22px 20px;
}

.product-info h3 {
    margin-bottom: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

.product-info p {
    font-size: 13px;
    line-height: 1.3;
    color: #555;
}


/* HTML + CSS 筛选 */

#classic:checked ~ .product-grid .seasonal-card {
    display: none;
}

#seasonal:checked ~ .product-grid .classic-card {
    display: none;
}




.favorites-page {
    min-height: 1000px;
    padding: 38px 4%;
    background: #fff;
}

.favorites-page .page-title {
    margin-bottom: 40px;
}

.favorite-row {
    min-height: 270px;
    display: grid;
    grid-template-columns: 235px 340px 225px;
    column-gap: 45px;
    align-items: center;
    justify-content: center;
}

.favorite-row.second {
    margin-left: 145px;
}

.favorite-row.third {
    margin-left: 0;
}

.favorite-name {
    display: flex;
    align-items: center;
    gap: 25px;
}

.favorite-name span {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: #efd0d0;
}

.favorite-name h3 {
    font-size: 20px;
    font-weight: 400;
}

.favorite-row > p {
    font-size: 15px;
    line-height: 1.35;
}

.favorite-row > img {
    width: 225px;
    height: 215px;
    border-radius: 20px;
    object-fit: cover;
}


.ranking-page {
    min-height: 610px;
    padding: 38px 4%;
    background: #edf4e8;
}

.ranking-page .page-title {
    margin-bottom: 65px;
}

.ranking-row {
    width: 82%;
    margin: 0 auto 82px;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0;
}

.ranking-row h3 {
    font-size: 20px;
    font-weight: 400;
}

.ranking-row div {
    font-size: 15px;
}

.ranking-product {
    margin-bottom: 3px;
}

.ranking-row div p:last-child {
    line-height: 1.35;
}


.locations-page {
    min-height: 650px;
    padding: 45px 8% 100px;
}

.locations-grid {
    width: 900px;
    max-width: 100%;
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
}

.location-card {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 10px 17px 20px rgba(0, 0, 0, .17);
}

.location-card > img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.location-text {
    min-height: 145px;
    padding: 17px;
    background: #f3cccc;
}

.location-text h3 {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 400;
}

.location-text p {
    font-size: 14px;
    line-height: 1.4;
}


.footer {
    min-height: 285px;
    padding: 45px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8%;
    background: #561d22;
    color: white;
}

.footer h3 {
    margin-bottom: 27px;
    font-size: 21px;
    font-weight: 400;
}

.footer p,
.footer a {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.45;
}

.footer a:hover {
    opacity: .55;
}



@media (max-width: 800px) {

    .header {
        padding: 18px 20px;
    }

    .brand-logo {
        width: 150px;
    }

    .brand-logo img {
        width: 150px;
    }

    .nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav a {
        font-size: 10px;
    }

    .home-title {
        left: 5%;
        right: 5%;
    }

    .home-title p {
        font-size: 32px;
    }

    .story-page {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 70px 8%;
    }

    .story-image,
    .story-image img {
        width: 100%;
        height: auto;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .favorite-row,
    .favorite-row.second,
    .favorite-row.third {
        margin-left: 0;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 35px 0;
    }

    .favorite-row > img {
        width: 225px;
    }

    .ranking-row {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 60px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
/* ========================================================= */
/* ============= 以下是新增的 Brand Story 页面样式 ============= */
/* ========================================================= */

/* 1. 全屏覆盖页面基础样式 */
.full-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; /* 设计图是纯白背景 */
    z-index: 9999; /* 确保在最上层 */
    overflow-y: auto; /* 内容超出高度时滚动 */
    display: none; /* 默认隐藏，点击跳转后显示 */
    box-sizing: border-box;
}

/* 当 URL 锚点匹配 #page-3 时显示此页面 */
.full-page:target {
    display: block;
}

/* 2. 页面内容容器：铺满屏幕且留有设计图中的边框距离 */
.page-content {
    width: 100%;
    max-width: 1400px; /* 限制最大宽度，保证大屏不会太散 */
    margin: 0 auto; /* 水平居中 */
    padding: 60px 5vw; /* 上下60px，左右5vw的留白 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 3. 顶部标题样式 */
.story-header-box {
    margin-bottom: 50px;
}

.story-label-new {
    display: inline-block;
    background-color: #000000; /* 黑底 */
    color: #ffffff; /* 白字 */
    font-size: 14px;
    font-weight: bold;
    padding: 8px 16px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.story-title-new {
    font-size: 32px;
    font-weight: 600;
    color: #111111;
    margin: 0;
}

/* 4. 左右分栏布局（网格布局） */
.story-layout-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右等宽 */
    gap: 60px; /* 左右间距 */
    margin-bottom: 70px; /* 上下两块的间距 */
    align-items: center; /* 垂直居中对齐 */
}

/* 5. 文字块样式 */
.story-text-block p {
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: justify;
}

/* 6. 图片块样式 */
.story-image-block img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* 图片圆角 */
    object-fit: cover;
    display: block;
}

/* 7. 右下角小 Logo 样式 */
.small-logo-box {
    display: flex;
    justify-content: flex-end; /* 靠右对齐 */
    margin-top: 30px;
}

.small-logo-box img {
    width: 120px;
    height: auto;
}

/* 8. Return 按钮的包装盒 */
.return-button-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* 9. Return 按钮样式（完全按照设计图，灰底圆角） */
.return-btn {
    display: inline-block;
    padding: 16px 70px;
    background-color: #eeeeee; /* 浅灰底色 */
    color: #333333; /* 深色字体 */
    font-size: 20px;
    font-weight: normal;
    border-radius: 40px;
    text-decoration: none; /* 去除下划线 */
    transition: all 0.3s ease;
    cursor: pointer;
}

.return-btn:hover {
    background-color: #dddddd;
    transform: scale(1.02);
}

/* 10. 响应式适配（移动端） */
@media (max-width: 800px) {
    .story-layout-row {
        grid-template-columns: 1fr; /* 移动端变为单列，垂直排列 */
        gap: 30px;
    }
    .reverse-row {
        display: flex;
        flex-direction: column-reverse; /* 让原本右边的文字跑到下边 */
    }
    .story-title-new {
        font-size: 24px;
    }
    .return-btn {
        padding: 12px 40px;
        font-size: 16px;
    }
}