/* =========================================================
   群站系统 · 后台样式
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #1e293b;
    background: #f1f5f9;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h2, h3, h4 {
    margin: 0;
}

/* 布局 */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    width: 228px;
    height: 100vh;
    flex-shrink: 0;
    padding: 22px 16px;
    background: linear-gradient(180deg, #0f172a 0%, #111d33 100%);
    color: #cbd5e1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 22px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #f8fafc;
}

.brand-text strong,
.brand-text > span {
    font-size: 16px;
    font-weight: 700;
}

.brand-text small {
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #69809f;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 9px;
    color: #a9b8cd;
    font-size: 13.5px;
    transition: background .18s ease, color .18s ease;
}

.side-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #f1f5f9;
}

.side-link.is-active {
    background: rgba(59, 130, 246, .16);
    color: #eaf2ff;
    box-shadow: inset 2px 0 0 #60a5fa;
}

.side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: 13px;
    opacity: .9;
}

.sidebar-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 10px 4px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
    color: #627b9c;
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 0 30px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.user-name {
    font-weight: 600;
    color: #334155;
}

.topbar-link {
    color: #64748b;
}

.topbar-link:hover {
    color: #ef4444;
}

.content {
    width: 100%;
    max-width: 1280px;
    padding: 26px 30px 48px;
}

/* 提示 */
.flash {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.7;
}

.flash-success {
    border: 1px solid #b9e6c9;
    background: #eefaf2;
    color: #15803d;
}

.flash-error {
    border: 1px solid #f6c8c8;
    background: #fef2f2;
    color: #b91c1c;
}

