/* 夜间模式样式 */
.dark {
    background-color: #121212 !important;
    color: #f1f1f1 !important;

    .header,
    .cu-bar,
    .bg-white,
    .data-box,
    .app-grid-container,
    .scroll-articles {
        background-color: #1c1c1c !important;
        color: #f1f1f1 !important;
    }

    .section-name,
    .app-name,
    .data-box-title,
    .more {
        color: #f1f1f1 !important;
    }

    .home-search {
        background-color: #2c2c2c !important;
        color: #aaaaaa !important;
    }

    .vertical-articles {
        background-color: #121212 !important;
    }

    .app-icon,
    .icon5__item--icon {
        box-shadow: 0 0 8rpx rgba(255, 255, 255, 0.1) !important;
    }

    .section-tag {
        background-color: #333333 !important;
        color: #dddddd !important;
    }
}

.data-box-title {
    font-size: 30rpx !important;
    font-weight: bold;
}

.section-box-title {
    margin-left: 0rpx !important;
}

.left-title {
    border-left: 6px solid #000;
    margin-right: 15upx;
    border-radius: 40upx;
}

.cu-bar .action {
    align-items: stretch;
}

.more {
    font-size: 26rpx !important;
    font-weight: bold;
    color: #333;
}

.home-search {
    line-height: 80rpx;
    height: 80rpx;
    font-size: 32rpx;
    color: #9d9d9d;
    border-radius: 40rpx !important;
    font-weight: bold;
}

/* 自定义导航栏内容 end */
.image-circle {
    // padding: 95rpx;
    width: 120rpx;
    height: 120rpx;
    font-size: 40rpx;
    font-weight: 300;
    position: relative;
    box-shadow: 0rpx 4rpx 20rpx #e7e7e7;
    border-radius: 40rpx;
}

.data-box-2 {
    padding: 0;
    margin: 20upx 20upx;
    border-radius: 20upx;
    box-shadow: 0 0 50upx 0 rgba(0, 0, 0, .04);
}

.data-box-2-banner {
    padding: 0;
    margin: 20upx 0;
    border-radius: 20upx;
    box-shadow: 0 0 50upx 0 rgba(0, 0, 0, .04);
}

.data-box-2 .cu-bar {
    border-radius: 20upx;
}

.image-pic {
    background-size: cover;
    background-repeat: no-repeat;
    // background-attachment:fixed;
    background-position: top;
    border-radius: 40rpx;
}

/* 间隔线 start*/
.tn-strip-bottom {
    width: 100%;
    border-bottom: 1rpx solid rgba(241, 241, 241, 0.8);
}

/* 间隔线 end*/
.header-icon {
    font-size: 36rpx;
}

.bq-box {
    padding: 10rpx 40rpx;
    background-color: #c9edff;
    color: #3ca9c9;
    margin: 30rpx 10rpx 0rpx 10rpx;
}

.down-button {
    border-radius: 40rpx;
    background-color: #3cc9a4;
    padding: 10rpx 20rpx;
    color: white;
    font-size: 24rpx;
}

.icon5__item--icon {
    width: 62rpx;
    height: 62rpx;
    margin-bottom: 10rpx;
}

.icon5__item--icon-2 {
    width: 90rpx;
    height: 90rpx;
    margin-bottom: 10rpx;
}

.app-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0rpx;
}

.app-box-body {
    flex: 1;
    display: flex;
    margin-right: 20rpx;
    min-width: 0; // 防止flex子元素溢出
    align-items: center;
}

.app-box-logo {
    width: 110rpx;
    height: 110rpx;
    flex-shrink: 0; // 防止图片缩小
}

.app-box-content {
    flex: 1;
    margin-left: 20rpx;
    min-width: 0; // 防止flex子元素溢出
}

.app-box-title {
    font-size: 30rpx;
    font-weight: bold;
    margin-bottom: 8rpx;
    width: 400rpx; // 限制标题宽度
}

.app-box-down {
    background-color: #3cc9a4;
    color: #fff;
    padding: 10rpx 30rpx;
    border-radius: 100rpx;
}

.app-box-tag {

    color: #fff;
    padding: 6rpx 6rpx;
    border-radius: 10rpx;
    font-size: 24rpx;
    margin-right: 10rpx;
}

