/* 站点维护页 — 首映星光 · 全屏沉浸背景 */
*, *::before, *::after { box-sizing: border-box; }

html.hl-close-root,
html:has(.hl-close-page),
html:has(.hl-page-404-body) {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hl-close-page,
.hl-page-404-body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #030308;
    color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.hl-close-page {
    position: relative;
}

/* ── 片头混剪视频背景（全屏铺满） ── */
.hl-close-video-wrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    overflow: hidden;
    background: #030308;
    pointer-events: none;
}

.hl-close-video {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hl-close-video-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 60% at 50% 50%, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.04) 45%, rgba(0, 0, 0, 0.14) 100%);
    pointer-events: none;
}

.hl-close-audio-bar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 10px;
    border: 1px solid rgba(255, 220, 140, 0.28);
    border-radius: 999px;
    background: rgba(8, 6, 12, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hl-close-video-sound {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #f5f5f5;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.hl-close-video-sound:hover {
    background: rgba(255, 220, 140, 0.12);
}

.hl-close-volume-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.hl-close-volume {
    width: 88px;
    height: 4px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.hl-close-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 220, 140, 0.9);
    background: #ffe8b0;
    box-shadow: 0 0 8px rgba(255, 200, 80, 0.45);
    cursor: pointer;
}

.hl-close-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 220, 140, 0.9);
    background: #ffe8b0;
    box-shadow: 0 0 8px rgba(255, 200, 80, 0.45);
    cursor: pointer;
}

.hl-close-volume-label {
    min-width: 36px;
    color: #ffe8b0;
    font-size: 12px;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.hl-close-video-sound .hl-close-sound-icon {
    font-size: 16px;
    line-height: 1;
}

.hl-close-video-sound .hl-close-sound-on {
    display: none;
}

.hl-close-video-sound.is-on .hl-close-sound-off {
    display: none;
}

.hl-close-video-sound.is-on .hl-close-sound-on {
    display: inline;
}

.hl-close-sound-hint {
    position: fixed;
    left: 50%;
    bottom: 72px;
    z-index: 20;
    transform: translateX(-50%);
    padding: 12px 22px;
    border: 1px solid rgba(255, 220, 140, 0.45);
    border-radius: 999px;
    background: rgba(8, 6, 12, 0.3);
    color: #ffe8b0;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: hlCloseHintPulse 2s ease-in-out infinite;
}

.hl-close-sound-hint[hidden] {
    display: none !important;
}

.hl-close-sound-hint:hover {
    background: rgba(22, 14, 26, 0.42);
    border-color: rgba(255, 220, 140, 0.65);
}

@keyframes hlCloseHintPulse {
    0%, 100% { opacity: 0.82; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-2px); }
}

