* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Hiragino Sans GB",
        "Microsoft YaHei",
        Arial,
        sans-serif;

    background:
        radial-gradient(circle at 20% 20%, rgba(59,130,246,.12), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(139,92,246,.12), transparent 35%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);

    color: #172033;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main {
    width: 100%;
    max-width: 520px;
}

.card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px;
    padding: 34px 28px 28px;
    box-shadow:
        0 25px 70px rgba(30,41,59,.12),
        0 8px 25px rgba(30,41,59,.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #6366f1, #8b5cf6);
}

/* 顶部图标 */
.icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    box-shadow:
        0 12px 28px rgba(37,99,235,.25),
        inset 0 1px 0 rgba(255,255,255,.35);
    animation: iconFloat 3s ease-in-out infinite;
}

.icon {
    width: 31px;
    height: 31px;
    border: 3px solid rgba(255,255,255,.95);
    border-top-color: transparent;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* 标题 */
.t1 {
    text-align: center;
    font-size: 23px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .3px;
    margin: 0;
    color: #111827;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
    margin-bottom: 28px;
}

/* 状态区域 */
.status-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
}

.status-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.12);
    animation: pulse 1.5s infinite;
}

#progress-text {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
}

/* 进度条 */
#progress-container {
    position: relative;
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

#progress-bar {
    position: relative;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #6366f1, #8b5cf6);
    box-shadow: 0 2px 10px rgba(79,70,229,.25);
    transition: width .12s linear;
    font-size: 0;
}

#progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80px;
    width: 80px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.55),
        transparent
    );
    animation: shine 1.4s infinite;
}

/* 百分比 */
.progress-number {
    text-align: center;
    margin-top: 13px;
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -.5px;
}

.progress-number small {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* 提示 */
.notice {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    margin: 20px 0 18px;
}

.notice strong {
    color: #334155;
    font-weight: 600;
}

/* 按钮 */
.reload-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.reload-btn:hover {
    background: #e8eef5;
    box-shadow: 0 7px 18px rgba(15,23,42,.08);
}

.reload-btn:active {
    transform: scale(.98);
}

.reload-icon {
    display: inline-block;
    margin-right: 6px;
}

/* 底部 */
.footer {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 18px;
}

/* 动画 */
@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: .65;
    }
}

@keyframes shine {
    0% {
        left: -80px;
    }

    100% {
        left: 100%;
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* 手机 */
@media (max-width: 520px) {

    body {
        padding: 14px;
    }

    .card {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }

    .icon-wrap {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        margin-bottom: 17px;
    }

    .icon {
        width: 27px;
        height: 27px;
    }

    .t1 {
        font-size: 21px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 23px;
    }

    .progress-number {
        font-size: 24px;
    }
}

@media (max-width: 360px) {

    .card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .t1 {
        font-size: 19px;
    }

    .subtitle {
        font-size: 12px;
    }
}