/* X1edo CPU Optimizer — 前端样式 */

/* ========== 延迟加载占位 ========== */
.x1edo-cpu-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.x1edo-cpu-lazy.loaded {
    opacity: 1;
}

.x1edo-cpu-lazy-iframe .x1edo-cpu-lazy-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #646970;
    font-size: 13px;
}

/* ========== 前端状态浮窗 ========== */
.x1edo-cpu-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1d2327;
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.x1edo-cpu-status-bar.visible {
    transform: translateY(0);
}

.x1edo-cpu-status-bar .x1edo-cpu-stat {
    margin-right: 16px;
}

.x1edo-cpu-status-bar .x1edo-cpu-stat strong {
    color: #72aee6;
}

.x1edo-cpu-status-bar .x1edo-cpu-close {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.x1edo-cpu-status-bar .x1edo-cpu-close:hover {
    opacity: 1;
}

/* ========== 前端优化标记 ========== */
.x1edo-cpu-optimized-badge {
    display: inline-block;
    background: #00a32a;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}
