/* ========================================
   极简时间显示样式 - loading-simple.css
   适配深色背景，清爽简洁
   ======================================== */

/* ==================== 时间显示区域 ==================== */
.time-display-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 20px;
}

.time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.time-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.time-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    letter-spacing: 2px;
}

.time-divider {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* ==================== 流动进度线（增强版） ==================== */
/* 🔥 修复:使用更具体的选择器,避免与页面进度条(.progress-bar .progress-line)冲突 */
.loading-overlay .progress-line,
.loading-spinner .progress-line {
    width: 100%;
    height: 4px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.loading-overlay .progress-flow,
.loading-spinner .progress-flow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(96, 165, 250, 0.6) 20%,
        rgba(59, 130, 246, 1) 40%,
        rgba(96, 165, 250, 1) 50%,
        rgba(59, 130, 246, 1) 60%,
        rgba(96, 165, 250, 0.6) 80%,
        transparent 100%
    );
    animation: flowAnimation 2s linear infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

@keyframes flowAnimation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(300%);
    }
}

/* ==================== Spinner（增强版） ==================== */
.spinner {
    border: 5px solid rgba(59, 130, 246, 0.2);
    border-top: 5px solid #60a5fa;
    border-right: 5px solid #3b82f6;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 加载文本 ==================== */
.loading-text {
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

/* ==================== 加载消息 ==================== */
.loading-message {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 20px 0;
    min-height: 24px;
    transition: opacity 0.3s ease;
    font-weight: 500;
    text-align: center;
}

/* ==================== 取消按钮（大方显眼版） ==================== */
.btn-cancel-loading {
    margin: 32px auto 0;
    padding: 16px 32px;
    border-radius: 12px;
    border: 2px solid rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    min-width: 160px;
}

.btn-cancel-loading svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-cancel-loading:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-cancel-loading:hover svg {
    transform: rotate(90deg);
}

.btn-cancel-loading:active {
    transform: translateY(-1px);
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .time-display-simple {
        flex-direction: column;
        gap: 16px;
    }

    .time-divider {
        display: none;
    }

    .time-value {
        font-size: 24px;
    }

    .time-label {
        font-size: 12px;
    }

    .loading-text {
        font-size: 16px;
    }

    .loading-message {
        font-size: 14px;
    }

    .btn-cancel-loading {
        width: auto;
        min-width: 200px;
        justify-content: center;
        padding: 16px 28px;
    }
}