/**
 * 用户封禁页面（小黑屋）
 *
 * 来源：教程 https://www.lkuba.com/631.html 内联样式，已本地化并加插件作用域。
 * 仅在「小墨 - 用户封禁」页面模板或小工具处于活动状态时加载。
 */

/* ============ 页面正文 ============
   顶部提示沿用主题原生引用块组件（wp-block-zibllblock-quote > quote_q），样式由主题提供 */
.mzt-ub-article p { margin: 0 0 10px; }
.mzt-ub-intro { padding: 0 20px; margin-bottom: 20px; }
.mzt-ub-stats { color: #fb2121; margin-bottom: 10px !important; }
.mzt-ub-footer-text { text-align: center; color: var(--theme-color); margin-top: 20px; }

/* ============ 封禁列表 ============ */
.mzt-ub { font-size: 16px; }
.mzt-ub-describe {
    position: relative;
    border: 1px dashed #dcdfe6;
    line-height: 26px;
    margin-top: 10px;
}
.mzt-ub-describe-title {
    position: absolute;
    top: 0;
    left: 8px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background: var(--main-bg-color, #fff);
    padding: 0 5px;
    font-weight: 500;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mzt-ub-describe-content {
    color: #606266;
    padding: 18px 15px 0;
    width: 100%;
    overflow-x: auto;
}
.mzt-ub-table {
    max-width: 100%;
    table-layout: fixed;
    color: #909399;
    margin-bottom: 18px;
    border-top: 1px solid #ebeef5;
    border-left: 1px solid #ebeef5;
    width: 100%;
}
.mzt-ub-table th {
    font-weight: 500;
    background: #ebeef5;
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
}
.mzt-ub-table td {
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.mzt-ub-appeal { color: var(--theme-color); margin-left: 4px; }
.mzt-ub-empty { text-align: center; padding: 24px 0; color: #999; }
@media screen and (max-width: 700px) {
    .mzt-ub-table { width: 600px !important; }
}

/* ============ 数字分页 ============ */
.mzt-ub-pagination { margin: 0; text-align: center; font-size: 14px; display: block; border-radius: 0; }
.mzt-ub-pagination ul { display: inline-block !important; margin: 0; padding: 0; list-style: none; }
.mzt-ub-pagination ul > li { display: inline; }
.mzt-ub-pagination ul > li > a,
.mzt-ub-pagination ul > li > span {
    margin: 0 2px;
    padding: 8px 12px;
    background-color: #ddd;
    color: #666;
    border-radius: 2px;
    opacity: .88;
    text-decoration: none;
}
.mzt-ub-pagination ul > li > a:hover { opacity: 1; }
.mzt-ub-pagination ul > .active > a,
.mzt-ub-pagination ul > .active > span { background-color: #000; color: #fff; cursor: default; }

/* ============ 侧边栏小工具 ============ */
.mzt-ub-widget-title {
    position: relative;
    padding: 0 0 14px 20px !important;
    margin-top: 5px;
    border-bottom: 1px solid #f5f6f7;
    font-size: 16px;
    font-weight: 600;
    color: #18191a;
    width: 100%;
}
.mzt-ub-widget-title:after { left: 12px !important; }
.mzt-ub-widget-title:before,
.mzt-ub-widget-title:after {
    position: absolute;
    transform: skewX(-15deg);
    content: '';
    width: 3px;
    height: 16px;
    background: var(--theme-color);
    top: 0;
    left: 4px;
    bottom: 10%;
    transition: .4s;
}
.mzt-ub-widget-nobox { padding: 0 !important; }
.mzt-ub-widget-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f6f7;
}
.mzt-ub-widget-avatar { flex: 0 0 auto; }
.mzt-ub-widget-main { flex: 1 1 auto; min-width: 0; margin-left: 10px; }
.mzt-ub-widget-row { display: flex; justify-content: space-between; align-items: center; }
.mzt-ub-widget-time { color: #999; font-size: 12px; margin-left: 6px; }
.mzt-ub-widget-reason {
    color: #999;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.mzt-ub-widget-badge {
    flex: 0 0 auto;
    margin-left: 10px;
    background: var(--theme-color);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}
.mzt-ub-widget-more { text-align: center; margin-top: 10px; }

/* ============ 深色模式 ============ */
body.dark-theme .mzt-ub-describe { border-color: #3a3a3a; }
body.dark-theme .mzt-ub-describe-content { color: #c9c9c9; }
body.dark-theme .mzt-ub-table { border-color: #3a3a3a; }
body.dark-theme .mzt-ub-table th { background: #2a2a2a; border-color: #3a3a3a; }
body.dark-theme .mzt-ub-table td { border-color: #3a3a3a; }
body.dark-theme .mzt-ub-widget-title { color: #f5f5f5; border-bottom-color: #3a3a3a; }
body.dark-theme .mzt-ub-widget-item { border-bottom-color: #3a3a3a; }
body.dark-theme .mzt-ub-pagination ul > li > a,
body.dark-theme .mzt-ub-pagination ul > li > span { background-color: #333; color: #ccc; }
