/**
 * index-new.css
 * 首页新版：Event / Flavor / Slogan / Brand Intro / Entry Cards / Header & 移动端菜单
 * 断点：默认 1920，1440 笔记本，768 移动端
 */

/* ==================== 1. Event List ==================== */
.event-list {
    margin-top: 2rem;
}

.event-slider {
    width: 100%;
    max-height: 750px;
    height: 100%;
}

.event-slider .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    overflow: hidden;
}

.event-slider .event-img {
    max-height: 750px;
}

.event-slider .event-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .event-slider .swiper-slide {
        flex-direction: column;
        gap: 10px;
    }

    .event-slider .event-img {
        flex: 0 0 100%;
    }
}

/* ==================== 2. Flavor Slider ==================== */
.flavor-list {
    margin: 8.1875rem auto 7.625rem auto;
    padding: 0 4.375rem;
    background: #fff;
}

.flavor-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5.75rem;
    padding: 0 0.25rem;
    position: relative;
    z-index: 5;
}

.flavor-list-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2438;
    margin: 0;
    letter-spacing: 0.02em;
}

.flavor-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flavor-slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #6713C9;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.flavor-slider-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.flavor-slider-btn i,
.flavor-slider-btn .flavor-arrow-icon {
    display: block;
    color: #fff;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.flavor-slider {
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.flavor-slider .swiper,
.flavor-slider .swiper-wrapper {
    background: transparent;
}

.flavor-slider .swiper-slide {
    height: auto;
}

.flavor-slider .flavor-swiper-pagination {
    position: relative;
    margin-top: 1rem;
}

.flavor-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
}

.flavor-slider .swiper-pagination-bullet-active {
    background: #583c78;
    transform: scale(1.2);
}

.flavor-card {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.flavor-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #e63946;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 2;
}

.flavor-img {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.4s;
    border: 1px solid #eee;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.flavor-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.flavor-img .default-img {
    position: relative;
    transform: scale(1);
    transition: all 0.4s;
}

.flavor-img .hover-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(1);
    transition: all 0.4s;
    object-fit: contain;
}

.flavor-card:hover .flavor-img {
    border-color: transparent;
}

.flavor-card:hover .flavor-img .default-img {
    opacity: 0;
    transform: scale(0.5);
}

.flavor-card:hover .flavor-img .hover-img {
    opacity: 1;
    transform: scale(1);
}



/* ==================== 3. Slogan ==================== */
.slogan {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: linear-gradient(90deg, #6713C9 0%, #B700FF 50%, #6713C9 100%) !important;
    font-size: 3rem;
    font-family: 'Jomhuria', sans-serif;
}

.slogan-scroll {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: max-content;
    animation: slogan-scroll-left 120s linear infinite;
}

@keyframes slogan-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slogan .slogan-scroll span {
    font-size: 3rem;
    font-weight: 400;
    flex-shrink: 0;
    white-space: nowrap;
    color: #fff;
}

/* ==================== 4. Brand Intro ==================== */
.brand-intro-section {
    text-align: center;
    margin-bottom: 10rem;
}

.brand-intro-inner {
    max-width: 80rem;
    margin: 0 auto;
}

.brand-intro-logo {
    margin-top: 4.625rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.brand-intro-section.is-visible .brand-intro-logo {
    opacity: 1;
    transform: translateY(0);
}

.brand-intro-logo img {
    max-width: 298px;
    height: auto;
    display: inline-block;
    vertical-align: top;
}

.brand-intro-desc {
    margin: 0 auto;
    max-width: 50rem;
    font-size: 1.25rem;
    line-height: 1.75;
    color: #333;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out 0.25s, transform 0.6s ease-out 0.25s;
}

.brand-intro-section.is-visible .brand-intro-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .brand-intro-section {
        padding: 2rem 1rem;
    }

    .brand-intro-logo img {
        max-width: 160px;
    }

    .brand-intro-desc {
        font-size: 0.9375rem;
    }
}

/* ==================== 5. Entry Cards ==================== */
.entry-cards-section {
    max-width: 100%;
    width: 100%;
    margin: 5.75rem auto;
    padding: 0 4.375rem;
}

.entry-cards-section .content-cards {
    display: grid;
    grid-template-columns: 563fr 608fr 563fr;
    gap: 1.375rem;
}

.entry-cards-section .content-card {
    position: relative;
    width: 100%;
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.4s;
}

.entry-cards-section .content-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.entry-cards-section .content-card > a {
    display: block;
    position: relative;
    width: 100%;
}

.entry-cards-section .content-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    transition: transform 0.4s;
}

