/* 首页布局与响应式样式。 */

body,html {
    font-family: "WenQuanYi Zen Hei","Microsoft YaHei","Microsoft JhengHei",Arial,sans-serif;
}

.banner-container {
    position: relative;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-container .download-content {
    max-width: 1030px;
    position: relative;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    margin: 60px auto 10px;
}

.main-container .download-content .d-box {
    margin: 10px 0 23px;
    padding: 50px 20px 30px;
    position: relative;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    box-shadow: 0 0 0 2px rgba(185,145,92,.65) inset;
    border-radius: 15px;
}

.main-container .download-content .d-box .d-device {
    position: absolute;
    top: -10px;
    left: 50%;
    -webkit-transform: translate(-50%,0);
    -ms-transform: translate(-50%,0);
    transform: translate(-50%,0);
    width: 230px;
    font-size: 26px;
    text-align: center;
    color: #fa98b0;
    background: #fff;
}

.main-container .download-content .d-box .btn {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    max-width: 45%;
    width: 50%;
    height: 50px;
    border-radius: 50px;
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

.main-container .download-content .d-box .btn.d-btn {
    background-image: linear-gradient(to bottom,rgba(143,106,58,.5),#8F6A3A);
}

.main-container .download-content .d-box .btn.d-btn:hover {
    background-color: #8F6A3A;
}

footer {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    height: 66px;
    margin-top: 30px;
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width:999px) and (min-width:0) {
    .main-container .download-content {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        margin: 50px auto 10px;
    }

    .main-container .download-content .d-box {
        padding: 50px 0 30px;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-justify-content: space-around;
        -ms-flex-pack: distribute;
        justify-content: space-around;
        width: 100%;
    }

    .main-container .download-content #mac_desktop {
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
    }

    .main-container .download-content #wpk_desktop {
        -webkit-order: 3;
        -ms-flex-order: 3;
        order: 3;
    }

    .main-container .download-content #win_desktop {
        -webkit-order: 4;
        -ms-flex-order: 4;
        order: 4;
    }
}

@media (max-width:639px) and (min-width:0) {
    .main-container {
        padding: 0 15px;
    }

    .main-container .download-content {
        margin: 20px 0 0;
    }

    footer {
        font-size: 13px;
    }
}

.formclass {
    width: 100%;
    margin-left: 20px;
}

.tline {
    margin-bottom: 5px;
}

.formclass input {
    vertical-align: middle;
    font-family: 微软雅黑;
}

/* 页面标题与线路按钮。 */

.des-content {
    text-align: center;
    background-color: #000000;
    color: #fff;
    height: 80px;
}

.des-content .bdh3 {
    padding: 15px 0 10px 0;
}

.des-content .bd {
    font-size: 26px;
}

footer {
    background: #000000;
}

.buttonopenx {
    background-color: #8F6A3A;
    border: none;
    color: white;
    padding: 5px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.tline {
    float: left;
    width: 100%;
    border-top: solid 1px #555;
}

.mxianlu {
    float: left;
    margin-top: 15px;
    font-size: 18px;
    width: 15%;
    display: inline-block;
    margin-left: 15px;
}

.tline input {
    float: right;
    margin-right: 20px;
}

/* 首页线路按钮原有的尺寸。 */

.navigation-home .buttonopenx {
    padding: 5px;
    width: 30%;
}

/* 线路响应耗时与重新测速。 */
.speed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #e4c69d;
    padding: 0 15px 10px;
}

.speed-retest {
    border: 1px solid #b9915c;
    border-radius: 5px;
    background: #8f6a3a;
    color: #fff;
    padding: 7px 12px;
    font: inherit;
    cursor: pointer;
}

.speed-retest:disabled { opacity: .65; cursor: wait; }
.speed-retest:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.speed-note { color: #aaa; font-size: 12px; line-height: 1.6; padding: 0 15px 12px; }

.navigation-home .tline {
    display: grid;
    grid-template-columns: auto minmax(75px, 1fr) minmax(120px, 1.3fr);
    gap: 8px;
    align-items: center;
    float: none;
    box-sizing: border-box;
    padding: 10px 15px;
}

.navigation-home .mxianlu {
    float: none;
    width: auto;
    margin: 0;
    color: #c7a274;
    white-space: nowrap;
}

.navigation-home .tline .buttonopenx { float: none; width: 100%; margin: 0; min-height: 36px; }
.speed-result { font-size: 13px; text-align: center; color: #bbb; }
.speed-result[data-state="fast"] { color: #87d7a1; }
.speed-result[data-state="slow"] { color: #f0c879; }
.speed-result[data-state="error"] { color: #ee9d93; }

@media (max-width: 379px) {
    .navigation-home .tline { gap: 5px; padding: 10px; grid-template-columns: auto minmax(65px, 1fr) minmax(105px, 1.3fr); }
    .navigation-home .mxianlu { font-size: 16px; }
    .navigation-home .tline .buttonopenx { font-size: 14px; }
}
