/* =====================================================
   ids7 CMS 后台主题 —— 墨绿 × 纸感
   Bootstrap 5.3 定制皮肤
   ===================================================== */
:root {
    --ids7-green: #1d6a4f;
    --ids7-green-deep: #12352a;
    --ids7-green-deeper: #0d271f;
    --ids7-green-soft: #e8f2ec;
    --ids7-amber: #c97a1e;
    --ids7-paper: #f7f5f0;
    --ids7-card: #ffffff;
    --ids7-ink: #20261f;
    --ids7-ink-soft: #5f6b60;
    --ids7-line: rgba(29, 106, 79, .14);
    --ids7-radius: 10px;
    --sidebar-w: 232px;
}

body.ids7-admin {
    background: var(--ids7-paper);
    color: var(--ids7-ink);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

/* Bootstrap 主色对接 */
.btn-primary {
    --bs-btn-bg: var(--ids7-green);
    --bs-btn-border-color: var(--ids7-green);
    --bs-btn-hover-bg: #175941;
    --bs-btn-hover-border-color: #175941;
    --bs-btn-active-bg: #12352a;
    --bs-btn-active-border-color: #12352a;
    --bs-btn-disabled-bg: var(--ids7-green);
}
.btn-outline-primary {
    --bs-btn-color: var(--ids7-green);
    --bs-btn-border-color: var(--ids7-green);
    --bs-btn-hover-bg: var(--ids7-green);
    --bs-btn-hover-border-color: var(--ids7-green);
    --bs-btn-active-bg: var(--ids7-green);
}
.text-primary { color: var(--ids7-green) !important; }
.form-check-input:checked { background-color: var(--ids7-green); border-color: var(--ids7-green); }
.form-control:focus, .form-select:focus {
    border-color: var(--ids7-green);
    box-shadow: 0 0 0 .2rem rgba(29, 106, 79, .15);
}
a { color: var(--ids7-green); }
.nav-link.active { color: var(--ids7-green) !important; }

/* ---------- 侧栏 ---------- */
.ids7-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--ids7-green-deep) 0%, var(--ids7-green-deeper) 100%);
    color: #cfe0d5;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .22s ease;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-mark {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    background: var(--ids7-green);
    color: #fff;
    font-family: "Noto Serif SC", "SimSun", serif;
    font-size: 20px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.brand-text { line-height: 1.25; min-width: 0; }
.brand-text strong { color: #fff; font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: rgba(255, 255, 255, .55); font-size: 12px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; }
.nav-group-title {
    font-size: 11px;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .38);
    padding: 14px 10px 6px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #cfe0d5;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 2px;
    transition: background .15s ease, color .15s ease;
}
.nav-item i { font-size: 15px; opacity: .8; }
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.active {
    background: var(--ids7-green);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.nav-item.active i { opacity: 1; }
.nav-badge {
    margin-left: auto;
    background: var(--ids7-amber);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 99px;
}
.sidebar-foot {
    padding: 10px 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, .35);
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.foot-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: none;
    color: #cfe0d5;
    font-size: 12.5px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease;
}
.foot-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.foot-ver { white-space: nowrap; }

/* 菜单设置弹窗 */
.menu-config-modal { border-radius: 14px; overflow: hidden; border: none; }
.menu-config-modal .modal-header { border-bottom: 1px solid var(--ids7-line); }
.menu-config-modal .modal-title { font-size: 15px; font-weight: 700; font-family: "Noto Serif SC", "SimSun", serif; }
.menu-config-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.menu-config-table th {
    text-align: left;
    font-size: 12px;
    color: var(--ids7-ink-soft);
    font-weight: 600;
    padding: 9px 16px;
    border-bottom: 1px solid var(--ids7-line);
    background: var(--ids7-green-soft);
}
.menu-config-table th:last-child, .menu-config-table td:last-child { text-align: right; }
.menu-config-table td { padding: 8px 16px; border-bottom: 1px dashed rgba(29, 106, 79, .1); }
.menu-config-table tr.group-row td {
    font-size: 11.5px;
    color: var(--ids7-ink-soft);
    letter-spacing: .08em;
    padding: 6px 16px;
    background: #fafaf7;
    border-bottom: none;
}
.menu-config-table .form-check-input { cursor: pointer; }
.menu-config-table .form-check-input:checked { background-color: var(--ids7-green); border-color: var(--ids7-green); }
.locked-tip { font-size: 12px; color: var(--ids7-ink-soft); }

/* ---------- 主区 ---------- */
.ids7-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.ids7-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 22px;
    background: rgba(247, 245, 240, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ids7-line);
}
.btn-toggle-sidebar {
    display: none;
    border: none;
    background: transparent;
    font-size: 22px;
    color: var(--ids7-green);
    padding: 2px 6px;
}
.topbar-title { font-size: 17px; font-weight: 700; margin: 0; font-family: "Noto Serif SC", "SimSun", serif; }
.topbar-right { margin-left: auto; }
.btn-admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--ids7-ink);
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
}
.btn-admin-user:hover { background: rgba(29, 106, 79, .08); }

