/* 头部区域 */
.header{
    position: relative;
    height: 1280px;
    background: url("../images/header.jpg") top center no-repeat;
}
.time{
    position: absolute;
    top: 962px;
    width: 808px;
    left: 50%;
    margin-left: -404px;
    color: #ffc84b;
    font-size: 36px;
    text-align: center;
}
.nav{
    position: absolute;
    top: 1050px;
    left: 50%;
    margin-left: -550px;
    display: flex;
    gap: 110px;
}
.nav a{
    display: block;
    width: 500px;
    height: 168px;
    line-height: 145px;
    font-size: 42px;
    color: #fff;
    text-align: center;
    transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    background: url("../images/nav.png") no-repeat;
    text-shadow: 0 0 10px #a96af0;
}
.nav a:hover,
.nav a.active{
    color: #c56a33;
    background: url("../images/nav-hv.png") no-repeat;
    text-shadow: 0 0 10px #fff;
}

/* 活动详情页容器 */
.event1{
    position: relative;
}

/* 通用区块 */
.section{
    position: relative;
    overflow: hidden;
}
.section-guide{
    height: 1980px;
    background: url("../images/section1.jpg") top center no-repeat;
}
.section-body{
    width: 1008px;
    margin: 0 auto;
    position: relative;
}

/* 创作方向 */
.guide-item{
    position: absolute;
}
.guide-item1{
    top:150px;
    left: 0;
    width: 1008px;
    height: 493px;
    background: url("../images/guide-item1.png") 0 0 no-repeat;
}
.guide-item2{
    top: 635px;
    left: 42px;
    width: 953px;
    height:564px;
    background: url("../images/guide-item2.png") 0 0 no-repeat;
}
.guide-item3{
    top: 1165px;
    left: 0;
    width: 1008px;
    height: 718px;
    background: url("../images/guide-item3.png") 0 0 no-repeat;
}
.guide-head,.guide-box{
    position: absolute;
    font-size: 24px;
}
.guide-item1 .guide-head{
    top: 249px;
    left: 54px;
}
.guide-item1 .guide-box{
    top: 295px;
    left: 535px;
}
.guide-item2 .guide-head{
    top: 277px;
    left: 552px;
}
.guide-item2 .guide-box{
    top: 378px;
    left: 20px;
}
.guide-item3 .guide-head{
    top: 351px;
    left: 54px;
}
.guide-item3 .guide-box{
    top: 362px;
    left: 525px;
}
.guide-head{
    width: 361px;
    padding: 0 20px;
    line-height: 2;
}
.guide-box{
    color: #fff;
    line-height: 2;
    width: 426px;
    padding: 0 20px;
}

