/* rem基准值设置 - 基于375px设计稿，1rem = 100px */
html {
    font-size: 100px;
}

@media screen and (max-width: 374px) {
    html {
        font-size: 89.99px;
    }
}

@media screen and (min-width: 375px) and (max-width: 413px) {
    html {
        font-size: 100px;
    }
}

@media screen and (min-width: 414px) {
    html {
        font-size: 109.9999px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.l{
    float: left;
}
.r{
    float: right;
}
em{
    font-style: normal;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #F3F4F9;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.5;
    font-size: 0.16rem;
}
/* 顶部Banner区域 */
.header-banner {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f5e6e8 0%, #f0e8ea 100%);
}
.header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
/* 步骤导航 */
.step-nav {
    background: #DAEAFF;
    position: relative;
    height: 0.71rem;
    width: 100%;
    border-radius: 0.12rem 0.12rem 0 0;
    margin-top: -0.18rem;
}
.step-item {
    text-align: center;
    font-size: 0.14rem;
    color: #999;
    width: 50%;
    font-weight: 400;
    z-index: 100;
    position: absolute;
    right: 0;
    top: 0;
    display: inline-block;
    line-height: 0.41rem;
}
.step-item span{
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.18rem;
    color: #666;
    line-height: 0.41rem;
}
.step-item span em{
    color: #51C0F1;
}
.step-item.active {
    color: #5b9bd5;
    font-weight: 500;
    height: 0.82rem;
    background: url("../image/card-bg-2.png") center no-repeat;
    background-size: 100% 100%;
    top:-0.11rem ;
    position: absolute;
    line-height: 0.82rem;
    width: 100%;
    z-index: 10;
}
.step-item.active span{
    width: 50%;
    font-weight: 600;
    line-height: 0.61rem;
}
/* 活动规则卡片 */
.rule-card {
    margin: 0.1rem 0;
    background: url("../image/card-bg-3.png") center no-repeat;
    background-size: 100% 100%;
    font-size: 2.1rem;
    border-radius: 0.09rem;
    height: 0.6rem;
    line-height: 0.6rem;
}
.rule-card a{
    display: block;
    height: 100%;
    width: 100%;
}
.rule-title {
    font-size: 0.21rem;
    font-weight: 500;
    letter-spacing: 0.005rem;
    background: url("../image/icon-1.png") left 0.13rem center no-repeat;
    background-size: 0.52rem 0.37rem;
    padding-left: 0.74rem;
    margin-left: 0.15rem;
    color: #54BFEE;
}
.rule-arrow {
    width: 0.24rem;
    height: 0.24rem;
   border-radius: 50%;
    background:#fff url("../image/completed.png") center center no-repeat;
    background-size: 0.24rem 0.24rem;
    margin-right: 0.33rem;
    margin-top: 0.18rem;
}
/* 笔记模版标题 */
.template-title {
    font-size: 0.17rem;
    width: 0.84rem;
    height: 0.36rem;
    line-height: 0.36rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin: 0.04rem 0 0.04rem 0.065rem;
    background: url("../image/card-bg.png") center center no-repeat;
    background-size:100% 100%;
}
.note-content{
    box-sizing: border-box;
    width: 100%;
    padding: 0 0.15rem 0.15rem;
}
/* 表单区域 */
.form-section {
    background: #fff;
    width: 100%;
    border-radius: 0.12rem;
    padding: 0.05rem 0.15rem;
    box-shadow: 0 0.02rem 0.08rem rgba(0,0,0,0.04);
}
/* 表单项 */
.form-item {
    padding: 0.13rem 0;
    border-bottom: 0.01rem solid #d8d8d8;
    clear: both;
    overflow: hidden;

}
.form-item:last-child {
    margin-bottom: 0;
}
.form-label {
    font-size: 0.14rem;
    line-height: 0.14rem;
    color: #333;
    display: inline-block;
    font-weight: 400;
   
}
.form-label-hint {
    font-size: 0.14rem;
    color: #999;
    display: inline-block;
    font-weight: 400;
    line-height: 0.14rem;
    padding-right: 0.18rem;
    background: url("../image/completed-dark.png") right center no-repeat;
    background-size:0.12rem 0.12rem;
    flex-shrink: 0;
}
.form-input {
    font-size: 0.14rem;
    color: #999;
    width: 80%;
    display: inline-block;
    font-weight: 400;
    border: 0;
    line-height: 0.14rem;
    padding-right: 0.18rem;
    background: url("../image/completed-dark.png") right center no-repeat;
    background-size:0.12rem 0.12rem;
    text-align: right;
    
}
.form-input-nobg{
    background: none;
}
.form-input:focus {
      border: 0;
      outline: none;
  }
.form-item-img{
    padding-bottom: 0.1rem;
}
.form-item-noborder{
    border-bottom: 0;
}

/* 图片上传 */
.upload-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.08rem;
}
.upload-btn {
    width: 0.59rem;
    height: 0.59rem;
    border: 0.01rem dashed #ddd;
    border-radius: 0.06rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.12rem;
    color: #D8D8D8;
    background: url("../image/navigation.png") top 0.225rem center no-repeat;
    background-size:0.14rem 0.14rem;
    padding-top: 0.34rem;
    box-sizing: border-box;
}
.upload-btn:active {
    background: #f0f0f0;
}
.upload-preview {
    width: 0.61rem;
    height: 0.61rem;
    border-radius: 0.06rem;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}
.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 删除按钮 */
.delete-btn {
    position: absolute;
    right: 50%;
    top: 50%;
    margin-left: -0.09rem;
    margin-top: -0.09rem;
    left: 50%;
    width: 0.18rem;
    height: 0.18rem;
    border: 0;
    border-radius: 50%;
    background:rgba(0, 0, 0, 0.3) url("../image/delete.png")  center center no-repeat;
    background-size:0.12rem 0.12rem;
}
.delete-btn:active {
    background: rgba(0, 0, 0, 0.8);
}
/* 笔记内容区域 */
.activity-content{
    padding: 0.12rem 0;
}
.note-title {
    font-size: 0.16rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.09rem;
    line-height: 1.5;
}
.note-text {
    font-size: 0.14rem;
    color: #999;
    line-height: 0.22rem;
    margin-bottom: 0.12rem;
}
.note-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 1.2rem;
    padding: 0.1rem;
    border: 0.01rem solid #e8e8e8;
    border-radius: 0.06rem;
    font-size: 0.13rem;
    resize: vertical;
    outline: none;
    background: #F2F2F2;
    color: #333;
    line-height: 1.6;
}
.note-input::placeholder {
    color: #bbb;
}
/* 标签 */
/* 提交按钮 */
.submit-section {
    width: 2.4rem;
    margin: 0.2rem auto;
    height: 0.44rem;
}
.submit-btn {
    width: 2.4rem;
    margin: 0 auto;
    height: 0.44rem;
    background: #AFCCF3;
    color: #fff;
    border: none;
    border-radius: 0.22rem;
    font-size: 0.16rem;
    font-weight: 500;
    cursor: pointer;

}
.submit-btn:active {
    opacity: 0.9;
}

