/* ==========================================================================
   邀请奖励专项通道（Figma「新页面-1」393 × 1000）
   沿用 base.css 的换算：1rem = 100 个设计稿 px
   ========================================================================== */

body.body--rewards,
.page--rewards {
    background: #fff6e9;
}

/* --------------------------------------------------------------- 顶部横幅 */

.rw-hero {
    position: relative;
    display: block;
    width: 100%;
    height: 1.6rem;
    overflow: hidden;
}

.rw-hero__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 设计稿没画返回入口，但本页是从海报入口进来的二级页，没有它会把人困住 */
.rw-back {
    position: absolute;
    top: 0.14rem;
    left: 0.08rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.53rem;
    height: 0.24rem;
    font-size: 0.1rem;
    font-weight: 500;
    line-height: 0.145rem;
    color: #8a2b00;
    text-align: center;
    background: rgba(255, 249, 237, 0.92);
    border: 0.01rem solid rgba(245, 192, 107, 0.9);
    border-radius: 0.12rem;
    box-shadow: 0 0.01rem 0.04rem rgba(120, 30, 0, 0.18);
}

/* ----------------------------------------------------------- 温馨提示（1:123） */

.rw-tip {
    position: relative;
    min-height: 0.69rem;
    margin: 0.03rem 0.1rem 0 0.11rem;
    padding: 0.05rem 0.1rem 0.04rem 0.41rem;
    background: #fff;
    border: 0.01rem solid red;
    border-radius: 0.07rem;
}

/* 卡片有 1px 边框，绝对定位的原点在边框内侧，偏移量都要减掉这 1px */
.rw-tip__icon {
    position: absolute;
    top: 0.08rem;
    left: 0.14rem;
    display: block;
    width: 0.18rem;
    height: 0.16rem;
}

.rw-tip__text {
    margin: 0;
    font-size: 0.097rem;
    line-height: 0.1436rem;
    color: #925400;
    word-break: break-word;
}

/* ------------------------------------------------- 卡片外壳与斜角标签（三处共用） */

.rw-sec {
    position: relative;
    margin: 0.17rem 0.08rem 0;
    background: #fffefc;
    border-radius: 0.16rem;
}

/* 标签压在卡片上沿之上 14px：设计稿标签 235~267，卡片自 249 起 */
.rw-sec__tab {
    position: absolute;
    top: -0.14rem;
    left: 0.09rem;
    display: block;
    width: 1.82rem;
    height: 0.32rem;
}

.rw-sec__tab-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.rw-sec__tab-icon {
    position: absolute;
    display: block;
}

/* 三个标签图标在 22×22 容器里的实际墨边各不相同，逐个还原 */
.rw-sec__tab-icon--gift   { top: 0.0674rem; left: 0.1575rem; width: 0.165rem;   height: 0.184232rem; }
.rw-sec__tab-icon--shield { top: 0.0592rem; left: 0.1575rem; width: 0.165rem;   height: 0.201667rem; }
.rw-sec__tab-icon--check  { top: 0.0683rem; left: 0.1758rem; width: 0.128333rem; height: 0.183333rem; }

.rw-sec__tab-text {
    position: absolute;
    top: 0;
    left: 0.46rem;
    display: flex;
    align-items: center;
    height: 0.33rem;
    font-size: 0.18rem;
    font-weight: 700;
    line-height: 0.261rem;
    color: #fffce9;
    white-space: nowrap;
}

/* ------------------------------------------------ 邀请奖励标准（卡片 377×190） */

.rw-sec--std {
    height: 1.9rem;
}

.rw-tiers {
    position: absolute;
    top: 0.26rem;
    left: 0.1rem;
    display: flex;
    gap: 0.09rem;
}

.rw-tier {
    position: relative;
    width: 1.13rem;
    height: 1.1rem;
    background: #fff1e0;
    border-radius: 0.12rem;
}

.rw-tier__icon {
    position: absolute;
    top: 0.09625rem;
    left: 0.26375rem;
    display: block;
    width: 0.1225rem;
    height: 0.16625rem;
}

.rw-tier__people {
    position: absolute;
    top: 0.06rem;
    left: 0.48rem;
    display: flex;
    align-items: center;
    height: 0.27rem;
    font-size: 0.18rem;
    font-weight: 700;
    line-height: 0.27rem;
    color: #d8001b;
    white-space: nowrap;
}

