/* ============================================================
 * loading.css —— 加载过渡页样式
 * 功能区：① 加载动画  ② 移动设备拦截层
 * ============================================================ */

/* ---------- ① 加载动画 ---------- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    animation: spin 1.5s linear infinite;
}

body {
    transition: background-color 0.5s ease;
}

/* ---------- ② 移动设备拦截层 ---------- */
/* 默认带 hidden 属性隐藏；js/loading.js 检测到移动端时移除 hidden 显示 */
.mobile-block {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.72);
}

/* 确保 hidden 属性生效（避免上方 display:flex 覆盖 UA 隐藏规则） */
.mobile-block[hidden] {
    display: none;
}

.mobile-block-card {
    background: #fff;
    border-radius: 16px;
    max-width: 360px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mobile-block-card .fa-desktop {
    font-size: 40px;
    color: #165DFF;
    margin-bottom: 12px;
}

.mobile-block-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1f2937;
}

.mobile-block-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}
