html {
    -ms-touch-action: none;
}

body,
canvas,
div {
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    margin: 0;

    cursor: default;
    color: #888;
    background-color: #000;

    text-align: center;
    font-family: Helvetica, Verdana, Arial, sans-serif;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

canvas {
    background-color: rgba(0, 0, 0, 0);
}

a:link,
a:visited {
    color: #666;
}

a:active,
a:hover {
    color: #666;
}

p.header {
    font-size: small;
}

p.footer {
    font-size: x-small;
}

.splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: 0 0;
    background-size: 100% 100%;
    z-index: 1;
}

.splash-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: 0 0;
    background-size: 100% 100%;
}

.splash-content {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;

    color: yellow;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 6vh;

    font-size: 4vh;
}

.splash-load {
    display: none;
    top: 50%;
    width: 100%;
    color: yellow;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 6vh;

    font-size: 4vh;
}

.progress {
    width: 70%;
    height: 1vh;
    background-color: #888888;

    border-radius: 1vh;
}

.progressBar {
    width: 0%; /* 进度条宽度为50% */
    height: 100%;
    background-color: yellow; /* 进度条颜色为绿色 */

    border-radius: 1vh;
}

.progress-retry-button {
    text-decoration-line: underline;
    color: red;
    display: none;
    font-size: 6vh;
}

@keyframes donut-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.splash-icon-load-label {
    color: #c6c6c6;
    font-size: 2em;
    width: 100%;
    text-align: center;
    font-weight: 200;
}

.icon-loading {
    display: inline-block;
    width: 5em;
    height: 5em;
    background: url(../loading.png) no-repeat center center;
    background-size: 100%;
    vertical-align: text-bottom;
    white-space: nowrap;
    animation: donut-spin 1.2s linear infinite;
}

.loading_wrap {
    width: 100%;
    text-align: center;
    margin: 5em 0;
}

.splash-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.35);
    z-index: -1;
}
.progress-view {
    display: none;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.progress-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    padding: 3px;
    background: #2b2d3b;
    border-radius: 6px;
    border: 2px solid #e1c099;
    height: 1.5vh;

    position: relative;
    top: 90%; /* 以父节点上边界为基准垂直居中 */
    left: 50%; /* 以父节点左边界为基准水平居中 */
    transform: translate(-50%, -50%); /* 调整子节点自身位置，以实现居中 */
}
.progress-page-parent-bar {
    height: 100%;
    width: calc(100% - 1px);
}
.progress-page-bar {
    height: 100%;
    border-radius: 4px;
    background-color: #e7585b;
    width: 0%;
    transition: width 0.2s;
}

