/* ── 倒计时器 ── */

/* 创建区 */
.cd-creator {
    text-align: center;
    padding: 1rem 0;
}

.cd-creator-actions {
    margin-top: 0.5rem;
}

/* 倒计时输入 */
.cd-input-group {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.cd-input-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.cd-input {
    width: 80px;
    padding: 0.7rem;
    font-size: 1.8rem;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.cd-input:focus {
    border-color: #2563eb;
}

.cd-input-label {
    font-size: 0.85rem;
    color: #666;
}

/* 快捷按钮 */
.cd-quick-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cd-quick-btn {
    padding: 0.4rem 0.9rem;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    background: white;
    color: #555;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cd-quick-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

/* 倒计时列表 */
.cd-list {
    margin-top: 1.5rem;
}

.cd-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.cd-item.finished {
    border-color: #fbbf24;
    background: #fffbeb;
    animation: cdFlash 1s ease-in-out 3;
}

@keyframes cdFlash {
    0%, 100% { background: #fffbeb; }
    50% { background: #fef3c7; }
}

.cd-item-time {
    font-family: 'Fira Code', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 180px;
    text-align: center;
}

.cd-item.finished .cd-item-time {
    color: #d97706;
}

.cd-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.cd-item-btn {
    padding: 0.35rem 0.7rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: white;
    color: #555;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
}

.cd-item-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.cd-item-btn.btn-del {
    color: #999;
}

.cd-item-btn.btn-del:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.cd-item-btn.running {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.cd-item-btn.running:hover {
    background: #b91c1c;
}

/* 空状态 */
.cd-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.9rem;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .cd-input {
        width: 65px;
        font-size: 1.4rem;
        padding: 0.5rem;
    }
    .cd-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .cd-item-time {
        font-size: 1.5rem;
        min-width: auto;
    }
    .cd-item-actions {
        margin-left: 0;
        justify-content: center;
    }
}