body {
    font-family: '微软雅黑';
    background: #020308 url(../images/bg.jpg) top center no-repeat;
    background-attachment: fixed;
    color: #f7e6c5;
}

.page-header-bg {
    position: relative;
}

.page-header-bg img {
    width: 100%;
    display: block;
}

/* 顶部登录区域 */
.header-login-area {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #f7e6c5;
    font-family: '宋体', SimSun, serif;
    z-index: 5;
}

.header-login-area .account-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.user-welcome-text {
    color: #f7e6c5;
}

.header-login-area .btn-text {
    color: #ffd700;
    text-decoration: none;
    cursor: pointer;
    font-weight: normal;
}

.header-login-area .btn-text:hover {
    text-decoration: underline;
    color: #ffed4e;
}

.header-login-area .login-after {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-login-area .user-info-text {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}

.header-login-area .user-field {
    color: #f7e6c5;
    margin-right: 0;
}

.header-login-area .login-user-name,
.header-login-area .user-blockName,
.header-login-area .user-roleName {
    color: #ffd700;
}

.page-main {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-top:80px;
}

/* 右上角导航按钮 */
.top-nav-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.top-nav-buttons .nav-btn {
    cursor: pointer;
    transition: opacity 0.3s;
}

.top-nav-buttons .nav-btn:hover {
    opacity: 0.8;
}

/* 我的奖品栏 */
.my-prize-bar {
    text-align: right;
    margin-bottom: 20px;
    padding-right: 20px;
}

.btn-text {
    cursor: pointer;
    color: #ffd58a;
    text-decoration: underline;
}

.btn-small {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 14px;
    border: 1px solid #e2b36a;
    background: linear-gradient(#7a4b24, #3f1d08);
    color: #ffe9b3;
    font-size: 14px;
    cursor: pointer;
}

.btn-small + .btn-small {
    margin-left: 6px;
}

.btn-my-prize {
    padding: 6px 20px;
    color: #fff!important;;
}

.btn-small.disabled,
.btn-my-prize.disabled {
    opacity: 0.6;
    cursor: default;
}

/* 通用区块 */
.section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}
.section-title .section-title-tip {
    position: absolute;
    left:50%;
    transform: translateX(-50%);
    color:#fff;
    display: flex;
    align-items: center;
    bottom:2px;
    width:100%;
    text-align: center;
    justify-content: center;
}
.btn-tip {
    display: inline-block;
    cursor: pointer;
    margin-left:3px;
    margin-top: 5px;
}

.section-title img {
    max-width: 100%;
}

.section-download-content {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.block {
    background: url(../images/box1.png) no-repeat;
    background-size: 100% 100%;
    padding: 30px 40px 40px 40px;
    position: relative;
    color: #f7e6c5;
    width:601px;
    height:565px;
}

.block.block-sign {
    background-image: url(../images/box2.png);
}

.block-header {
    margin-bottom: 20px;
}

.block-header img {
    max-width: 100%;
}

.block-title {
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: '宋体', SimSun, serif;
    width: 80%;
    margin: 0 auto;
    border-bottom:1px solid #f1865f;
    padding-bottom:30px;
}
.block-title .color{
    color:#f1865f;
}


/* 新版本下载/更新福利标题专用样式 */
.block-download {
    padding: 30px 20px 40px 20px;
}
.block-download .block-title {

    font-family: '宋体', SimSun, serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 215, 0, 0.3);
}

/* 累签7日加送好礼标题专用样式 */
.block-sign .block-title {

    font-family: '宋体', SimSun, serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(255, 215, 0, 0.3);
}

.block-body {
    min-height: 120px;
}

/* 小卡片列表（新版本下载/登录奖励） */
.card-list {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.card-item {
    flex: 1;
    text-align: center;
}

/* 新版本下载/更新福利专用样式 */
.card-list-login {
    margin-bottom: 20px;
    padding-top:30px;
    padding-bottom:30px;
}

.card-list-login .card-item {
    flex: 1;
    max-width: 240px;
    width:177px;
    height:232px;
    flex-shrink: 0;
}

.card-list-login .card-frame {
    width: 100%;
    padding: 20px 10px;
    background: url(../images/prize-bg-1.png) no-repeat center top;
    background-size: 100% 100%;
    padding-top:60px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    height:100%;
}

.card-list-login .card-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 12px;
    background: url(../images/prize-icon-bg.png) no-repeat center center;
    background-size: 100% 100%;
}

.card-list-login .card-name {
    font-size: 14px;
    margin-bottom: 6px;
    min-height: auto;
    line-height: 1.4;
    color:#7d5843;
}

.card-list-login .card-num {
    font-size: 14px;
    margin-bottom: 0;
    color: #f7e6c5;
}

/* 其他卡片仍使用道具框 */
.card-frame {
    width: 100%;
    padding: 26px 10px 18px 10px;
    background: url(../images/道具框.png) no-repeat center top;
    background-size: 100% auto;
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px auto;
    border-radius: 4px;
    border: 1px solid #f2c58a;
    background: url(../images/prize-icon-bg.png) no-repeat center center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.card-name {
    min-height: 40px;
    margin-bottom: 4px;
    font-size: 16px;
}

.card-num {
    margin-bottom: 10px;
    font-size: 14px;
}

/* 新版本下载/更新福利统一按钮 */
.login-claim-btn-wrapper {
    text-align: center;
    margin-top: 20px;
}

.card-btn-large {
    width: 200px;
    height: 50px;
    margin: 0 auto;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.card-btn-large.state-can {
    background-image: url(../images/sbtn_1.png);
}

.card-btn-large.state-done {
    background-image: url(../images/sbtn_2.png);
    cursor: default;
}

.card-btn-large.state-lock {
    background-image: url(../images/sbtn_3.png);
    cursor: default;
}

.card-btn {
    width: 138px;
    height: 40px;
    margin: 0 auto;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.card-btn.state-can {
    background-image: url(../images/sbtn_1.png);
}

.card-btn.state-done {
    background-image: url(../images/sbtn_2.png);
    cursor: default;
}

.card-btn.state-lock {
    background-image: url(../images/sbtn_3.png);
    cursor: default;
}

/* 累签7日列表 */
.sign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.sign-days-info {
    font-size: 18px;
    color: #f7e6c5;
    font-family: '宋体', SimSun, serif;
    font-weight: normal;
}

.sign-days-info .js-sign-days {
    color: #ffd700;
    font-weight: bold;
}

.sign-my-gift-link {
    font-size: 18px;
    color: #ffd700;
    text-decoration: none;
    cursor: pointer;
    font-family: '宋体', SimSun, serif;
    transition: all 0.3s;
}

.sign-my-gift-link:hover {
    text-decoration: underline;
    color: #ffed4e;
}

.sign-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sign-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 16px;
    min-height: 60px;
    background-color: #fcf7e6;
    margin-bottom: 8px;
}

.sign-item:last-child {
    border-bottom: none;
}

.sign-item-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.sign-day {
    color: #bc8822;
    font-family: '宋体', SimSun, serif;
    min-width: 70px;
    font-size: 22px;
    font-weight: bold;


}

.sign-item-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.sign-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;

    background: url(../images/prize-icon-bg.png) no-repeat center center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin-right:16px;
}

.sign-icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.sign-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sign-prize-name {
    color: #a1896f;
    font-family: '宋体', SimSun, serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
}

.sign-prize-num {
    color: #f7e6c5;
    font-family: '宋体', SimSun, serif;
    font-size: 14px;
    line-height: 1.4;
}

/* 兼容旧结构 */
.sign-name {
    color: #f7e6c5;
    font-family: '宋体', SimSun, serif;
    font-size: 16px;
    line-height: 1.5;
}

.sign-btn {
    width: 138px;
    height: 40px;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.sign-btn.state-can {
    background-image: url(../images/sbtn_1.png);
}

.sign-btn.state-done {
    background-image: url(../images/sbtn_2.png);
    cursor: default;
}

.sign-btn.state-lock {
    background-image: url(../images/sbtn_3.png);
    cursor: default;
}

/* 大卡片（每日补给 / 逃脱好礼） */
.card-big {
    position: relative;
    padding: 30px 40px;
    min-height: 210px;

}

.card-big .role-illust {
    position: absolute;
    left: -40px;
    bottom: -30px;
    width: 210px;
}

.card-big .role-illust img {
    width: 100%;
    display: block;
}

.card-big-main {
   
    flex-direction: column;
    gap: 20px;
}

.card-big-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height:260px;
}

.card-big-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
   
}

.card-big-title {
    font-size: 20px;
    margin-bottom: 14px;
}

.card-big-prize-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: center;
}
.card-big-prize-list img {
    max-width: 100%;
}