/* 元素缩小的动画 */
@keyframes scaledown {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
/* 定义元素放大的动画 */
@keyframes scaleup {
    0% {
        transform: scale(0);
    }
    90% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
/* 定义元素放大的类 */
.popup-scaleup {
    animation: scaleup 0.2s;
}
/* 定义元素缩小的类 */
.popup-scaledown {
    animation: scaledown 0.2s;
}

.popup-alert {
    position: absolute;
    display: none;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0);
    color: black;
}
.popup-alert-content {
    display: block;
    width: 795px;
    height: 488px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.popup-alert-content-v {
    display: block;
    width: 676px;
    height: 906px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.popup-alert-aclose {
    /* width: 567px; */
    width: 100%;
    height: 67px;
    display: flex;
    justify-content: center;
    /* min-height: 30px; */
    text-align: center;
    /* background-size: 80% 100%;  */
    background-repeat: no-repeat;
    background-position: center;

    transform: translate(0px, 20px);
}

.popup-alert-aclose span {
    line-height: 30px;
    font-size: 30px;
    position: relative;
    top: 10px;
    color: #dcbf68;

    font-weight: bold;
    text-shadow: -1px -1px 0 #4b2917ec, /* 左上 */ 1px -1px 0 #4b2917ec,
        /* 右上 */ -1px 1px 0 #4b2917ec, /* 左下 */ 1px 1px 0 #4b2917ec; /* 右下 */
}

.popup-alert-aclose-v {
    /* width: 567px; */
    width: 100%;
    height: 83px;
    display: flex;
    justify-content: center;
    /* min-height: 30px; */
    text-align: center;
    /* background-size: 80% 100%;  */
    background-repeat: no-repeat;
    background-position: center;

    transform: translate(0px, 0px);
}

.popup-alert-aclose-v span {
    line-height: 30px;
    font-size: 30px;
    position: relative;
    top: 20px;
    color: #dcbf68;

    font-weight: bold;
    text-shadow: -1px -1px 0 #4b2917ec, /* 左上 */ 1px -1px 0 #4b2917ec,
        /* 右上 */ -1px 1px 0 #4b2917ec, /* 左下 */ 1px 1px 0 #4b2917ec; /* 右下 */
}

.popup-alert-contain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    width: 80%;
    height: calc(100% - 65px);
    font-size: 15px;
    text-align: center;
    margin-left: 10%;
    position: relative;

    transform: translateY(-10%);
}
.popup-alert-button-container {
    height: 35px;
    display: inline-flex;
    width: 100%;
    justify-content: space-evenly;
    position: relative;
    bottom: 120px;
}
/* 按钮点击效果1 */
.popup-alert-button {
    /* width:30%; */
    width: 286px;
    height: 73px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-repeat: no-repeat;
    background-position: center;

    font-size: 30px;
}
.popup-alert-button:active {
    transform: scale(0.97);
}

.font-color-button1 {
    color: #ffdcd3;
}

.font-color-button2 {
    color: #e2ffea;
}

.font-bold {
    font-weight: bold;
}

/* 横版


@media screen and (orientation: portrait) {
    .splash {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
        width: 100vh;
        height: 100vw;
    }
    .splash-content {
        row-gap: 6vw;
        font-size: 4vw;
    }
    .splash-load {
        row-gap: 6vw;
        font-size: 4vw;
    }
    .progress {
        height: 1vw;
        border-radius: 1vw;
    }
    .progressBar {
        border-radius: 1vw;
    }
    .progress-retry-button {
        font-size: 6vw;
    }
}

@media screen and (orientation: landscape) {
    .splash {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .splash-content {
        row-gap: 6vh;
        font-size: 4vh;
    }
    .splash-load {
        row-gap: 6vh;
        font-size: 4vh;
    }
    .progress {
        height: 1vh;
        border-radius: 1vh;
    }
    .progressBar {
        border-radius: 1vh;
    }
    .progress-retry-button {
        font-size: 6vh;
    }

}
*/
/* 竖版
@media screen and (orientation: portrait) {
    .splash {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .splash-content {
        row-gap: 6vh;
        font-size: 4vh;
    }
    .splash-load {
        row-gap: 6vh;
        font-size: 4vh;
    }
    .progress {
        height: 1vh;
        border-radius: 1vh;
    }
    .progressBar {
        border-radius: 1vh;
    }
    .progress-retry-button {
        font-size: 6vh;
    }
}

@media screen and (orientation: landscape) {
    .splash {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
        width: 100vh;
        height: 100vw;
    }
    .splash-content {
        row-gap: 6vw;
        font-size: 4vw;
    }
    .splash-load {
        row-gap: 6vw;
        font-size: 4vw;
    }
    .progress {
        height: 1vw;
        border-radius: 1vw;
    }
    .progressBar {
        border-radius: 1vw;
    }
    .progress-retry-button {
        font-size: 6vw;
    }
} 
*/
.content-span {
    display: inline-block;
    word-wrap: break-word;
    word-break: normal;
    white-space: pre-wrap;
}
/* -----------------------------------------------------network error panel------------------------------------------- */

.load-fail-view {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f0f0f0;
    color: #333333;
    min-height: 100vh;
    min-width: 100vw;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    max-width: 100vw;
    box-sizing: border-box;
    z-index: 2;
}

.load-fail-view * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.load-fail-container {
    max-width: 1000px;
    width: 90%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 500px) {
    .load-fail-container {
        grid-template-columns: 1fr 1fr;
    }
}

.load-fail-view .error-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 500px) {
    .load-fail-view .error-info {
        align-items: flex-start;
        text-align: left;
    }
}

.load-fail-view .error-title {
    font-size: 32px;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: bold;
    margin-bottom: 8px;
}

.load-fail-view .error-message {
    color: #666666;
    font-size: 14px;
    margin-bottom: 16px;
}

.load-fail-view .error-code {
    color: #666666;
    font-size: 12px;
}

.load-fail-view .network-panel {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.load-fail-view .panel-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.load-fail-view .info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 12px;
}

.load-fail-view .info-label {
    color: #666666;
    text-align: left;
}

.load-fail-view .info-value {
    text-align: right;
    font-weight: 500;
}

.load-fail-view .status-red {
    color: #ef4444;
}

.load-fail-view .divider {
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
    padding-top: 12px;
}

.load-fail-view .diagnose-btn {
    color: #6b7280;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.15s;
}

.load-fail-view .diagnose-btn:hover {
    color: #4b5563;
}

/* 网络检查进度 */
.load-fail-view .progress-container {
    margin-bottom: 16px;
}

.load-fail-view .progress-text {
    color: #666666;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.load-fail-view .progress-bar-outer {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    width: 100%;
}

.load-fail-view .progress-bar-inner {
    height: 100%;
    background-color: #6b7280;
    border-radius: 2px;
    width: 0%;
}

/* 重新加载按钮 */
.load-fail-view .reload-btn {
    background-color: #e0e0e0;
    border: none;
    border-radius: 6px;
    padding: 10px 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #555555;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.load-fail-view .reload-btn:active {
    background-color: #989898;
}

.load-fail-view .reload-icon {
    margin-right: 6px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.load-fail-view .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(107, 114, 128, 0.3);
    border-radius: 50%;
    border-top-color: #6b7280;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

.load-fail-view .spinner.hide {
    display: none;
}

.load-fail-view .fa-info-circle {
    border-radius: 50%;
    background-color: #6b7280;
    color: #fff;
    font-size: 12px;
    width: 16px;
    height: 16px;
    text-align: center;
    margin-right: 5px;
    padding-right: 2px;
    line-height: 16px;
}
