﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #0a0a15 0%, #220022 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 30%, rgba(255, 60, 60, 0.08) 0%, transparent 70%);
        pointer-events: none;
        animation: crtFlicker 0.1s infinite alternate; /* CRT 輕微閃爍 */
    }

@keyframes crtFlicker {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.98;
    }
}
/* CRT 掃描線 */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 4px);
    pointer-events: none;
    animation: scanLines 10s linear infinite;
}

@keyframes scanLines {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 1000px;
    }
}

.container {
    text-align: center;
    max-width: 920px;
    padding: 40px 25px;
    z-index: 2;
    position: relative;
    animation: glitchLoad 1s ease-out forwards; /* 載入故障轉場 */
    opacity: 0;
}

@keyframes glitchLoad {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    20% {
        opacity: 0.5;
        transform: translateX(5px);
    }

    40% {
        opacity: 0.7;
        transform: translateX(-3px);
    }

    60% {
        opacity: 0.8;
        transform: translateX(2px);
    }

    80% {
        opacity: 0.9;
        transform: translateX(-1px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.warning {
    color: #ff3366;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 10px;
    position: relative;
    animation: hologramFlicker 2s infinite alternate; /* 全息閃爍 */
}

@keyframes hologramFlicker {
    0% {
        text-shadow: 0 0 5px #ff3366, 0 0 10px #ff3366;
        color: #ff3366;
    }

    50% {
        text-shadow: 2px 0 5px #ff3366, -2px 0 10px cyan;
        color: cyan;
        transform: skewX(5deg);
    }

    100% {
        text-shadow: 0 0 5px #ff3366, 0 0 10px #ff3366;
        color: #ff3366;
    }
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 51, 102, 0.6);
    animation: glitch 1.5s infinite; /* 故障效果 */
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.subtitle {
    font-size: 1.65rem;
    margin-bottom: 55px;
    opacity: 0.95;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 45px 0;
}

.time-block {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255,70,90,0.4);
    border-radius: 20px;
    width: 165px;
    padding: 28px 18px;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(255, 136, 153, 0.3); /* 初始霓虹 glow */
    animation: neonPulse 2s infinite ease-in-out; /* 霓虹脈衝 */
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 136, 153, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 136, 153, 0.7), 0 0 35px rgba(255, 136, 153, 0.5);
    }
}

.time-block:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: #ff8899;
    box-shadow: 0 0 40px #ff8899;
}

.number {
    font-size: 4.2rem;
    font-weight: 900;
    color: #ffdd77;
    text-shadow: 0 4px 15px rgba(255, 221, 119, 0.5);
    line-height: 1;
}

.label {
    font-size: 1.15rem;
    margin-top: 10px;
    letter-spacing: 2px;
    opacity: 0.9;
}

.final-date {
    font-size: 1.5rem;
    background: rgba(255,60,60,0.15);
    display: inline-block;
    padding: 12px 40px;
    border-radius: 50px;
    margin: 30px 0;
}

.message {
    font-size: 1.32rem;
    line-height: 1.85;
    max-width: 720px;
    margin: 0 auto 40px;
    opacity: 0.92;
    animation: hologramFlicker 3s infinite alternate; /* 訊息全息效果 */
}

.footer {
    margin-top: 90px;
    opacity: 0.65;
    font-size: 1.05rem;
}
/* 雷射掃描線 - X 交叉效果 */
.laser-scan-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.laser-line {
    position: absolute;
    width: 150%; /* 寬度大於頁面以確保斜線覆蓋 */
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff3366, transparent);
    box-shadow: 0 0 10px #ff3366;
    animation: laserScanX 5s linear infinite;
}

.laser-line1 {
    transform: rotate(45deg); /* 左上到右下 */
    top: -10%; /* 調整起始位置，讓交叉往下移 */
    left: -25%;
}

.laser-line2 {
    transform: rotate(-45deg); /* 右上到左下 */
    top: -10%; /* 調整起始位置，讓交叉往下移 */
    right: -25%;
}

@keyframes laserScanX {
    0% {
        transform: translateY(-100vh) rotate(var(--rotate));
    }
    /* 從上方開始 */
    100% {
        transform: translateY(100vh) rotate(var(--rotate));
    }
    /* 到下方結束 */
}
/* 粒子效果容器 */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
