/*
 *-------------------------------------------------------------------------------
 * 标准卡片式布局 start 
 * 
 *-------------------------------------------------------------------------------
*/
/* 卡片容器 - 自适应网格 */
.mi-post-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 核心卡片 - 玻璃拟物风格 */
.mi-post-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index) * 0.1s);
}

/* 卡片悬浮交互 */
.mi-post-card:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 255, 255, 1);
}

/* 图片容器 */
.mi-post-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    margin: 12px;
    flex-shrink: 0;
}

/* 精选标签 */
.mi-post-tag-featured {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 2;
}

.mi-indexPost-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: #e53e3e;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
}

.mi-indexPost-badge-featured {
    background-color: #67c23a;
}

.mi-post-payType span {
    position: relative;
    left: 0;
    bottom: 0;
    color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    padding: 10px 5px;
    line-height: 0;
    z-index: 3;

}

/* 卡片图片 */
.mi-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: contrast(1.02) brightness(1.05);
}

.mi-post-card:hover .mi-post-img {
    transform: scale(1.03);
    filter: contrast(1) brightness(0.98);
}

/* 图片悬浮层 */
.mi-post-img-layer {
    position: absolute;
    inset: -1px 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.mi-post-img-wrap:hover .mi-post-img-layer {
    opacity: 1;
}
.mi-indexPost-thumb:hover .mi-post-img-layer {
    opacity: 1;
}

/* 查看按钮 */
.mi-post-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mi-post-btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 卡片内容区 */
.mi-post-content {
    padding: 0 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 标签组 */
.mi-post-tag-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mi-post-payType {
    display: flex;
    align-items: center;
}

/* 分类标签 */
.mi-post-tag-cate {
    font-size: 12px;
    color: #0000009e;
    border-radius: 4px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    display: inline-block;
    padding-left: 10px;
    margin-right: 5px;
}

.mi-post-tag-cate::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 6px;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: transparent;
}

.mi-post-tag-cate:nth-of-type(1)::before {
    background-color: #67c23a;
}

.mi-post-tag-cate:nth-of-type(2)::before {
    background-color: #ef9c1ffa;
}

.mi-post-tag-cate:nth-of-type(2) {
    color: #ef9c1ffa;
}

.mi-post-tag-cate:nth-of-type(3)::before {
    background-color: #eb526e;
}

.mi-post-tag-cate:nth-of-type(3) {
    color: #67c23a;
}

.mi-indexPost-jiaobiao svg {
    width: 1em;
    height: 1em;
    font-size: 16px;
}

/* 付费标签 */
.mi-post-tag-pay {
    font-size: 12px;
    color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    margin-right: 5px;
}
.mi-export-pdf{
    display: flex;
    justify-content: right;
    align-items: center;
}
/* 卡片标题 */
.mi-post-title {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}
.mi-export-pdf button:first-child{
    background-color: #67c23a00;
    padding: 6px 10px;
}
.mi-export-pdf button:last-child{
    background-color: #67c23a00;
    border: 1px solid #30313366;
    padding: 6px 10px; 
}
/* 卡片描述 */
.mi-post-desc {
    font-size: 12px;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    line-height: 1.8;
}

/* 卡片底部 */
.mi-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: auto;
}

/* 用户信息 */
.mi-post-user {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mi-post-avatar {
    width: 25px;
    height: 25px;
    object-fit: cover;
}

.mi-post-username {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
}

/* 统计信息 */
.mi-post-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.mi-post-stat-item {
    display: flex;
    align-items: center;
    gap: 2px;
}

/*
 *-------------------------------------------------------------------------------
 * 标准卡片式布局 end
 * 
 *-------------------------------------------------------------------------------
*/
/*
 *-------------------------------------------------------------------------------
 * 图片卡片式布局 start 
 * 
 *-------------------------------------------------------------------------------
*/
/* 容器样式 - 宽度1200px，居中，grid布局一排5个卡片 */
.mi-post-material-container {
    width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
}

/* 卡片基础样式 */
.mi-post-material-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); */
    background-color: #fff;
    /* transition: all 0.3s ease; */
    cursor: pointer;
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index) * 0.1s);
}

/* 卡片hover整体阴影增强 */
/* .mi-post-material-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
} */

/* 卡片图片容器 - 磨玻璃仅作用于图片区域 */
.mi-post-material-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

