* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #2c3e50;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
}

/* 星空背景样式 */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* 添加银河效果 */
.galaxy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(63, 94, 251, 0.1) 0%, 
        rgba(30, 70, 200, 0) 50%);
    animation: rotateGalaxy 150s linear infinite;
    z-index: -1;
}

@keyframes rotateGalaxy {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 添加流星效果 */
.shooting-star {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100px;
    height: 1px;
    transform: rotate(45deg);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
    animation: shootingStar 5s linear infinite;
    box-shadow: 0 0 10px #fff;
    opacity: 0;
}

@keyframes shootingStar {
    0% {
        transform: translateX(-500px) translateY(-500px) rotate(45deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(500px) translateY(500px) rotate(45deg);
        opacity: 0;
    }
}

#stars {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: var(--stars-small);
    animation: animateStars 50s linear infinite;
}

#stars:after {
    content: " ";
    position: absolute;
    top: 100vh;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: var(--stars-small);
}

#stars2 {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: var(--stars-medium);
    animation: animateStars 100s linear infinite;
}

#stars2:after {
    content: " ";
    position: absolute;
    top: 100vh;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: var(--stars-medium);
}

#stars3 {
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: var(--stars-large);
    animation: animateStars 150s linear infinite;
}

#stars3:after {
    content: " ";
    position: absolute;
    top: 100vh;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: var(--stars-large);
}

/* 添加闪烁动画 */
.twinkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #fff;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 20px #fff, 0 0 40px #fff; }
}

@keyframes animateStars {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2000px);
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 0 15px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.jump-box {
    position: relative;
    padding: 40px 25px;
    border-radius: 15px;
    background-color: transparent;
    box-shadow: none;
    text-align: center;
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
}

.jump-box::before {
    content: none;
}

@keyframes lightMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 确保高度一致的区域 */
.status-area {
    position: relative;
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.status-box {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.status-box p {
    font-size: 18px;
    margin-top: 15px;
    color: #ffffff;
    text-shadow: 0 0 10px var(--text-glow), 0 0 20px var(--glow-shadow);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* 倒计时容器 - 电影风格 */
.countdown {
    position: absolute;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(20px) translate(-50%, -50%);
    margin-top: 0;
    perspective: 1000px;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    top: 50%;
    left: 50%;
}

.countdown.show {
    opacity: 1;
    transform: translateY(0) translate(-50%, -50%);
}

.countdown-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.countdown-border {
    display: none;
}

.countdown-box {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.countdown-caption {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-unit, .countdown-code, .countdown-bars {
    opacity: 0;
}

/* 电影风格的数字 */
#timer-container {
    position: relative;
    height: 200px;
    width: 200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

#timer {
    font-family: 'Orbitron', 'Impact', 'Arial Black', sans-serif;
    font-size: 160px;
    font-weight: 900;
    color: #fff;
    text-align: center;
    line-height: 1;
    position: relative;
    z-index: 5;
    margin: 0;
    opacity: 0.95;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2);
    animation: numberPulse 2s ease-in-out infinite;
}

/* 数字脉冲动画 */
@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3),
            0 0 40px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.05);
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.9),
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 40px rgba(255, 255, 255, 0.4),
            0 0 50px rgba(255, 255, 255, 0.3);
    }
}

/* 数字变化动画 */
#timer.changing {
    animation: numberChange 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes numberChange {
    0% {
        filter: blur(4px);
        opacity: 0.5;
        transform: scale(1.3);
    }
    30% {
        filter: blur(0);
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: scale(1);
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    #timer-container {
        height: 150px;
        width: 150px;
    }
    
    #timer {
        font-size: 120px;
    }
    
    .progress-container {
        width: 90%;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-text {
        font-size: 14px;
    }
    
    .countdown-caption {
        font-size: 20px;
    }
}

/* 胶片效果背景 */
#timer::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        transparent 2%,
        rgba(0, 0, 0, 0.5) 3%,
        transparent 3%,
        transparent 5%,
        rgba(0, 0, 0, 0.5) 6%
    );
    background-size: 150px 150px;
    opacity: 0.3;
    animation: filmGrain 0.5s steps(1) infinite;
    pointer-events: none;
    z-index: -1;
}

/* 抖动效果 */
@keyframes filmGrain {
    0%, 100% { background-position: 0 0; }
    10% { background-position: -50px -50px; }
    20% { background-position: 50px 50px; }
    30% { background-position: -25px 25px; }
    40% { background-position: 25px -25px; }
    50% { background-position: -50px 50px; }
    60% { background-position: 50px -50px; }
    70% { background-position: -25px -25px; }
    80% { background-position: 25px 25px; }
    90% { background-position: -10px 10px; }
}

