/* 全屏覆盖弹窗样式
   文件路径：/static/css/full-page-cover-popup.css
*/

/* 弹窗外层：背景全屏覆盖 */
.full-page-cover-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    box-sizing: border-box;
    background: #050814;
}

/* 关闭后隐藏 */
.full-page-cover-popup.is-hidden {
    display: none;
}

/* 弹窗主体 */
.full-page-cover-box {
    position: relative;
    width: min(920px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 22px;
    padding: 46px 42px 38px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #1a1a2e, #0f3460);
    border: 1px solid #8f7340;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    color: #fff;
}

/* 右上角关闭按钮 */
.full-page-cover-close {
    position: fixed;
    top: 4px;
    right: 4px;
    z-index: 1000001;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #1d243a;
    color: #7d8498;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    opacity: .65;
    transition: all .2s ease;
}

.full-page-cover-close:hover {
    background: #2c3554;
    color: #ffffff;
    opacity: .95;
}

/* 标题 */
.full-page-cover-title {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fadc9d;
    text-align: center;
}

.full-page-cover-title span {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    color: #ffffff;
    font-weight: 500;
}

/* 说明文字 */
.full-page-cover-desc {
    margin: 0 auto 24px;
    max-width: 760px;
    color: #e8ebf6;
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}

/* 内容卡片区域 */
.full-page-cover-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

/* 内容卡片 */
.full-page-cover-item {
    padding: 18px 16px;
    border-radius: 14px;
    background: #243050;
    border: 1px solid #38456b;
}

.full-page-cover-item strong {
    display: block;
    margin-bottom: 8px;
    color: #ffe5af;
    font-size: 17px;
}

.full-page-cover-item p {
    margin: 0;
    color: #d7dbea;
    font-size: 14px;
    line-height: 1.75;
}

/* 按钮区域 */
.full-page-cover-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.full-page-cover-actions a {
    min-width: 180px;
    padding: 12px 18px;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    color: #3c1e00;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(0deg, #d6af5d 0%, #ffe5af 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

/* 防止最后一个按钮变暗 */
.full-page-cover-actions a:last-child {
    background: linear-gradient(0deg, #d6af5d 0%, #ffe5af 100%);
    color: #3c1e00;
    border: none;
}

/* 主按钮：点击进入皇冠官网 */
.full-page-cover-actions a.full-page-cover-main-btn {
    position: relative;
    min-width: 260px;
    padding: 16px 34px;
    border-radius: 999px;
    color: #351b00;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff0b8 0%, #ffd45c 42%, #ff9f1c 100%);
    border: 2px solid #fff4c8;
    box-shadow:
        0 0 0 5px rgba(250, 220, 157, 0.20),
        0 16px 38px rgba(255, 174, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    overflow: hidden;
    transform: translateZ(0);
    animation: fullPageMainBtnPulse 1.8s ease-in-out infinite;
}

.full-page-cover-actions a.full-page-cover-main-btn::before {
    content: "★";
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
}

.full-page-cover-actions a.full-page-cover-main-btn::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -35%;
    width: 38%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    transform: rotate(18deg);
    animation: fullPageMainBtnShine 2.6s ease-in-out infinite;
}

.full-page-cover-actions a.full-page-cover-main-btn:hover {
    color: #2b1500;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 6px rgba(250, 220, 157, 0.28),
        0 20px 46px rgba(255, 174, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* 主按钮呼吸光效 */
@keyframes fullPageMainBtnPulse {
    0%, 100% {
        box-shadow:
            0 0 0 5px rgba(250, 220, 157, 0.18),
            0 16px 38px rgba(255, 174, 0, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.75);
    }
    50% {
        box-shadow:
            0 0 0 9px rgba(250, 220, 157, 0.28),
            0 18px 48px rgba(255, 174, 0, 0.62),
            inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }
}

/* 主按钮流光 */
@keyframes fullPageMainBtnShine {
    0% {
        left: -45%;
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    65% {
        opacity: 1;
    }
    100% {
        left: 115%;
        opacity: 0;
    }
}

/* 手机端：背景全屏覆盖，弹窗框不撑满整个页面 */
@media screen and (max-width: 768px) {
    .full-page-cover-popup {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        box-sizing: border-box;
        background: #050814;
        overflow: hidden;
    }

    .full-page-cover-box {
        width: calc(100vw - 24px);
        max-width: 520px;
        height: auto;
        max-height: calc(100vh - 36px);
        max-height: calc(100dvh - 36px);
        overflow-y: auto;
        padding: 30px 12px 16px;
        border-radius: 16px;
        box-sizing: border-box;
        background: linear-gradient(145deg, #1a1a2e, #0f3460);
        border: 1px solid #8f7340;
        color: #ffffff;
    }

    .full-page-cover-close {
        top: 3px;
        right: 3px;
        width: 16px;
        height: 16px;
        font-size: 12px;
        line-height: 16px;
    }

    .full-page-cover-title {
        margin: 0 0 10px;
        font-size: 20px;
        line-height: 1.2;
    }

    .full-page-cover-title span {
        margin-top: 4px;
        font-size: 13px;
    }

    .full-page-cover-desc {
        margin: 0 auto 8px;
        font-size: 12px;
        line-height: 1.45;
        text-align: center;
    }

    .full-page-cover-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
    }

    .full-page-cover-item {
        padding: 8px 7px;
        border-radius: 10px;
    }

    .full-page-cover-item strong {
        margin-bottom: 4px;
        font-size: 12px;
        line-height: 1.25;
    }

    .full-page-cover-item p {
        font-size: 10px;
        line-height: 1.42;
        letter-spacing: 0;
    }

    .full-page-cover-actions {
        margin-top: 12px;
        gap: 0;
    }

    .full-page-cover-actions a,
    .full-page-cover-actions a.full-page-cover-main-btn {
        width: 100%;
        min-width: 0;
        padding: 11px 12px;
        font-size: 15px;
        line-height: 1.2;
        box-sizing: border-box;
    }

    .full-page-cover-actions a.full-page-cover-main-btn::before {
        font-size: 13px;
        margin-right: 5px;
    }
}

/* 小屏手机进一步压缩 */
@media screen and (max-width: 375px) {
    .full-page-cover-popup {
        padding: 8px;
    }

    .full-page-cover-box {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 28px 9px 12px;
        border-radius: 14px;
    }

    .full-page-cover-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .full-page-cover-grid {
        gap: 6px;
        margin-top: 8px;
    }

    .full-page-cover-item {
        padding: 7px 6px;
    }

    .full-page-cover-item strong {
        font-size: 11px;
    }

    .full-page-cover-item p {
        font-size: 9px;
        line-height: 1.35;
    }

    .full-page-cover-actions {
        margin-top: 10px;
    }

    .full-page-cover-actions a,
    .full-page-cover-actions a.full-page-cover-main-btn {
        padding: 10px 10px;
        font-size: 14px;
    }
}