/* 磨玻璃遮罩层 - 仅覆盖图片，hover时显示 */
.mi-post-material-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 磨玻璃背景：渐变半透明白色，增强质感 */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    /* 磨玻璃在图片上方，其他元素下方 */
}

/* hover卡片时，图片的磨玻璃显示 */
.mi-post-material-item:hover .mi-post-material-img::before {
    opacity: 1;
}

/* 卡片图片样式 */
.mi-post-material-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
    /* 图片在最底层 */
}

/* hover时图片缩放 */
.mi-post-material-item:hover .mi-post-material-img img {
    transform: scale(1.05);
}

/* 立即查看按钮 - 移除背景色，仅保留边框 */
.mi-post-material-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 12px;
    /* 移除背景色 */
    /* 文字改为白色更醒目 */
    border: 1px solid #fff;
    /* 加白色边框 */
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    /* 统一过渡效果 */
    z-index: 3;
    color: #888;
    background-color: #fff;
}

.mi-post-material-item:hover .mi-post-material-btn {
    opacity: 1;
}

/* 支付信息栏 - 默认隐藏，hover时显示（与原逻辑对调） */
.mi-post-material-pay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    color: #fff;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 2;
    /* 高于磨玻璃 */
    transform: translateY(100%);
    /* 默认隐藏 */
}

.mi-post-material-item:hover .mi-post-material-pay {
    transform: translateY(0);
    /* hover时显示 */
}

.mi-post-material-pay-type {
    display: flex;
    align-items: center;
}

.mi-indexPost-4 .mi-post-material-pay-type,
.mi-indexPost-4 .mi-post-material-pay-price {
    /* color: #fff;
    background-color: #faad14; */
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 5px;
    color: #8a734c;
    background-color: #f5e8c7;
}

.mi-indexPost-4 .mi-post-material-py {
    top: 10px;
    position: absolute;
    z-index: 3;
    right: 10px;
    display: flex;
}

.mi-post-material-pay-type span {
    margin-right: 4px;
    color: #fff;
}

.mi-indexPost-4 .mi-post-tag-cate {
    color: #ffff;
    background-color: #00000078;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px 5px;
    border-radius: 4px;
    padding-left: 20px;
}

.mi-indexPost-4 .mi-post-tag-cate::before {
    left: 6px;
    top: 9px;
}

.mi-post-material-pay-price {
    color: #ffd100;
}

/* 文章信息栏 - 默认显示，hover时隐藏（与原逻辑对调） */
.mi-post-material-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 12px;
    /* 独立的渐变背景，与磨玻璃区分 */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    transition: transform 0.3s ease;
    z-index: 2;
    /* 高于磨玻璃 */
    transform: translateY(0);
    /* 默认显示 */
}

.mi-post-material-item:hover .mi-post-material-info {
    transform: translateY(100%);
    /* hover时隐藏 */
}

/* 文章标题 */
.mi-post-material-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

/* 信息栏底部（用户信息+统计数） */
.mi-post-material-info-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* 用户信息容器 */
.mi-post-material-user {
    display: flex;
    align-items: center;
}

.mi-post-material-user a {
    display: flex;
    align-items: center;
}

/* 用户头像 */
.mi-post-material-avatar {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    object-fit: cover;
    border: 2px solid #fff;
}

/* 用户名 */
.mi-post-material-username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    color: #fff;
}

/* 统计数容器 - 整体紧凑 */
.mi-post-material-stats {
    display: flex;
    align-items: center;
}

/* 统计项样式 - 仅保留两个，间距更紧凑 */
.mi-post-material-stats span {
    margin-left: 8px;
    /* 适配两个统计项的间距 */
    display: flex;
    align-items: center;
    padding: 0 1px;
    color: #fff;
}

.mi-indexPost-downloads i {
    font-size: 12px;
    margin-right: 2px;
}

/*
 *-------------------------------------------------------------------------------
 * 图片卡片式布局 end 
 * 
 *-------------------------------------------------------------------------------
*/
.waterfall-column .mi-post-card {
    margin-bottom: 10px;
}

.waterfall-column .mi-post-title {
    overflow: visible;
    white-space: normal;
}

.mi-indexPost-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 不同资源类型的颜色区分 */
.mi-indexPost-Pay-price.badge-free {
    background-color: #4CAF50;
}

