/* ── 倒计时设置 ── */
.cd-wrapper {
    text-align: center;
    padding: 1rem 0;
}

.cd-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

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

.cd-input {
    width: 80px;
    text-align: center;
    font-family: 'Fira Code', monospace;
    font-size: 2rem;
    font-weight: 700;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    transition: border-color 0.2s;
}

.cd-input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
}

/* 隐藏数字输入的上下箭头 */
.cd-input::-webkit-outer-spin-button,
.cd-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cd-input[type=number] { -moz-appearance: textfield; }

.cd-unit {
    font-size: 0.82rem;
    color: #999;
}

.cd-colon {
    font-size: 2rem;
    font-weight: 700;
    color: #ccc;
    padding: 0 0.2rem;
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* ── 预设按钮 ── */
.cd-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.cd-preset {
    padding: 0.4rem 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    color: #555;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.cd-preset:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f0f5ff;
}

/* ── 倒计时显示 ── */
.cd-time {
    font-family: 'Fira Code', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.cd-time.warning { color: #d97706; }
.cd-time.danger { color: #dc2626; }

/* ── 进度条 ── */
.cd-progress-bar {
    width: 100%;
    height: 6px;
    background: #e8eaf0;
    border-radius: 3px;
    overflow: hidden;
}

.cd-progress {
    height: 100%;
    background: #2563eb;
    border-radius: 3px;
    transition: width 0.3s linear;
    width: 100%;
}

.cd-progress.warning { background: #d97706; }
.cd-progress.danger { background: #dc2626; }

/* ── 完成提示 ── */
.cd-done-text {
    font-size: 3rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.5rem;
}

.cd-done-sub {
    font-size: 0.95rem;
    color: #666;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .cd-input {
        width: 60px;
        font-size: 1.5rem;
    }
    .cd-colon { font-size: 1.5rem; }
    .cd-time { font-size: 2.8rem; }
}