/* 活动奖励 */
.section-reward{
    height: 2720px;
    background: url(../images/section2.jpg) top center no-repeat;
}
.section-reward .section-body{
    padding-top: 1335px;
}
.reward-panel-box{
    background: #fff;
    padding: 2px;
    border-radius: 12px;
    max-width: 1040px;
    margin: 0 auto 30px;
    overflow: hidden;
}
.reward-panel-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(75deg, #5b9ffe,#5ff0ed, #f2afff,#7d45fe);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}
.reward-tabs{
    display: flex;
    gap: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
    width: 100%;
    background: rgba(255,255,255,0.95);
    margin-bottom: 18px;
}
.reward-tab{
    flex: 1;
    display: block;
    height: 72px;
    line-height: 72px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    background: #cc84e1;
    text-decoration: none;
    transition: all .25s ease;
}
.reward-tab.active{
    color: #744fbb;
    background: #FEFDFF;
}
.reward-tab:hover{
    color: #744fbb;
}
.reward-tiers{
    display: block;
    margin-bottom: 0;
    padding: 40px 0;
    height: 438px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}
.reward-panel{
    display: none;
}
.reward-panel.active{
    display: grid;
}
.reward-img{
    width: 994px;
    height: 272px;
    margin: 245px auto 0;
    background: url('../images/reward-img.png') no-repeat;
}
.tier-item{
    text-align: center;
}
.tier-badge{
    width: 131px;
    height: 131px;
    margin: 0 auto 16px;
    background: url('../images/tier-badge-bg.png') no-repeat;
}
.tier-name{
    font-size: 24px;
    color: #3d246b;
}
.join-group{
    display: flex;
}
.join-ac{
    display: block;
    width: 451px;
    height: 171px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: url('../images/join-ac.png') no-repeat;
}
.join-ac:hover{
    transform: scale(1.05);
}
.btn-join{
    display: block;
    width: 451px;
    height: 171px;
    margin: 0 auto;
    background: url('../images/btn-join.png') no-repeat;
}

/* 参与方式 */
.section-join{
    height: 3600px;
    background: url('../images/section3.jpg') top center no-repeat;
}
.section-join .section-body{
    position: relative;
    width: 986px;
}
.section-join .section-body>img,.section-join .section-body .notice-list{
    position: absolute;
}
.p1{
    top:380px;
    left: 0;
}
.p2{
    top:380px;
    left: 570px;
}
.p3{
    top:1005px;
    left: 178px;
}
.p4{
    top:1755px;
    left: 0;
}
.p5{
    top:2300px;
    left: 350px;
}


/* 注意事项 */
.notice-list{
    width: 100%;
    top:2960px;
    left: 0;
    font-size: 24px;
    color: #14163a;
    line-height: 2;
}
.txt-indent{
    text-indent: 42px;
}


/* 贡献排行页 */
.event2{
    position: relative;
    height: 1570px;
    padding-top: 130px;
    background: url('../images/event2.jpg') top center no-repeat;
}
.tips{
    color: red;
    text-align: center;
}
.rank-card{
    width: 950px;
    margin: 0 auto;
    background: #fff;
    padding: 3px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(120, 50, 200, 0.3);
}
.rank-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(75deg, #5b9ffe,#5ff0ed, #f2afff,#7d45fe);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}
.rank-tabs{
    display: flex;
}
.rank-tab{
    flex: 1;
    height: 80px;
    line-height: 80px;
    text-align: center;
    font-size: 28px;
    color: #fff;
    background: #b87aff;
    transition: all .2s;
}
.rank-tab.active{
    color: #7b3fd4;
    background: #fff;
    font-weight: bold;
}
.rank-tab:hover{
    color: #7b3fd4;
}
.rank-panel{
    padding: 20px;
    margin-top: 80px;
}
.rank-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 22px;
}
.rank-table thead tr{
    background: #c9a0ff;
}
.rank-table th{
    padding: 18px 15px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}
.rank-table td{
    padding: 16px 15px;
    text-align: center;
    color: #894b4b;
    vertical-align: middle;
}
.rank-table tbody tr:nth-child(odd){
    background: #f8f0ff;
}
.rank-table tbody tr:nth-child(even){
    background: #fff;
}
.nickname{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.nickname span{
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.avatar{
    width: 68px;
    height: 68px;
    padding: 2px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.avatar::before {
    content: '';
    width: 68px;
    height: 68px;
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(75deg, #5b9ffe,#5ff0ed, #f2afff,#7d45fe);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* ========== 页面动画 ========== */

/** 背景装饰漂浮 */
@keyframes animFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(3deg); }
}
@keyframes animFloatReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(14px) rotate(-3deg); }
}
@keyframes animShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.bg-deco-note1{
    animation: animFloat 4s ease-in-out infinite;
}
.bg-deco-note2{
    animation: animFloatReverse 5s ease-in-out infinite;
}
.bg-deco-cd{
    animation: animFloat 6s ease-in-out infinite 0.5s;
}
.bg-deco-coin{
    animation: animFloatReverse 4.5s ease-in-out infinite 1s;
}

/** 头部入场 */
.header .time,
.header .nav{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.header .time.anim-visible,
.header .nav.anim-visible{
    opacity: 1;
    transform: translateY(0);
}

/** 区块内部子元素入场 */
.anim-child{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-child-visible{
    opacity: 1;
    transform: translateY(0);
}
.guide-item:nth-child(even).anim-child{
    transform: translateX(-30px);
}
.guide-item:nth-child(even).anim-child-visible{
    transform: translateX(0);
}
.platform-box.anim-child{
    transform: translateX(40px);
}
.platform-box.anim-child-visible{
    transform: translateX(0);
}

/** 滚动触发基础 */
.anim-item{
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.anim-item.anim-fade-up{
    transform: translateY(50px);
}
.anim-item.anim-fade-down{
    transform: translateY(-40px);
}
.anim-item.anim-fade-left{
    transform: translateX(-50px);
}
.anim-item.anim-fade-right{
    transform: translateX(50px);
}
.anim-item.anim-zoom{
    transform: scale(0.88);
}
.anim-item.anim-visible{
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/** 奖励图标弹跳 */
.reward-icon{
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-reward.anim-visible .reward-icon:nth-child(1){
    transition-delay: 0.1s;
    transform: scale(1);
}
.section-reward.anim-visible .reward-icon{
    animation: animRewardPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.section-reward.anim-visible .reward-icon:nth-child(1){ animation-delay: 0.3s; }
.section-reward.anim-visible .reward-icon:nth-child(2){ animation-delay: 0.45s; }
.section-reward.anim-visible .reward-icon:nth-child(3){ animation-delay: 0.6s; }
@keyframes animRewardPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
.reward-icon{
    transform: scale(0);
    opacity: 0;
}
.btn-more {
    position: absolute !important;
    top: 1700px;
    left: 50%;
    margin-left: -225px;
    width: 451px;
    height: 171px;
    background: url(../images/more-btn.png) no-repeat;
}
.btn-join:hover,.btn-more:hover {
    transform: scale(1.05);
}
.btn-join:active,.btn-more:active {
    transform: scale(0.97);
}
/** 参与按钮交互 */
.btn-join{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-join::after{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: none;
}
.btn-join.anim-child-visible::after{
    animation: animShine 2.5s ease-in-out infinite 1s;
}
.btn-join:hover{
    transform: scale(1.05);
}
.btn-join:active{
    transform: scale(0.97);
}

/** 导航按钮 hover 微弹 */
.nav a{
    transition: all 0.25s ease-in, transform 0.25s ease;
}
.nav a:hover{
    transform: translateY(-3px);
}
.nav a:active{
    transform: translateY(0);
}

/** 排行榜卡片 & 行 */
.rank-card.anim-visible{
    animation: animPulse 3s ease-in-out infinite 0.5s;
}
.rank-table tbody tr{
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.rank-table tbody tr.anim-visible{
    opacity: 1;
    transform: translateX(0);
}
.rank-tab{
    transition: all 0.3s ease, transform 0.2s ease;
}
.rank-tab:active{
    transform: scale(0.97);
}

/** 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    .anim-item,
    .anim-child,
    .header .time,
    .header .nav,
    .rank-table tbody tr{
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
    .bg-deco{
        animation: none;
    }
    .section.anim-visible,
    .rank-card.anim-visible{
        animation: none;
    }
    .reward-icon{
        transform: scale(1);
        opacity: 1;
        animation: none;
    }
}
