/* 友情链接 */
ul,li{
    list-style: none;
}
a{
    text-decoration: none;
}
.friend-link {
    background-color: #2c3134;
}

.fri-main {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
}

.fri-ul {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    /* animation: marquee 30s linear infinite; */
}

.fri-ul::after {
    content: "";
    display: inline-block;
    width: 100%;
}

.fri-li {
    flex-shrink: 0;
    /* 禁止收缩 */
}

/* 关键帧动画（向左滚动） */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 15px));
    }

    /* 15px为链接项间距 */
}

/* 悬停暂停动画 */
.fri-ul:hover {
    animation-play-state: paused;
}

/* 其他基础样式（保持原有视觉风格） */
.fri-name {
    font-size: 18px;
    padding-top: 20px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 15px;
}

.fri-li a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.fri-li a:hover {
    color: #f26602;
}

/* 适配版心内的滚动容器宽度 */
@media (max-width: 1180px) {
    .fri-ul {
        width: calc(200% + 30px);
    }
}

@media (max-width: 768px) {
    .fri-ul {
        width: calc(300% + 45px);
    }
}