* {
    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;
    }
}
/* ========================================================= */
/* ============= 以下是新增的 ALL 产品页面样式 ============= */
/* ========================================================= */

/* 全屏覆盖基础样式 */
.full-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f0f0f0; /* 设计图中的浅灰底色 */
    z-index: 9999;
    overflow-y: auto; /* 允许纵向滚动 */
    display: none; /* 默认隐藏 */
    box-sizing: border-box;
}

.full-page { 
    display: none; 
} /* 默认隐藏 */
.full-page:target { 
    display: block; 
} /* 点击时显示 */
/* 触发显示 */

/* 内容容器，铺满宽度，两边留出合适边距 */
.all-page-content {
    width: 100%;
    max-width: 1400px; /* 防止超大屏幕时内容过散 */
    margin: 0 auto;
    padding: 60px 40px 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 顶部标题区 */
.all-header {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.all-title {
    font-size: 28px;
    font-weight: 400;
    color: #111;
    margin-bottom: 25px;
}

/* 分类按钮栏 */
.all-filter {
    display: inline-flex;
    background: #fff;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-btn {
    padding: 8px 35px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

.filter-btn.active {
    background-color: #f4cccc; /* 激活时的粉色 */
}

/* 产品网格：3列布局，严格按照比例 */
.all-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定3列 */
    gap: 40px 30px; /* 上下间距40px，左右间距30px */
    width: 100%;
    margin-bottom: 60px;
}

/* 产品卡片 */
.all-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.all-card:hover {
    transform: translateY(-5px);
}

/* 卡片内图片：保持比例，不被拉伸 */
.all-card img {
    width: 100%;
    height: 220px; /* 固定高度，保证图片大小统一 */
    object-fit: contain; /* 保持图片比例，不裁剪 */
    margin-bottom: 15px;
}

/* 饮品名字 */
.all-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    text-align: center;
}

/* 饮品英文配料描述 */
.all-card p {
    font-size: 12px;
    color: #777;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* 底部 return 按钮包装 */
.all-return-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* return 按钮样式 */
.all-return-btn {
    display: inline-block;
    padding: 16px 80px;
    background-color: #ffffff;
    color: #111;
    font-size: 18px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.all-return-btn:hover {
    background-color: #eeeeee;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* 移动端适配（屏幕变窄时自动变成2列或1列） */
@media (max-width: 900px) {
    .all-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .all-product-grid {
        grid-template-columns: 1fr;
    }
    .all-page-content {
        padding: 40px 15px;
    }
    .all-return-btn {
        padding: 12px 40px;
        font-size: 16px;
    }
}
/* 让 ALL 按钮完美恢复原有的位置和粉色背景 */
.all-btn-link {
    display: block;
    width: 33.333%;  /* 恢复 1/3 的宽度 */
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    background: #f4cccc; /* 恢复粉色底 */
    text-decoration: none; /* 去除下划线 */
    color: #111;
}
.full-page:target { display: block !important; }
/* ========================================================= */
/* ============= 以下是 SEASONAL 页面的完整样式 ============= */
/* ========================================================= */

/* 全屏覆盖页面，浅灰底色 */
.full-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f2f2f2; /* 设计图中的浅灰底色 */
    z-index: 99999; /* 保证在最上层 */
    overflow-y: auto; /* 允许垂直滚动 */
    display: none; /* 默认隐藏 */
    box-sizing: border-box;
}

/* 当点击跳转时显示该页面 */
.full-page:target {
    display: block;
}

/* 页面内容容器 */
.seasonal-content {
    width: 100%;
    max-width: 1200px; /* 防止超大屏散架，正常电脑屏幕刚好铺满 */
    margin: 0 auto;
    padding: 60px 20px 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 顶部主标题 */
.seasonal-main-title {
    font-size: 26px;
    font-weight: 400;
    color: #000;
    margin-bottom: 25px;
}

/* 筛选按钮栏 */
.seasonal-filter {
    display: flex;
    background: #fff;
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.seasonal-btn {
    padding: 8px 35px;
    font-size: 14px;
    border-radius: 26px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.seasonal-btn.active {
    background-color: #f7d4d4; /* 粉色高亮 */
    font-weight: bold;
}

/* 产品网格布局：固定3列 */
.seasonal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px; /* 行间距40px，列间距30px */
    width: 100%;
    margin-bottom: 70px;
}

/* 单个产品卡片 */
.s-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); /* 匹配设计图的阴影 */
    transition: transform 0.2s;
}

.s-card:hover {
    transform: translateY(-5px);
}

/* 产品图片 */
.s-card img {
    width: 100%;
    height: 200px;
    object-fit: contain; /* 保持比例不拉伸 */
    margin-bottom: 15px;
}

/* 中文名字 */
.s-card h3 {
    font-size: 15px;
    font-weight: bold;
    color: #111;
    margin-bottom: 8px;
    text-align: center;
}

/* 英文配料描述 */
.s-card p {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* 底部 return 按钮区域 */
.seasonal-return-box {
    text-align: center;
}

/* return 按钮样式 */
.seasonal-return-btn {
    display: inline-block;
    padding: 16px 80px;
    background-color: #ffffff;
    color: #111;
    font-size: 18px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* 响应式适配 */
@media (max-width: 900px) {
    .seasonal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .seasonal-grid { grid-template-columns: 1fr; }
    .seasonal-btn { padding: 8px 15px; }
}
/* 强行让新按钮恢复原样 */
a.seasonal-btn {
    display: block !important;       /* 变为块级元素 */
    width: 33.333% !important;       /* 占据 1/3 宽度 */
    height: 30px !important;         /* 原有高度 */
    line-height: 30px !important;    /* 文字垂直居中 */
    text-align: center !important;   /* 文字水平居中 */
    background: #fff;                /* 默认底色 */
    text-decoration: none !important;/* 去掉下划线 */
    color: #111 !important;          /* 文字黑色 */
    margin: 0 !important;            /* 消除错位的外边距 */
    padding: 0 !important;           /* 消除错位的内边距 */
}
/* ========================================================= */
/* ========== 大学城门店详情页 (绝对独立，不影响原代码) ========== */
/* ========================================================= */

#page-university-town {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; /* 纯白底色 */
    z-index: 999999; /* 确保在最上层覆盖 */
    overflow-y: auto; /* 滑动浏览 */
    display: none; /* 默认隐藏 */
    box-sizing: border-box;
}

/* 当被点击时显示 */
#page-university-town:target {
    display: block;
}

/* 内容容器 */
.uni-detail-content {
    width: 100%;
    max-width: 1000px; /* 限制最大宽度，比例协调 */
    margin: 0 auto;
    padding: 50px 30px 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 顶部居中大标题 Store Locations */
.uni-main-title {
    text-align: center;
    font-size: 26px;
    font-weight: 400;
    color: #111;
    margin-bottom: 60px;
}

/* 左侧文字区 */
.uni-text-info {
    text-align: left;
    margin-bottom: 30px;
}

.uni-text-info h3 {
    font-size: 22px;
    font-weight: 400;
    color: #111;
    margin-bottom: 10px;
}

.uni-text-info p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 图片网格：左右并排 */
.uni-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列等宽 */
    gap: 30px; /* 图片间距 */
    width: 100%;
    margin-bottom: 60px;
}

/* 图片样式：圆角，自适应 */
.uni-image-grid img {
    width: 100%;
    height: auto;
    border-radius: 16px; /* 圆角 */
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* 轻微阴影 */
    display: block;
}

/* 底部 return 按钮区域 */
.uni-return-wrapper {
    text-align: center;
}

/* return 按钮：灰色药丸形状 */
.uni-return-btn {
    display: inline-block;
    padding: 16px 80px;
    background-color: #f2f2f2; /* 截图中的浅灰底 */
    color: #111;
    font-size: 20px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* 移动端适配：手机屏幕下自动变成单列 */
@media (max-width: 768px) {
    .uni-image-grid {
        grid-template-columns: 1fr;
    }
    .uni-detail-content {
        padding: 30px 20px;
    }
}