/**
 * KNN-封禁公示 页面样式（自包含）
 * 虚线框卡片 + 表格数值对齐源模板内联 CSS（block_banned.php L111-131），外站资源已移除
 */

/* 引述块 */
.knn-banned-page .banned-quote {
    position: relative;
    margin: 15px 0;
    padding: 15px 20px 15px 48px;
    border-radius: var(--knn-border-radius);
    background: rgba(251, 33, 33, 0.06);
    color: var(--knn-text-color);
    line-height: 1.8;
}

.knn-banned-page .banned-quote > i {
    position: absolute;
    left: 18px;
    top: 18px;
    color: #fb2121;
    font-size: 18px;
}

.knn-banned-page .banned-quote p {
    margin: 0;
}

/* 类型说明 */
.knn-banned-page .banned-intro {
    padding: 0 5px;
    margin-bottom: 20px;
    line-height: 26px;
}

.knn-banned-page .banned-intro p {
    margin: 0 0 6px;
}

.knn-banned-page .banned-total {
    color: #fb2121;
}

/* 虚线框卡片（对齐源 .xypro_describe） */
.knn-banned-page .banned-describe {
    position: relative;
    border: 1px dashed #dcdfe6;
    line-height: 26px;
    margin-top: 10px;
    border-radius: var(--knn-border-radius);
}

.knn-banned-page .banned-describe-title {
    position: absolute;
    top: 0;
    left: 8px;
    transform: translateY(-50%);
    background: var(--knn-bg-color-card);
    padding: 0 5px;
    font-weight: 500;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.knn-banned-page .banned-describe-content {
    color: #606266;
    padding: 18px 15px 0;
    width: 100%;
    overflow-x: auto;
}

.knn-banned-page .banned-describe-content::-webkit-scrollbar {
    display: none;
}

/* 表格（对齐源 .yq） */
.knn-banned-page .banned-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    color: #909399;
    margin-bottom: 18px;
    border-top: 1px solid #ebeef5;
    border-left: 1px solid #ebeef5;
    border-collapse: collapse;
    font-size: 13px;
}

.knn-banned-page .banned-table thead th {
    font-weight: 500;
    background: #ebeef5;
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
}

.knn-banned-page .banned-table tbody td {
    text-align: center;
    padding: 8px;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.knn-banned-page .banned-table tbody td a {
    color: var(--knn-color-primary);
}

/* 类型徽章 */
.knn-banned-page .banned-type-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.6;
}

.knn-banned-page .banned-type-badge.is-ban {
    background: rgba(221, 82, 77, 0.1);
    color: var(--knn-color-danger);
}

.knn-banned-page .banned-type-badge.is-black {
    background: rgba(240, 173, 78, 0.12);
    color: var(--knn-color-warning);
}

/* 空态（去除外站图片，纯文字） */
.knn-banned-page .banned-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--knn-text-color-grey, #999);
}

/* 尾部提示 */
.knn-banned-page .banned-footer-tip {
    text-align: center;
    color: var(--knn-color-primary);
    margin: 20px 0 5px;
}

/* 暗色模式适配 */
body.dark-mode .knn-banned-page .banned-describe {
    border-color: var(--knn-border-color);
}

body.dark-mode .knn-banned-page .banned-table,
body.dark-mode .knn-banned-page .banned-table thead th,
body.dark-mode .knn-banned-page .banned-table tbody td {
    border-color: var(--knn-border-color);
}

body.dark-mode .knn-banned-page .banned-table thead th {
    background: var(--knn-bg-color-grey);
    color: var(--knn-text-color);
}

/* 移动端（对齐源 @700 表头压缩策略） */
@media screen and (max-width: 700px) {
    .knn-banned-page .banned-table {
        width: 600px !important;
        max-width: none;
    }

    .knn-banned-page .banned-table thead th {
        padding: 4px 1px !important;
        font-size: 10px !important;
        font-weight: 400 !important;
        width: auto !important;
        letter-spacing: 0 !important;
    }
}
