#mainLayout {
    background-image: url("../image/bg.png");
    max-width: 1500px;
    margin: 0 auto;
    background-attachment: fixed
}

@font-face {
    font-family: font2;
    src: url(../font/Bahnschrift-VF.ttf);

}


.data {
    border-collapse: collapse;
    text-align: center;
    width: 90%;
    margin-top: 40px
}

.socName {
    width: 228px;;
    text-align: right;
    height: 41px;
    font-size: 22px;
    color: #222;
}
.nasName {
    width: 228px;;
    text-align: right;
    height: 41px;
    font-size: 20px;
    color: #222;
}
.router {
    width: 38px;
}


.router img {
    vertical-align: middle;
}

/* NAS图标悬停效果 */
.nas-icon-wrapper {
    position: relative;
    display: inline-block;
}

.nas-icon {
    transition: all 0.3s ease;
    filter: brightness(1);
}

.nas-icon:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* 自定义提示框 - 即时显示 */
.nas-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 12px;
    background-color: #333;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

/* 提示框小箭头 */
.nas-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

/* 鼠标悬停时立即显示 */
.nas-icon-wrapper:hover .nas-tooltip {
    visibility: visible;
    opacity: 1;
}

.nas {
    width: 40px;
}


.nas img {
   max-width: 36px;
    height: auto;
    padding-bottom: 1px;
    vertical-align: middle;
}

.ratioBar {
    width: 100%;
    height: 30px;
    /* background: black; */
}
.ratioBarPC {
    width: 100%;
    height: 20px;
    /* background: black; */
}

.ratio {
    height: inherit;
    border-radius: 0 20px 20px 0;
    background: linear-gradient(to left, #01D2FF, #3A7CD6);
    animation-name: barAnmi;
    animation-duration: 1s;
    transition-timing-function: ease-in;
    transition: 0.4s;
    text-align: right;
    font-family: font2;

}
.ratioPC {
    height: inherit;
    border-radius: 0 20px 20px 0;
    background: linear-gradient(to left, #01D2FF, #3A7CD6);
    animation-name: barAnmi;
    animation-duration: 1s;
    transition-timing-function: ease-in;
    transition: 0.4s;
    text-align: right;
    font-family: font2;

}
.blue-gradient {
    background: linear-gradient(to left, #007bff, #0056b3);
}

.green-gradient {
    background: linear-gradient(to left, #28a745, #1e7e34);
}

.red-gradient {
    background: linear-gradient(to left, #dc3545, #a71d2a);
}

.gray-gradient {
    background: linear-gradient(to left, gray, darkgray);
}

.ratio a {
    position: absolute;
    padding-left: 3px;
    padding-top: 3px;
    color: #333;
}
.ratioPC a {
    position: absolute;
    padding-left: 3px;
    color: #333;
}

.downBtn {
    text-decoration: none;
    font-size: 20px;
    background-color: white;
    color: white;
    border: 2px solid black;
    cursor: pointer;
    /*background:#17E8E0;*/
    padding: 6px 2%;
    margin: 0 1%;
    border-radius: 120px;
}


.downBtn:hover {
    background: #397DD6;
}

#btn11:hover {
    background: white;
    color: black;
}

#btn1:hover {
    background: black;
    color: white;
}

#btn2 {
    color: #28a745;
}

#btn3 {
    color: #007bff;
}

#btn4 {
    color: #dc3545;
}

#btn5 {
    color: #dc3545;
}

#btn2:hover {
    background: #28a745;
    color: white;
}

#btn3:hover {
    background: #007bff;
    color: white;
}

#btn4:hover {
    background: #dc3545;
    color: white;
}

#btn5:hover {
    background: #dc3545;
    color: white;
}

#btn6:hover {
    background: #00BDFF;
}

#btn7:hover {
    background: #920784;
}

