/* 页面加载进度条样式（居中显示，放在提示文案上方） */
#page-loading-progress {
    width: 320px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.35);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#page-loading-progress.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

#page-loading-progress-bar {
    height: 100%;
    width: 0%;
    /* 使用简单的天蓝色渐变，提高连贯性 */
    background: linear-gradient(90deg, #38bdf8, #60a5fa);
    background-size: 200% 100%;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
    animation: loading-bar-move 1.1s linear infinite;
}

@keyframes loading-bar-move {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 刷新按钮容器样式 */
#refresh-container {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99998;
    display: none;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 0;
    padding: 24px 32px;
    background: #ffffff; /* 白色背景卡片 */
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translate(-50%, -50%) translateY(4px);
}

#refresh-container.show {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

/* 刷新按钮样式 */
#refresh-button {
    padding: 10px 20px;
    border-radius: 6px;
    background: rgba(101, 163, 255, 0.9);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#refresh-button:hover {
    background: rgba(101, 163, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#refresh-button:active {
    transform: translateY(0);
}

#refresh-button::before {
    content: "⟳";
    margin-right: 6px;
    font-size: 16px;
}

/* 提示文案样式 */
#refresh-tip {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    max-width: 400px;
    padding: 0 20px;
}

/* 按钮和提示文案默认隐藏，5秒后按需展示 */
#refresh-button,
#refresh-tip {
    display: none;
}

#refresh-container.show-extra #refresh-button {
    display: flex;
}

#refresh-container.show-extra #refresh-tip {
    display: block;
}