/*
 *-------------------------------------------------------------------------------
 * 标准卡片式布局 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);
}

/* 卡片悬浮交互 */
.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: 2px 6px;
    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: 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-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-post-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

/* 卡片描述 */
.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: 60px;
}

/* 统计信息 */
.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;
}

/* 卡片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;
    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-post-material-pay-type span {
    margin-right: 4px;
    color: #fff;
}

.mi-post-material-pay-price {
    font-weight: 600;
    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: 1px solid rgba(255, 255, 255, 0.5);
}

/* 用户名 */
.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;
}

