/* 计时器页专用样式 */

/* 输入面板 */
.input-panel {
    padding: 30px;
}

.input-group-neo {
    margin-bottom: 25px;
}

.input-group-neo label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-family: "ZCOOL KuaiLe", sans-serif;
}

.input-neo {
    width: 100%;
    padding: 12px 15px;
    border: var(--border-width) solid var(--c-dark);
    background: white;
    font-size: 1.2rem;
    font-weight: 700;
    transition: 0.2s;
    font-family: "JetBrains Mono", monospace;
}

.input-neo:focus {
    outline: none;
    box-shadow: 4px 4px 0 var(--c-dark);
    transform: translate(-2px, -2px);
}

.slider-neo {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: var(--c-light);
    border: 2px solid var(--c-dark);
    outline: none;
    margin: 10px 0;
}

.slider-neo::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: var(--c-fire);
    border: 2px solid var(--c-dark);
    cursor: pointer;
}

.slider-neo::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: var(--c-fire);
    border: 2px solid var(--c-dark);
    cursor: pointer;
}

.select-neo {
    width: 100%;
    padding: 12px 15px;
    border: var(--border-width) solid var(--c-dark);
    background: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

/* 计时器显示面板 */
.timer-panel {
    padding: 40px;
    text-align: center;
    display: none;
}

.timer-panel.active {
    display: block;
}

.cost-display {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    color: var(--c-cash);
    text-shadow: 3px 3px 0 var(--c-dark);
    margin: 20px 0;
    font-family: "JetBrains Mono", monospace;
    animation: numberPulse 1s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.duration-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-smoke);
    margin-bottom: 20px;
    font-family: "JetBrains Mono", monospace;
}

.conversion-display {
    background: var(--c-light);
    border: 2px solid var(--c-dark);
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 500px;
    font-size: 1.3rem;
    font-weight: 700;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

/* 燃烧进度条 */
.burn-progress {
    width: 100%;
    height: 20px;
    background: var(--c-light);
    border: 2px solid var(--c-dark);
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.burn-progress-bar {
    height: 100%;
    background: var(--c-fire);
    width: 0%;
    animation: burning 3s linear infinite;
}

@keyframes burning {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* 控制按钮组 */
.control-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.control-buttons .btn-neo {
    flex: 1;
    max-width: 200px;
}

/* 标签选择 */
.tag-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.tag-btn {
    padding: 15px;
    border: 3px solid var(--c-dark);
    background: white;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    font-weight: 700;
}

.tag-btn:hover {
    background: var(--c-cash);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--c-dark);
}

.tag-btn.selected {
    background: var(--c-fire);
    color: white;
    box-shadow: 4px 4px 0 var(--c-dark);
}

.tag-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}







/* 彩带效果 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 30px;
    border-radius: 5px;
    animation: confettiFall 3s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .timer-panel {
        padding: 20px;
    }

    .cost-display {
        font-size: 3rem;
    }

    .control-buttons {
        flex-direction: column;
    }

    .control-buttons .btn-neo {
        max-width: 100%;
    }

    .success-popup-content {
        padding: 30px;
    }

    .success-icon {
        font-size: 3rem;
    }
}
