/* 用于使页面内容上下左右居中 */
body {
    display: flex;
    justify-content: center;  /* 水平居中 */
    align-items: center;      /* 垂直居中 */
    height: 100vh;            /* 使用视口高度 */
    margin: 0;                /* 去掉默认的边距 */
    flex-direction: column;   /* 将子元素排列为竖直方向 */
}

/* 用于实现一个旋转的加载动画 */
.loader {
    position: relative;
    width: 100%;
    height: 200px;
    --d: 50px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    color: #25b09b;
    box-shadow: 
        calc(1*var(--d)) calc(0*var(--d)) 0 0,
        calc(0.707*var(--d)) calc(0.707*var(--d)) 0 1px,
        calc(0*var(--d)) calc(1*var(--d)) 0 2px,
        calc(-0.707*var(--d)) calc(0.707*var(--d)) 0 3px,
        calc(-1*var(--d)) calc(0*var(--d)) 0 4px,
        calc(-0.707*var(--d)) calc(-0.707*var(--d)) 0 5px,
        calc(0*var(--d)) calc(-1*var(--d)) 0 6px;
    animation: l27 1s infinite steps(8);
}

/* 定义旋转动画的关键帧 */
@keyframes l27 {
    100% {
        transform: rotate(1turn);
    }
}

/* 初始样式，按钮默认隐藏 */
.delayed-button {
    position: relative;
    top: 20%;
    display: none;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: opacity 0.5s ease-in-out;
}

/* 显示按钮时的样式 */
.delayed-button.show {
    display: inline-block;
    opacity: 1;
}

/* 禁用按钮的样式 */
.delayed-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}