.rw-tier__pill {
    position: absolute;
    top: 0.41rem;
    left: 0.07rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.99rem;
    height: 0.35rem;
    font-size: 0.2rem;
    font-weight: 700;
    line-height: 0.3rem;
    color: #d0081c;
    white-space: nowrap;
    background: linear-gradient(180deg, #ffe9c0 0%, #ffcd7b 100%);
    border-radius: 0.18rem;
}

.rw-tier__caption {
    position: absolute;
    top: 0.84rem;
    left: 0.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.03rem;
    height: 0.22rem;
    font-size: 0.12rem;
    font-weight: 700;
    line-height: 0.2rem;
    color: #8b3826;
    white-space: nowrap;
}

/* 奖励无上限条（357×35） */
.rw-nolimit {
    position: absolute;
    top: 1.44rem;
    left: 0.1rem;
    width: 3.57rem;
    height: 0.35rem;
    margin: 0;
    background: linear-gradient(180deg, #f52b25 0%, #d5001d 100%);
    border: 0.01rem solid #f3bb66;
    border-radius: 0.18rem;
}

.rw-nolimit img {
    position: absolute;
    top: 0.0612rem;
    left: 0.4199rem;
    display: block;
    width: 0.1575rem;
    height: 0.175857rem;
}

.rw-nolimit span {
    position: absolute;
    top: 0.02rem;
    left: 0.51rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.84rem;
    height: 0.28rem;
    font-size: 0.16rem;
    font-weight: 700;
    line-height: 0.25rem;
    color: #fff0bb;
    white-space: nowrap;
}

/* --------------------------------------------------- 权益说明（卡片随文案变高） */

.rw-sec--benefit {
    padding: 0.27rem 0 0.19rem;
}

/* 设计稿这行只放得下约 16 字，实际文案 40 多字，所以按行高自适应 */
.rw-benefit {
    position: relative;
    min-height: 0.32rem;
    padding: 0.055rem 0.12rem 0.055rem 1.08rem;
    margin: 0 0.1rem;
    background: #fff2e4;
    border-radius: 0.09rem;
}

.rw-benefit + .rw-benefit {
    margin-top: 0.05rem;
}

.rw-benefit__icon {
    position: absolute;
    top: 0.05rem;
    left: 0.15rem;
    display: block;
    width: 0.18rem;
    height: 0.22rem;
}

.rw-benefit__label {
    position: absolute;
    top: 0.04rem;
    left: 0.47rem;
    font-size: 0.15rem;
    font-weight: 700;
    line-height: 0.24rem;
    color: #d2071c;
    white-space: nowrap;
}

.rw-benefit__text {
    display: block;
    font-size: 0.13rem;
    line-height: 0.21rem;
    color: #263445;
    word-break: break-word;
}

/* ------------------------------------------------ 有效邀请认定（卡片 377×128） */

/* 设计稿这一处的卡间距是 19，与上面两张的 17 不一样 */
.rw-sec--valid {
    height: 1.28rem;
    margin-top: 0.19rem;
}

.rw-step {
    position: absolute;
    left: 0.1rem;
    display: block;
    width: 3.57rem;
    height: 0.27rem;
    background: #fff2e4;
    border-radius: 0.14rem;
}

.rw-step:nth-of-type(1) { top: 0.28rem; }
.rw-step:nth-of-type(2) { top: 0.59rem; }
.rw-step:nth-of-type(3) { top: 0.9rem; }

.rw-step__no {
    position: absolute;
    top: 0.03rem;
    left: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.21rem;
    height: 0.21rem;
    font-size: 0.14rem;
    font-weight: 700;
    line-height: 0.21rem;
    color: #ffecc0;
    background: #de1020;
    border-radius: 0.11rem;
}

.rw-step__text {
    position: absolute;
    top: 0;
    left: 0.44rem;
    display: flex;
    align-items: center;
    height: 0.27rem;
    font-size: 0.14rem;
    line-height: 0.22rem;
    color: #263445;
    white-space: nowrap;
}

/* ------------------------------------------------------- 三个外链按钮（357×35） */

.rw-cta {
    position: relative;
    display: block;
    width: 3.57rem;
    height: 0.35rem;
    margin: 0.09rem auto 0;
    background: linear-gradient(180deg, #ff382e 0%, #cf001b 100%);
    border: 0.01rem solid #f5c06b;
    border-radius: 0.18rem;
}

.rw-cta--first {
    margin-top: 0.1rem;
}

.rw-cta:active {
    transform: scale(0.99);
}

.rw-cta__icon {
    position: absolute;
    display: block;
}

/* 按钮同样有 1px 边框，下面的偏移量都已减去它 */
.rw-cta__icon--dl    { top: 0.0692rem; left: 0.5479rem; width: 0.134167rem; height: 0.191667rem; }
.rw-cta__icon--user  { top: 0.07875rem; left: 0.5479rem; width: 0.134167rem; height: 0.182083rem; }
.rw-cta__icon--group { top: 0.0883rem; left: 0.57667rem; width: 0.08625rem;  height: 0.153333rem; }

.rw-cta__text {
    position: absolute;
    top: 0.02rem;
    left: 0.81rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.26rem;
    height: 0.29rem;
    font-size: 0.17rem;
    font-weight: 700;
    line-height: 0.27rem;
    color: #fffbe6;
    white-space: nowrap;
}

.rw-cta__chev {
    position: absolute;
    top: 0.1083rem;
    left: 3.35667rem;
    display: block;
    width: 0.06375rem;
    height: 0.113333rem;
}

/* 设计稿画板 1000 高，内容收在 851，余下正好是站内页脚（120）加 29 的留白 */
.page--rewards .site-footer {
    margin-top: 0.29rem;
}