/* 有视频时弱化 CSS 动画背景，避免抢戏 */
.hl-close-has-video .hl-close-bg {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hl-close-has-video .hl-close-video-scrim {
    background:
        radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.03) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.hl-close-has-video .hl-close-glow {
    opacity: 0.2;
}

.hl-close-has-video .hl-msg-jump {
    background: rgba(8, 6, 12, 0.1);
    border-color: rgba(255, 210, 120, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 40px rgba(0, 0, 0, 0.12),
        0 16px 48px rgba(0, 0, 0, 0.18);
}

.hl-close-has-video .hl-close-wrap {
    background: linear-gradient(135deg, rgba(255, 200, 80, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
    border-color: rgba(255, 220, 140, 0.08);
}

/* ── 背景层 ── */
.hl-close-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(180, 40, 60, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 190, 80, 0.12) 0%, transparent 50%),
        linear-gradient(175deg, #0d0818 0%, #06040f 35%, #020205 100%);
}

/* 星云光晕（缓慢漂移） */
.hl-close-nebula {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hl-close-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: hlCloseOrbDrift 18s ease-in-out infinite;
}

.hl-close-orb-a {
    top: 8%;
    left: 12%;
    width: 42vw;
    height: 42vw;
    max-width: 480px;
    max-height: 480px;
    background: radial-gradient(circle, rgba(255, 170, 50, 0.45) 0%, transparent 70%);
    animation-duration: 22s;
}

.hl-close-orb-b {
    top: 55%;
    right: 5%;
    width: 36vw;
    height: 36vw;
    max-width: 420px;
    max-height: 420px;
    background: radial-gradient(circle, rgba(140, 80, 255, 0.35) 0%, transparent 70%);
    animation-duration: 26s;
    animation-delay: -8s;
}

.hl-close-orb-c {
    bottom: 5%;
    left: 30%;
    width: 50vw;
    height: 28vw;
    max-width: 560px;
    max-height: 300px;
    background: radial-gradient(ellipse, rgba(220, 60, 90, 0.28) 0%, transparent 70%);
    animation-duration: 20s;
    animation-delay: -14s;
}

/* 放映机顶光 */
.hl-close-projector {
    position: absolute;
    top: -8%;
    left: 50%;
    width: min(140vw, 900px);
    height: 75vh;
    transform: translateX(-50%);
    background: conic-gradient(
        from 270deg at 50% 0%,
        transparent 0deg,
        rgba(255, 220, 140, 0) 72deg,
        rgba(255, 220, 140, 0.06) 82deg,
        rgba(255, 248, 210, 0.2) 90deg,
        rgba(255, 220, 140, 0.06) 98deg,
        rgba(255, 220, 140, 0) 108deg,
        transparent 180deg
    );
    filter: blur(1px);
    animation: hlCloseProjector 10s ease-in-out infinite;
    pointer-events: none;
}

/* 浮光粒子（金色散景） */
.hl-close-bokeh {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hl-close-bokeh i {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(255, 200, 80, 0.15) 45%, transparent 70%);
    animation: hlCloseBokehFloat linear infinite;
    opacity: 0;
}

.hl-close-bokeh i:nth-child(1) { left: 8%;  width: 6px;  height: 6px;  animation-duration: 14s; animation-delay: 0s; }
.hl-close-bokeh i:nth-child(2) { left: 22%; width: 10px; height: 10px; animation-duration: 18s; animation-delay: -3s; }
.hl-close-bokeh i:nth-child(3) { left: 38%; width: 5px;  height: 5px;  animation-duration: 12s; animation-delay: -6s; }
.hl-close-bokeh i:nth-child(4) { left: 55%; width: 8px;  height: 8px;  animation-duration: 16s; animation-delay: -2s; }
.hl-close-bokeh i:nth-child(5) { left: 70%; width: 12px; height: 12px; animation-duration: 20s; animation-delay: -9s; }
.hl-close-bokeh i:nth-child(6) { left: 85%; width: 6px;  height: 6px;  animation-duration: 15s; animation-delay: -5s; }
.hl-close-bokeh i:nth-child(7) { left: 15%; width: 9px;  height: 9px;  animation-duration: 17s; animation-delay: -11s; }
.hl-close-bokeh i:nth-child(8) { left: 92%; width: 7px;  height: 7px;  animation-duration: 13s; animation-delay: -7s; }

/* 星空 */
.hl-close-stars,
.hl-close-stars::before,
.hl-close-stars::after {
    position: absolute;
    inset: 0;
    content: '';
    background-image:
        radial-gradient(1px 1px at 8%  15%, #fff 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 18% 72%, rgba(255,230,180,.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 32% 28%, #fff 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 88%, rgba(255,220,150,.8) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 58% 12%, #fff 0%, transparent 100%),
        radial-gradient(1px 1px at 68% 58%, rgba(255,255,255,.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 78% 35%, #fff 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 88% 78%, rgba(255,240,200,.85) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 22%, #fff 0%, transparent 100%),
        radial-gradient(1px 1px at 52% 45%, rgba(255,255,255,.65) 0%, transparent 100%);
    animation: hlCloseTwinkle 5s ease-in-out infinite alternate;
    pointer-events: none;
}

.hl-close-stars::before {
    transform: scale(1.4) translate(-2%, 3%);
    opacity: 0.5;
    animation-duration: 7s;
    animation-delay: -2s;
}

.hl-close-stars::after {
    transform: scale(0.75) translate(5%, -3%);
    opacity: 0.35;
    animation-duration: 9s;
    animation-delay: -4s;
}

/* 两侧幕帘暗示 */
.hl-close-curtains {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hl-close-curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18vw;
    max-width: 140px;
    opacity: 0.55;
}

.hl-close-curtain-l {
    left: 0;
    background: linear-gradient(90deg, rgba(120, 15, 35, 0.55) 0%, rgba(80, 8, 22, 0.2) 60%, transparent 100%);
}

.hl-close-curtain-r {
    right: 0;
    background: linear-gradient(-90deg, rgba(120, 15, 35, 0.55) 0%, rgba(80, 8, 22, 0.2) 60%, transparent 100%);
}

/* 胶片颗粒 */
.hl-close-grain {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: hlCloseGrain 0.5s steps(2) infinite;
    pointer-events: none;
}

.hl-close-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 50% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

/* ── 居中舞台 ── */
.hl-close-stage {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px 20px;
}

.hl-close-glow {
    position: absolute;
    width: min(90vw, 680px);
    height: min(70vh, 520px);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 190, 60, 0.14) 0%, rgba(255, 140, 40, 0.05) 40%, transparent 70%);
    animation: hlCloseGlowPulse 6s ease-in-out infinite;
    pointer-events: none;
}

/* ── 提示卡片 ── */
.hl-close-page .hl-msg-jump {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    margin: 0;
    padding: 44px 36px 36px;
    width: min(92vw, 580px);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 210, 120, 0.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 80px rgba(255, 160, 40, 0.12),
        0 32px 100px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    animation: hlCloseCardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hl-close-page .hl-site-logo {
    margin-bottom: 28px;
}

.hl-close-page .hl-close-logo {
    display: inline-block;
    --hl-close-logo-h: 52px;
    width: calc(var(--hl-close-logo-h) * 800 / 293);
    height: var(--hl-close-logo-h);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

.hl-close-page .hl-msg-jump-tit {
    margin: 0 0 24px;
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 0 40px rgba(255, 190, 60, 0.4);
}

.hl-close-page .hl-close-wrap {
    padding: 26px 22px;
    border-radius: 14px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 200, 80, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 220, 140, 0.12);
}

.hl-close-page .hl-close-wrap .title {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 220, 150, 0.9);
}

.hl-close-page .hl-close-wrap .text {
    margin: 0;
    font-size: clamp(19px, 3.2vw, 28px);
    font-weight: 500;
    line-height: 1.6;
    color: #f2f2f2;
    letter-spacing: 0.03em;
}

.hl-close-page .hl-close-footer {
    margin: 32px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.hl-close-page .hl-close-footer p {
    margin: 0;
}

/* ── 动画 ── */
@keyframes hlCloseOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, -4%) scale(1.06); }
    66% { transform: translate(-2%, 3%) scale(0.96); }
}

@keyframes hlCloseProjector {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.08); }
}

