/*
 *-------------------------------------------------------------------------------
 * 文章小工具 start
 *-------------------------------------------------------------------------------
*/
.widget-aside {
    margin-left: 10px;
}

.widget_post_custom_widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}
.post-aggregate-widget .widget-title{
    margin-left: 10px;
}
.post-aggregate-widget .widget-title::before{
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    transform: translateY(-50%);
    height: 18px;
    width: 4px;
    background: linear-gradient(to bottom, #409EFF, #67C23A);
    border-radius: 2px;
}
/* 文章聚合小工具样式 */
.widget-aggregation-widget .widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-aggregation-widget .widget-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}

.widget-aggregation-widget .thumbnail-mode-none .widget-item {
    display: block;
}

.widget-aggregation-widget .widget-thumbnail {
    display: block;
    margin-right: 15px;
    flex-shrink: 0;
}

.widget-aggregation-widget .thumbnail-mode-none .widget-thumbnail {
    display: none;
}

.widget-aggregation-widget .thumbnail-mode-small .widget-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.widget-aggregation-widget .thumbnail-mode-large .widget-thumbnail img {
    width: 120px;
    height: 90px;
    object-fit: cover;
}

.widget-aggregation-widget .widget-content {
    flex-grow: 1;
}

.widget-aggregation-widget .widget-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.widget-aggregation-widget .widget-title a {
    text-decoration: none;
    color: inherit;
}

.widget-aggregation-widget .widget-title a:hover {
    color: #0073aa;
}

.widget-aggregation-widget .widget-meta {
    font-size: 12px;
    color: #666;
}

.widget-aggregation-widget .widget-meta span {
    margin-right: 10px;
}

.widget {
    background: #ffff;
    margin-left: 15px;
    padding: 10px 15px;
    margin-bottom: 10px;
    position: relative;
}

.widget_post_custom_widget h2 {
    font-size: 18px;
    margin: 0 0 10px;
}

.mi-widget-h3 {
    margin: 6px 0;
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #2c3e50;
    font-size: 14px;
    padding: 0;
}

.widget-item {
    display: flex;
    font-size: 12px;
    align-items: center;
}

.widget-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    margin-right: 10px;
    max-width: 100%;
    margin: 2px 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.widget-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.widget-meta .widget-comments {
    /* font-size: 12px; */
}

.widget-num {
    color: #888;
    padding: 2px 5px;
    border-radius: 5px;
}

.widget-num-1 {
    color: #ff5473;
    background-color: rgba(255, 84, 115, 0.1);
}

.widget-num-2 {
    color: #ff6f06;
    background-color: rgba(255, 111, 6, 0.1);
}

.widget-num-3 {
    color: #e434e1;
    background-color: rgba(213, 72, 245, 0.1)
}

.widget-num-4 {
    color: #2997f7;
    background-color: rgba(41, 151, 247, 0.1);
}

.widget-num-5 {
    color: #18a52a;
    background-color: rgba(18, 185, 40, 0.1);
}

.widget-num-6 {
    color: #1a85ff;
    background-color: rgba(18, 185, 40, 0.1);
}

