@import url(../iconfont/iconfont.css);
@font-face{
    font-family: 'D-DIN';
    src : url('/fb-static/fonts/D-DIN-Bold.ttf');
    font-style: normal;
    font-display: swap;
}
li{
    list-style: none;
}
.forex-broker .container-fluid{
    padding: 10rem 10%;
}


/* 交易商榜单 */
.forex-broker {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.forex-broker .row{
}



.forex-list{
    background: #fff;
    border-radius: 5px;
    padding-bottom: 20px;
}

.forex-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    font-size: 1.8rem;
    color: #262626;
}

.forex-list-top ul {
    display: flex;
    flex-grow: 1;
}

.forex-list-top ul li {
    margin: 0 2.4rem;
}

.forex-list-top h2 {
    font-size: 2.4rem;
}

.forex-list-top span {
    font-size: 1.4rem;
    color: #999;
}

.forex-list-top span::after {
    font-family: "iconfont";
    content: '\e621';
    padding-right: 1.6rem;
}

.forex-list-content{
    padding-left: 1rem;
    margin-top: 2.2rem;
}

.forex-list-content li {
    position: relative;
    /* height: 110px; */
    margin: 1rem 0 4rem;
}

.forex-list-content li .broker-logo{
    width: 18rem;
    height: 12rem;
    margin-right: 2rem;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    border-radius: 5px;
    flex: none;
}

.forex-list-content li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.forex-list-content li:hover img {
    transform: scale(1.1);
}

.forex-list-content li:hover .text-content {
    border-radius: .5rem;
}

/*.forex-list-content li:nth-child(1)::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 2rem;
    height: 2rem;
    background: url(../image/billboard_1.webp) no-repeat;
    background-size: cover;
    z-index: 1;
}

.forex-list-content li:nth-child(2)::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 2rem;
    height: 2rem;
    background: url(../image/billboard_2.webp) no-repeat;
    background-size: cover;
    z-index: 1;
}

.forex-list-content li:nth-child(3)::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 2rem;
    height: 2rem;
    background: url(../image/billboard_3.webp) no-repeat;
    background-size: cover;
    z-index: 1;
}*/

.forex-list-content li:nth-last-child(1) {
    margin-bottom: 1rem;
}

.forex-list-content li a {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.forex-list-content li:hover h3 {
    color: #001e93;
}


.forex-list-content .text-content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 0.6rem 0 0.8rem;
    max-width: 70%;
}

.forex-list-content .score {
    position: relative;
    z-index: 1;
    width: max-content;
    font-family: 'D-DIN';
}

.forex-list-content .score::after{
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #ffa216;
    border-radius: 3px;
    content: "";
    z-index: -1;
}

.forex-list-content .text-content h3 {
    font-size: 1.8rem;
    color: #262626;
    font-weight: 700;
    margin-top: 0.3rem;
}


.text-content .score {
    font-size: 2rem;
    color: #010b27;
    font-size: 700;
}

/*.forex-list-content li:nth-child(-n+3) .score::after {
    font-family: 'iconfont';
    content: '\e605';
    font-size: 2rem;
    color: #ffa216;
    padding-left: .5rem;
    font-weight: 700;
}*/

.text-content span {
    font-size: 1.4rem;
    color: #999;

}
.text-content .broker-info{
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow: ellipsis;  
    min-width: 0;
}

.text-content span .time{
    display: inline-block;
    height: 26px;
    margin-right: 8px;
    padding: 0 10px;
    color: #666;
    line-height: 26px;
    background-color: #f5f5f5;
    border-radius: 4px;
}


/* 热门交易商 */
.forex-broker-info {
    padding-left: 1rem;
    padding-right: 2rem;
}

.broker-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.6rem 1.4rem 1rem;
    width: 100%;
    background: #fff;
    border-radius: .5rem .5rem 0 0;
}

.broker-info-top h2 {
    font-size: 2.4rem;
    color: #010b27;
    font-weight: bold;
}

.broker-info-top span {
    font-size: 1.4rem;
    color: #999;
}

.broker-info-top span::after {
    font-family: 'iconfont';
    content: '\e621';
}

.hot-broker {
    background: #fff;
    padding: 0rem 1.8rem;
}


.hot-broker ul li {
    /*width: 22rem;*/
    /* height: 100px; */
}

.hot-broker ul li img{
    border-radius: 5px;
}

.hot-broker .top {
    display: flex;
    align-items: center;
    padding: 1.2rem 0;
    /* height: 60px; */
    width: 100%;
}

.hot-broker .top .img {
    width: 5.6rem;
    height: 5.6rem;
    margin-right: 2rem;
}

.hot-broker .top img {
    border: 1px solid #e5e5e5;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.hot-broker .bottom {
    height: 4rem;
    width: 100%;
    line-height: 3rem;
    font-size: 1.4rem;
    color: #999;
    white-space: nowrap;
    /* 强制一行显示 */
    overflow: hidden;
    /* 超出部分隐藏 */
    text-overflow: ellipsis;
    /* 超出部分用省略号表示 */
}

.hot-broker .top-right h3 {
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #262626;
}

.hot-broker .top-right .score {
    font-size: 2rem;
    color: #010b27;
    position: relative;
    z-index: 1;
    width: max-content;
    font-family: 'D-DIN';
}

.hot-broker .top-right span {
    color: #a6a6a6;
    font-size: 1.2rem;
}
.hot-broker .top-right .score::after{
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #ffa216;
    border-radius: 3px;
    content: "";
    z-index: -1;
}

.hot-broker ul{
    padding-left: 0;
}

.pagination {  
    display: flex;  
    justify-content: center; /* 水平居中 */  
    flex-wrap: wrap; /* 换行以适配小屏幕 */  
    list-style: none;  
    padding: 1rem 0;  
    margin: 0;  
    font-family: Arial, sans-serif;  
    margin-bottom: 3rem;
    margin-top: 1rem;
}  

.page-link {  
    margin: .5rem;  
    padding: .8rem 1.6rem;  
    text-decoration: none;  
    color: #333;  
    border: .1rem solid #ddd;  
    border-radius: .5rem;  
    background-color: #f9f9f9;  
    transition: background-color 0.3s, color 0.3s; 
    font-size: 1.6rem; 
}  

.page-link:hover {  
    background-color: #ddd;  
    color: #000;  
}  

.page-link.active {  
    background-color: #001e93;  
    color: white;  
    border-color: #001e93;  
}  

@media (max-width: 992px) {
    .forex-broker-info{
        display: none;
    }
    .forex-list{
        width: 100%;
        padding: 0;
    }
    .forex-broker .container-fluid{
        padding: 6rem 4% 0rem;
    }
    .forex-list-content li .broker-logo{
        width: 11rem;
        height: 7.4rem;
        margin-right: 1.4rem;
    }
    .forex-list-content .text-content h3{
        font-size: 1.4rem;
        margin-bottom: 0rem;
    }
    .text-content .broker-info{
        font-size: 1.2rem;
    }
    .text-content span .time{
        font-size: 1.2rem;
        display: none;
    }
    .text-content .score{
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    .forex-list-content .text-content{
        padding: 0.3rem 0;
        max-width: 59%;
    }
    .forex-list-content li{
        margin-bottom: 3rem;
    }
    .forex-list-content{
        padding-bottom: 1rem;
        margin-top: 1.2rem;
    }
    .tab-container{
        padding-top: 1.6rem;
    }
    .page-link{
        margin: .3rem;
        padding: .4rem 1.2rem;
    }
}

