@unocss all;

@font-face {
    font-display: optional;
    font-family: HarmonyOS-Sans;
    src: url('../fonts/HarmonyOS-Sans.woff2') format('woff2');
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes grow {
    0% {
        background-size: 100% 100%;
    }

    100% {
        background-size: 150% 150%;
    }
}

@keyframes grow {
    0% {
        background-size: 100% 100%;
    }

    100% {
        background-size: 150% 150%;
    }
}

@media screen and (max-width: 800px) {

    input,
    textarea,
    .ivu-select {
        font-size: 16px !important;
    }
}

/* 图片懒加载占位，减少空白闪烁 */
.icefox-lazy-img:not(.is-loaded) {
    background-color: #ececec;
}

.dark .icefox-lazy-img:not(.is-loaded) {
    background-color: #3a3a3a;
}

.icefox-lazy-img.is-loaded {
    background-color: transparent;
}

/* 隐藏视频的默认控制栏 */
/* video::-webkit-media-controls {
    display:none !important;
} */

.rotate-animation {
    animation: rotate 5s linear infinite;
}

.text-color-link {
    color: #576b95;
}

.bg-color-primary {
    background-color: #f7f7f7;
}

* {
    cursor: default;
    font-family: '微软雅黑', "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

body {
    cursor: default;
    margin: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    font-family: '微软雅黑', "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

input::placeholder {
    color: #c6c6c6;
}

.hudong {
    width: 100%;
    height: 100%;
    background-image: url('../svgs/post.fun.ico.light.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f7f7f7;
    cursor: pointer;
    color: transparent;
}

.ico-back {
    width: 20px;
    height: 20px;
    background-image: url('../svgs/post.top.back.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    cursor: pointer;
    color: transparent;
}

.hudong:hover {
    background-color: #dedede;
}

.like {
    width: 18px;
    height: 18px;
    background-image: url('../svgs/post.aside.like.light.svg');
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    color: transparent;
}

.unlike {
    width: 18px;
    height: 18px;
    background-image: url('../svgs/post.aside.like.light.svg');
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    color: transparent;
}

.hudong-container {
    width: 120px;
    border-radius: 5px;
}

.hudong-like {
    width: 18px;
    height: 18px;
    background-image: url('../svgs/post.fun.btn.like.svg');
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}

.hudong-liked {
    width: 18px;
    height: 18px;
    background-image: url('../svgs/post.fun.btn.liked.svg');
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}

.hudong-comment {
    width: 18px;
    height: 18px;
    background-image: url('../svgs/post.fun.btn.comment.svg');
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}

.face {
    width: 18px;
    height: 18px;
    background-image: url('../svgs/post.comment.face.svg');
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}

.face-dark {
    width: 18px;
    height: 18px;
    background-image: url('../svgs/post.comment.face.dark.svg');
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}

.article-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #111111;
}

.dark .article-content a {
    color: #cccccc;
}

.article-content a:hover {
    cursor: pointer;
}

.article-content img {
    max-width: 100%;
}

.article-content>p {
    margin: 0;
}

.article-content>ul {
    margin: 0;
}

.article-content pre>code {
    text-wrap: wrap;
}

.multi-pictures {
    width: calc(100% - 45px);
}

.scrollload-bottom {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #333;
}

.dark .scrollload-bottom {
    color: #cccccc;
}

.comment-waiting {
    font-size: 12px;
    background-color: #e6e6e6;
    color: #999;
}

.friend-container {
    width: 32rem;
    max-height: 50%;
}

/* WebKit 浏览器滚动条样式 */
.friend-container::-webkit-scrollbar {
    width: 12px;
    /* 设置滚动条宽度 */
}

.friend-container::-webkit-scrollbar-track {
    background: #f2f2f2;
    /* 设置滚动条轨道颜色 */
}

.friend-container::-webkit-scrollbar-thumb {
    background: #888;
    /* 设置滚动条滑块颜色 */
}

.friend-container::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* 设置鼠标悬停在滚动条滑块上时的颜色 */
}

header.h-77,
header.icefox-site-header {
    position: relative;
    background-color: #323232;
    overflow: visible;
}

.icefox-header-bg-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.icefox-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    max-width: none;
}

.icefox-header-content {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow: visible;
}

.icefox-header-search {
    position: absolute;
    left: 50%;
    bottom: calc(-2.5rem + 3.75rem + 0.75rem);
    transform: translateX(-50%);
    z-index: 2;
    width: min(92%, 22rem);
    max-width: 22rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.icefox-header-profile-row {
    position: absolute;
    right: 1.5rem;
    bottom: -2.5rem;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.icefox-header-profile-desc {
    position: absolute;
    right: 1.5rem;
    bottom: calc(-2.5rem - 1.25rem);
    z-index: 2;
    max-width: min(90%, 20rem);
    text-align: right;
    pointer-events: none;
}

.icefox-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.5rem 0.45rem 0.85rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.icefox-search-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
}

.icefox-search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.icefox-search-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.icefox-search-btn svg {
    width: 16px;
    height: 16px;
}

.icefox-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

@media screen and (max-width: 679px) {
    .icefox-header-search {
        bottom: calc(-2.5rem + 3.75rem + 0.5rem);
        width: min(94%, 20rem);
    }

    .icefox-header-profile-row {
        right: 0.75rem;
    }

    .icefox-header-profile-desc {
        right: 0.75rem;
        max-width: 88%;
    }

    .icefox-header-profile-row .text-white {
        font-size: 13px;
        margin-right: 0.5rem;
    }
}

.category-sidebar {
    display: none;
}

@media screen and (min-width: 680px) {
    .main-container {
        position: relative;
    }

    .category-sidebar {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        position: absolute;
        top: calc(19.25rem - 40px - 3.75rem);
        left: calc(-5rem - 0.75rem);
        width: max-content;
        max-width: 9rem;
        gap: 0.5rem;
        z-index: 50;
    }

    .category-sidebar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 5rem;
        height: 5rem;
        border-radius: 0.625rem;
        text-decoration: none;
        color: #666;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        cursor: pointer;
        padding: 0.35rem;
        box-sizing: border-box;
        gap: 0.25rem;
    }

    .category-sidebar-icon {
        width: 2rem;
        height: 2rem;
        object-fit: contain;
        flex-shrink: 0;
    }

    .category-sidebar-label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        line-height: 1.1;
    }

    .dark .category-sidebar-item {
        color: #cccccc;
        background: rgba(50, 50, 50, 0.9);
    }

    .category-sidebar-item:hover,
    .category-sidebar-item.is-active {
        color: #576b95;
    }
}

@media screen and (max-width: 679px) {
    .category-sidebar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid #e5e5e5;
    }

    .dark .category-sidebar {
        border-bottom-color: #3a3a3a;
    }

    .category-sidebar-item {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        padding: 0.5rem 0.9rem;
        border-radius: 0.5rem;
        font-size: 14px;
        text-decoration: none;
        color: #666;
        background: #f0f0f0;
        cursor: pointer;
    }

    .category-sidebar-icon {
        width: 1.25rem;
        height: 1.25rem;
        object-fit: contain;
        flex-shrink: 0;
    }

    .category-sidebar-label {
        line-height: 1;
    }

    .dark .category-sidebar-item {
        color: #cccccc;
        background: #262626;
    }

    .category-sidebar-item:hover,
    .category-sidebar-item.is-active {
        color: #576b95;
    }
}

@media screen and (min-width: 567px) {
    .main-container {
        max-width: 567px;
    }

    .top-container {
        max-width: 567px;
    }

    .side-area {
        display: block;
    }

    .music-card {
        height: 80px;
        width: 66.66%;
    }

    .music-card-text {
        font-size: 15px;
        width: 160px;
    }

    .music-card-play-position {
        position: absolute;
        right: 20px;
        top: 20px;
    }
}

@media screen and (max-width: 567px) {
    .main-container {
        width: 100%;
        min-width: 300px;
    }

    .top-container {
        width: 100%;
        min-width: 300px;
    }

    .side-area-left {
        display: none;
    }

    .side-area {
        /*display: none;*/
        right: 1rem;
        bottom: 2rem;
    }

    .friend-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
    }

    .side-area>div {
        width: 32px;
        height: 32px;
    }

    .side-area svg {
        width: 24px;
        height: 24px;
    }

    .music-card {
        height: 60px;
        width: 75%;
    }

    .music-card-text {
        font-size: 12px;
        width: 100px;
    }

    .music-card-play-position {
        position: absolute;
        right: 12px;
        top: 12px;
    }
}