/* 飞飞充值活动 - 像素级还原 */
/* 背景大图暂缺，预留 */
html {
    font-size: 16px;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 14px;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #7eb8da;
    background-image: none;
    /* 大背景图后续补充 url(images/max_bg.jpg) no-repeat top center/cover */
    background-attachment: scroll;
    padding-bottom: 0;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 40px;
    background: url(../images/max-bg.png) no-repeat bottom center/cover;

}

/* ========== 上部分 ========== */
.page-top {
    position: relative;
    width: 100%;
    /* height: 100vh; */
    padding: 20px 24px 0;
    flex-shrink: 0;
    background: url(../images/top-bg.png) no-repeat center center/cover;
}

.top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.logo {
    display: inline-block;
    position: absolute;
    left: 10px;
    top: 10px;
}

.logo img {
    display: block;
    width: auto;
}

.btn-back {
    position: absolute;
    right: 10px;
    top: 10px;
}

.btn-back:hover {
    opacity: 0.9;
}

.slogan-wrap {
    text-align: center;
    margin-top: 12px;
    padding-bottom: 16px;
}

.slogan-img {
    max-width: 90%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* ========== 下部分 大框 ========== */
.page-main {
    width: 100%;
    max-width: 1500px;
    padding: 0 16px;
    flex: 1;
}

.main-box {
    box-sizing: border-box;
    padding: 6.4375rem 1.75rem 2.25rem;
    width: min(97.5625rem, 100%);
    min-height: 127.125rem;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    background: url(../images/main-box-bg.png) no-repeat;
    background-size: 100% 100%;
    /* 大框背景图暂缺，后续可加 background-image */
}

/* 6.1 用户登录信息区域 */
.section-login {
    text-align: center;
    margin-bottom: 28px;
}

.login-before .btn-login {
    display: inline-block;
}

.login-before .btn-login:hover {
    opacity: 0.92;
}

.login-after {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    background-color: #fbf2e3;
    border-radius: 10px;
    border: 1px solid #e0d1bc;
    margin: 0 auto;
}

.login-after .login-user-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.login-after .btn-switch,
.login-after .btn-logout {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
}

.login-after .btn-logout {

    color: #666;
}

.login-tip {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

/* 6.2 充值返利三卡片区域 */
.section-server {
    position: relative;
    /* width: min(55.25rem, 100%); */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3.125rem;
    padding: 0 1rem 1.75rem;
    border-radius: 0.75rem;
    /* background-color: #faf7f0; */
    /* background-image:
        linear-gradient(90deg, rgba(232, 200, 140, 0.06) 0%, transparent 40%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 0.5rem,
            rgba(210, 180, 120, 0.04) 0.5rem,
            rgba(210, 180, 120, 0.04) 0.5625rem
        ); */
    box-sizing: border-box;
}

/* 标题图：充值返利 */
.section-server::before {
    content: "";
    display: block;
    width: min(28rem, 86vw);
    height: 5rem;
    margin: 0 auto 1.25rem;
    background: url(../images/title-chongzhifanli.png) no-repeat center / contain;
}

.server-select-wrap {
    position: relative;
    max-width: 20rem;
    margin: 0 auto 1rem;
}

.server-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    background: url(../images/select-bg.png) no-repeat center/100% 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    min-height: 46px;
    box-sizing: border-box;
}

.server-trigger .server-label {
    flex: 1;
    text-align: left;
}

.server-trigger .server-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666;
    margin-left: 8px;
}

.server-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.server-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.server-list li {
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.server-list li:hover {
    background: #f5f5f5;
}

.server-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    gap: 0.75rem 0.625rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 2rem;
}

/* 充值返利三列卡片（顶部条为背景图，铺在 .rebate-card 上，比例不变形） */
.rebate-card {
    --rebate-card-head-h: 5.3rem;
    /* flex: 1 1 28%; */
    /* min-width: 8.5rem;
    max-width: 100%; */
    width: 25rem;
    height: 10.5rem;
    margin: 0;
    box-sizing: border-box;
    border: 0.0625rem solid #e8d4b8;
    border-radius: 0.375rem;
    overflow: hidden;
    background-color: #fffef9;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 100%;
    padding-top: var(--rebate-card-head-h);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.rebate-card--cz {
    background-image: url(../images/item-bg-chongzhijine.png);
}

.rebate-card--ewai {
    background-image: url(../images/item-bg-ewaifanli.png);
}

.rebate-card--gongce {
    background-image: url(../images/icon-bg-gongcefanhuanbenjin.png);
}

.rebate-card__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem 1.125rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #4a5348;
    background: #fffef9;
}

.rebate-card__body em {
    font-style: normal;
    font-weight: 600;
    margin-right: 0.125rem;
}

/* 底部明细行 */
.rebate-detail-line {
    flex: 1 1 100%;
    width: 100%;
    margin: 0.5rem 0 0;
    padding: 0 0.25rem;
    text-align: center;
    font-size: 1.575rem;
    line-height: 1.65;
    color: #4a4a4a;
    font-weight: normal;
}

.rebate-detail-line::before {
    content: "额外返利明细：";
    font-weight: bold;
    color: #e88f4b;
    margin-right: 0.25rem;
    font-weight: bold;
}

.num-orange {
    color: #b25510;
    font-style: normal;
    font-weight: 600;
}

.rebate-card__body .num-orange {
    color: #3d3d3d;
}

