/* 头部区域 */
.header{
    position: relative;
    height: 1080px;
    background: url("../images/header.jpg") top center no-repeat;
}
.nav{
    position: absolute;
    top: 915px;
    left: 50%;
    margin-left: -554px;
    display: flex;
    gap: 48px;
}
.nav a{
    display: block;
    width: 530px;
    height: 152px;
    line-height: 152px;
    font-size: 52px;
    color: #fff;
    font-weight: bold;
    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 #854918;
}
.nav a:hover,
.nav a.active{
    color: #854918;
    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: 2220px;
    background: url("../images/section1.jpg") top center no-repeat;
}
.section-body{
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 创作方向 */
.guide-item{
    position: absolute;
}
.guide-item1{
    top:200px;
    left: 83px;
    width: 1130px;
    height: 560px;
    background: url("../images/guide-item1.png") 0 0 no-repeat;
}
.guide-item2{
    top: 780px;
    left: 83px;
    width: 1042px;
    height:570px;
    background: url("../images/guide-item2.png") 0 0 no-repeat;
}
.guide-item3{
    top: 1358px;
    left: 83px;
    width: 1042px;
    height: 510px;
    background: url("../images/guide-item3.png") 0 0 no-repeat;
}
.guide-head,.guide-box{
    position: absolute;
    font-size: 24px;
    line-height: 2;
}
.guide-item1 .guide-head{
    top: 165px;
    left: 70px;
}
.guide-item1 .guide-box{
    top: 355px;
    left: 70px;
}
.guide-item2 .guide-head{
    top: 185px;
    left: 70px;
}
.guide-item2 .guide-box{
    top: 378px;
    left: 70px;
}
.guide-item3 .guide-head{
    top: 225px;
    left: 70px;
}
.guide-item3 .guide-box{
    top: 320px;
    left: 70px;
}
.guide-box{
    color: #ff4fc6;
}

/* 活动奖励 */
.section-reward{
    height: 2860px;
    background: url(../images/section2.jpg) top center no-repeat;
}
.section-reward .section-body{
    padding-top: 1360px;
}
.reward-panel-box{
    background: #fff;
    padding: 2px;
    border-radius: 12px;
    max-width: 855px;
    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);
}
.reward-tab{
    flex: 1;
    display: block;
    height: 72px;
    line-height: 72px;
    text-align: center;
    font-size: 32px;
    color: #fff;
    background: #cc84e1;
    text-decoration: none;
    transition: all .25s ease;
}
.reward-tab.active{
    color: #ad63c2;
    background: #fff;
}
.reward-tab:hover{
    color: #744fbb;
}
.reward-tiers{
    display: block;
    margin-bottom: 0;
    padding-bottom:20px;
    height: 705px;
    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: 212px;
    margin: 190px auto 20px;
    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;
    gap: 40px;
    justify-content: center;
}
.join-ac{
    width: 482px;
    height: 112px;
    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{
    width: 482px;
    height: 112px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: url('../images/btn-join.png') no-repeat;
}

/* 参与方式 */
.section-join{
    height: 3540px;
    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;
}
.look-detail{
    position: absolute;
    top: 672px;
    left: 870px;
    width: 201px;
    height: 40px;
}

/* 注意事项 */
.notice-list{
    width: 100%;
    top:2870px;
    left: 0;
    font-size: 24px;
    color: #14163a;
    line-height: 2;
}
.txt-indent{
    text-indent: 42px;
}


/* 贡献排行页 */
.event2{
    position: relative;
    height: 1570px;
    padding-top: 100px;
    background: url('../images/event2.jpg') top center no-repeat;
}
.rank-card{
    width: 1038px;
    margin: 0 auto;
    background: #fff;
    padding: 3px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(120, 50, 200, 0.3);
}
.rank-card::before {
  content: '';
  position: absolute;
  inset: 0;
  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: #58338c;
    transition: all .2s;
}
.rank-tab.active{
    color: #690ee8;
    background: #fff;
    font-weight: bold;
}
.rank-tab:hover{
    color: #690ee8;
}
.rank-panel{
    padding: 20px;
    margin-top: 40px;
}
.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: 180px;
    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: 1900px;
    left: 50%;
    margin-left: -258px;
    width: 517px;
    height: 120px;
    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);
    line-height: 75px;
}
.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;
    }
}
.look-btn{
    position: absolute;
    left: 50%;
    width: 26px;
    height: 26px;
}
.look-btn img{
    display: none;
    position: absolute;
    left: -425px;
    top: -127px;
    width: 300px;
}
.look-btn1{
    top: 381px;
    margin-left: 354px;
}
.look-btn2{
    top: 627px;
    margin-left: 354px;
}
.look-btn3{
    top: 383px;
    margin-left: 258px;
}
.look-btn4{
    top: 629px;
    margin-left: 258px;
}

.tips{
    color: #fff;
    text-align: center;
}