/* global */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #f5f8ff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

img {
    border: 0;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
}

/* general */
.t001 {
    max-width: 750px;
    margin: 0 auto;
    background: #f5f8ff;
}

.t001-block {
    width: 100%;
    /* margin-bottom: 16px; */
}

.t001-block img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.t001-block a {
    display: block;
}

/* support button */
.t001-support {
    position: fixed;
    right: 12px;
    top: 40%;
    z-index: 999;
    background: rgba(255, 255, 255, .7);
    border: 2px solid;
    border-radius: 15px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.t001-support-icon {
    font-size: 25px;
    line-height: 1;
}

.t001-support-text {
    white-space: nowrap;
}

/* speed test */
.t001-speed-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 200;
}

.t001-speed-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 640px;
    background: #e6f1fb;
    border-radius: 16px;
    padding: 20px;
    z-index: 201;
}

.t001-speed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.t001-speed-btn {
    background: #1677ff;
    color: #fff;
    padding: 6px 14px;
    border-radius: 10px;
    text-decoration: none;
}

.t001-speed-close {
    text-align: center;
    font-size: 28px;
    cursor: pointer;
}

/* ===== Speed signal ===== */

.t001-speed-signal {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    color: #16c60c;
    font-size: 14px;
}

.t001-speed-signal .bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    margin-bottom: 2px;
}

.t001-speed-signal .bars span {
    width: 4px;
    background: #16c60c;
    border-radius: 2px;
    opacity: .25;
}

.t001-speed-signal .bars span:nth-child(1) { height: 6px; }
.t001-speed-signal .bars span:nth-child(2) { height: 10px; }
.t001-speed-signal .bars span:nth-child(3) { height: 14px; }
.t001-speed-signal .bars span:nth-child(4) { height: 18px; }

.t001-speed-signal.good  .bars span { opacity: 1; }
.t001-speed-signal.mid   .bars span:nth-child(-n+3) { opacity: 1; }
.t001-speed-signal.bad   .bars span:nth-child(-n+2) { opacity: 1; }
.t001-speed-signal.poor  .bars span:nth-child(1)    { opacity: 1; }

.t001-speed-signal .ms {
    font-size: 12px;
    line-height: 1;
}

