/* 友情链接*/
.friends {
    flex-direction: column;
}

.friends-list {
    display: flex;
    width: 100%;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0;
    margin: 30px 0;
}

.friends-list a {
    width: calc(33% - 15px);
    height: 100px;
    background-color: var(--color0);
    color: var(--color1);
    border-radius: var(--borer_radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
}

.friends-list a:hover {
    background: var(--theme_color);
    color: #fff;
}

.friends-list a div {
    width: calc(100% - 120px);
}

.friends-list a::before {
    content: '';
}

.friends-list a img {
    width: 60px;
    height: 60px;
    margin: 0;
    border-radius: 50%;
}

.friends-list a p:nth-child(1) {
    border: none;
    font-size: 15px;
    margin: 0;
}

.friends-list a p {
    font-size: 13px;
    text-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 1200px) {
    .friends {
        padding: 0  0%;
    }

    .friends-list a {
        width: calc(50% - 15px);
    }
}

@media (max-width: 800px) {
    .friends-list a {
        width: calc(100% - 0px);
    }
}

/* 友情链接*/

/* 相册*/
.photos-list {
    width: 100%;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.photos-list .img_container {
    width: calc(33.333% - 35px);
    height: 200px;
    margin: 0;
    max-width: none;
    max-height: none;
    flex-grow: 0;
    position: relative;
}

@media (max-width: 1200px) {
    .photos-list .img_container {
        width: calc(50% - 10px);
    }

    .photos-list {
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .photos-list .img_container {
        width: 100%;
    }

    .photos-list {
        gap: 20px;
    }
}

.photos-list .img_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photos-list .img_container .photo_text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s var(--transition);
}

.photos-list .img_container:hover .photo_text {
    opacity: 1;
}

/* 相册*/
/*  分类tab */
.category_card {
    width: 100%;
    height: 80px;
    padding: 20px;
    background-color: var(--color0);
    border: 1px solid var(--border);
    border-radius: var(--borer_radius);
    position: relative;
    display: flex;
    align-items: center;
    overflow: auto;
    gap: 20px;
}

.category_card .item {
    height: 40px;
    padding: 0 20px;
    border-radius: 30px;
    background: var(--theme_color_10);
    font-size: 0.9rem;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.category_card .item.active {
    background: var(--theme_color);
    color: #fff;
}

/*  标签tab */
.tags_card {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    background-color: var(--color0);
    border: 1px solid var(--border);
    border-radius: var(--borer_radius);
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tags_card .item {
    height: 35px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--theme_color_10);
    font-size: 0.8rem;
    display: flex;
    flex-shrink: 0;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.tags_card .item.active {
    background: var(--theme_color);
    color: #fff;
}

.tags_card .item .count {
    height: 50%;
    padding: 9px;
    background: var(--theme_color_10);
    display: flex;
    align-items: center;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    justify-content: center;
}

/* 搜索卡片 */
.search_card {
    width: 100%;
    height: 180px;
    padding: 20px;
    background-color: var(--color0);
    border: 1px solid var(--border);
    border-radius: var(--borer_radius);
    position: relative;
    margin-bottom: 20px;
}

.search_card h1 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.search_card h1 svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: var(--color1);
    margin-right: 10px;
}

.search_card .buttons {
    position: absolute;
    right: 40px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.search_card .button {
    width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background-color: var(--color0);
    border-radius: 10px;
    ;
}

/* 搜索卡片 */
/* 404页面 */
.page404 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 25px;
    padding-top: 50px;
}

.page404 h1:nth-child(1) {
    width: fit-content;
    font-size: 8rem;
}

.page404 h1:nth-child(2) {
    width: fit-content;
    font-size: 2rem;
}

.page404 .button404 {
    width: 100px;
    height: 50px;
    border-radius: 10px;
    background: #4b4c4dab;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background 0.3s var(--transition);
    justify-content: center;
}

.page404 .button404:hover {
    background: var(--theme_color);
}



@media (max-width: 1200px) {
    .tags_card .item .count {
        display: none;
    }

}