/* 6.3 三卡片 top-bg2 */
.section-cards {
    margin-bottom: 58px;
    background: url(../images/);
    position: relative;
}
.section-cards::before {
    content: "";
    display: block;
    width: min(28rem, 86vw);
    height: 5rem;
    margin: 0 auto 2.25rem;
    background: url(../images/title-jieduanjiangli.png) no-repeat center / contain;
}

.progress-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 850px;
    height: 7px;
    background: url(../images/bg-process-basic.png) no-repeat;
    background-size: 100% 100%;
}

.progress-bar-val {
    position: absolute;
    height: 17px;
    left: 6px;
    /* top: 4px; */
    background: url(../images/bg-process-1.png) no-repeat;
    background-size: 100% 100%;
    width: 0;
}

.card-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.card-item {
    flex-grow: 0;
    flex-shrink: 0;
    width: 400px;
    height: 319px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border-radius: 12px;
    padding: 20px 16px 24px;
    text-align: left;

    position: relative;
}

.card-item-icon {
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    margin-left: -5px;
}

.card-title {
    font-size: 25px;
    font-weight: bold;
    color: #d27e3e;
    margin: 0;
    margin-top: 30px;
}

.card-time {
    font-size: 18px;
    color: #a37752;
    margin: 0 0 13px;
}

.card-rebate {
    font-size: 20px;
    color: #fb6940;
    margin: 0 0 8px;
}

.btn-receive {
    display: inline-block;
    width: 160px;
    height: 40px;
    line-height: 38px;
    font-size: 14px;
    color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
}

.btn-receive:hover {
    opacity: 0.9;
}

.btn-receive.disabled {
    filter: grayscale(100)
}

/* 6.4 活动规则 */
.section-rules {
    text-align: left;
    margin-left: 10%;
    margin-right: 10%;
}

.rules-title {
    font-size: 20px;
    font-weight: bold;
    color: #995b20;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f5a623 0%, #e8951a 100%);
    flex-shrink: 0;
}

.rule-title {
    color: #995b20;
    font-weight: bold;
}

.emp {
    width: 20px;
    display: inline-block;
}

.rules-content {
    font-size: 16px;
    color: #693307;
    line-height: 1.75;
}

.rules-content p {
    margin: 6px 0;
}

.rule-content {
    padding: 0 1rem;
    font-size: 16px;
    color: #693307;
    line-height: 1.75;
}

.rule-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.example-box {
    background: rgba(245, 245, 245, 0.5);
    /* 虚线border */
    border: 1px dashed #916a44;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #916a44;
}

.example-box p {
    margin: 0;
    font-style: italic;
}

.rule-note {
    background: rgba(255, 215, 0, 0.1);
    padding: 12px;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid #ffd700;
}

.rule-note p {
    margin: 0;
    color: #333;
    font-weight: normal;
}

.rule-notes {
    list-style: none;
    padding: 0;
}

.rule-notes li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    /* color: #ff6600; */
}

.rule-notes li:before {
    content: "•";
    position: absolute;
    left: 0;
    /* color: #ff6600; */
    /* font-size: 18px; */
}


/* ========== 移动端兼容 ========== */
@media screen and (max-width: 768px) {
    .btn-receive {
        width: 60%;
        margin-left: 20%;
    }

    .btn-receive img {
        width: 100%;
    }

    .page-top {
        padding: 12px 16px 0;
    }

    .logo img {
        height: 36px;
    }

    .btn-back {
        padding: 8px 20px;
        font-size: 14px;
    }

    .slogan-wrap {
        margin-top: 8px;
        padding-bottom: 12px;
    }

    .page-main {
        padding: 0 12px;
    }

    .main-box {
        padding: 1.5rem 1rem 1.75rem;
        border-radius: 0.75rem;
        width: 100%;
        min-height: 0;
        height: auto;
    }

    .section-login {
        margin-bottom: 20px;
        margin-top: 30px;
    }

    .login-before .btn-login {
        padding: 10px 36px;
        font-size: 16px;
    }

    .login-after {
        gap: 8px;
    }

    .login-after .login-user-name {
        font-size: 14px;
    }

    .login-after .btn-switch,
    .login-after .btn-logout {
        padding: 6px 14px;
        font-size: 13px;
    }

    .section-server {
        padding: 1rem 0.75rem 1.5rem;
        margin-bottom: 1.25rem;
        width: 100%;
        height: auto;
    }

    .section-server::before {
        width: min(22rem, 88vw);
        height: 4.25rem;
        margin-bottom: 1rem;
    }

    .server-info {
        flex-direction: column;
        gap: 0.625rem;
    }

    .rebate-card {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-width: 0;
    }

    .rebate-detail-line {
        text-align: left;
    }

    .rebate-detail-line::before {
        display: block;
        margin-bottom: 0.25rem;
    }

    .progress-bar {
        display: none;
    }

    .card-list {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .card-item {
        min-width: 100%;
        max-width: 100%;
        min-height: 391;
        height: auto;
    }

    .server-select-wrap {
        max-width: 100%;
    }

    .btn-back img {
        width: 150px;
    }

    .btn-login img {
        width: 100%;
    }

    .rule-content {
        padding: 0 0.5rem;
    }

    .example-box,
    .rule-note {
        padding: 10px;
    }

    .rule-notes {
        margin-top: 0;
    }
}