/* 限时充值返利 CZ202609 — 设计稿 1920 基准，1rem = 设计稿 100px */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    color: #5a3a1a;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    background: #8ec4e0;
}

/* toast：本页 html rem 过大，强制用 px 字号 */
.message {
    font-size: 16px !important;
    line-height: 1.4 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    max-width: 80% !important;
    box-sizing: border-box;
}

.page-wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background-color: #8ec4e0;
    /* 头图船底约在 64% 处，背景从图下接船底并略上叠，避免透明区露纯色缝 */
    background-image: url(../images/背景底图.png);
    background-repeat: no-repeat;
    background-position: center calc(16.09rem * 0.58);
    background-size: 100% calc(100% - 16.09rem * 0.58);
}

/* ========== Hero：完整头图，不裁切 ========== */
.page-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 16.09rem;
    background: url(../images/头图.png) no-repeat center top;
    background-size: 100% 100%;
    /* 透明区域不拦截下方 section（上移后）的点击 */
    pointer-events: none;
}

.page-hero .btn-home,
.page-hero .hero-inner,
.page-hero .btn-hero,
.page-hero a,
.page-hero button {
    pointer-events: auto;
}

.btn-home {
    position: absolute;
    right: 0.24rem;
    top: 0.2rem;
    z-index: 5;
    display: block;
    line-height: 0;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: none;
}

.btn-home img {
    display: block;
    width: 0.72rem;
    height: 0.72rem;
}

.btn-home:hover {
    opacity: 0.9;
}

/* 登录后用户信息：section-rebate 顶部居中（兼容 jQuery .show() 的 display:block） */
.user-bar {
    position: relative;
    z-index: 6;
    width: fit-content;
    max-width: 96%;
    margin: 0 auto 0.16rem;
    padding: 0.08rem 0.2rem;
    border-radius: 0.08rem;
    background: rgba(255, 248, 230, 0.92);
    color: #6b4a2e;
    font-size: 0.18rem;
    line-height: 1.3;
    white-space: nowrap;
    text-align: center;
    pointer-events: auto;
}

.user-bar .user-bar-label,
.user-bar .login-user-name,
.user-bar a,
.user-bar .user-bar-sep {
    display: inline-block;
    vertical-align: middle;
}

.user-bar .login-user-name {
    font-weight: bold;
    max-width: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-bar a {
    color: #e07020;
    text-decoration: none;
    margin: 0 0.04rem;
}

.user-bar a:hover {
    text-decoration: underline;
}

.user-bar-sep {
    color: #c4a882;
}

.hero-inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title-wrap {
    position: relative;
    width: 7.2rem;
    max-width: 88%;
    margin: 0 auto 0.28rem;
}

.hero-title {
    display: block;
    width: 100%;
    height: auto;
}

/* 叠在标题字斜木条上，随木条左高右低倾斜 */
.hero-time {
    position: absolute;
    left: 50%;
    top: 83%;
    bottom: auto;
    z-index: 2;
    width: 90%;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    color: #fffef5;
    font-family: SimSun, "宋体", "Songti SC", "STSong", serif;
    font-size: 0.2rem;
    font-weight: bold;
    letter-spacing: 0.01rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 0.01rem 0.02rem rgba(60, 30, 10, 0.7);
    transform: translate(-50%, -50%) rotate(-5deg);
    transform-origin: center center;
    pointer-events: none;
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.28rem;
}

.btn-hero {
    display: inline-block;
    line-height: 0;
}

.btn-hero img {
    display: block;
    width: 2.88rem;
    height: auto;
}

.btn-hero:hover {
    opacity: 0.92;
}

.page-main {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0.2rem 0 0.4rem;
    margin-top: 0;
    min-height: calc(100vh - 16.09rem);
    background: none;
}

.section {
    width: 100%;
    margin: 0 auto 0.48rem;
    text-align: center;
}

#section-rebate {
    margin-top: -4rem;
}

