/* 以下为 main */

/* 这个实现源自于 https://www.bilibili.com/video/BV1Dc41147sW 的解析，太强了，复刻一下 */
/* 但其实这个方案有一个问题，若鼠标在动画结束前移出 a 标签，动画会被打断，观感非常割裂。我尚在研究如何解决这个问题 */
.main__content_text--link {
    font-weight: 400;
    transition: background-size 0.5s ease-in-out, font-weight 0.25s ease-in-out;
}
.main__content_text--link:hover {
    background-size: 100% 2px;
    background-position-x: left;
    font-weight: 800;
}
.main__content_text--link::after {
    content: '';
    display: inline-block;
    font-size: 15px;
    position: relative;
    transform: translate(-5%, 25%);
    width: 20px;
    height: 20px;
    background: url("/assets/link.svg") no-repeat center/contain;
    transition: transform 0.25s ease-in-out;
}
.main__content_text--link:hover::after {
    transform: translate(10%, 10%);
}
.main__content_frilinks {
    box-sizing: content-box;/* 局部强制修改全局生效的 border-box 值 */
    display: flex;
    padding: 16px 0px;
    gap: 16px;
    flex-wrap: wrap;
}
.main__content_fricard {
    display: flex;
    padding: 16px;
    height: -moz-max-content;
    height: max-content;
    width: 100%;
    max-width: 384px;
    word-break: break-all;
}
.main__content_fricard::before {
    content: '';
    position: absolute;
    background-color: rgb(80, 80, 80);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.25s ease-in-out;
}
.main__content_fricard:hover::before {
    opacity: 0.25;
}
.main__content_fricard-avatar {
    box-sizing: content-box;/* 局部强制修改全局生效的 border-box 值 */
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    z-index: 2;
}
.main__content_fricard-info {
    display: inline-block;
    text-decoration: none;
    padding-left: 16px;
    z-index: 2;
}
.main__content_fricard-info--title {
    display: inline-block;
    color: #141c1f;
    text-shadow:
        1px 1px 2px #d3e0e0,
        -1px -1px 2px #d3e0e0,
        1px -1px 2px #d3e0e0,
        -1px 1px 2px #d3e0e0;
    font-size: 18px;
    font-weight: 600;
}
.main__content_fricard-info--text {
    display: inline-block;
    width: 100%;
    color: #d3e0e0;
    text-shadow:
        1px 1px 2px #141c1f,
        -1px -1px 2px #141c1f,
        1px -1px 2px #141c1f,
        -1px 1px 2px #141c1f;
    font-size: 14px;
}
.main__content_fricard--lucasandrew {
    display: flex;
    align-items: center;
    height: auto;
    border: 1px solid #333;
    overflow: hidden; /* 确保伪元素不会超出 r 角 */
    position: relative; /* 伪元素定位 */
    background:url("https://lris625.top/img/background2.jpg") no-repeat center/cover;
    background-position: 65% 45%;
    border-radius: 10px;
}
.main__content_container ul {
    border: 1px solid #333;
    font-size: 16px;
    border-radius: 10px;
    background-color: rgba(80, 80, 80, 0.6);
    color: #d3e0e0;
    line-height: 30px;
    list-style: inside;
    padding: 10px 10px 10px 20px;
}
.main__content_container ul li {
    word-break: break-all;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .main__content_fricard {
        padding: 12px;
    }
    .main__content_fricard-info {
        padding-left: 8px;
    }
}