.text-cut {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.app-box-info {
    font-size: 26rpx;
    color: #666;
    margin-bottom: 8rpx;

    text {
        margin-right: 10rpx;
    }
}

.app-box-down {
    background-color: #3cc9a4;
    color: #fff;
    padding: 10rpx 30rpx;
    border-radius: 100rpx;
    white-space: nowrap; // 防止文字换行
}

.app-tag-1 {
    background-color: deepskyblue;
}

.app-tag-2 {
    background-color: #57d1b1;
}

.app-box-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 28rpx;
}

.app-tag {
    padding: 4rpx 12rpx;
    border-radius: 8rpx;
    color: #ffffff;
    margin-right: 12rpx;
    font-size: 24rpx;
}

.app-category-tag {
    padding: 4rpx 12rpx;
    border-radius: 8rpx;
    background-color: #f5f5f5;
    color: #666666;
    margin-right: 12rpx;
    font-size: 24rpx;
}

/* 筛选栏样式 */
.filter-bar {
    display: flex;
    padding: 20rpx;
    border-bottom: 1px solid #f5f5f5;
}

.filter-item {
    flex: 1;
    text-align: center;
    font-size: 28rpx;
    color: #333;
}

.filter-item .cuIcon-unfold {
    margin-left: 4rpx;
    font-size: 24rpx;
    color: #999;
}

/* 筛选弹窗样式 */
.filter-popup {
    background: #fff;
    padding: 30rpx;
    border-radius: 20rpx 20rpx 0 0;
}

.filter-title {
    font-size: 32rpx;
    font-weight: bold;
    margin-bottom: 30rpx;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
}


.filter-option {
    width: 160rpx;
    height: 60rpx;
    line-height: 60rpx;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 30rpx;
    margin: 0 20rpx 20rpx 0;
    font-size: 28rpx;
}

.filter-option.active {
    background: #3cc9a4;
    color: #fff;
    border-color: #3cc9a4;
}

.filter-buttons {
    display: flex;
    margin-top: 40rpx;
}

.btn-reset,
.btn-confirm {
    flex: 1;
    height: 80rpx;
    line-height: 80rpx;
    text-align: center;
    border-radius: 40rpx;
    margin: 0 20rpx;
    font-size: 30rpx;
}

.btn-reset {
    background: #f5f5f5;
    color: #666;
}

.btn-confirm {
    background: #3cc9a4;
    color: #fff;
}

.text-title-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}


/* 添加加载动画相关样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40rpx 0;

    .loading-text {
        font-size: 26rpx;
        color: #909399;
        margin-top: 20rpx;
    }
}

.custom-swiper {
    height: 360rpx;
    margin: 20rpx;
    border-radius: 32rpx;
    overflow: hidden;

    .swiper-item {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 32rpx;
        overflow: hidden;

        // 背景图层
        .swiper-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            border-radius: 32rpx;

            // 背景图片
            .bg-image {
                position: absolute;
                top: -20%;
                left: -20%;
                width: 140%;
                height: 140%;
                filter: blur(5px);
                transform: scale(1.5);
                opacity: 0.8;
            }

            // 渐变遮罩
            .dark-overlay {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.6) 100%);
                border-radius: 32rpx;
                backdrop-filter: blur(5px);
            }
        }

        // 内容层
        .swiper-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 40rpx;
            z-index: 1;

            .app-info {
                display: flex;
                align-items: center;

                .app-icon {
                    width: 120rpx;
                    height: 120rpx;
                    border-radius: 24rpx;
                    box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.3);
                }

                .app-text {
                    margin-left: 24rpx;

                    .app-name {
                        display: block;
                        font-size: 32rpx;
                        font-weight: bold;
                        color: #ffffff;
                        margin-bottom: 8rpx;
                        text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.4);
                    }

                    .app-rating {
                        display: flex;
                        align-items: center;
                        margin-bottom: 8rpx;

                        .score {
                            color: #ffffff;
                            font-size: 28rpx;
                            margin-right: 8rpx;
                            text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
                        }

                        .star {
                            color: rgba(255, 255, 255, 0.5);
                            font-size: 28rpx;

                            &.active {
                                color: #ffd700;
                                text-shadow: 0 2rpx 8rpx rgba(255, 215, 0, 0.4);
                            }
                        }
                    }

                    .app-desc {
                        display: block;
                        font-size: 24rpx;
                        color: rgba(255, 255, 255, 0.8);
                        width: 400rpx;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        text-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.2);
                    }
                }
            }
        }
    }
}

// 指示点样式
::v-deep .uni-swiper-dots {
    bottom: 24rpx;

    .uni-swiper-dot {
        width: 6rpx;
        height: 6rpx;
        border-radius: 3rpx;
        margin: 0 4rpx;
        background: rgba(255, 255, 255, 0.4);
        transition: all 0.3s ease;

        &.uni-swiper-dot-active {
            width: 18rpx;
            background: #ffffff;
            box-shadow: 0 0 4rpx rgba(255, 255, 255, 0.4);
        }
    }

}

.bg-h {
    background-color: #f3f3f3 !important;
}

.icon-grid-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10rpx 0;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 750rpx;
}

.icon-item {
    width: calc(100% / 5);
    box-sizing: border-box;
    padding: 10rpx;
}
.horizontal-articles{
    margin-top: 0rpx !important;
}
/* 首页精选圈子样式优化 */
.home-recommend-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20rpx 0 0 0;
    background-color: #fff;
}