.section-title-img {
    display: block;
    width: 6.69rem;
    max-width: 80%;
    height: auto;
    margin: 0 auto 0.12rem;
}

.section-sub {
    margin: 0 auto 0.14rem;
    padding: 0 0.24rem;
    color: #6b4a2e;
    font-family: SimSun, "宋体", "Songti SC", "STSong", serif;
    font-size: 0.2rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.01rem;
}

.js-login-tip {
    position: static;
    margin: 0 auto 0.16rem;
    padding: 0 0.24rem;
}

.section-panel {
    box-sizing: border-box;
    width: 12.57rem;
    max-width: 96%;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

.section-panel--1 {
    height: 4.64rem;
    padding: 0.72rem 0.56rem 0.72rem;
    background-image: url(../images/第一部分标题框.png);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-panel--2 {
    min-height: 5.04rem;
    height: auto;
    padding: 0.72rem 0.5rem 0.8rem;
    background-image: url(../images/第二部分标题框.png);
}

.section-panel--3 {
    min-height: 8.89rem;
    height: auto;
    padding: 1.15rem 1.3rem 1.25rem;
    background-image: url(../images/第三部分标题框.png);
    text-align: left;
}

/* ========== 01 金额区 ========== */
.rebate-data {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rebate-data.is-locked .amount-row,
.phase-content.is-locked {
    opacity: 0.42;
    pointer-events: none;
    filter: grayscale(0.2);
}

.data-tip {
    margin: 0 0 0.12rem;
    color: #e07020;
    font-size: 0.22rem;
    font-weight: bold;
    text-align: center;
}

.js-phase-tip {
    font-family: SimSun, "宋体", "Songti SC", "STSong", serif;
    font-weight: 700;
    color: #e07020;
}

.amount-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    flex-wrap: wrap;
    margin-top: 0.16rem;
}

.amount-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.08rem;
}

.amount-label {
    display: block;
    width: 2.16rem;
    height: auto;
}

.amount-label--extra {
    width: 2.92rem;
}

.amount-box {
    box-sizing: border-box;
    width: 3.55rem;
    height: 1.06rem;
    padding: 0 0.7rem;
    background: url(../images/金额UI框.png) no-repeat center center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amount-num {
    color: #fff8e0;
    font-size: 0.4rem;
    font-weight: bold;
    letter-spacing: 0.02rem;
    text-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.35);
    line-height: 1;
}

.amount-arrow {
    width: 0.52rem;
    height: 0.52rem;
    margin-top: 0.36rem;
}

/* 覆盖切图底部静态文案，展示动态明细 */
.rebate-detail {
    position: absolute;
    left: 0.36rem;
    right: 0.36rem;
    bottom: 0.18rem;
    margin: 0;
    padding: 0.08rem 0.12rem;
    background: #fbf6f1;
    border-radius: 0.06rem;
    color: #6b4a2e;
    font-family: SimSun, "宋体", "Songti SC", "STSong", serif;
    font-size: 0.18rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.rebate-detail em,
.rebate-detail .num-orange {
    font-style: normal;
    color: #c45c28;
    font-weight: 700;
    font-family: SimSun, "宋体", "Songti SC", "STSong", serif;
    margin-left: 0.04rem;
    padding-left: 0.04rem;
}

.num-orange {
    font-style: normal;
    color: #c45c28;
    font-weight: 700;
}

/* ========== 02 阶段奖励 ========== */
.phase-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 0.28rem;
    max-width: 10rem;
}

.phase-progress-item {
    flex-shrink: 0;
    width: 0.62rem;
    height: 0.62rem;
}

.phase-star {
    display: block;
    width: 100%;
    height: auto;
}

.phase-line {
    flex: 1;
    height: 0.04rem;
    max-width: 3.89rem;
    min-width: 0.6rem;
    object-fit: fill;
}

.card-list {
    display: flex;
    justify-content: space-between;
    gap: 0.16rem;
    flex-wrap: wrap;
}

.card-item {
    flex: 1;
    min-width: 2.6rem;
    max-width: 3.6rem;
    margin: 0 auto;
    text-align: center;
}

.card-title {
    margin: 0 0 0.08rem;
    color: #8a5a20;
    font-size: 0.22rem;
    font-weight: bold;
}

.card-time {
    margin: 0 0 0.1rem;
    color: #7a6a50;
    font-size: 0.15rem;
    line-height: 1.4;
    word-break: break-all;
}

.card-rebate {
    margin: 0 0 0.14rem;
    color: #5a3a1a;
    font-size: 0.17rem;
    line-height: 1.4;
}

.btn-receive {
    display: inline-block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.btn-receive img {
    display: block;
    width: 2.4rem;
    height: auto;
    margin: 0 auto;
}

.btn-receive.disabled {
    cursor: default;
}

.btn-receive:not(.disabled):hover {
    opacity: 0.92;
}

.phase-content.is-hidden,
.card-list.is-hidden {
    display: none !important;
}

/* ========== 03 规则 ========== */
.rule-content {
    color: #5a3a1a;
    font-size: 0.2rem;
    line-height: 1.7;
}

.rule-content p {
    margin: 0 0 0.14rem;
}

.example-box {
    margin: 0.1rem 0 0.18rem;
    padding: 0.14rem 0.18rem;
    border-radius: 0.08rem;
    background: rgba(232, 200, 120, 0.2);
}

.example-box p {
    margin: 0;
}

.rule-time-title {
    margin-bottom: 0.06rem !important;
}

.rule-times {
    margin: 0 0 0.14rem;
    padding-left: 0.08rem;
}

.rule-times div {
    margin-bottom: 0.05rem;
}

.rule-notes-title {
    margin: 0.18rem 0 0.08rem;
    color: #8a5a20;
    font-size: 0.24rem;
    font-weight: bold;
}

.rule-notes {
    margin: 0;
    padding-left: 0.32rem;
}

.rule-notes li {
    margin-bottom: 0.06rem;
}

/* ========== Footer ========== */
.page-footer {
    width: 100%;
    height: 4.18rem;
    background: url(../images/封底.png) no-repeat center bottom;
    background-size: 100% 100%;
}

/* ========== Mobile ========== */
@media screen and (max-width: 768px) {
    /* 移动端头图完整展示，不裁切 */
    .page-wrap {
        background-position: center calc(16.09rem * 0.58);
        background-size: 100% calc(100% - 16.09rem * 0.58);
    }

    .page-hero {
        height: 16.09rem;
        min-height: 0;
        padding-bottom: 0;
        overflow: visible;
        background-size: 100% 100%;
        background-position: center top;
    }

    .btn-home {
        right: 10px;
        top: 10px;
        padding: 0;
        font-size: 0;
    }

    .btn-home img {
        width: 44px;
        height: 44px;
    }

    .hero-inner {
        top: 0.35rem;
        position: absolute;
        left: 0;
        right: 0;
        padding: 0 0.16rem;
    }

    .hero-title-wrap {
        width: 6.4rem;
        max-width: 90%;
        margin-bottom: 0.14rem;
    }

    .hero-time {
        top: 83%;
        width: 94%;
        font-size: 0.14rem;
        white-space: nowrap;
        transform: translate(-50%, -50%) rotate(-5deg) scale(0.95);
    }

    .hero-btns {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 0.14rem;
    }

    .btn-hero img {
        width: 3.6rem;
        max-width: 72vw;
    }

    .page-main {
        margin-top: 0;
        padding: 0.1rem 0 0.3rem;
        min-height: calc(100vh - 16.09rem);
        background: none;
    }

    #section-rebate {
        margin-top: -4rem;
    }

    .user-bar {
        font-size: 13px;
        padding: 8px 14px;
        margin-bottom: 0.12rem;
        white-space: normal;
    }

    .user-bar .login-user-name {
        max-width: 5em;
    }

    .section {
        margin-bottom: 0.36rem;
    }

    .section-title-img {
        width: 5.6rem;
        max-width: 82%;
        margin-bottom: 0.08rem;
    }

    .section-sub {
        font-size: 12px;
        line-height: 1.45;
        padding: 0 14px;
        word-break: break-all;
    }

    .js-login-tip,
    .js-phase-tip,
    .data-tip {
        font-size: 13px;
        padding: 0 14px;
        margin-bottom: 0.12rem;
    }

    .section-panel {
        width: 94%;
        max-width: 94%;
        box-sizing: border-box;
    }

    /* 面板加大内边距，避免贴边溢出 */
    .section-panel--1 {
        height: auto;
        min-height: 0;
        padding: 1.7rem 0.8rem 1rem;
        justify-content: flex-start;
    }

    .rebate-data {
        height: auto;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .amount-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-end;
        justify-content: center;
        gap: 0.12rem;
        margin-top: 0.12rem;
    }

    .amount-card {
        gap: 0.08rem;
        width: auto;
        max-width: none;
        flex: 1 1 0;
        align-items: center;
    }

    .amount-label {
        width: 2.6rem;
    }

    .amount-label--extra {
        width: 3.4rem;
    }

    .amount-box {
        width: 100%;
        max-width: 4.2rem;
        height: 1.15rem;
        padding: 0 0.65rem;
    }

    .amount-num {
        font-size: 0.44rem;
    }

    .amount-arrow {
        width: 0.5rem;
        height: 0.5rem;
        margin-top: 0;
        margin-bottom: 0.32rem;
        flex-shrink: 0;
        transform: none;
    }

    .rebate-detail {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 0.22rem 0 0;
        padding: 0.12rem 0.14rem;
        font-size: 12px;
        line-height: 1.6;
        text-align: left;
        white-space: normal;
        word-break: break-all;
        background: #fbf6f1;
        font-weight: 700;
        color: #6b4a2e;
        font-family: SimSun, "宋体", "Songti SC", "STSong", serif;
        border-radius: 4px;
        box-sizing: border-box;
        width: 100%;
    }

    .rebate-detail .num-orange,
    .rebate-detail em {
        margin-left: 2px;
        padding-left: 0;
    }

    .section-panel--2 {
        padding: 2.8rem 0.4rem;
        min-height: 0;
    }

    .section-panel--3 {
        padding: 3rem 1.4rem;
        min-height: 0;
    }

    .phase-progress {
        max-width: 88%;
        margin-bottom: 0.18rem;
    }

    .phase-progress-item {
        width: 0.48rem;
        height: 0.48rem;
    }

    .card-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .card-item {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        padding: 0.18rem 0.06rem;
        border-bottom: 1px dashed rgba(180, 140, 80, 0.35);
        box-sizing: border-box;
    }

    .card-item:last-child {
        border-bottom: 0;
    }

    .card-title {
        font-size: 15px;
    }

    .card-time,
    .card-rebate {
        font-size: 12px;
        word-break: break-all;
        padding: 0 2px;
    }

    .btn-receive img {
        width: 4.8rem;
    }

    .rule-content {
        font-size: 12px;
        line-height: 1.7;
        word-break: break-word;
    }

    .rule-notes-title {
        font-size: 14px;
    }

    .page-footer {
        height: 2.2rem;
    }

    /* 登录弹窗字号不受页面 rem 影响 */
    .mod-dialog1,
    .mod-dialog1 .form1,
    .mod-dialog1 h2,
    .mod-dialog1 .form-control1,
    .mod-dialog1 .btn-login1 {
        font-size: 14px !important;
    }

    .mod-dialog1 .btn-login1 {
        height: 40px !important;
        line-height: 40px !important;
        padding: 0 12px !important;
    }
}