/* 弹出框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 22% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 480px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 36px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.router-info {
    border: 3px solid #f8f9fa;
    margin-top: 25px;
    border-radius: 15px;
}

.new-router-info {
    max-width: 860px;
    margin: 0 auto;
    background-color: #EEEEEE;
}

.new-router-img {
    max-height: 150px;
    max-width: 150px;
}

.new-router-title {
    text-align: left;
    font-size: 1.15rem;
    font-weight: 500;
}

.new-router-model {
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
}

.new-badges {
    text-align: left;
}

.new-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
}

.new-price-text {
    font-size: 18px;
    color: #FF1A00;
}

.new-jd-icon {
    margin-bottom: 7px;
    margin-right: 3px;
    padding-left: 8px;
}

.new-price-value {
    font-size: 26px;
}

.new-price-icon {
    width: 36px;
    height: 36px;
}

.new-recommendation {
    max-width: 830px;
    margin: 0 auto;
    border: 0;
    font-size: 1.125rem;
    text-align: left;
}

.new-router-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.new-router-link:hover {
    cursor: pointer;
}

.new-router-link:link,
.new-router-link:visited,
.new-router-link:hover,
.new-router-link:active {
    text-decoration: none;
    color: inherit;
}

.new-router-title {
    text-align: left;
    font-size: 1.15rem;
    font-weight: 500;
    color: inherit; /* 确保标题颜色继承 */
}

.new-router-title:hover {
    color: inherit; /* 确保鼠标悬停时颜色不变 */
    text-decoration: none; /* 确保鼠标悬停时没有下划线 */
}

.co9 {
    padding-left: 20px;
    padding-right: 20px;
}


@keyframes barAnmi {
    0% {
        width: 0%
    }
}


#caption {
    text-align: center;
    font-size: 60px;
    margin-top: 50px;
    letter-spacing: 3px;

}

.notice {
    text-align: center;
    margin: 0 auto;
    color: #666;
    max-width: 860px;
}

.info {
    /* position:absolute; */
    width: 200px;
    display: block;
    margin: 100px auto 0 auto;
}

#author {
    /* position:absolute; */
    color: #666666;
    display: block;
    text-align: center;
    margin-bottom: 100px;
    font-size: 16px;
    width: 200px;
}

.floatBtn {
    position: fixed;
    bottom: 30px;
    right: 55px;

}


.ratioLine {
    height: 0px;
    background: black;
    position: inherit;
    font-family: font2;

}

.ratioLineHeight {
    width: 1px;
    background: #e6e6e6;
    position: parent;
    margin-left: 100%;
    color: #BBBBBB;
    font-size: 20px;
}

.allcpu {
    background-color: black;
    border-color: black;
    font-size: 22px;
}

.socinfo {
    font-size: 13px;
    color: #fff;
    padding-top: 6px;
    position: absolute;
    padding-left: 10px;
}
.socinfoPC {
    font-size: 12px;
    color: #fff;
    padding-top: 2px;
    position: absolute;
    padding-left: 10px;
}
/* 排行榜导航样式 */
.nav-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 10px;
    background-color: #f8f8f8;
    font-size: 30px;
}
@media ( max-width: 767px) {
    #caption {
        font-size: 28px;
    }

    .notice {
        font-size: 13px;
        padding: 3px;
    }

    .downBtn {
        font-size: 18px;
    }

    .socName {
        width: 3px;
        text-align: center;
        font-size: 12px;
        height: 32px;
    }
    .nasName {
        width: 3px;
        text-align: center;
        font-size: 12px;
        height: 32px;
    }
    .router {
        width: 35px;
    }

    .ratioLineHeight {
        font-size: 13px;
    }

    .floatBtn {
        bottom: 150px;
    }

    .ratioBar {
        height: 24px;
    }

    .nasTable td:first-child, th:first-child {
        width: 110px;
    }

    /* 设置第二列的宽度 */
    td:nth-child(2), th:nth-child(2) {
        width: 35px;
    }

    .socinfo {
        font-size: 10px;
        padding-top: 4px;
    }

    .ratio {
        font-size: 15px !important;
    }

    .data {
        margin-top: 10px;
    }

    .modal-content {
        width: 90%
    }

    #caption {
        margin-top: 20px;
    }

    .new-router-img {
        max-height: 100px;
    }

    .co9 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .new-price-icon {
        width: 30px;
        height: 30px;
    }

    .new-price-value {
        font-size: 22px;
    }

    .new-jd-icon {
        width: 36px;
        height: auto;
    }

    .new-price {
        padding-bottom: 0.5rem
    }

    .new-recommendation {
        max-width: 750px;
        font-size: 1rem;
    }
    .nas img {max-width: 33px;}
}




