.cloud_hashrate_main {
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

#w0 {
    background: transparent !important;
}

.nav_cloud_hashrate {
    background: transparent !important;
}

.nav_cloud_hashrate .nav_logo {
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));
}

#w0.w0_bottom {
    background: #1F1F24 !important;
}

/* ========== Hero 首屏（桌面基线 >1200px） ========== */
.cloud_hashrate_hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: -1px;
    background: #000000 url('/images/cloud_hashrate/top_full_background.jpg') center top/cover no-repeat;
}

.hero_bg_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    pointer-events: none;
}

.hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero_inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: calc(282px * 4 + 24px * 3 + 48px);
    margin: 0 auto;
    padding: 197px 24px 80px;
    box-sizing: border-box;
}

.hero_content {
    text-align: left;
    margin-bottom: 69px;
    animation: cloudFadeUp 2s ease forwards;
}

.hero_cards {
    width: 100%;
    overflow: visible;
}

.cards_wrapper {
    display: flex;
    gap: 24px;
    perspective: 1000px;
    justify-content: center;
    flex-wrap: nowrap;
}

.card_item {
    width: 282px;
    height: 363px;
    flex-shrink: 0;
    transform-style: preserve-3d;
}

.card_inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

.card_item.flipped .card_inner {
    transform: rotateY(180deg);
}

.card_item.flipped:hover .card_inner {
    transform: rotateY(0deg);
}

.card_front,
.card_back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    transition: opacity 0.001s 0.3s;
}

.card_front {
    opacity: 1;
}

.card_back {
    opacity: 0;
    transform: rotateY(180deg);
}

.card_item.flipped .card_front {
    opacity: 0;
}

.card_item.flipped .card_back {
    opacity: 1;
}

.card_item.flipped:hover .card_front {
    opacity: 1;
}

.card_item.flipped:hover .card_back {
    opacity: 0;
}

