.fireworks-page {
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0f1425 100%);
    overflow: hidden;
}

.fireworks-page .navbar {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fireworks-page .logo,
.fireworks-page .nav-menu a {
    color: #ffffff;
}

.fireworks-page .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.fireworks-page .nav-menu a.active {
    background: #ffffff;
    color: #1a1a1a;
}

/* 烟花画布 */
#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 右侧隐藏设置按钮 */
.settings-trigger {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0;
    cursor: pointer;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}

.settings-trigger:hover {
    width: 120px;
    height: 60px;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    flex-direction: row;
    gap: 0.8rem;
}

.trigger-icon {
    font-size: 1.3rem;
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trigger-text {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.settings-trigger:hover {
    gap: 0.8rem;
}

.settings-trigger:hover .trigger-text {
    opacity: 1;
    width: auto;
}

.settings-trigger:hover .trigger-icon {
    font-size: 1.2rem;
}

/* 设置弹窗 */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.settings-modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    max-height: calc(100vh - 140px);
    margin-top: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #1a1a1a;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.start-button {
    width: 100%;
    padding: 1rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.start-button:hover {
    background: #000000;
}

/* 倒计时显示 - 完全透明悬浮在烟花上方 */
.countdown-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    text-align: center;
    pointer-events: none;
}

.countdown-main {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.time-block {
    background: transparent;
    padding: 2rem 1.5rem;
    min-width: 110px;
}

.time-value {
    display: block;
    font-size: 4rem;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9),
                 0 0 40px rgba(0, 0, 0, 0.7),
                 0 0 60px rgba(255, 255, 255, 0.3),
                 3px 3px 6px rgba(0, 0, 0, 1);
}

.time-label {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8),
                 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* 最后一分钟倒数 - 完全透明背景 */
.final-countdown {
    animation: fadeInScale 0.5s ease;
}

.final-number {
    font-size: 14rem;
    font-weight: 200;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9),
                 0 0 60px rgba(0, 0, 0, 0.7),
                 0 0 80px rgba(255, 255, 255, 0.5),
                 0 0 120px rgba(255, 255, 255, 0.3),
                 5px 5px 10px rgba(0, 0, 0, 1);
    animation: pulseBig 1s ease-in-out;
}

/* 停止按钮 - 透明背景 */
.stop-button {
    padding: 0.8rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    pointer-events: auto;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8),
                 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.stop-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 祝福语显示 - 屏幕正中心，星星闪烁效果 */
.blessing-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
                 0 0 10px rgba(255, 235, 59, 0.6),
                 0 0 20px rgba(255, 235, 59, 0.5),
                 0 0 40px rgba(255, 235, 59, 0.4),
                 0 0 60px rgba(255, 235, 59, 0.3),
                 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 8px;
    padding: 2rem 3rem;
    background: transparent;
    animation: starGlow 2s ease-in-out infinite, blessingFloat 4s ease-in-out infinite;
    max-width: 90%;
    word-wrap: break-word;
}

/* 动画 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseBig {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blessingFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }
}

@keyframes starGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
                     0 0 10px rgba(255, 235, 59, 0.6),
                     0 0 20px rgba(255, 235, 59, 0.5),
                     0 0 40px rgba(255, 235, 59, 0.4),
                     0 0 60px rgba(255, 235, 59, 0.3),
                     2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.9),
                     0 0 15px rgba(255, 235, 59, 0.7),
                     0 0 30px rgba(255, 235, 59, 0.6),
                     0 0 50px rgba(255, 235, 59, 0.5),
                     0 0 80px rgba(255, 235, 59, 0.4),
                     2px 2px 4px rgba(0, 0, 0, 0.6);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 倒计时显示 */
    .countdown-main {
        gap: 1rem;
    }

    .time-block {
        padding: 1.5rem 1rem;
        min-width: 80px;
    }

    .time-value {
        font-size: 2.5rem;
    }

    .time-label {
        font-size: 0.7rem;
    }

    .final-number {
        font-size: 8rem;
    }
    
    /* 弹窗 */
    .modal-content {
        padding: 2rem;
        max-height: calc(100vh - 110px);
        margin-top: 10px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .close-button {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .submit-button {
        padding: 0.9rem;
        font-size: 1rem;
    }

    /* 设置按钮 */
    .settings-trigger {
        width: 50px;
        height: 50px;
    }
    
    .settings-trigger:hover {
        width: 100px;
        padding: 1rem 1rem;
    }
    
    /* 祝福语显示 */
    .blessing-display {
        font-size: 2rem;
        padding: 1.5rem;
    }
    
    /* 音乐按钮 */
    .music-toggle {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕 */
    .modal-content {
        padding: 1.5rem;
        max-height: calc(100vh - 100px);
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .final-number {
        font-size: 6rem;
    }
    
    .blessing-display {
        font-size: 1.6rem;
        padding: 1.2rem;
    }
    
    .close-button {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
}