.ids7-content { padding: 22px; flex: 1; }
.ids7-content .alert { border-radius: var(--ids7-radius); }
.ids7-content-foot { text-align: center; color: var(--ids7-ink-soft); font-size: 12px; padding: 26px 0 10px; }

/* 卡片 */
.ids7-card {
    background: var(--ids7-card);
    border: 1px solid var(--ids7-line);
    border-radius: var(--ids7-radius);
    box-shadow: 0 1px 3px rgba(18, 53, 42, .06), 0 8px 24px rgba(18, 53, 42, .05);
    margin-bottom: 20px;
}
.ids7-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ids7-line);
    font-weight: 700;
    font-family: "Noto Serif SC", "SimSun", serif;
}
.ids7-card-head .card-tools { display: flex; gap: 8px; margin-left: auto; }
.ids7-card-body { padding: 18px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
    background: var(--ids7-card);
    border: 1px solid var(--ids7-line);
    border-radius: var(--ids7-radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ids7-ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 53, 42, .1); color: var(--ids7-ink); }
.stat-icon {
    width: 42px; height: 42px; flex: none;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--ids7-green-soft);
    color: var(--ids7-green);
    font-size: 19px;
}
.stat-num { font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--ids7-ink-soft); }

/* 表格 */
.table ids7 { font-size: 14px; }
.ids7-table-wrap { overflow-x: auto; }
.ids7-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ids7-table th {
    text-align: left;
    font-size: 12px;
    color: var(--ids7-ink-soft);
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--ids7-line);
    white-space: nowrap;
}
.ids7-table td { padding: 10px 12px; border-bottom: 1px solid rgba(29, 106, 79, .08); vertical-align: middle; }
.ids7-table tr:last-child td { border-bottom: none; }
.ids7-table tr:hover td { background: rgba(29, 106, 79, .035); }
.td-title { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-title a { color: var(--ids7-ink); text-decoration: none; font-weight: 600; }
.td-title a:hover { color: var(--ids7-green); }
.td-actions { white-space: nowrap; }
.td-actions .btn { padding: 3px 8px; font-size: 13px; }
.badge-ids7 { font-weight: 600; padding: 4px 9px; border-radius: 6px; font-size: 12px; }
.badge-ok { background: var(--ids7-green-soft); color: var(--ids7-green); }
.badge-warn { background: #fbf1e4; color: #a2601a; }
.badge-danger { background: #fbeae6; color: #a63a22; }
.badge-muted { background: #eef1ec; color: #6a7568; }
.badge-info { background: #e7f0fa; color: #23608f; }

/* 分页 */
.ids7-pagebar { display: flex; gap: 6px; flex-wrap: wrap; }
.ids7-pagebar a, .ids7-pagebar span {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--ids7-line);
    background: #fff;
    color: var(--ids7-ink);
    font-variant-numeric: tabular-nums;
}
.ids7-pagebar .active { background: var(--ids7-green); border-color: var(--ids7-green); color: #fff; font-weight: 600; }
.ids7-pagebar .disabled { opacity: .45; pointer-events: none; }

/* 编辑器 */
.editor-tabs { display: flex; gap: 6px; }
.editor-tab-btn {
    border: 1px solid var(--ids7-line);
    background: #fff;
    color: var(--ids7-ink);
    padding: 7px 18px;
    font-size: 13.5px;
    cursor: pointer;
    border-radius: 9px 9px 0 0;
    font-family: inherit;
}
.editor-tab-btn.active { background: var(--ids7-green); color: #fff; border-color: var(--ids7-green); font-weight: 600; }
#editorWysiwyg { border: 1px solid var(--ids7-line); border-top: none; border-radius: 0 0 10px 10px; background: #fff; overflow: hidden; }
#editorWysiwyg .w-e-toolbar { background: #fbfbf8 !important; }
#editorWysiwyg .w-e-text-container { background: #fff !important; min-height: 420px; }
.editor-source-wrap { border: 1px solid var(--ids7-line); border-top: none; border-radius: 0 0 10px 10px; padding: 10px; background: #fff; }
.editor-source-wrap #log_Content { border: none; box-shadow: none; background: #fcfcfa; }
.editor-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.editor-toolbar button {
    border: 1px solid var(--ids7-line);
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--ids7-ink);
}
.editor-toolbar button:hover { background: var(--ids7-green-soft); border-color: var(--ids7-green); color: var(--ids7-green); }
#log_Content { min-height: 420px; font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 13.5px; line-height: 1.7; }

/* ---------- 登录页（品牌分屏） ---------- */
body.ids7-login { margin: 0; }
.login-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
}
.login-brand {
    position: relative;
    background: linear-gradient(155deg, #17452f 0%, var(--ids7-green-deep) 55%, var(--ids7-green-deeper) 100%);
    color: #d5e6da;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 10%;
    overflow: hidden;
}
.login-ornament {
    position: absolute;
    right: -46px;
    bottom: -60px;
    font-family: "Noto Serif SC", "SimSun", serif;
    font-size: 360px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .08);
    user-select: none;
    pointer-events: none;
}
.login-ornament::before { content: ""; }
.login-brand-inner { position: relative; z-index: 1; }
.login-mark {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--ids7-green);
    color: #fff;
    font-family: "Noto Serif SC", "SimSun", serif;
    font-size: 27px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28), 0 10px 26px rgba(0, 0, 0, .35);
    margin-bottom: 26px;
}
.login-site {
    font-family: "Noto Serif SC", "SimSun", serif;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 900;
    color: #fff;
    letter-spacing: .06em;
    margin: 0 0 8px;
}
.login-slogan { color: rgba(255, 255, 255, .62); font-size: 15px; letter-spacing: .14em; margin: 0; }
.login-divider {
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--ids7-amber), transparent);
    margin: 26px 0;
    border-radius: 2px;
}
.login-welcome { color: rgba(255, 255, 255, .8); font-size: 14.5px; line-height: 1.9; margin: 0; }
.login-welcome i { margin-right: 6px; color: var(--ids7-amber); }
.login-brand-foot {
    position: absolute;
    left: 10%;
    bottom: 26px;
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    z-index: 1;
}
.login-brand-foot a { color: rgba(255, 255, 255, .55); margin-left: 8px; }

.login-panel {
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(29, 106, 79, .09), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgba(201, 122, 30, .08), transparent 55%),
        var(--ids7-paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 8%;
}
.login-form { width: 100%; max-width: 360px; }
.login-form-head { margin-bottom: 30px; }
.login-form-head .login-form-mark { display: none; }
.login-form-head h2 {
    font-family: "Noto Serif SC", "SimSun", serif;
    font-size: 25px;
    font-weight: 900;
    color: var(--ids7-ink);
    margin: 0 0 6px;
}
.login-form-head p { color: var(--ids7-ink-soft); font-size: 14px; margin: 0; }
.login-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fbeee8;
    color: #a3541c;
    border: 1px solid rgba(163, 84, 28, .25);
    border-radius: 10px;
    padding: 11px 15px;
    font-size: 13.5px;
    margin-bottom: 18px;
}
.login-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid rgba(29, 106, 79, .22);
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.login-field:focus-within {
    border-color: var(--ids7-green);
    box-shadow: 0 0 0 3px rgba(29, 106, 79, .13);
}
.login-field > i { color: var(--ids7-ink-soft); font-size: 16px; }
.login-field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font-size: 15px;
    color: var(--ids7-ink);
    font-family: inherit;
    min-width: 0;
}
.login-field input::placeholder { color: #a8b2a6; }
.login-eye {
    border: none;
    background: none;
    color: var(--ids7-ink-soft);
    cursor: pointer;
    font-size: 15px;
    padding: 6px 2px;
}
.login-eye:hover { color: var(--ids7-green); }
.login-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--ids7-green);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.login-submit:hover:not(:disabled) { background: #175941; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(29, 106, 79, .3); }
.login-submit:disabled { opacity: .75; cursor: wait; }
.login-spin { animation: ids7spin .9s linear infinite; }
@keyframes ids7spin { to { transform: rotate(360deg); } }
.login-hint { text-align: center; color: var(--ids7-ink-soft); font-size: 12.5px; margin-top: 20px; }
.login-hint code { background: var(--ids7-green-soft); color: var(--ids7-green); padding: 1px 6px; border-radius: 5px; }
.login-panel-foot { margin-top: 40px; font-size: 12px; color: var(--ids7-ink-soft); }

@media (max-width: 860px) {
    .login-split { grid-template-columns: 1fr; }
    .login-brand { padding: 40px 8% 56px; min-height: 0; }
    .login-ornament { font-size: 200px; right: -30px; bottom: -50px; }
    .login-divider { margin: 16px 0; }
    .login-brand-foot { left: 8%; bottom: 18px; }
    .login-panel { padding: 36px 8% 30px; }
    .login-form-head .login-form-mark {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        background: var(--ids7-green);
        color: #fff;
        font-family: "Noto Serif SC", "SimSun", serif;
        font-size: 21px;
        font-weight: 700;
        border-radius: 10px;
        margin-bottom: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .login-spin { animation: none; }
    .login-submit { transition: none; }
}

/* 设置表单 */
.setting-grid { max-width: 720px; }
.form-label-ids7 { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.form-hint { font-size: 12px; color: var(--ids7-ink-soft); margin-top: 4px; }
.code-inline {
    background: #f0efe9;
    border: 1px solid var(--ids7-line);
    border-radius: 6px;
    padding: 2px 7px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    user-select: all;
}

/* 存储驱动选择卡片 */
.driver-card { transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.driver-card.selected {
    background: var(--ids7-green-soft);
    border-color: var(--ids7-green);
    box-shadow: 0 4px 14px rgba(29, 106, 79, .12);
}
.driver-card.selected strong { color: var(--ids7-green); }

/* ---------- 工具箱 ---------- */
.tool-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tool-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--ids7-line);
    background: #fff;
    color: var(--ids7-ink);
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}
.tool-tab-btn.active { background: var(--ids7-green); color: #fff; border-color: var(--ids7-green); font-weight: 600; }
.tool-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tool-now-item {
    background: var(--ids7-green-soft);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tool-now-num { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ids7-green); font-family: ui-monospace, Consolas, monospace; }
.tool-now-label { font-size: 12px; color: var(--ids7-ink-soft); margin-bottom: 6px; }
.tool-now-item .btn { align-self: flex-start; }
.tool-now-date { font-size: 18px; font-weight: 700; color: var(--ids7-ink); }
.tool-result { background: #fff; border: 1px solid var(--ids7-line); border-radius: 10px; padding: 12px 16px; margin-top: 12px; }
.tool-result-row { display: flex; align-items: center; gap: 14px; padding: 6px 0; border-bottom: 1px dashed rgba(29,106,79,.1); font-size: 14px; }
.tool-result-row:last-child { border-bottom: none; }
.tool-result-row span:first-child { color: var(--ids7-ink-soft); width: 110px; flex: none; }
.tool-result-row strong { font-family: ui-monospace, Consolas, monospace; font-size: 15px; word-break: break-all; }
.tool-result-err { color: #a3541c; font-size: 13.5px; }
.tool-hint { font-size: 12.5px; color: var(--ids7-ink-soft); }
.tool-op-block { border: 1px solid var(--ids7-line); border-radius: 10px; padding: 12px 14px; margin-top: 12px; background: #fff; }
.tool-op-title { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: var(--ids7-ink); }
.tool-op-title i { color: var(--ids7-green); margin-right: 4px; }
.img-drop {
    border: 2px dashed var(--ids7-line);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--ids7-ink-soft);
    font-size: 15px;
    transition: all .15s ease;
    cursor: pointer;
}
.img-drop.drag, .img-drop:hover { border-color: var(--ids7-green); color: var(--ids7-green); background: var(--ids7-green-soft); }
.img-canvas-wrap { position: relative; border: 1px solid var(--ids7-line); border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#f2f1ec 0 25%, #fff 0 50%) 0 0/20px 20px; max-height: 480px; overflow-y: auto; text-align: center; }
#imgCanvas { max-width: 100%; height: auto; display: block; margin: 0 auto; cursor: crosshair; }
.img-crop-box {
    position: absolute;
    border: 2px solid var(--ids7-green);
    background: rgba(29, 106, 79, .15);
    pointer-events: none;
    display: none;
}
.img-crop-size {
    position: absolute;
    top: -22px;
    left: 0;
    background: var(--ids7-green);
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 5px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.img-info {
    background: var(--ids7-green-soft);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--ids7-ink);
    margin-bottom: 4px;
}
.qr-preview {
    background: repeating-conic-gradient(#f2f1ec 0 25%, #fff 0 50%) 0 0/20px 20px;
    border: 1px solid var(--ids7-line);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    place-items: center;
}
#qrCanvas { max-width: 100%; height: auto; border-radius: 6px; }
input[type="color"].form-control-color { padding: 2px; width: 100%; height: 34px; }

/* SSL 添加域名表单对齐 */
.ssl-add-btn { white-space: nowrap; min-width: 96px; }
#sslAddForm .form-label-ids7 { height: 20px; line-height: 20px; margin-bottom: 4px !important; white-space: nowrap; }
#sslAddForm .form-check { white-space: nowrap; }
#sslAddForm .form-check-input { margin-top: 2px; }

/* 响应式 */
@media (max-width: 991.98px) {
    .ids7-sidebar { transform: translateX(-100%); }
    body.sidebar-open .ids7-sidebar { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.4); }
    .ids7-main { margin-left: 0; }
    .btn-toggle-sidebar { display: inline-block; }
    .sidebar-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1035; }
    body.sidebar-open .sidebar-mask { display: block; }
    .ids7-content { padding: 14px; }
    .td-title { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
    .ids7-sidebar, .stat-card, .nav-item { transition: none; }
}