.mi-indexPost-Pay-price.badge-login {
    background-color: #2196F3;
}

.mi-indexPost-Pay-price.badge-comment {
    background-color: #FF9800;
}

.mi-indexPost-Pay-price.badge-credit {
    background-color: #F44336;
}

.mi-indexPost-Pay-price.badge-money {
    background-color: #F44336;
}

.mi-indexPost-Pay-price.badge-grade {
    background-color: #00BCD4;
}

/* 图标和文本排版 */
.mi-indexPost-Pay-price .iconfont {
    margin-right: 4px;
}

.mi-indexPost-author a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 5px;
}

.mi-indexPost-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
    margin-bottom: 8px;
}

/* 筛选骨架屏基础样式 */
.mi-filter-skeleton {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    background-color: #fff;
}

.mi-filter-skeleton-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.mi-filter-skeleton-section:last-child {
    margin-bottom: 0;
}

/* 骨架屏动画：渐变闪烁 */
.mi-filter-skeleton-title,
.mi-filter-skeleton-option,
.mi-filter-skeleton-result {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: mi-skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes mi-skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 筛选标题骨架 */
.mi-filter-skeleton-title {
    width: 60px;
    height: 18px;
    flex-shrink: 0;
}

/* 筛选选项容器 */
.mi-filter-skeleton-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 筛选按钮骨架 */
.mi-filter-skeleton-option {
    width: 60px;
    height: 20px;
}

/* 结果计数骨架 */
.mi-filter-skeleton-result {
    width: 120px;
    height: 16px;
    margin-top: 8px;
}

/* 文章骨架屏基础样式 */
.mi-category-skeleton {
    position: relative;
    overflow: hidden;
    background-color: #f2f2f2;
    border-radius: 8px;
}

.mi-category-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: skeleton-pulse 1.5s infinite linear;
}

@keyframes skeleton-pulse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* 卡片骨架屏 */
.mi-category-post-skeleton {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 12px;
    height: 100%;
}

.mi-category-skeleton-tag {
    width: 40%;
    height: 16px;
    border-radius: 4px;
}

.mi-category-skeleton-title {
    width: 80%;
    height: 18px;
    border-radius: 4px;
}

.mi-category-skeleton-desc {
    width: 100%;
    height: 36px;
    border-radius: 4px;
}

.mi-category-skeleton-footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.mi-category-skeleton-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.mi-category-skeleton-stats {
    width: 60px;
    height: 16px;
    border-radius: 4px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*
 *-------------------------------------------------------------------------------
 * tag页面 start
 * 
 *-------------------------------------------------------------------------------
*/
.mi-tag-top {
    margin-bottom: 10px;
    position: relative;
}
.mi-tag-top img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.mi-tagName {
    position: absolute;
    bottom: 10px;
    left: 20px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.mi-tagName span {
    font-size: 14px;
    font-weight: normal;
    margin-left: 10px;
}
.mi-tagName span i {
    margin: 0 10px;
}

.mi-tagPost {
    display: flex;
}

.mi-page-tag-banner {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    position: relative;
}
.mi-page-tag-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.mi-page-tag-banner:hover img {
    transform: scale(1.02);
}
.mi-page-tag-banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    width: 100%;
    padding: 0 20px;
    letter-spacing: 0.5px; 
}
.mi-page-tag-banner-title {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #fff;
}
.mi-page-tag-banner-count {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #fff;
}
.mi-page-tag-list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}
.mi-page-tag-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 7px 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mi-page-tag-item:hover {
    transform: none;
    box-shadow: 2px 8px 20px rgba(0, 0, 0, 0.08);
}
.mi-page-tag-item a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.mi-page-tag-item-img {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 10px;
    background: linear-gradient(135deg, #e8f4f8, #f0f8fb);
}

.mi-page-tag-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mi-page-tag-item-content {
    flex: 1;
}
.mi-page-tag-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #8a734c;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mi-page-tag-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f5e8c7;
    color: #8a734c;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 17px;
    border-radius: 0px 0px 0 23px;
    min-width: 30px;
    text-align: center;
    box-shadow: none;

}
.mi-page-tag-badge b{
    color: #8a734c;
    margin-left: 2px;
}
/*
 *-------------------------------------------------------------------------------
 * tag页面 end
 * 
 *-------------------------------------------------------------------------------
*/