/* 页面标题 */
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.page-head h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.page-head .muted {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-primary:disabled {
    background: #93b4f3;
    cursor: default;
}

.btn-ghost {
    border-color: #dbe3ee;
    background: #fff;
    color: #334155;
}

.btn-ghost:hover {
    border-color: #93b4f3;
    color: #1d4ed8;
}

.btn-link {
    color: #2563eb;
    padding-left: 4px;
    padding-right: 4px;
}

.btn-mini {
    padding: 5px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.btn-mini:hover {
    border-color: #93b4f3;
    color: #1d4ed8;
}

.btn-danger {
    border-color: #f3c9c9;
    color: #dc2626;
}

.btn-danger:hover {
    border-color: #ef4444;
    color: #fff;
    background: #ef4444;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
}

.stat-value {
    display: block;
    margin-top: 6px;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.5px;
}

.stat-note {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    color: #94a3b8;
}

.panel {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid #edf2f8;
}

.panel-head h3 {
    font-size: 14.5px;
    font-weight: 600;
}

.panel-head .muted {
    font-size: 12px;
    color: #64748b;
}

.panel-body {
    padding: 20px 22px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.link {
    color: #2563eb;
}

.link:hover {
    text-decoration: underline;
}

.empty {
    padding: 12px 0;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.muted {
    color: #64748b;
}

.subtext {
    margin-top: 2px;
    font-size: 11.5px;
    color: #94a3b8;
}

/* 进度条 */
.bar-row {
    margin-bottom: 16px;
}

.bar-row-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 12.5px;
}

.bar {
    height: 6px;
    border-radius: 4px;
    background: #eff4fa;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.inline-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.inline-progress .bar {
    flex: 1;
}

.inline-progress .muted {
    font-size: 11.5px;
    white-space: nowrap;
}

/* 表格 */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    padding: 11px 16px;
    border-bottom: 1px solid #edf2f8;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table .right {
    text-align: right;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-on {
    background: #ecfdf3;
    color: #15803d;
}

.badge-off {
    background: #f1f5f9;
    color: #64748b;
}

.code-tag {
    padding: 1px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 14px 22px;
    border-top: 1px solid #edf2f8;
}

.page-link {
    padding: 5px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
    font-size: 12.5px;
    color: #334155;
}

.page-link:hover {
    border-color: #93b4f3;
    color: #1d4ed8;
}

.page-info {
    font-size: 12px;
    color: #64748b;
}

/* 筛选 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.filter-bar input,
.filter-bar select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    color: #334155;
    outline: none;
}

.filter-bar input {
    min-width: 240px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #93b4f3;
}

/* 表单 */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field > span {
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    color: #0f172a;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field input:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #93b4f3;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.hint {
    font-size: 11.5px;
    line-height: 1.6;
    color: #94a3b8;
}

.hint code {
    padding: 1px 5px;
    border-radius: 3px;
    background: #f1f5f9;
    color: #2563eb;
    font-size: 11px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field-wide {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group input {
    border-radius: 8px 0 0 8px;
}

.input-suffix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #dbe3ee;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

/* 批量建站 */
.region-picker {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 18px;
    align-items: start;
}

.check-actions {
    display: flex;
    gap: 8px;
}

.county-panel {
    margin-top: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.county-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid #edf2f8;
    background: #f8fafc;
    font-size: 12.5px;
    color: #475569;
}

.county-head strong {
    color: #2563eb;
}

.county-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 8px;
    max-height: 340px;
    padding: 16px;
    overflow-y: auto;
}

.county-list .empty {
    grid-column: 1 / -1;
    padding: 22px 0;
}

.county-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    font-size: 12.5px;
    color: #334155;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.county-item input {
    margin: 0;
    accent-color: #2563eb;
}

.county-item:has(input:checked) {
    border-color: #93b4f3;
    background: #eff5ff;
    color: #1d4ed8;
}

.result-panel {
    border-color: #bfdbfe;
}

.result-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.stat-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.stat-ok {
    background: #ecfdf3;
    color: #15803d;
}

.stat-skip {
    background: #f1f5f9;
    color: #64748b;
}

.stat-fail {
    background: #fef2f2;
    color: #b91c1c;
}

.result-list {
    display: grid;
    gap: 6px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 7px;
    background: #f8fafc;
    font-size: 12.5px;
}

.result-errors {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12.5px;
}

/* 模板管理 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.template-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.template-thumb {
    position: relative;
    height: 196px;
    overflow: hidden;
}

.tpl-thumb-blue {
    background:
        radial-gradient(360px 200px at 80% 0%, rgba(79, 155, 255, .35), transparent 60%),
        linear-gradient(135deg, #eef4ff, #dbe8ff);
}

.tpl-thumb-gold {
    background:
        radial-gradient(360px 200px at 80% 0%, rgba(184, 145, 45, .22), transparent 60%),
        linear-gradient(135deg, #0d1117, #1d242e);
}

.thumb-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 12px;
    background: rgba(255, 255, 255, .55);
}

.tpl-thumb-gold .thumb-top {
    background: rgba(255, 255, 255, .06);
}

.thumb-top span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(15, 23, 42, .25);
}

.tpl-thumb-gold .thumb-top span {
    background: rgba(216, 182, 87, .5);
}

.thumb-hero {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 92px;
    display: flex;
    align-items: center;
    padding: 0 18px;
}

.thumb-lines {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 64%;
}

.thumb-lines i {
    display: block;
    height: 9px;
    border-radius: 4px;
    background: rgba(31, 94, 255, .38);
}

.thumb-lines i:nth-child(2) {
    width: 82%;
    opacity: .7;
}

.thumb-lines i:nth-child(3) {
    width: 56%;
    opacity: .45;
}

.tpl-thumb-gold .thumb-lines i {
    background: rgba(216, 182, 87, .5);
}

.thumb-cards {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.thumb-cards div {
    height: 42px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
}

.tpl-thumb-gold .thumb-cards div {
    border-color: rgba(216, 182, 87, .22);
    background: rgba(20, 24, 31, .8);
}

.template-body {
    padding: 20px 22px;
}

.template-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.template-title h3 {
    font-size: 17px;
}

.template-body p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: #64748b;
}

.template-feature {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.template-feature li {
    margin-bottom: 6px;
    font-size: 12px;
    color: #64748b;
    padding-left: 14px;
    position: relative;
}

.template-feature li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #93b4f3;
}

.template-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* 预览 */
.preview-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid transparent;
}

.tab:hover {
    color: #1d4ed8;
}

.tab.is-active {
    background: #eff5ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 500;
}

.toolbar-sep {
    width: 1px;
    height: 18px;
    margin: 0 6px;
    background: #e2e8f0;
}

.preview-frame-wrap {
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 40px -34px rgba(15, 23, 42, .5);
}

.preview-frame {
    display: block;
    width: 100%;
    height: 76vh;
    border: 0;
    background: #fff;
}

/* 登录 */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    background:
        radial-gradient(680px 420px at 18% 0%, rgba(37, 99, 235, .28), transparent 60%),
        radial-gradient(520px 360px at 92% 100%, rgba(59, 130, 246, .16), transparent 60%),
        #0b1220;
}

.login-wrap {
    width: 100%;
    max-width: 410px;
}

.login-panel {
    padding: 34px 34px 26px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 16px;
    background: rgba(15, 23, 42, .82);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
    backdrop-filter: blur(10px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.login-brand h1 {
    font-size: 21px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: .5px;
}

.login-brand p {
    margin: 3px 0 0;
    font-size: 11.5px;
    letter-spacing: 1.2px;
    color: #7d92ae;
}

.login-form .field > span {
    color: #a8b8ce;
}

.login-form input {
    border-color: rgba(148, 163, 184, .26);
    background: rgba(255, 255, 255, .05);
    color: #f1f5f9;
}

.login-form input::placeholder {
    color: #6b7f9a;
}

.login-form input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .22);
}

.login-form .field {
    margin-bottom: 16px;
}

.login-form .btn-block {
    margin-top: 6px;
    padding: 11px 0;
}

.login-tip {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, .16);
    font-size: 11.5px;
    line-height: 1.7;
    color: #7d92ae;
}