@keyframes hlCloseBokehFloat {
    0% { bottom: -5%; opacity: 0; transform: translateX(0) scale(0.6); }
    10% { opacity: 0.85; }
    90% { opacity: 0.4; }
    100% { bottom: 105%; opacity: 0; transform: translateX(20px) scale(1.1); }
}

@keyframes hlCloseTwinkle {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

@keyframes hlCloseGrain {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-90px, 60px); }
}

@keyframes hlCloseGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes hlCloseCardIn {
    0% { opacity: 0; transform: translateY(24px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 768px) {
    .hl-close-page .hl-msg-jump {
        padding: 52px 48px 40px;
        width: min(88vw, 620px);
    }

    .hl-close-page .hl-close-logo {
        --hl-close-logo-h: 58px;
    }
}

@media (max-width: 480px) {
    .hl-close-curtain { width: 24vw; }
}

@media (prefers-reduced-motion: reduce) {
    .hl-close-video-wrap {
        display: none;
    }

    .hl-close-orb,
    .hl-close-projector,
    .hl-close-bokeh i,
    .hl-close-stars,
    .hl-close-stars::before,
    .hl-close-stars::after,
    .hl-close-grain,
    .hl-close-glow,
    .hl-close-page .hl-msg-jump {
        animation: none !important;
    }
}
