:root {
    --bg-yellow: #FFEB3B;
    --bg-cream: #F9F4E8;
    --swiper-theme-color: #FFEB3B;
    --swiper-navigation-size: 24px;

}


body {
    margin: 0;
}
.main {
    background-color: #fff;
    --bg-yellow: #FFEB3B;
    --bg-cream: #F9F4E8;
    --swiper-theme-color: #FFEB3B;
    --swiper-navigation-size: 24px;
}
.banner-container {
    position: relative;
    width: 100%;
    /* margin: 20px auto; */
    overflow: hidden;
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.2); */
}

.banner-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out; /* 平滑切换效果 */
}

.banner-slide {
    min-width: 100%;
}

.banner-slide img {
    width: 100%;
    display: block;
}

/* 按钮样式 */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
}

.prev-btn:hover, .next-btn:hover { background: rgba(0,0,0,0.7); }
.prev-btn { left: 0; border-radius: 0 5px 5px 0; }
.next-btn { right: 0; border-radius: 5px 0 0 5px; }

/* 指示点样式 */
.dots-container {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active { background-color: #fff; }

.intro {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: rgb(249, 240, 221);
    padding-bottom: 4em;
}

.intro-card {
    max-width: 1000px;
    padding: 1.5em;
    margin: 6em 2em 2em;
    border-radius: 1em;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.intro-left {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    img {
        width: 95%;
        object-fit: contain;
    }
}

.intro-tags {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    margin-top: 2em;
    gap: 1em;
}

.intro-tag {
    min-width: 8em;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    padding: 1em 0px;
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.intro-tag:hover {
    /* 1. 稍微放大 (1.05倍) */
    transform: scale(1.05);
    /* 2. 阴影变得更深、更长，模拟卡片抬起的效果 */
    box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.15);
}

.intro-tag-title {
    font-size: .8em;
    color: rgb(41, 146, 200);
}

.intro-tag-text {
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(41, 146, 200);
}

.intro-right {
    flex: 1 1 320px;
    line-height: 1.6;
    margin: 1em 0;
    p {
        margin: 1.5em 0;
    }
}

.happened {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    /* clip 不会像 hidden 一样生成独立的纵向滚动容器，避免移动端滑动错位 */
    overflow-x: clip;
    overflow-y: visible;
}


.next-year {
    position: absolute;
    right: 0em;
    top: min(12em, 15vw);
    width: min(10em, 16vw);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.next-year p {
    color: rgb(206, 188, 149);
}

.timeline-year-nav {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
}

.timeline-nav-button {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    padding: 0.4em 0.55em;
    border: 0;
    color: #cfb886;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.timeline-nav-button:hover {
    color: #f2b62f;
}

.timeline-nav-button:active {
    transform: scale(0.96);
}

.timeline-nav-button:disabled {
    opacity: 0.45;
    cursor: wait;
}

.timeline-nav-prev {
    top: min(0.75em, 1vw);
    left: max(-6.5em, calc((100% - 100vw) / 2 + 1em));
    align-items: flex-start;
    text-align: left;
}

.timeline-nav-next {
    top: min(12em, 15vw);
    right: max(-6.5em, calc((100% - 100vw) / 2 + 1em));
    align-items: flex-end;
    text-align: right;
}

.timeline-nav-label {
    font-size: clamp(12px, 1.35vw, 17px);
    font-weight: 600;
    white-space: nowrap;
}

.timeline-nav-arrow {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    line-height: 0.8;
}

.timeline-nav-button:focus-visible,
.time-btn:focus-visible {
    outline: 3px solid rgba(255, 193, 7, 0.85);
    outline-offset: 3px;
}

.happened-content {
    --timeline-slide-distance: clamp(80px, 16vw, 180px);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.happened-content.active {
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.happened-content.is-entering-from-left {
    transform: translateX(calc(var(--timeline-slide-distance) * -1));
}

.happened-content.is-entering-from-right {
    transform: translateX(var(--timeline-slide-distance));
}

.happened-content.is-leaving-to-left {
    z-index: 4;
    opacity: 0;
    transform: translateX(calc(var(--timeline-slide-distance) * -1));
}

.happened-content.is-leaving-to-right {
    z-index: 4;
    opacity: 0;
    transform: translateX(var(--timeline-slide-distance));
}

@media (prefers-reduced-motion: reduce) {
    .happened-content,
    .timeline-nav-button {
        transition-duration: 0.01ms;
    }
}

.happened-content-items {
    position: absolute;
    width: min(20%, 10em);
    cursor: pointer;
}

.happened-content-items.is-static {
    cursor: default;
}

.time-btn {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.is-static .time-btn {
    cursor: default;
}

.happened-content-items img {
    height: min(12vw, 100px);
    max-width: 12em;
}


.happened-content-1 {
    left: min(1em, 10vw);
    top: min(6em, 6vw);
}

.happened-content-2 {
    left: min(11em, 20vw);
    top: min(11em, 16vw);
}

.happened-content-3 {
    left: min(25em, 45vw);
    top: min(15em, 20vw);
}

.happened-content-4 {
    left: min(40em, 63vw);
    top: min(16em, 20vw);
}

.happened-content-items .sub-buttons {
    visibility: hidden;
    transform: translateY(-50%); 
    opacity: 0;
    transition: all 0.4s ease;
}
.happened-content-items:hover .sub-buttons,
.happened-content-items:focus-within .sub-buttons,
.happened-content-items.is-open .sub-buttons {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
}


.time-btn {
    
}

.arrow {
    width: 100%;
}

/* .dropdown-image {
    width: 10em;
} */

.happened-container {
    position: relative;
    z-index: 1;
    max-width: 1000px; /* 假设你的核心内容区是1200px */
    margin: 0 auto;
    height: min(660px, 64vw);
    width: 100%;
}

.action-in-meisha {
    position: absolute;
    right: -10%;
    max-width: 43%;
}

.happened-background {
    --svg-width: min(140%, 1600px); /* 定义统一的宽度变量 */
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;

    /* 设置背景平铺 */
    background-image: url('timelinebg.svg');
    background-repeat: repeat-x;
    /* 关键点 1：背景尺寸必须等于变量 */
    background-size: var(--svg-width) auto;
    /* 关键点 2：居中对齐，确保背景的正中心是一个完整的 SVG */
    background-position: center;
}

.happened-background-mobile {
    display: none;
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.happened-background-mobile img {
    display: block;
    width: 100%;
    height: auto;
}

.center-svg {
    /* 关键点 3：中间元素尺寸与背景完全一致 */
    width: var(--svg-width);
    max-width: var(--svg-width);
    height: auto;

    /* 视觉处理：如果你不希望中间的 SVG 与背景重叠（产生重影或加深），
        可以给中间的 SVG 设置背景色遮盖 */
    background-color: white; 
    z-index: 2;
}

.players {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.players-box {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
}

.players-title {
    width: 10em;    
}

.players-subtitle {
    margin-top: 2em;
    width: 12em;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0em; /* 设置间距（可选） */
}

.players-list-item {
    transition: all 0.3s ease; /* 动效核心 */
}

.players-list-item:hover {
    transform: translateY(-10px) scale(1.03);
}

.players-list-item img {
    width: 100%;
}

.players-2026 {
    margin: 2em 0;
    width: 16em;    
}

.lightbox-overlay {
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.lightbox-img {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 90vw;
    max-height: 80vh;
}

/* 隐藏滚动条但保持功能 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.projects {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    margin-top: 4em;
}

.projects-box {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.projects-title {
    width: 8.5em; 
    margin-bottom: 3em; 
}

/* 列表样式 */
.list-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5em 1em;
}

.project-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.3s ease; /* 动效核心 */

    img {
        width: 100%;
        height: min(175px, 25vw);
        object-fit: cover;
        border-radius: 1.5em;
    }
}

/* 悬停动效：向上位移并轻微放大 */
.project-list-item:hover {
    transform: translateY(-10px) scale(1.03);
}


/* 
.project-list-item:last-child { border-bottom: none; }
.project-list-item:active { background: #f9f9f9; } */

.item-info { 
    display: flex; 
    flex-direction: column; 
    gap: 1em;
    width: 100%;
}

.item-title { font-weight: 600; font-size: 16px; }
.item-price { color: #ff5000; font-size: 14px; margin-top: 4px; }

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 99;
    backdrop-filter: blur(2px); /* 背景模糊，更有质感 */
}

/* 底部详情卡片 */
.detail-card {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    transform: translateY(1000px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 100;
    padding: 60px 24px 40px; /* 底部多留点空间 */
    box-sizing: border-box;
    background-color: #f7f0e7;
}

.detail-card.active {
    transform: translateY(0);
}

.project-card-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* 卡片内饰 */
.flowers {
    position: absolute;
    width: 100%;
    left: 0;
    top: -140px;
    height: 160px;
    background-image: url(projectflowers.svg);
    background-size: 1000px auto;
    background-repeat: repeat-x;
}
.close_detail {
    position: absolute;
    top: 1em;
    right: 1em;
    height: 2em;
    width: 2em;
    img {
        width: 100%;
    }
}
.card-title { font-size: 22px; font-weight: bold; margin-bottom: 10px; }
.card-price { color: #ff5000; font-size: 18px; font-weight: bold; margin-bottom: 15px; }
.card-desc { color: #666; line-height: 1.6; font-size: 15px; }

.btn-close {
    margin-top: 30px;
    width: 100%;
    padding: 14px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 弹窗内容布局：弹性盒子 */
.card-body { display: flex; gap: 30px; margin-top: 20px; flex-wrap: wrap; }

/* 左侧文字区 */
.text-section {
    flex: 1;
    min-width: min(300px,90vw); 
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}
.project-title { font-size: 24px; font-weight: bold; margin-bottom: 20px; }
.info-row { margin-bottom: 8px; font-size: 14px; color: #333; }
.description { 
    font-size: 14px; 
    line-height: 1.8; 
    color: #555; 
    text-align: justify; 
    flex: 1;
    min-width: 210px;
}
.info-section {
    flex: 1;
    min-width: 210px;
}


/* 右侧图片展示区 */
.image-section { 
    display: flex; 
    gap: 15px; 
    flex: 1.2; 
    min-width: min(300px, 90vw);
}
.main-img-box { flex: 3; position: relative; }
.main-img-box img { 
    width: 100%; 
    border-radius: 15px; 
    display: block; 
    object-fit: contain; 
    aspect-ratio: 4/3; 
}

/* 缩略图列 */
.thumb-column { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.thumb-column img { 
    width: 100%; 
    border-radius: 8px; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: 0.2s;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.thumb-column img.active { border-color: #ffb800; } /* 选中状态 */

.testimonial-title {
    width: 10em;
}

.testimonial-section {
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.title { font-size: 24px; margin-bottom: 30px; border-left: 5px solid #000; padding-left: 15px; }

.slider-container {
    overflow: hidden;
    margin-top: 5em;
    padding: 20px 0;
}

/* 卡片样式 */
.card {
    max-height: 460px;
    padding: 30px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease; /* 动效核心 */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 悬停动效：向上位移并轻微放大 */
.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card.yellow { background-color: var(--bg-yellow); }
.card.cream { background-color: var(--bg-cream); }

.card-tag { font-weight: bold; font-size: 18px; margin-bottom: 20px; }
.card-content { 
    line-height: 1.8; 
    font-size: 14px; 
    color: #333; 
    flex-grow: 1; 
    height: 320px;
}

.card-author { margin-top: 20px; font-size: 14px; color: #666; }



.slider-container {

    .swiper {
        width: 100%;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .swiper-slide {
        height: auto;
        transition: transform 0.3s ease;
    }
    
    /* 卡片悬停提升效果
    .card-inner:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    }
    
    .card-inner {
        transition: all 0.3s ease;
        border-radius: 1rem;
        overflow: hidden;
        background: white;
        border: 1px solid #e5e7eb;
        height: 100%;
        display: flex;
        flex-direction: column;
    } */
    
    /* 导航按钮美化 */
    .swiper-button-next, .swiper-button-prev {
        background: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        color: #1f2937;
    }
    
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 18px;
        font-weight: bold;
    }
    
    .swiper-pagination-bullet-active {
        width: 24px;
        border-radius: 5px;
    }
}




/* 如何加入 */
.involved {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    padding-bottom: 3em;
}

.involved-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.involved-title {
    width: 50%;  
}
.involved-background {
    position: absolute;
    left: -10%;
    max-width: 120%;
    top: min(17em, 30vw);
}
.involved-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 70%;
    gap: .5em;
    margin-top: min(5em, 11vw);
    z-index: 10;
}

.involved-list-item img {
    width: 100%;
    transition: all 0.3s ease; /* 动效核心 */
}

.involved-list-item:hover img {
    transform: translateY(-10px) scale(1.03);
}

.supporters {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.supporters_bg {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(partner_bg.svg);
    background-size: 2363px;
}

.supporters_beach {
    position: absolute;
    bottom: -1px;
    width: 100%;
    height: 189px;
    background-image: url('partner_beach.svg');
    background-size: 2300px;
    background-position: center;
    background-repeat: no-repeat;
}

.supporters1 {
    position: absolute;
    background-color: #08b8f4;
    width: 600px;
    height: min(105px, 10vw);
    bottom: 0;
    right: -600px;
}

.supporters2 {
    position: absolute;
    background-color: #08b8f4;
    width: 600px;
    height: min(58px, 10vw);
    bottom: 0;
    left: -600px;
}

.supporters3 {
    position: absolute;
    background-color: #08b8f4;
    width: auto;
    height: 1em;
    bottom: 0;
    left: 0;
    right: 0;
}

.supporters-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 82px;
}

.supporters-container img {
    width: 100%;
}

.footer-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    /* width: 100%; */
    display: flex;
    padding: 1em;
    justify-content: space-between;
    flex-wrap: wrap;
    
    .right {
        width: 400px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .left {
        width: 400px;
        color: #fff;

        p {
            text-align: center;
        }

        img {
            object-fit: contain;
        }
    }
}
@media (max-width: 800px) {
    .players-box,.players-box,.slider-container,.involved-container {
        padding: 1em;
    }
    
    .happened-background {
        display: none;
    }

    .happened-background-mobile {
        width: 100%;
        display: block;
    }

    .action-in-meisha {
        right: 0;
        top: -4%;
        max-width: 60%;    
    }

    .timeline-nav-prev {
        top: 1vw;
        left: 0.6em;
    }

    .timeline-nav-next {
        top: 27vw;
        right: 0.6em;
    }

    .timeline-nav-label {
        font-size: 12px;
    }

    .timeline-nav-arrow {
        font-size: 30px;
    }

    .happened-container {
        height: 140vw;
    }

    .happened-content-1 {
        left: 10vw;
        top: 15vw;
    }

    .happened-content-2 {
        left: 50vw;
        top: 37vw;
    }

    .happened-content-3 {
        left: 20vw;
        top: 61vw;
    }

    .happened-content-4 {
        left: 48vw;
        top: 81vw;
    }

    .next-year {
        right: 1em;
        top: 81vw;
        width: 16vw;
    }
    .happened-content-items img {
        height: 16vw;
        max-width: unset;
    }

    .happened-content-items .sub-buttons {
        position: relative;
        z-index: 20;
        padding: 0.35em;
        border-radius: 0.75em;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 6px 18px rgba(31, 89, 117, 0.16);
    }

    .happened-content-items .sub-buttons img {
        height: auto;
        width: min(34vw, 150px);
    }

    .involved-list {
        width: 100%;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .involved-background {
        left: -26%;
        height: 100%;
        max-width: 156%;
        object-fit: cover;
     }
    .supporters-container {
        padding-bottom: 68px;
    }

    .supporters_beach {
        height: 80px;
        background-size: 1000px;
    }

    .supporters_bg {
        background-size: 1900px;
    }

    .list-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .swiper-button-next {
        visibility: hidden;
    }
    .swiper-button-prev {
        visibility: hidden;
    }
    .footer .right .p2 {
        text-align: center !important;
    }
    .footer-container {
        position: relative;
        max-width: 1000px;
        margin: 0 auto;
        /* width: 100%; */
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4em;

        .right {
            width: 90%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    
        .left {
            width: 90%;
            color: #fff;
            display: flex;
            justify-content: center;
            flex-direction: column;
        }
    }
}



.footer { 
    background-color: rgb(11, 184, 244);
    padding: 4em 0;
    -webkit-box-sizing: border-box; 
    -moz-box-sizing: border-box; 
    box-sizing: border-box; 
    /* .footer-container {
        position: relative;
        max-width: 1000px;
        margin: 0 auto;
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;

        .right {
            width: max(50%, 400px);
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }
    
        .left {
            width: max(50%, 400px);
            color: #fff;
        } 
    }*/

    
    .img5 {
        height: 84px;
    }

    .img4 {
        height: 190px;
    }



    .dl { float: left; margin-right: 50px; }
    
    .dt { font-size: 14px; color: #fff; line-height: 34px; font-weight: bold; padding-bottom: 5px; }
    
    .dd { line-height: 26px; font-size: 13px; color: #fff; }
    
    .other { width: 118px; float: left; margin-left: 60px; }
    
    .right .p1 { font-size: 14px; line-height: 34px; color: #fff; margin: 1em 0;}

    .right a { text-decoration: none; }

    .right .p1 a { font-size: 14px; color: #fff; padding-left: 9px; margin-right: 5px; }
    
    .right .p1 a:last-child { margin-right: 0; }
    
    .right .p2, .right .p3 { font-size: 14px; color: #fff; text-align: right; }
    
    .right h5 { color: #47bb1d; font-size: 30px; line-height: 50px; text-align: right; font-family: 'rubik'; }
}