/* 底部条纹胶片效果 */
.film-strips {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: 
        linear-gradient(90deg, #000 0px, #000 15px, transparent 15px),
        linear-gradient(90deg, #000 35px, #000 50px, transparent 50px),
        linear-gradient(90deg, #000 70px, #000 85px, transparent 85px),
        linear-gradient(90deg, #000 105px, #000 120px, transparent 120px),
        linear-gradient(90deg, #000 140px, #000 155px, transparent 155px);
    background-size: 175px 100%;
    animation: filmStrip 5s linear infinite;
}

@keyframes filmStrip {
    from { background-position-x: 0; }
    to { background-position-x: 175px; }
}

/* 镜头光晕效果 */
.lens-flare {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        transparent 70%
    );
    opacity: 0;
    filter: blur(10px);
    animation: lensFlareAnim 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes lensFlareAnim {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.2); }
}

/* 闪烁线条效果 */
.horizontal-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    z-index: 4;
}

.horizontal-line.top {
    top: 15%;
    animation: lineFlicker 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.horizontal-line.bottom {
    bottom: 15%;
    animation: lineFlicker 4s ease-in-out infinite;
    animation-delay: 2.5s;
}

@keyframes lineFlicker {
    0%, 95%, 100% { opacity: 0; }
    96%, 99% { opacity: 0.8; }
}

/* 成功状态检查标记样式 */
.checkmark {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: block;
    stroke-width: 5;
    stroke: var(--film-light);
    stroke-miterlimit: 10;
    animation: checkmarkPulse 1.5s cubic-bezier(0.65, 0, 0.45, 1) infinite alternate;
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
    }
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 5;
    stroke-miterlimit: 10;
    stroke: var(--film-light);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* 立即跳转按钮重设计 */
.jump-button {
    margin-top: 50px;
    position: relative;
    z-index: 5;
    opacity: 0;
    transition: all 0.5s ease;
    display: inline-block;
    padding: 15px 40px;
    background: var(--film-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 30, 38, 0.5);
    overflow: hidden;
}

.jump-button:hover:not(:disabled) {
    transform: translateY(-3px);
    background: #ff3c42;
    box-shadow: 0 0 30px rgba(255, 30, 38, 0.7);
}

/* 检测圆圈动画更新 */
.tech-circle {
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 0 30px var(--glow-shadow), inset 0 0 20px var(--glow-shadow);
}

.scanner {
    background: radial-gradient(circle at center, 
        rgba(155, 137, 250, 0.3) 0%,
        rgba(155, 137, 250, 0.2) 45%,
        transparent 50%
    );
    box-shadow: 0 0 40px var(--glow-shadow);
}

.tech-dots span {
    background: var(--primary-light);
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--glow-shadow);
}

/* 成功动画颜色更新 */
.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--primary-light);
    stroke-miterlimit: 10;
    box-shadow: 0 0 20px var(--text-glow);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both, glowCheck 2s ease-in-out 1.3s infinite alternate;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--primary-light);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    filter: drop-shadow(0 0 5px var(--text-glow));
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
    filter: drop-shadow(0 0 5px var(--text-glow));
}

@keyframes glowCheck {
    from {
        filter: drop-shadow(0 0 10px var(--text-glow));
    }
    to {
        filter: drop-shadow(0 0 20px var(--text-glow-intense));
    }
}

/* 使页面其他文本更协调 */
.status-box p {
    color: #ffffff;
    text-shadow: 0 0 10px var(--text-glow), 0 0 20px var(--glow-shadow);
}

/* 调整成功动画的位置和样式 */
.success-animation {
    position: absolute;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: none;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%);
    z-index: 10;
}

/* 调整成功消息的样式和位置 */
.success-message {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: #ffffff;
    bottom: -40px;
    left: 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
    opacity: 1;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 全局颜色变量 - 从绿色转为蓝紫现代色系 */
:root {
    --primary-color: #7b68ee; /* 紫罗兰色 */
    --primary-light: #9c89fa;
    --primary-dark: #5a4ecd;
    --accent-color: #00bfff; /* 深天蓝 */
    --accent-light: #40d0ff;
    --accent-dark: #0095dd;
    --text-glow: rgba(155, 137, 250, 0.7);
    --text-glow-intense: rgba(155, 137, 250, 0.9);
    --glow-shadow: rgba(155, 137, 250, 0.3);
    --film-red: #ff1e26;
    --film-red-glow: rgba(255, 30, 38, 0.7);
    --film-dark: #0a0a0a;
    --film-light: #ffffff;
    --film-accent: #e6c200;
    --film-blur: rgba(255, 255, 255, 0.1);
}

/* 标题设计 */
#site-title {
    position: relative;
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 50px;
    letter-spacing: 5px;
    text-transform: uppercase;
    overflow: visible;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    min-height: 70px;
    line-height: 1.2;
    color: var(--film-light);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9;
    animation: textFlicker 5s infinite alternate;
}

@keyframes textFlicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5),
            0 1px 0 #ccc,
            0 2px 0 #c9c9c9;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.8;
        text-shadow: none;
    }
}

/* 进度条容器 */
.progress-container {
    margin: 20px 0;
    padding: 0 10px;
}

/* 进度条样式 */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

/* 进度条填充 */
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 进度条发光效果 */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 进度文本 */
.progress-text {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 故障效果加强 */
@keyframes glitchText {
    0%, 100% { 
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.85),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.85),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.85);
    }
    33% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.8),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.8),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.8);
    }
    66% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.7),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.7),
            0.05em 0.025em 0 rgba(0, 0, 255, 0.7);
    }
}

/* 电视扫描线效果 */
.tv-effect {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    background-size: 100% 4px;
    z-index: 4;
    opacity: 0.5;
}

/* 最终倒计时状态 */
.final-countdown {
    animation: finalShake 0.1s ease-in infinite;
}

@keyframes finalShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(2px);
    }
}

/* 强化数字变化动画 */
#timer.changing {
    animation: numberChange 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes numberChange {
    0% {
        filter: blur(4px);
        opacity: 0.5;
        transform: scale(1.3) skewX(5deg);
    }
    30% {
        filter: blur(0);
        opacity: 1;
        transform: scale(1.1) skewX(-2deg);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: scale(1) skewX(0);
    }
}

/* 移除旧的动画效果 */
.film-strips,
.horizontal-line,
.tv-effect,
.lens-flare {
    display: none;
}

.countdown-code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #4CAF50;
    margin-top: 15px;
    padding: 8px 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
} 