html, body {
    padding: 0;
    margin: 0;
}

*, :before, :after {
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    background: rgb(16, 13, 34);
}

@media (min-width: 750px) {
    body {
        /* 背景图改为相对路径，避免部署在 /daohang 下时请求到站点根目录。 */
        background: url(../images/bg.jpg) no-repeat rgb(16, 13, 34) top fixed;
        background-size: 1920px auto;
    }
}

.logo-wrapper {
    margin-top: 33px;
    width: 643px;
    display: flex;
    justify-content: center;
}

.logo-wrapper img {
    width: 167px;
}

.title-wrapper {
    margin-top: 29px;
    line-height: 1.2;
    font-size: 36px;
    font-family: NotoSansHans;
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
}

.speed-btn {
    margin-top: 20px;
    min-width: 210px;
    height: 50px;
    padding: 0 22px;
    background: linear-gradient(135deg, rgba(255, 214, 151, .96), rgba(255, 173, 84, .96));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-family: NotoSansHans;
    font-weight: 600;
    color: #7F511A;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(255, 164, 72, .28);
}

.tips-wrapper {
    margin-top: 32px;
    width: 750px;
    height: auto;
    line-height: 1;
    font-family: NotoSansHans;
    color: #FFDCC3;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.tips-wrapper .tips-title {
    font-size: 30px;
    font-weight: 500;
}

.tips-wrapper .tips-text {
    font-size: 16px;
    margin-left: 18px;
}

.result-list {
    margin-top: 22px;
    width: 750px;
    display: flex;
    flex-direction: column;
}

.result-list .result-list-item {
    position: relative;
    width: 100%;
    min-height: 120px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(31, 16, 54, .96), rgba(24, 31, 66, .96));
    border: 1px solid rgba(255, 202, 146, 0.22);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.result-list .result-list-item:last-child {
    margin-bottom: 0;
}

.result-list .result-list-item.active {
    padding: 3px;
    background-image: linear-gradient(135deg, #FF7924, #FFD06F);
    border: none;
}

.result-list .result-list-item .result-content {
    width: 100%;
    height: 100%;
    min-height: 114px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(31, 16, 54, .98), rgba(24, 31, 66, .98));
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.result-list .result-list-item .domain-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.result-list .result-list-item .domain-content .domain-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.result-list .result-list-item .domain-content .domain-title .line-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
    color: #d7ddf5;
    letter-spacing: .5px;
}

.result-list .result-list-item .domain-content .domain-title .speed-chip {
    flex-shrink: 0;
    min-width: 96px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 241, 216, .98), rgba(255, 213, 143, .98));
    color: #8E5023;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 187, 97, .2);
}

.result-list .result-list-item .domain-content .domain-title .speed-chip.loading::after {
    content: "";
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(142, 80, 35, .25);
    border-top-color: #8E5023;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.result-list .result-list-item .domain-content .domain-title .speed-chip.ok {
    background: linear-gradient(135deg, rgba(226, 255, 238, .98), rgba(162, 243, 185, .96));
    color: #137644;
}

.result-list .result-list-item .domain-content .domain-title .speed-chip.error {
    background: linear-gradient(135deg, rgba(255, 232, 232, .98), rgba(255, 180, 180, .96));
    color: #b33535;
}

.result-list .result-list-item .domain-content .domain-title .speed-chip.best {
    box-shadow: 0 0 0 3px rgba(255, 211, 102, .2), 0 12px 24px rgba(255, 193, 79, .28);
}

.result-list .result-list-item .domain-content .domain-text {
    margin-top: 12px;
    font-size: 24px;
    font-family: NotoSansHans;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.45;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.result-list .result-list-item .btns-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.result-list .result-list-item .btns-wrapper .copy-btn {
    width: 128px;
    height: 44px;
    line-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 22px;
    text-align: center;
    font-size: 18px;
    font-family: NotoSansHans;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

.result-list .result-list-item .btns-wrapper .enter-btn {
    width: 128px;
    height: 44px;
    line-height: 44px;
    background: linear-gradient(135deg, #FF6F1E, #E01A00);
    border-radius: 22px;
    text-align: center;
    font-size: 18px;
    font-family: NotoSansHans;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(224, 58, 16, .24);
}

.result-empty {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(31, 16, 54, .96), rgba(24, 31, 66, .96));
    border: 1px solid rgba(255, 202, 146, 0.3);
    border-radius: 15px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 750px) {
    body {
        /* 移动端同样使用相对路径，避免背景 404 后页面发白。 */
        background: url(../images/m-bg.jpg) no-repeat rgb(16, 13, 34) top fixed;
        background-size: 100% auto;
        width: 100%;
    }

    .logo-wrapper {
        margin: 4.67vw 0 0 0;
        width: 80vw;
        justify-content: center;
    }

    .logo-wrapper img {
        width: 30%;
        height: 100%;
    }

    .title-wrapper {
        margin-top: 2.93vw;
        font-size: 5.86vw;
    }

    .speed-btn {
        margin-top: 3.46vw;
        min-width: 44vw;
        height: 9.33vw;
        padding: 0 3vw;
        font-size: 3.2vw;
    }

    .tips-wrapper {
        margin-top: 5.33vw;
        width: 92.67vw;
        display: block;
    }

    .tips-wrapper .tips-title {
        font-size: 4vw;
    }

    .tips-wrapper .tips-text {
        font-size: 14px;
        margin: 4px;
    }

    .result-list {
        margin-top: 6.4vw;
        width: 92.67vw;
    }

    .result-list .result-list-item {
        min-height: 28vw;
        margin-bottom: 2.4vw;
        border-radius: 2vw;
    }

    .result-list .result-list-item.active {
        padding: 0.54vw;
        border-radius: 2vw;
    }

    .result-list .result-list-item .result-content {
        min-height: 26.9vw;
        padding: 3.5vw 3.2vw;
        border-radius: 2vw;
        flex-direction: column;
        align-items: stretch;
        gap: 3vw;
    }

    .result-list .result-list-item .domain-content .domain-title {
        gap: 2vw;
        align-items: flex-start;
    }

    .result-list .result-list-item .domain-content .domain-title .line-tag {
        font-size: 2.8vw;
        padding: 1.2vw 2.2vw;
    }

    .result-list .result-list-item .domain-content .domain-title .speed-chip {
        min-width: 18vw;
        height: 7.6vw;
        padding: 0 2.4vw;
        font-size: 2.93vw;
    }

    .result-list .result-list-item .domain-content .domain-text {
        margin-top: 1.8vw;
        font-size: 3.8vw;
        line-height: 1.5;
    }

    .result-list .result-list-item .btns-wrapper {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1.8vw;
    }

    .result-list .result-list-item .btns-wrapper .copy-btn,
    .result-list .result-list-item .btns-wrapper .enter-btn {
        width: 22vw;
        height: 7.6vw;
        line-height: 7.6vw;
        border-radius: 3.8vw;
        font-size: 2.93vw;
    }

    .result-empty {
        padding: 5.33vw 4vw;
        font-size: 3.73vw;
        border-radius: 2vw;
    }
}
