.filter-section {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
    padding: 10px 0;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-title {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin: 5px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.category-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    gap: 10px;
}

.category-item {
    position: relative;
    overflow: hidden;
}

.category-item.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 100, 200, 0.9);
    transform: translateX(-50%);
}

.category-item, .content-type-item {
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 20px;
    background-color: var(--btn-bg);
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover, .content-type-item:hover {
    background-color: var(--btn-hover);
}

.category-item.active, .content-type-item.active {
    background-color: rgba(0, 100, 200, 0.9);
    color: white;
}

/* 调整瀑布流容器的上边距，适应新的导航栏高度 */
#waterfall {
    margin-top: 140px;
    transition: margin-top 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #waterfall {
        margin-top: 160px;
    }
    
    .category-nav, .content-type-nav {
        flex-wrap: wrap;
    }
    
    .category-item, .content-type-item {
        padding: 8px 16px;
        margin: 5px;
        font-size: 14px;
    }
}

:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --loader-color: #ed5565;
    --btn-bg: #3d3d3d;
    --btn-hover: #4d4d4d;
}

html {
    background-color: var(--bg-color);
}

body {
    font-family: "helvetica neue", arial, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    overflow-x: hidden;
}

#waterfall {
    position: relative;
    min-height: 500px;
    margin: 16px auto 0;
    background-color: var(--bg-color);
}

.pin {
    position: absolute;
    width: 380px;
    font-size: 12px;
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    opacity: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

.pin.show {
    opacity: 1;
}

.pin img {
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}



/* 精确的图片悬停效果 */
.pin.show img:hover {
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.pin.show img:hover ~ .icon-container {
    background-color: rgba(0, 100, 200, 0.9);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.pin.show img:hover ~ .icon-container i {
    opacity: 1;
    transform: scale(1.1);
}

.description {
    display: block;
    padding: 0 16px;
    margin: 12px 0 8px 0;
    font-size: 14px;
    line-height: 1.5em;
    overflow: hidden;
    word-wrap: break-word;
    color: var(--text-color);
    font-weight: bold;
}

.intro {
    display: block;
    padding: 0 16px;
    margin: 0 0 12px 0;
    font-size: 12px;
    line-height: 1.4em;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

.icon-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: rgba(211, 211, 211, 0.7);
    border-radius: 50%;
    padding: 2px;
    pointer-events: none; /* 禁用整个容器的交互 */
}

.icon-container i {
    color: white;
    font-size: 12px;
    opacity: 0.9;
}

/* 视频图标特定样式 */
.icon-container .fa-video {
    font-size: 11px;
}

/* 音频图标特定样式 */
.icon-container .fa-music {
    font-size: 11px;
}


.loader {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    height: 200px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-gif {
    max-height: 100%;
    max-width: 100%;
}

@-webkit-keyframes line-spin-fade-loader {
    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

@keyframes line-spin-fade-loader {
    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.line-spin-fade-loader {
    position: relative;
}

.line-spin-fade-loader>div:nth-child(1) {
    top: 20px;
    left: 0;
    -webkit-animation: line-spin-fade-loader 1.2s 0.12s infinite ease-in-out;
    animation: line-spin-fade-loader 1.2s 0.12s infinite ease-in-out;
}

.line-spin-fade-loader>div:nth-child(2) {
    top: 13.63636px;
    left: 13.63636px;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: line-spin-fade-loader 1.2s 0.24s infinite ease-in-out;
    animation: line-spin-fade-loader 1.2s 0.24s infinite ease-in-out;
}

.line-spin-fade-loader>div:nth-child(3) {
    top: 0;
    left: 20px;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    -webkit-animation: line-spin-fade-loader 1.2s 0.36s infinite ease-in-out;
    animation: line-spin-fade-loader 1.2s 0.36s infinite ease-in-out;
}

.line-spin-fade-loader>div:nth-child(4) {
    top: -13.63636px;
    left: 13.63636px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-animation: line-spin-fade-loader 1.2s 0.48s infinite ease-in-out;
    animation: line-spin-fade-loader 1.2s 0.48s infinite ease-in-out;
}

.line-spin-fade-loader>div:nth-child(5) {
    top: -20px;
    left: 0;
    -webkit-animation: line-spin-fade-loader 1.2s 0.6s infinite ease-in-out;
    animation: line-spin-fade-loader 1.2s 0.6s infinite ease-in-out;
}

.line-spin-fade-loader>div:nth-child(6) {
    top: -13.63636px;
    left: -13.63636px;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: line-spin-fade-loader 1.2s 0.72s infinite ease-in-out;
    animation: line-spin-fade-loader 1.2s 0.72s infinite ease-in-out;
}

.line-spin-fade-loader>div:nth-child(7) {
    top: 0;
    left: -20px;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    -webkit-animation: line-spin-fade-loader 1.2s 0.84s infinite ease-in-out;
    animation: line-spin-fade-loader 1.2s 0.84s infinite ease-in-out;
}

.line-spin-fade-loader>div:nth-child(8) {
    top: 13.63636px;
    left: -13.63636px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-animation: line-spin-fade-loader 1.2s 0.96s infinite ease-in-out;
    animation: line-spin-fade-loader 1.2s 0.96s infinite ease-in-out;
}

.line-spin-fade-loader>div {
    background-color: var(--loader-color);
    width: 4px;
    height: 35px;
    border-radius: 2px;
    margin: 2px;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    position: absolute;
    width: 5px;
    height: 15px;
}

/* 分享行样式 */
.share-row {
    padding: 0 16px;
    margin: 10px 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.share-btn, .download-btn, .like-btn {
    background-color: var(--btn-bg);
    color: var(--text-color);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover, .download-btn:hover, .like-btn:hover {
    background-color: var(--btn-hover);
}

.share-btn i, .download-btn i, .like-btn i {
    font-size: 14px;
    color: var(--text-color);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* 分享弹窗样式 */
.share-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.share-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 30%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.share-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
}

.share-close {
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.share-close:hover {
    color: #ccc;
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.share-platform:hover {
    background-color: var(--btn-hover);
    transform: translateY(-3px);
}

.share-platform i {
    font-size: 24px;
    margin-bottom: 8px;
}

.share-platform span {
    font-size: 12px;
    text-align: center;
}

/* 点赞按钮激活状态 */
.like-btn.active i {
    color: #ff4757;
    transform: scale(1.2);
}

.like-btn.active {
    background-color: rgba(255, 71, 87, 0.2);
}

/* 点赞动画效果 */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.like-btn.animate i {
    animation: heartBeat 1s;
}

/* 各平台特定颜色 */
#share-twitter i {
    color: #1DA1F2;
}

#share-facebook i {
    color: #4267B2;
}

#share-wechat i {
    color: #07C160;
}

#share-weibo i {
    color: #E6162D;
}

#share-linkedin i {
    color: #0A66C2;
}

#share-copy i {
    color: #FFC107;
}

/* 复制成功提示 */
.copy-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-tooltip.show {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .share-platforms {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-container {
        width: 95%;
        padding: 15px;
    }
}