/* ========== 头部时间面板样式 ========== */
.time-panel-fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 0 0 12px 12px;
    padding: 12px 20px;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    border-bottom: 2px solid var(--border);
}

.time-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.datetime {
    background: var(--light);
    padding: 6px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    color: var(--primary);
    font-size: 16px;
    width: 100%;
}

.interval-countdown-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.interval-control {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.interval-control label {
    font-weight: 500;
    color: var(--gray);
    font-size: 16px;
    margin-right: 6px;
}

.interval-input {
    display: flex;
    align-items: center;
    border-radius: 6px;
}

.interval-input input {
    width: 45px;
    border: none;
    background: var(--light);
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
}

.interval-unit {
    color: var(--gray);
    font-weight: 500;
    margin-left: 4px;
    font-size: 16px;
}

.time-summary-compact {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.time-item-compact {
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-label-compact {
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
    white-space: nowrap;
}

.time-value-compact {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
}

.time-value-compact#elapsed-time {
    color: var(--secondary);
}

.countdown-container {
    background: #dddddd;
    border-radius: 6px;
    height: 16px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.countdown-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: width 0.5s linear;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.countdown-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
    text-shadow: 0 1px 2px #111;
}

/* 响应式头部 */
@media (max-width: 480px) {
}