.card-big-prize-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: column;
}

.card-big-prize {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-big-icon {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: url(../images/prize-icon-bg.png) no-repeat center center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.card-big-icon img {
    max-width: 100%;
    max-height: 100%;
}

.card-big-prize-info {
    display: flex;
    flex-direction: column;
}

.card-big-name {
    font-size: 16px;
    color: #a1896f;
    font-family: '宋体', SimSun, serif;
    line-height: 1.4;
}

.card-big-num {
    font-size: 14px;
    margin-top: 4px;
}

.card-big-probability {
    margin: 0;
    text-align: center;
}

.probability-link {
    font-size: 14px;
    color: #ffd700;
    text-decoration: none;
    cursor: pointer;
    font-family: '宋体', SimSun, serif;
    transition: all 0.3s;
}

.probability-link:hover {
    text-decoration: underline;
    color: #ffed4e;
}

.card-big-btn {
    width: 190px;
    height: 56px;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0;
}

.card-big-btn.state-can {
    background-image: url(../images/lbtn1.png);
}

.card-big-btn.state-done {
    background-image: url(../images/lbtn2.png);
    cursor: default;
}

.card-big-btn.state-lock {
    background-image: url(../images/lbtn3.png);
    cursor: default;
}

/* 规则区域 */
.section-rules .rules-wrap {

    padding: 24px 40px 40px 40px;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.rules-list li:last-child {
    margin-bottom: 0;
}

.rules-list li img {
    width: auto;
    height: auto;
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-index {
    display: inline-block;
    width: 42px;
    flex-shrink: 0;
    color: #d36022;
    font-weight: bold;
    font-size: 45px;
    font-family: '微软雅黑', SimSun, serif;
    line-height: 1.5;
}

.rule-content {
    flex: 1;
}

.rule-content .rule-title {
    color: #ffe39f;
    font-size: 45px;
    font-weight: bold;
    font-family: '微软雅黑', SimSun, serif;
    margin-bottom: 8px;
    line-height: 1.5;
}
.rule-content .color {
    color:#d36022;
}

.rule-text {
    color: #f7e6c5;
    font-size: 16px;
    line-height: 1;
    font-family: '宋体', SimSun, serif;
    margin-bottom: 4px;
}

.rule-text:last-child {
    margin-bottom: 0;
}

/* 我的奖品弹框 */
.my-prize-dialog-template {
    padding: 32px 24px;
    color: #683a2b;
}

.my-prize-table {
    width: 100%;
    border: 1px solid #dcb48b;
    font-size: 14px;
}

.my-prize-table th,
.my-prize-table td {
    padding: 6px 8px;
    border: 1px solid #dcb48b;
    text-align: center;
}

.my-prize-table th {
    background-color: #f9e4c4;
}

.my-prize-empty {
    text-align: center;
    font-size: 16px;
}

/* 概率公示弹框 */
.probability-dialog-template {
    padding: 32px 24px;
    color: #683a2b;
    min-width: 500px;
}

.probability-table {
    width: 100%;
    border: 2px solid #b8860b;
    font-size: 14px;
    border-collapse: collapse;
}

.probability-table th,
.probability-table td {
    padding: 10px 12px;
    border: 1px solid #b8860b;
    text-align: center;
}

.probability-table th {
    background-color: #ffd700;
    font-weight: bold;
    color: #8b4513;
}

.probability-table td {
    color: #8b4513;
    background-color: #fffef0;
}

/* 取消隔行变色 */
.probability-table tbody tr:nth-child(even) {
    background-color: #fffef0;
}
.section-daily {
    position: relative;
}
.block-daily {
    width: 775px;
    height: 542px;
    background: url(../images/box2.png) no-repeat;
    margin-left: 426px;
    margin-top:80px;
}
.role-illust {
    position: absolute;
    left:-86px;top:120px;
}
.section-tip {
    text-align: center;
    font-size: 22px;
    color:#fff;
}

.section-escape {
    position: relative;
}
.section-escape .role-illust {
    position: absolute;
    right:-85px;top:120px;left:auto;
}
.block-escape {
    margin-top: 80px;
    position: relative;
    left: -60px;
    width: 775px;
    height: 542px;
    background: url(../images/box2.png) no-repeat;
}

.rules-list .arrow {
    position: relative;
    top: 10px;
}

/* 响应式处理 */
@media screen and (max-width: 768px) {
    .block {
        width: 100%!important;
        height:auto!important;
        background-size:  100% 100%;
    }
    .page-main {
        width: 100%;
        padding: 0 10px 60px 10px;
        margin: 0 auto;
    }

    .top-nav-buttons {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    .top-nav-buttons .nav-btn {
        width: 40px;
        height: auto;
    }

    .header-login-area {
        bottom: 15px;
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
    }

    .header-login-area .login-after {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-login-area .user-info-text {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .my-prize-bar {
        text-align: center;
        padding-right: 0;
    }

    .section-download-content {
        flex-direction: column;
    }

    .card-list {
        flex-direction: column;
    }

    .card-item {
        max-width: 260px;
        margin: 0 auto;
    }

    .card-big {
        padding: 24px 16px 30px 16px;
    }

    .card-big .role-illust {
        display: none;
    }

    .card-big-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-big-prize-list {
        flex-direction: column;
        gap: 12px;
    }

    .card-big-prize-item {
        width: 100%;
    }

    .card-big-btn {
        width: 100%;
        max-width: 190px;
        align-self: center;
    }

    .card-big-bottom {
        align-items: center;
        width: 100%;
    }

    .card-big-probability {
        text-align: center;
        width: 100%;
    }

    .user-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .block-daily {
        margin-left: 0;
        margin-top:0;
    }
    .block-escape {
        left:0;
    }
    .section-rules .rules-wrap {
        padding: 10px;
    }
    .rule-content .rule-title, .rule-index,.rule-text {
        font-size: 14px;
        width: auto;
    }
}