.login-errors {
    margin-bottom: 16px;
    font-size: 12.5px;
}

/* 响应式 */
@media (max-width: 1080px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2,
    .template-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-shell {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 14px 18px;
    }

    .brand {
        padding-bottom: 12px;
    }

    .side-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .side-link {
        padding: 8px 12px;
    }

    .sidebar-foot {
        display: none;
    }

    .topbar {
        padding: 0 18px;
    }

    .content {
        padding: 20px 18px 40px;
    }

    .region-picker,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .county-list {
        grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
        max-height: 300px;
    }
}

@media (max-width: 560px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .page-head h2 {
        font-size: 19px;
    }

    .preview-frame {
        height: 68vh;
    }

    .login-panel {
        padding: 26px 22px 20px;
    }
}

/* 侧边栏二级导航 */
.side-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-parent {
    position: relative;
}

.side-arrow {
    margin-left: auto;
    font-size: 10px;
    opacity: .65;
    transition: transform .18s ease;
}

.side-group.is-open .side-arrow {
    transform: rotate(180deg);
}

.side-sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 6px 30px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.side-sub-link {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    color: #93a6c0;
    font-size: 12.5px;
    transition: background .18s ease, color .18s ease;
}

.side-sub-link:hover {
    background: rgba(255, 255, 255, .05);
    color: #f1f5f9;
}

.side-sub-link.is-active {
    background: rgba(59, 130, 246, .13);
    color: #eaf2ff;
}

@media (max-width: 900px) {
    .side-group {
        min-width: 150px;
    }

    .side-sub {
        margin-left: 22px;
    }
}

/* 产品图片上传 */
.product-image-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.product-image-preview img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12.5px;
    cursor: pointer;
}

.checkbox-inline input {
    width: auto;
}

.product-thumb {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

/* 列表标题外链 */
.table-link {
    color: #1d4ed8;
    text-decoration: none;
    transition: color .18s ease;
}

.table-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.link-out {
    margin-left: 4px;
    font-size: 12px;
    opacity: .7;
}

/* CKEditor 5 富文本编辑器 */
.ck-editor {
    width: 100%;
}

.ck.ck-editor__main > .ck-editor__editable {
    min-height: 260px;
    border-color: #dbe3ee;
    background: #fff;
    font-size: 13px;
    line-height: 1.75;
}

.ck.ck-editor__main > .ck-editor__editable.ck-focused {
    border-color: #93b4f3;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