.home-recommend-item {
    width: 25%;
    padding: 0 10upx;
    margin-bottom: 30upx;
    box-sizing: border-box;
}

.home-recommend-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-recommend-avatar-container {
    width: 120upx;
    height: 120upx;
    margin-bottom: 15upx;
    position: relative;
}

.home-recommend-avatar {
    width: 100%;
    height: 100%;
    border-radius: 40upx;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4upx 20upx rgba(231, 231, 231, 0.6);
}

.home-recommend-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 40upx;
    background: linear-gradient(135deg, #3cc9a4, #2ba085);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4upx 20upx rgba(60, 201, 164, 0.3);
}

.home-placeholder-text {
    color: #ffffff;
    font-size: 40upx;
    font-weight: bold;
}

.home-recommend-name {
    font-size: 28upx;
    color: #333;
    margin-bottom: 8upx;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
}

.home-recommend-count {
    font-size: 22upx;
    color: #999;
}

/* 夜间模式下的精选圈子样式 */
.dark .home-recommend-name {
    color: #f1f1f1 !important;
}

.dark .home-recommend-count {
    color: #aaaaaa !important;
}

.scroll-articles-padding {
    padding: 10rpx 0 10rpx 20rpx;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 30rpx;
    font-weight: bold;
    margin-bottom: 20rpx;
}

.section-title .more {
    font-size: 24rpx;
    color: #666;
    font-weight: normal;
}

.scroll-articles {
    width: 100%;
    white-space: nowrap;
}

.scroll-articles-content {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
}

.article-card-item {
    display: inline-block;
    white-space: normal;
}

.scroll-articles::-webkit-scrollbar {
    display: none;
}

/* 纵向文章卡片样式 */
.vertical-articles {
    margin-top: 0rpx !important;
}

.vertical-articles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10rpx 20rpx;
}

.article-grid-item {
    width: 48%;
    margin-bottom: 20rpx;
}

.section-box-title {
    background-color: #fff !important;
}

/* 修改大尺寸卡片在网格布局下的宽度 */
.article-grid-item .article-card.card-size-large,
.article-grid-item .post-card.card-size-large {
    width: 100% !important;
    margin-right: 0;
}

.article-grid-item .article-card.card-size-large .article-cover,
.article-grid-item .post-card.card-size-large .post-cover {
    height: 240rpx;
}

.article-grid-item .article-title.title-size-large,
.article-grid-item .post-title.title-size-large {
    height: auto;
    min-height: 90rpx;
    -webkit-line-clamp: 3;
    font-size: 30rpx;
}

/* 夜间模式全局样式 */
.dark {
    background-color: #1c1c1c;
}

/* 应用卡片夜间样式 */
.dark .article-card,
.dark .post-card {
    background-color: #2c2c2c !important;
    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.5) !important;
}

/* #ifndef MP-WEIXIN */
.dark .article-title,
.dark .post-title,
.dark .user-name,
.dark .tn-text-ellipsis {
    color: #f1f1f1 !important;
}

/* #endif */

.dark .info-item,
.time-text {
    color: #aaaaaa !important;
}

.dark .down-button {
    background-color: #454545 !important;
}

/* 夜间模式下的section-tag样式覆盖 */
.dark .section-tag {
    background-color: #3b3b3b !important;
    color: #dddddd !important;
}

.shop-list-single {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 20rpx;
}