.card_front img,
.card_back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.card_pick {
    position: absolute;
    bottom: 11.5%;
    left: 20%;
    right: 20%;
    text-align: center;
    font-weight: 500;
    font-size: clamp(10px, 1.2vw, 14px);
    line-height: 1.6;
    background: linear-gradient(to right, #FFEABA, #F5BA47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.001s 0.3s;
    cursor: pointer;
}

.card_item.flipped .card_pick {
    opacity: 0;
}

.card_item.flipped:hover .card_pick {
    opacity: 1;
}

.hero_main_title {
    font-size: 48px;
    font-weight: 600;
    line-height: 48px;
    margin-bottom: 19px;
    display: block;
    background: linear-gradient(to right, #FFEABA, #F5BA47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero_desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: #FFFFFF;
    margin: 0;
}

@keyframes cloudFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 盲盒奖品 ========== */
.prizes_section {
    background: #000000;
    padding: 35px 24px 80px;
}

.prizes_title_row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 31px;
}

.title_deco {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.prizes_title {
    font-size: 40px;
    font-weight: 500;
    line-height: 40px;
    color: #FFFFFF;
    margin: 0;
}

.prizes_grid {
    display: grid;
    grid-template-columns: repeat(4, 282px);
    justify-content: center;
    gap: 24px;
    margin-top: 50px;
}

.prizes_grid .has_no_data_div {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
}

.prize_card {
    position: relative;
    width: 282px;
    height: 286px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.prize_card:hover {
    border-color: #FFDB9E;
}

.prize_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.prize_card_text {
    position: absolute;
    bottom: 24px;
    left: 10px;
    right: 10px;
    text-align: center;
}

.prize_card_name {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    margin: 0;
}

.terms_title_row {
    margin-top: 100px;
}

.terms_text {
    margin-top: 50px;
    width: 100%;
    max-width: calc(282px * 4 + 24px * 3);
    margin-left: auto;
    margin-right: auto;
}

.terms_text p {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #80879A;
    margin: 0;
}

/* 全局 loading 层级高於弹窗 */
#showLoading {
    position: fixed;
    z-index: 10000;
}

/* ========== 盲盒弹窗 ========== */
.lottery_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lottery_modal.active {
    display: flex;
}

.lottery_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.lottery_box {
    position: relative;
    width: 597px;
    height: 534px;
    z-index: 1;
    background: #000000;
    border: 1px solid #3F414B;
    border-radius: 12px;
    overflow: hidden;
}

.lottery_bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 549px;
    height: 432px;
}

.lottery_close {
    position: absolute;
    top: 23px;
    right: 24px;
    width: 20px;
    height: 20px;
    z-index: 2;
    cursor: pointer;
}

.lottery_body {
    position: absolute;
    top: 59px;
    left: 50%;
    transform: translateX(-50%);
}

.lottery_text {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    background: linear-gradient(to bottom, #FCF7C4, #EDC784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coupon_wrap {
    position: relative;
    margin-top: 73px;
    width: 549px;
    height: 180px;
    border: 1px solid #3F414B;
    border-radius: 12px;
    overflow: hidden;
}

.coupon_info {
    width: 100%;
    height: 100%;
    display: flex;
}

.coupon_left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 218px;
    flex-shrink: 0;
    background: rgba(255, 219, 158, 0.1);
    border-right: 1px solid #3F414B;
    box-sizing: border-box;
}

.coupon_rate {
    display: flex;
    align-items: baseline;
}

.coupon_num {
    font-size: 80px;
    font-weight: 700;
    line-height: 80px;
    color: #FFDB9E;
}

.coupon_percent {
    font-size: 32px;
    font-weight: 700;
    line-height: 32px;
    color: #FFFFFF;
}

.coupon_desc {
    font-size: 18px;
    font-weight: 500;
    line-height: 18px;
    color: #FFDB9E;
    margin: 8px 0 0;
}

.coupon_right {
    flex: 1;
    padding-left: 25px;
    padding-top: 12px;
    background: #1C1D20;
}

.coupon_row {
    display: flex;
    flex-direction: column;
}

.coupon_label {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: #80879A;
    margin-top: 16px;
}

.coupon_row:first-child .coupon_label {
    margin-top: 0;
}

.coupon_value {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: #FFFFFF;
    margin-top: 10px;
}

.coupon_countdown {
    position: absolute;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.countdown_text {
    font-family: "Inter Regular";
    font-size: 14px;
    color: #80879A;
}

.countdown_block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #1C1D20;
    border-radius: 4px;
    font-family: "Inter Regular";
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #FFDB9E;
}

.countdown_colon {
    font-family: "Inter Regular";
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #FFDB9E;
}

.lottery_btn {
    position: absolute;
    top: auto;
    bottom: 37px;
    left: 50%;
    transform: translateX(-50%);
    width: 428px;
    height: 44px;
    cursor: pointer;
}

.lottery_btn img {
    display: block;
    width: 100%;
    height: 100%;
}

.lottery_btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    white-space: nowrap;
    background: linear-gradient(to right, #FFEABA, #F5BA47);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 响应式 ========== */

/* ---- 1200px 以下（平板 / 小桌面） ---- */
@media only screen and (max-width: 1200px) {
    .hero_inner {
        max-width: 100%;
        padding: 110px 24px 60px;
    }

    .hero_content {
        margin-bottom: 50px;
    }

    .hero_main_title {
        font-size: 36px;
        line-height: 36px;
    }

    .hero_desc {
        font-size: 14px;
        line-height: 20px;
    }

    /* 卡片弹性缩放 */
    .card_item {
        width: calc((100% - 48px) / 4);
        height: auto;
        aspect-ratio: 282 / 363;
    }

    .cards_wrapper {
        gap: 16px;
    }

    /* 盲盒獎品标题 */
    .prizes_title {
        font-size: 32px;
        line-height: 32px;
    }

    .title_deco {
        width: 36px;
        height: 36px;
    }

    .prizes_title_row {
        gap: 24px;
    }

    /* 奖品卡片网格 */
    .prizes_grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .prize_card {
        width: 100%;
        height: auto;
        aspect-ratio: 282 / 286;
    }

    /* 条款文案 */
    .terms_text {
        max-width: 100%;
        padding: 0 16px;
    }

    .terms_title_row {
        margin-top: 80px;
    }

    /* 弹窗缩放 */
    .lottery_box {
        width: 480px;
        height: 440px;
    }

    .lottery_bg {
        width: 440px;
        height: 346px;
    }

    .lottery_body {
        top: 47px;
    }

    .lottery_text {
        font-size: 18px;
    }

    .lottery_btn {
        width: 340px;
        height: 40px;
        bottom: 24px;
    }

    .lottery_btn span {
        font-size: 14px;
    }

    .coupon_wrap {
        margin-top: 50px;
        width: 440px;
        height: 136px;
    }

    .coupon_left {
        width: 175px;
    }

    .coupon_num {
        font-size: 64px;
        line-height: 64px;
    }

    .coupon_percent {
        font-size: 26px;
        line-height: 26px;
    }

    .coupon_desc {
        font-size: 16px;
        line-height: 16px;
    }

    .coupon_label,
    .coupon_value {
        font-size: 12px;
        line-height: 12px;
    }

    .lottery_close {
        top: 18px;
        right: 18px;
        width: 18px;
        height: 18px;
    }
}

/* ---- 767px 以下（手机） ---- */
@media only screen and (max-width: 767px) {
    .hero_inner {
        padding: 88px 20px 48px;
    }

    .hero_content {
        margin-bottom: 30px;
    }

    .hero_main_title {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 10px;
        color: #F5BA47;
        -webkit-text-fill-color: #F5BA47;
        background: none;
    }

    .hero_desc {
        font-size: 13px;
        line-height: 18px;
    }

    /* 卡片 2×2 */
    .cards_wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .card_item {
        width: calc((100% - 16px) / 2);
        height: auto;
        aspect-ratio: 282 / 363;
    }

    .card_pick {
        bottom: 12%;
    }

    /* 盲盒奖品区域 */
    .prizes_section {
        padding: 28px 16px 60px;
    }

    .prizes_title {
        font-size: 24px;
        line-height: 24px;
    }

    .title_deco {
        width: 28px;
        height: 28px;
    }

    .prizes_title_row {
        gap: 16px;
    }

    /* 奖品卡片 2 列 */
    .prizes_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 32px;
    }

    .prize_card {
        aspect-ratio: 282 / 286;
    }

    .prize_card_text {
        bottom: 24px;
        left: 8px;
        right: 8px;
    }

    .prize_card_name {
        font-size: 12px;
        line-height: 16px;
    }

    /* 条款 */
    .terms_title_row {
        margin-top: 60px;
    }

    .terms_text {
        margin-top: 32px;
        padding: 0 8px;
    }

    .terms_text p {
        font-size: 12px;
        line-height: 20px;
    }

    /* 弹窗 */
    .lottery_modal {
        padding: 20px;
        box-sizing: border-box;
    }

    .lottery_box {
        width: 100%;
        height: auto;
        aspect-ratio: 597 / 534;
    }

    .lottery_bg {
        width: 90%;
        height: auto;
        aspect-ratio: 549 / 432;
    }

    .lottery_body {
        top: 10%;
        width: 84%;
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: none;
    }

    .lottery_text {
        font-size: clamp(14px, 3.5vw, 18px);
    }

    .lottery_btn {
        width: 72%;
        height: clamp(28px, 7vw, 42px);
        bottom: 4%;
    }

    .lottery_btn span {
        font-size: 13px;
        line-height: 20px;
    }

    .coupon_wrap {
        margin-top: 10%;
        width: 100%;
        height: auto;
        aspect-ratio: 549 / 260;
    }

    .coupon_info {
        flex-direction: row;
    }

    .coupon_left {
        width: 40%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .coupon_num {
        font-size: clamp(28px, 12vw, 48px);
        line-height: 1;
    }

    .coupon_percent {
        font-size: clamp(14px, 5vw, 22px);
        line-height: 1;
    }

    .coupon_desc {
        font-size: clamp(10px, 2.8vw, 14px);
        line-height: 1;
        margin: 4px 0 0;
    }

    .coupon_right {
        padding-left: 5%;
        margin-top: 0;
        padding-top: 4%;
    }

    .coupon_label,
    .coupon_value {
        font-size: clamp(9px, 2vw, 12px);
        line-height: 1;
    }

    .coupon_label {
        margin-top: 8%;
    }

    .coupon_value {
        margin-top: 4%;
    }

    .lottery_close {
        top: 3%;
        right: 3%;
        width: clamp(14px, 4vw, 18px);
        height: clamp(14px, 4vw, 18px);
    }

    .coupon_countdown {
        bottom: 17%;
        gap: clamp(1px, 0.5vw, 6px);
        white-space: nowrap;
    }

    .countdown_text {
        font-size: clamp(9px, 2.5vw, 14px);
    }

    .countdown_block {
        width: clamp(18px, 5vw, 32px);
        height: clamp(18px, 5vw, 32px);
        font-size: clamp(10px, 2.5vw, 16px);
    }

    .countdown_colon {
        font-size: clamp(10px, 2.5vw, 16px);
    }
}

