/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    font-family: 'Microsoft YaHei', SimHei, sans-serif;
}

body {
    background: url('https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/bg.jpg') no-repeat center top;
    overflow-x: hidden;
    background-size: 100% 100%;
}

/* ========== 容器 ========== */
.container {
    position: relative;
    width: 1120px;
    min-height: 2808px;
    margin: 0 auto;
}

/* ========== 三个主要区块 - 绝对定位 ========== */

/* 第一块：登录和活动规则区 */
.section-1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 1060px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 80px;
    gap: 30px;
    z-index: 10;
}

/* 第二块：任务区 */
.section-2 {
    position: absolute;
    top: 1040px;
    left: 0;
    right: 0;
    width: 100%;
    height: 550px;
    padding: 60px 80px;
    z-index: 10;
    padding-top: 232px;
}

/* 第三块：宝箱区 */
.section-3 {
    position: absolute;
    top: 1515px;
    left: 0;
    right: 0;
    width: 100%;
    height: 1040px;
    padding: 60px 80px;
    padding-top: 234px;
    z-index: 10;
}


/* ========== 登录按钮 ========== */
.login-container {
    position: absolute;
    top: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-btn {
    background: url(https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/login.png) no-repeat center center;
    width: 175px;
    height: 70px;
    cursor: pointer;
}

.login-btn:hover {
    filter: brightness(1.2);
}

.user-info {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-text {
    font-size: 16px;
    color: #d4a574;
    font-weight: bold;
}

.user-id {
    font-size: 16px;
    color: #f5d77f;
    font-weight: bold;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.user-info:hover .user-id {
    color: #ffb4b4;
    text-shadow: 0 0 5px rgba(255, 180, 180, 0.5);
}

/* ========== 活动规则 ========== */
.activity-rule {
    width: 100%;
    max-width: 1200px;
}

.rule-item {
    display: flex;
    font-size: 18px;
}

.rule-label {
    color: #c5906b;
    min-width: 100px;
    margin-right: 20px;
    line-height: 2;
}

.rule-value {
    color: #fff4e0;
    flex: 1;
    line-height: 2;
}

/* ========== 宝箱部分 ========== */

.box-info {
    display: flex;
    justify-content: center;
    gap: 143px;
    margin-bottom: 120px;
    flex-wrap: wrap;
}

.box-info-left,
.box-info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 auto;
    justify-content: flex-start;
}

.info-label {
    font-size: 16px;
    color: #d4a574;
    height: 40px;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}


.box-info-right .info-label {
    width: 325px;
    height: auto;
    line-height: 20px;
    display: block;
    text-align: left;
    padding-left: 85px;
}

.box-info-right .info-label br {
    display: block;
    content: '';
}

.info-value {
    color: #f5d77f;
    font-weight: bold;
}

.box-display,
.reward-display {
    width: 115px;
    height: 114px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/tool-bg.png) no-repeat center center;
    background-size: contain;
    margin-bottom: 40px;
}

.box-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.box-img {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.box-img.fade-out {
    opacity: 0;
    transform: translateX(-50px) scale(0.8);
}

.box-img.fade-in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* 各等级icon单独微调 */
#boxIcon[src*="icon1"] {
    transform: translateY(0px);
    transform: translateX(-2px);
    /* 向上调整: translateY(-3px) 向下调整: translateY(3px) */
}

#boxIcon[src*="icon2"] {
    transform: translateY(-2px);
    transform: translateX(-6px);
}

#boxIcon[src*="icon3"] {
    transform: translateY(-2px);
}

#boxIcon[src*="icon4"] {
    transform: translateY(0px);
    transform: translateX(-7px);
}

#boxIcon[src*="icon5"] {
    transform: translateY(0px);
    transform: translateX(-4px);
}

#boxIcon[src*="icon6"] {
    transform: translateY(-2px);
}

#boxIcon[src*="icon7"] {
    transform: translateY(-7px);
}

.box-img,
.reward-img {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
}

/* ========== 按钮 ========== */


.btn:hover {
    filter: brightness(1.2);
    cursor: pointer;
}

.btn-open,
.btn-upgrade {
    min-width: 140px;
}

/* 按钮div样式 */
.btn-open {
    width: 229px;
    height: 46px;
    background: url(https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/open.png) no-repeat center center;
    background-size: contain;
    border: none;
    padding: 0;
    font-size: 0;
    margin-bottom: 20px;
}