.entry-cards-section .content-card:hover img {
    transform: scale(1.03);
}

.entry-cards-section .content-card .img-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.entry-cards-section .content-card:hover .img-mask {
    opacity: 1;
}

.entry-cards-section .content-card .card-text {
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    transform: translateY(0);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.4s;
}

.entry-cards-section .content-card:hover .card-text {
    transform: translateY(-4px);
}

.entry-cards-section .content-card .card-desc {
    position: absolute;
    left: 1.25rem;
    top: 5rem;
    right: 1.25rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    z-index: 2;
    pointer-events: none;
    white-space: pre-line;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.4s, max-height 0.4s, transform 0.4s;
}

.entry-cards-section .content-card:hover .card-desc {
    opacity: 1;
    max-height: 120px;
    transform: translateY(0) scale(1);
}

/* 其他覆盖 */
.fixed-content {
    right: 1rem;
}

.fixed-item a {
    width: 80px;
}

footer {
    background: #000;
}

/* ==================== 7. 响应式 1440px ==================== */
@media (max-width: 1440px) {
    .event-slider,
    .event-slider .event-img {
        max-height: 560px;
    }

    .flavor-list {
        margin: 3.25rem auto;
        padding: 0 2.5rem 2rem;
    }

    .flavor-list-header {
        margin-bottom: 3.5rem;
    }

    .flavor-slider-btn {
        width: 44px;
        height: 44px;
    }

    .flavor-slider-btn .flavor-arrow-icon {
        width: 28px;
        height: 28px;
    }

    .brand-intro-section {
        margin-bottom: 6rem;
        padding: 2.5rem 1.25rem;
    }

    .brand-intro-logo {
        margin-top: 3rem;
        margin-bottom: 1.75rem;
    }

    .brand-intro-desc {
        font-size: 1.5rem;
    }

    .entry-cards-section {
        margin: 4rem auto;
        padding: 0 2.5rem;
    }

    .entry-cards-section .content-cards {
        gap: 1rem;
    }

    .entry-cards-section .content-card .card-text {
        font-size: 2.25rem;
    }

    .entry-cards-section .content-card .card-desc {
        font-size: 1.125rem;
        top: 4.25rem;
    }

}

/* ==================== 8. 响应式 768px（Entry Cards 等） ==================== */
@media (max-width: 768px) {
    .brand-intro-section {
        padding: 2rem 1rem;
    }

    .brand-intro-logo img {
        max-width: 160px;
    }

    .brand-intro-desc {
        font-size: 0.9375rem;
    }

    .flavor-list-header{
        gap: 1rem;
    }

    .entry-cards-section{
        padding: 0 1rem;
    }

    /* Entry Cards 单列 */
    .entry-cards-section .content-cards {
        grid-template-columns: 1fr;
    }
    .entry-cards-section .content-card .card-desc {
        max-height: none;
    }
    .entry-cards-section .content-card:hover .card-desc {
        max-height: 200px;
    }

    .flavor-list {
        padding: 0 1rem 1.5rem;
    }

    .flavor-list-title {
        font-size: 1.25rem;
    }

    .flavor-slider-btn {
        width: 38px;
        height: 38px;
    }

    .flavor-card {
        width: 100%;
    }

}