/* 底部安全区域 */
/*.safe-area-bottom {*/
/*    height: constant(safe-area-inset-bottom);*/
/*    height: env(safe-area-inset-bottom);*/
/*}*/
/* 弹窗遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

/* 活动结束弹窗特殊样式 */
.ended-modal {
    width: 2.7rem;
    height: 2.1rem;
    background: url("../image/banner-2.png")  center no-repeat;
    background-size:2.7rem  2.1rem;
    border-radius: 0.16rem;
    text-align: center;
}

/* 弹窗图标 */
.modal-icon {
    width: 0.85rem;
    height: 1.1rem;
    display: block;
    margin: -0.35rem auto 0;
    background: url("../image/banner-1.png")  center no-repeat;
    background-size:0.85rem  1.1rem;
}
/* 弹窗消息 */
.modal-message {
    font-size: 0.18rem;
    color: #333;
    margin-bottom: 0.24rem;
    line-height: 1.5;
    padding-top: 0.11rem;
}

/* 确认按钮 */
.modal-confirm-btn {
    width: 1.2rem;
}

.modal-confirm-btn:active {
    opacity: 0.8;
}

/* 弹窗内容 - 底部弹出样式 */
.modal-content:not(.ended-modal) {
    width: 100%;
    background: #F3F4F9;
    border-radius: 0.2rem 0.2rem 0 0;
    animation: slideUp 0.3s ease;
    bottom: 0;
    height: 50%;
    position: fixed;
    padding: 0.05rem 0.15rem ;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 弹窗头部 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 0.46rem;
    height: 0.46rem;
    border-bottom: 0.01rem solid #d8d8d8;
}
.modal-title {
    font-size: 0.16rem;
    font-weight: 600;
    color: #333;
}
.modal-close {
    cursor: pointer;
    width: 0.16rem;
    height: 0.16rem;
    margin-top: 0.1rem;
    background: url("../image/back-icon-white.png")  center no-repeat;
    background-size:0.16rem  0.16rem;
}
/* 弹窗主体 */
/* 活动列表 */
.activity-list {
    display: flex;
    flex-direction: column;
    padding-top: 0.15rem;
}
/* 活动项 */
.activity-item {
    display: flex;
    margin-bottom: 0.1rem;
    align-items: center;
    height: 0.48rem;
    line-height: 0.48rem;
    border-radius: 0.1rem;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.activity-item:active {
    background: #f0f0f0;
}
/* 选中状态 */
.activity-item.selected {
    /*background: #e8f4fd;*/
}
/* 单选框 */
.activity-radio {
    width: 0.18rem;
    height: 0.18rem;
    border: 0.01rem solid #D8D8D8;
    background: #F2F2F2;
    margin-left: 0.15rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.activity-item.selected .activity-radio {

    background: #AFCCF3 url("../image/icon-2.png")  center no-repeat;
    background-size: 0.18rem 0.18rem;
    border: 0.01rem solid #AFCCF3;
}
/* 活动名称 */
.activity-name {
    flex: 1;
    font-size: 0.14rem;
    padding-left: 0.1rem;
    color: #333;
    line-height: 1.4;
}
/* 顶部标题栏 */
.header-bar {
    height: 0.36rem;
    line-height: 0.36rem;
    font-size: 0.21rem;
    color: #333;
}
.header-back {
    display: inline-block;
    height: 0.21rem;
    width: 0.21rem;
    border-radius: 50%;
    background: #AFCCF3 url("../image/back-icon.png")  center no-repeat;
    background-size:0.1rem  0.1rem;
    margin-top: 0.075rem;
}
.header-title {
    font-size: 0.17rem;
    font-weight: 500;
    color: #333;
}
/* 规则文字 */
.rule-text {
    font-size: 0.14rem;
    color: #333;
    line-height: 0.24rem;
    margin-bottom: 0.2rem;
    text-align: justify;
}
.step-nav-second .step-item{
    left: 0;
}
/* 表单行 */
.step-nav-second .step-item.active {
    background: url("../image/card-bg-4.png") center no-repeat;
    background-size: 100% 100%;

}
.section-title {
    width: 1.19rem;
    background: url("../image/card-bg2.png") center center no-repeat;
    background-size:100% 100%;
}
/* 提示框 */
.tip-icon {
    background: url("../image/banner-4.png") left center no-repeat;
    background-size:0.2rem  0.21rem;
    padding-left: 0.26rem;
}
.tip-icon span{
    display: inline-block;
    height: 0.2rem;
    text-align: center;
    font-size: 0.14rem;
    background: linear-gradient( 90deg, rgba(254,223,21,0) 0%, #FEDF15 100%);
    border-radius: 0.1rem;
    padding: 0 0.;
}

.tip-text {
    padding:0.1rem 0 0.1rem 0.26rem;
    color: #99B8E3;
    font-size: 0.14rem;
}


/* 活动须知 */
.notice-section {
    padding: 0.15rem;
    box-sizing: border-box;
    width: 100%;
}

.notice-title {
    font-size: 0.14rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.05rem;
}

.notice-text {
    font-size: 0.14rem;
    color: #999;
    line-height: 0.22rem;
}
.rule-content{
    padding: 0.15rem 0;
}
.rule-content img{
    max-width: 100% !important;
}
.tip-box{
    padding-top: 0.1rem;
}
/* 大屏幕响应式样式 - 当浏览器宽度 >= 750px 时，页面内容居中显示，宽度为 750px */
@media screen and (min-width: 750px) {
    html {
        background-color: #e0e0e0;
    }

    body {
        width: 750px !important;
        margin: 0 auto !important;
        background-color: #F3F4F9 !important;
        min-height: 100vh;
        position: relative;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }

    @keyframes slideUp {
        from {
            transform: translateX(-50%) translateY(100%) !important;
            opacity: 0;
        }
        to {
            transform: translateX(-50%) translateY(0) !important;
            opacity: 1;
        }
    }
}