.btn-open:hover {
    filter: brightness(1.2);
}

.btn-upgrade {
    width: 229px;
    height: 46px;
    background: url(https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/upg.png) no-repeat center center;
    background-size: contain;
    border: none;
    padding: 0;
    font-size: 0;
}

.btn-upgrade:hover {
    filter: brightness(1.2);
}

.btn-upgrade.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-upgrade.disabled:hover {
    filter: brightness(1);
}

.box-tip {
    font-size: 16px;
    color: #a08060;
    text-align: center;
    max-width: 300px;
}

/* ========== 下一级消耗提示 ========== */
.next-upgrade-tip {
    font-size: 14px;
    color: #d4a574;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

/* ========== 阶段导航 ========== */
.stage-navigator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 940px;
    margin-bottom: 100px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.stages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap:2px;
}

.stage-btn {
    padding: 8px 16px;
    font-size: 14px;
    background: url(https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/stage.png) no-repeat center center;
    background-size: contain;
    color: #d4a574;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 132px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-btn:hover {
    background: url(https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/stage-selected.png) no-repeat center center;
    background-size: contain;
    color: #000;
}

.stage-btn.active {
    background: url(https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/stage-selected.png) no-repeat center center;
    background-size: contain;
    color: #000;
    font-weight: bold;
}

/* ========== 宝箱等级奖励 ========== */
.reward-info-wrapper {
    height: 160px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 45px;
    position: relative;
}

.reward-info {
    display: none;
    height: 160px;
    align-items: center;
    justify-content: center;
    color: #d4a574;
    font-size: 26px;
    animation: fadeIn 0.3s ease;
}

.reward-info.active {
    display: flex;
}

/* ========== 消耗信息 ========== */
.consume-info-wrapper {
    height: 160px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 45px;
    position: relative;
}

.consume-info {
    display: none;
    height: 160px;
    align-items: center;
    justify-content: center;
    color: #d4a574;
    font-size: 26px;
    animation: fadeIn 0.3s ease;
}

.consume-info.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== 试炼部分 ========== */
.trial-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.trial-row {
    display: flex;
    align-items: center;
    height: 69px;
}

.trial-row:last-child {
    border-bottom: none;
}

.trial-left {
    width: 783px;
}

.trial-right {
    text-align: left;
}

.trial-desc {
    color: #ffe1cb;
    font-size: 18px;
}

.trial-reward {
    color: #ffe1cb;
    font-size: 20px;
    text-align: right;
}

/* ========== 确认弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #4d0909;
    width: 625px;
    height: 280px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-header {
    position: absolute;
    top: 15px;
    right: 15px;
}

.modal-close {
    position: absolute;
    font-size: 43px;
    color: #fff;
    top: -65px;
    right: -12px;
    cursor: pointer;
}

.modal-close:hover {
    filter: brightness(1.2);

}

.modal-title {
    color: #ffb4b4;
    font-size: 24px;
    margin-bottom: 40px;
}

.modal-consume {
    color: #fff4e0;
    font-size: 18px;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}

.modal-btn {
    width: 189px;
    height: 46px;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.modal-btn:hover {
    filter: brightness(1.2);
}

.confirm-btn {
    background: url(https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/yes.png) no-repeat center center;
    background-size: contain;
}

.cancel-btn {
    background: url(https://static.web.sdo.com/dn/pic/dn_25act/1119tj/images/no.png) no-repeat center center;
    background-size: contain;
}

/* ========== 宝箱等级一览表 ========== */
.reward-list-content {
    width: 700px;
    height: auto;
    max-height: 600px;
    overflow-y: auto;
    padding: 40px 30px;
}

.reward-list-table {
    margin-top: 30px;
}

.reward-list-header {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid #d4a574;
    margin-bottom: 0;
}

.reward-list-body {
    display: flex;
    flex-direction: column;
}

.reward-list-row {
    display: flex;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

.reward-list-col {
    flex: 1;
    padding: 15px 20px;
    color: #fff4e0;
    font-size: 16px;
    text-align: center;
}

.reward-list-header .reward-list-col {
    color: #d4a574;
    font-weight: bold;
}


.tip-highlight {
    color: #f8dc3f;
}