.widget-item-smallThumb {
    position: relative;
    height: 150px;
}
.widget-item-small:hover .widget-item-smallThumb img{
    transform: scale(1.1);
    transition: all 0.3s ease;
}
.widget-item-smallmeta {
    position: absolute;
    bottom: 0px;
    line-height: 25px;
    font-size: 12px;
    color: #f5f7fa;
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
    align-items: center;
    padding: 10px;
    background: linear-gradient(to top, #000000e0, rgba(0, 0, 0, 0.5) 60%, transparent);
}
.widget-smallmeta-view span i{
    color: #fffdfd;
    margin-right: 5px;
}
.mi-smallPt {
    font-size: 12px;
    line-height: 1;
    padding: 5px 10px;
    vertical-align: .1em;
    background: #818b95;
    color: #fff;
    top: 10px;
    text-align: center;
    z-index: 1;
    left: 0px;
    position: absolute;
    border-radius: 0 50px 50px 0;
}

.mi-small-1 {
    background: #eb526e;
    padding: 8px 15px;
    font-size: 15px;
}

.mi-small-2 {
    background: #ef9c1ffa;
}

.mi-small-3 {
    background: #67c23a;
}

.mi-small-1 span {
    font-size: 15px;
}

.widget-smallpt {
    display: flex;
}

.widget-smallptThumb {
    width: 100px;
    height: 80px;
    margin-right: 15px;
    overflow: hidden;
}

.widget-smallptThumb img {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.widget-smallpt:hover .widget-smallptThumb img {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.widget-item-small-pt {
    margin: 10px 0;
    border-radius: 5px;
    position: relative;
}

.widget-item-small-pt:nth-child(n+4) .mi-smallPt {
    display: none;
}

.widget-smallTitle {
    position: absolute;
    top: 0;
}

.widget-item-smallinfo {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: left;
    width: 100%;
    font-size: 12px;
    color: #756f6f;
}

.widget-item-smallNr {
    position: relative;
    flex: 1;
}

.widget-item-small {
    margin-bottom: 10px;
    overflow: hidden;
}

.widget-item-smallmeta p {
    margin: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #fffafa;
}

.widget-smallmeta-view span {
    padding: 2px 10px;
    font-size: 12px;
    text-shadow: 0 0 0;
    border-radius: 3px;
    color: #ffff;
}

.widget-item-small {
    /* box-shadow: 0 0 10px #00000059; */
}

/*
 *-------------------------------------------------------------------------------
 * 文章小工具 end
 *-------------------------------------------------------------------------------
*/

/*
 *-------------------------------------------------------------------------------
 * 积分签到小工具 start
 *-------------------------------------------------------------------------------
*/
.mi-credit-dialog .el-dialog__headerbtn {
    top: -16px;
    right: -16px;
}

.mi-credit-dialog .el-dialog__headerbtn .el-dialog__close {
    color: #909399;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0px 5px 12px 2px #00000017;
    border-radius: 50%;
    transition: all .3s ease;
}

.mi-credit-dialog .el-dialog__headerbtn .el-dialog__close:hover {
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, .05);
    transform: translate(-6px, 2px);
}

.mi-UserCredit-widget {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
}

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

.mi-UserCredit-greeting {
    font-size: 16px;
    font-weight: 700;
}

.mi-UserCredit-greetingdesc {
    font-size: 12px;
    color: #999;
}
.mi-UserCredit-greetingdesc span{
    margin-left: 3px;
    font-weight: 500;
}
.mi-widget-header h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #303133;
}

.mi-widget-header {
    padding: 5px 0px;
    margin-right: -15px;
}

.mi-widget-header .mi-user-info {
    background-color: #000;
    border-radius: 5px;
}

.mi-avatar-container {
    position: relative;
}

.mi-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.mi-tabs-container .el-tabs {
    border-bottom: 1px solid #f2f8fded;
    padding-bottom: 10px;
}

.mi-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
}

.mi-badge-success {
    background-color: #67C23A;
}

.mi-badge-warning {
    background-color: #E6A23C;
}

.mi-user-details {
    flex: 1;
}

