body.page-template-page-list-host-new {
    background:#edf3f9;
    margin:0;
    padding:20px;
    font-family:"Microsoft Yahei",sans-serif;
}
.page-container {
    max-width:1500px;
    margin:40px auto 0;
    display:flex;
    flex-direction:column;
    gap:14px;
}
.top-wrap {
    display:flex;
    gap:14px;
    align-items: stretch;
}
.sidebar-left {
    width:140px;
    flex-shrink:0;
    background:#fff;
    border-radius:6px;
    padding:30px 12px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.main-right-box {
    flex:1;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.sidebar-avatar {
    width:82px;
    height:82px;
    border-radius:50%;
    display:block;
    margin:0 auto 16px;
}
.sidebar-user-text {
    text-align:center;
    margin-bottom:24px;
}
.sidebar-menu {
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-top: auto;
}
.sidebar-menu a {
    display:block;
    padding:10px 0;
    text-align:center;
    border-radius:5px;
    text-decoration:none;
    font-size:14px;
}
.sidebar-menu a.active {
    background:#3078d8;
    color:#fff;
}
.sidebar-menu a:not(.active) {
    background:#eee;
    color:#333;
}
.upload-dash-wrap {
    border:1px dashed #3078d8;
    border-radius:6px;
    background:#fff;
    padding:24px;
    display:flex;
    align-items:center;
    gap:40px;
    margin-bottom:16px;
    flex-grow: 1;
    box-sizing: border-box;
}
.upload-left {
    min-width:220px;
    text-align:center;
}
.upload-desc-text {
    flex:1;
    font-size:13px;
    line-height:1.65;
    color:#333;
}
.table-card {
    background:#fff;
    border-radius:6px;
    overflow:hidden;
}
.data-table {
    width:100%;
    border-collapse:collapse;
}
.data-table th,
.data-table td {
    padding:12px 10px;
    font-size:14px;
    border:1px solid #e5e9f2;
}
.data-table th {
    background:#f6f8fc;
    text-align:center !important;
}
.data-table th.col-no,
.data-table td.col-no {
    width:60px;
}
.data-table th.col-note,
.data-table td.col-note {
    width:180px;
}
.data-table th.col-main,
.data-table td.col-main {
    width:320px;
}
.data-table th.col-backup,
.data-table td.col-backup {
    width:320px;
}
.data-table th.col-upload,
.data-table td.col-upload {
    width:110px;
}
.data-table th.col-expire,
.data-table td.col-expire {
    width:150px;
}
.data-table th.col-action,
.data-table td.col-action {
    width:auto;
    white-space:nowrap;
}
.btn-blue {
    background:#3078d8;
    color:#fff;
    border:none;
    padding:4px 10px;
    border-radius:3px;
    font-size:13px;
    margin:0 2px;
    cursor:pointer;
}
.btn-sm-blue {
    background:#3078d8;
    color:#fff;
    border:none;
    padding:4px 10px;
    border-radius:3px;
    font-size:13px;
    margin:0 2px;
    cursor:pointer;
}
.btn-sm-gray {
    background:#999;
    color:#fff;
    border:none;
    padding:4px 10px;
    border-radius:3px;
    font-size:13px;
}
.text-red {
    color:red;
}
.modal-wrap {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.modal-box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.modal-sm {
    min-width: 320px;
    padding:20px;
}
.modal-btn-group {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.modal-tip {
    margin-top: 10px;
    text-align: center;
}
#uploadTipModal .modal-box {
    padding: 25px 40px;
    font-size: 16px;
}
#globalModal .modal-box {
    padding: 30px 40px;
    text-align: center;
}
#globalModalText {
    font-size: 16px;
    margin-bottom: 20px;
}
#globalModalBtns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.toast-tip {
    display:none;
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:rgba(0,0,0,0.7);
    color:#fff;
    padding:12px 26px;
    border-radius:6px;
    z-index:100000;
}
.remark-modal-box {
    width:420px;
    background:#fff;
    padding:20px;
    border-radius:8px;
}
.remark-input {
    width:100%;
    box-sizing:border-box;
    padding:8px 10px;
    border:1px solid #ddd;
    border-radius:4px;
    font-size:14px;
}
.remark-btn-group {
    display:flex;
    gap:10px;
    margin-top:14px;
    justify-content:flex-end;
}

/* ========== 在线编辑弹窗核心修正 固定总宽1500px ========== */
.modal-lg.flex-two-col {
    display: flex !important;
    flex-direction: row !important;
    width: 1500px !important;
    max-width: 1500px !important;
    max-height: 85vh;
    overflow: hidden;
    margin: auto;
}
/* 左侧预览固定400px宽度，纯黑、原生ANSI等宽渲染 */
.preview-left {
    width: 400px !important;
    flex-shrink: 0;
    background: #000000 !important;
    color: #ffffff;
    /* 传奇登录器原生渲染字体：宋体+等宽Consolas，完美对齐ASCII框 */
    font-family: "SimSun", "Consolas", monospace !important;
    font-size: 12px !important;
    white-space: pre !important;
    overflow-y: auto;
    max-height: 85vh;
    padding: 10px;
    box-sizing: border-box;
    line-height: 1.2 !important;
}
/* 清除行容器所有底色、边距，杜绝长条色块 */
.preview-line {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
#previewCanvas {
    white-space: pre !important;
    line-height: 1.2 !important;
    font-size: 12px;
}
/* 右侧编辑区填充剩余1100px宽度 */
.edit-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    box-sizing: border-box;
}
/* 编辑文本框：和预览完全一致字体、空格/Tab保留，ANSI格式同源渲染 */
.modal-textarea {
    width: 100%;
    flex: 1;
    min-height: 400px;
    padding: 10px;
    resize: vertical;
    white-space: pre !important;
    tab-size: 4 !important;
    box-sizing: border-box;
    font-size: 12px !important;
    font-family: "SimSun", "Consolas", monospace !important;
}
.preview-left h4 {
    display: none !important;
}