.mi-user-name {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.mi-user-points {
    margin: 0;
    font-size: 14px;
    color: #606266;
}

.mi-points-value,
.mi-consecutive-value {
    font-weight: 600;
    color: #303133;
}

.mi-sign-button {
    padding: 5px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    align-items: center;
    width: 100%;
    text-align: center;
    background: none;
    justify-content: center;
    display: flex;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    /* background-image: linear-gradient(90deg, #5919cb 0%, #ff2972 50%); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
}

.mi-sign-button svg {
    width: 1em;
    height: 1em;
    font-size: 20px;
    margin-right: 5px;
}

.mi-tabs-container h3 {
    text-align: center;
    border-top: 1px solid #f2f8fded;
    margin: 0 0 -10px;
    padding-top: 15px;
}

.mi-tabs-container .el-tabs__nav {
    float: none;
    text-align: center;
}

.mi-tabs-container .el-tabs__item {
    color: #333;
    padding: 0px 25px;
    font-size: 12px;
    line-height: 0;
}

.mi-tabs-container .el-tabs__header {
    margin: 0;
}

.mi-tabs-container .el-tabs__item.is-active {
    background-color: rgb(255 255 255 / 40%);
    padding: 10px 31px;
    border-radius: 20px;
    height: auto;
    line-height: 12px;
    font-size: 12px;
}

.mi-tabs-container .el-tabs__active-bar {
    background: none;
}

.mi-tabs-container .el-tabs__nav-wrap::after {
    background: none;
}

.mi-ranking-list {
    margin-top: 15px;
}

.mi-ranking-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.mi-ranking-card:last-child{
    margin-bottom: 0;
}
.mi-rank-left {
    position: relative;
    margin-right: 10px;
}

.mi-rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.mi-rank-number {
    position: absolute;
    top: -2px;
    left: -6px;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    background-color: #909399;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-ranking-card:nth-child(n) .mi-rank-number {
    display: none;
}

.mi-rank-top0 {
    background-color: #E6A23C;
}

.mi-rank-top1 {
    background-color: #fb7ea1;
}

.mi-rank-top2 {
    background-color: #67c23a;
}

.mi-rank-middle {
    flex: 1;
    margin-right: 10px;
}

.mi-rank-username {
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 500;
}

.mi-rank-info {
    font-size: 12px;
    color: #606266;
}

.mi-rank-time,
.mi-rank-days {
    display: flex;
    align-items: center;
}

.mi-rank-time i,
.mi-rank-days i {
    margin-right: 3px;
}

.mi-rank-right {
    text-align: right;
}

.mi-rank-points {
    font-size: 14px;
    font-weight: 600;
    color: #E6A23C;
}

.mi-empty-state {
    text-align: center;
    padding: 0;
    color: #909399;
    width: 100%;
}

.mi-empty-state i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.mi-empty-state .el-empty {
    padding: 0;
}

.mi-credit-dialog {
    width: 700px;
}

.mi-signin-dialog-container {
    display: flex;
    gap: 15px;
}

.mi-signin-calendar {
    flex: 1;
    border-right: 1px solid #EBEEF5;
    padding-right: 10px;
}

.mi-signin-calendar .el-button{
    box-shadow: none;
}
.mi-signin-calendar .el-calendar-table .el-calendar-day {
    text-align: center;
    height: auto;
}

.mi-signin-calendar .el-calendar-table thead th {
    padding: 0;
}

.mi-signin-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}

.mi-signed-mark {
    background-color: #67C23A;
    color: white !important;
    font-size: 12px;
    text-align: center;
    border-radius: 50%;
}

.mi-points-earned {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    font-size: 10px;
    color: #E6A23C;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.mi-points-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.mi-points-card {
    flex: 1;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mi-points-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #909399;
}

.mi-points-content p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #303133;
}

.mi-signin-button {
    width: 100%;
    margin-bottom: 15px;
    height: 36px;
    font-size: 14px;
}

.mi-recent-signins {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mi-recent-signins h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #606266;
    display: flex;
    align-items: center;
}

.mi-recent-signins h3 i {
    margin-right: 6px;
    font-size: 16px;
}

.mi-signin-table {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.mi-signin-table .el-table__body-wrapper {
    max-height: 180px;
    overflow-y: auto;
}

.el-calendar-table td,
.el-calendar-table tr td:first-child,
.el-calendar-table tr:first-child td {
    border: none;
}

/* 日历部分美化 */
.mi-signin-calendar .el-calendar__header {
    padding: 0 0 10px 0;
    margin-bottom: 5px;
}

.mi-signin-calendar .el-calendar__title {
    font-size: 14px;
    font-weight: 700;
    color: #606266;
}

.mi-signin-calendar .el-calendar-table thead th {
    padding: 5px 0;
    font-size: 12px;
    color: #909399;
}

.mi-signin-calendar .el-calendar-table td {
    padding: 2px;
    height: 30px;
}

.mi-calendar-day {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border-radius: 50%;
    font-size: 12px;
    transition: all 0.3s;
    position: relative;
    padding: 5px;
}

/* 右侧信息部分美化 */
.mi-points-icon {
    font-size: 20px;
    text-align: left;
}

.mi-points-icon h3 {
    margin: 0 0 3px 0;
    font-size: 12px;
    color: #909399;
}

.mi-points-content {
    display: flex;
    justify-content: left;
    align-items: end;
    margin-top: 10px;
}

.mi-points-content i {
    margin-right: 5px;
}

.mi-recent-signins .el-empty__image svg {
    height: 125px;
}

.mi-signin-table .el-table td,
.mi-signin-table .el-table th {
    padding: 8px 0;
}

/* 弹窗整体调整 */
.el-dialog__body {
    padding: 15px 20px;
}

.mi-user-credit-experience h2,
.mi-user-credit-buy h2,
.mi-userupgrade-Promotion h2 {
    font-size: 18px;
    color: #21283f;
}

/* 签到记录容器 */
.mi-signin-history {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-top: 15px;
}

/* 单条签到记录 */
.mi-signin-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mi-signin-item:last-child {
    border-bottom: none;
}

.mi-signin-item:hover {
    background: rgba(240, 248, 255, 0.5);
    transform: translateX(5px);
    padding: 16px 16px;
}

/* 左侧图标 */
.mi-signin-icon {
    margin-right: 16px;
    flex-shrink: 0;
}

.mi-icon-tag {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}

/* 中间内容 */
.mi-signin-content {
    flex-grow: 1;
}

.mi-signin-type {
    margin-bottom: 4px;
}

.mi-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    color: #606266;
}

.mi-badge-normal {
    background: #e6f7ff;
    color: #1890ff;
}

.mi-badge-bonus {
    background: #f6ffed;
    color: #52c41a;
}

.mi-badge-special {
    background: #fff2e8;
    color: #fa8c16;
}

.mi-signin-time {
    font-size: 12px;
    color: #999;
}

/* 右侧积分 */
.mi-signin-points {
    text-align: right;
    margin-left: 16px;
    min-width: 80px;
}

.mi-points-value {
    font-size: 16px;
    font-weight: bold;
    color: #ff9800;
    display: block;
}

.mi-consecutive-days {
    font-size: 10px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}
.mi-consecutive-daysTime {
    font-size: 10px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 20px;
    display: inline-block;
    margin-left: 5px;
    font-weight: 500;
    letter-spacing: 1px;
}
/* 分页 */
.mi-signin-pagination {
    margin-top: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mi-signin-item {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .mi-signin-points {
        width: 100%;
        text-align: left;
        margin-left: 52px;
        margin-top: 8px;
    }
}

/* 骨架屏样式 */
.mi-skeleton-container {
    width: 100%;
}

.mi-skeleton-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.mi-skeleton-left {
    position: relative;
    width: 60px;
    margin-right: 10px;
}

.mi-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: #f0f0f0;
    animation: mi-pulse 1.5s infinite;
}

.mi-skeleton-rank-number {
    position: absolute;
    left: -6px;
    top: 27%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 2px;
    background-color: #f0f0f0;
    animation: mi-pulse 1.5s infinite;
}

.mi-skeleton-middle {
    flex: 1;
}

.mi-skeleton-username {
    width: 50%;
    height: 15px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    animation: mi-pulse 1.5s infinite;
}

.mi-skeleton-info {
    width: 70%;
    height: 14px;
    background-color: #f0f0f0;
    border-radius: 4px;
    animation: mi-pulse 1.5s infinite;
}

.mi-skeleton-right {
    width: 80px;
}

.mi-skeleton-points {
    width: 40px;
    height: 20px;
    margin-left: auto;
    background-color: #f0f0f0;
    border-radius: 4px;
    animation: mi-pulse 1.5s infinite;
}

/* 骨架屏动画 */
@keyframes mi-pulse {
    0% {
        background-color: rgba(165, 165, 165, 0.1);
    }

    50% {
        background-color: rgba(165, 165, 165, 0.3);
    }

    100% {
        background-color: rgba(165, 165, 165, 0.1);
    }
}

/*
 *-------------------------------------------------------------------------------
 * 积分签到小工具 end
 *-------------------------------------------------------------------------------
*/

/* 评论列表小工具样式 */
.mi-widgetcomment-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#mi-sidebar-comment .widget-item {
    display: block;
}

.mi-widgetcomment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mi-widgetcomment-author {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.mi-widgetcomment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.mi-widgetcomment-author-info {
    display: flex;
    flex-direction: column;
}

.mi-widgetcomment-author-name {
    font-weight: 600;
    color: #333;
}

.mi-widgetcomment-date {
    font-size: 12px;
    color: #888;
}

.mi-widgetcomment-content {
    margin-bottom: 8px;
    background-color: #f3f3f3;
    padding: 5px 10px;
}

.mi-widgetcomment-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.mi-widgetcomment-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.mi-widgetcomment-post-type {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 10px;
}

.mi-widgetcomment-post-title {
    max-width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #888;
}

.mi-widgetcomment-post-title:hover {
    text-decoration: none;
}