/* 付费进群系统 - 管理端样式（对标原站 rocker/domain 布局） */
:root {
  --bs-body-color: #4a5058;
  --sidebar-bg: #2b3752;
  --sidebar-active: #1689f5;
}
* { outline: none; }
body { font-size: 14px; background: #f4f6f9; font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* ---------- 框架布局 ---------- */
.wrapper { display: flex; min-height: 100vh; }
.sidebar-wrapper { width: 260px; background: var(--sidebar-bg); position: fixed; inset: 0 auto 0 0; z-index: 1002; transition: margin-left .25s; overflow-y: auto; }
.sidebar-wrapper.toggled { margin-left: -260px; }
.sidebar-header { display: flex; align-items: center; padding: 18px 20px; background: #22304d; }
.logo-icon { height: 38px; max-width: 170px; object-fit: contain; }
.sidebar-header .toggle-icon { color: #8fa3c8; cursor: pointer; font-size: 22px; }
.page-wrapper { flex: 1; margin-left: 260px; transition: margin-left .25s; min-height: 100vh; display: flex; flex-direction: column; }
.page-wrapper.toggled { margin-left: 0; }
.page-content { padding: 0 24px 40px; flex: 1; }
.overlay { display: none; }
@media (max-width: 991.98px) {
  .sidebar-wrapper { margin-left: -260px; }
  .sidebar-wrapper.toggled { margin-left: 0; }
  .page-wrapper { margin-left: 0; }
  .overlay.toggle-icon.active { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1001; }
}

/* ---------- 侧边菜单 ---------- */
.domain-menu { list-style: none; margin: 0; padding: 12px 0; }
.domain-menu li.menu-label { color: #7d92b8; font-size: 12px; padding: 14px 24px 6px; letter-spacing: 1px; }
.domain-menu > li > a { display: flex; align-items: center; padding: 11px 24px; color: #b7c4dc; text-decoration: none; font-size: 14.5px; }
.domain-menu > li > a:hover, .domain-menu > li > a.mm-active { color: #fff; background: rgba(255,255,255,.06); }
.domain-menu > li.mm-active > a { color: #fff; }
.domain-menu .parent-icon { width: 34px; display: inline-flex; justify-content: center; font-size: 19px; }
.domain-menu .has-arrow::after { content: "\ea58"; font-family: boxicons; margin-left: auto; font-size: 15px; transition: transform .2s; }
.domain-menu .has-arrow[aria-expanded="true"]::after { transform: rotate(90deg); }
.domain-menu ul { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.domain-menu ul.mm-show { max-height: 400px; }
.domain-menu ul a { display: flex; align-items: center; gap: 8px; padding: 9px 24px 9px 66px; color: #93a5c9; text-decoration: none; font-size: 13.5px; }
.domain-menu ul a:hover, .domain-menu ul li.mm-active a { color: #fff; background: rgba(22,137,245,.85); }

/* ---------- 顶栏 ---------- */
.topbar { height: 62px; background: #fff; box-shadow: 0 1px 4px rgba(100,116,139,.12); }
.navbar { padding: 0 18px; height: 100%; align-items: center; }
.mobile-toggle-menu { font-size: 24px; color: #5a6c8d; cursor: pointer; margin-right: 14px; }
.user-box .dropdown-toggle::after { display: none; }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; background: #e8f1ff; color: #1689f5; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.user-name { font-weight: 600; color: #344054; font-size: 13.5px; }
.designattion { color: #98a2b3; font-size: 12px; }

/* ---------- 面包屑 ---------- */
.page-breadcrumb { background: transparent; }
.breadcrumb-title { font-weight: 600; color: #2f3b4e; }
.breadcrumb-item a { color: #1689f5; text-decoration: none; }

/* ---------- 卡片 ---------- */
.card { border: 0; box-shadow: 0 2px 10px rgba(63,80,116,.08); border-radius: 10px; }
.radius-10 { border-radius: 10px; }
.font-13 { font-size: 13px; }
.font-22 { font-size: 22px; }
.text-option { color: #b6bdcb; }
.widgets-icons-2 { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 23px; }
.bg-gradient-scooter { background-image: linear-gradient(135deg,#17c9e3,#5f2bff); }
.bg-gradient-bloody { background-image: linear-gradient(135deg,#f3114d,#e4287c); }
.bg-gradient-ohhappiness { background-image: linear-gradient(135deg,#00b09b,#96c93d); }
.bg-gradient-blooker { background-image: linear-gradient(135deg,#ff8a3c,#fc5a6c); }

/* ---------- 登录页 ---------- */
body.bg-login { background: linear-gradient(135deg,#1e2a45 0%,#233c62 55%,#1b5fa8 100%); min-height: 100vh; }
.section-authentication-signin { min-height: 100vh; }
.rocker-login-shell { width: 100%; max-width: 420px; padding: 20px; }
.rocker-login-card { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,15,40,.35); }
.rocker-login-panel { padding: 26px 26px 20px; }
.rocker-login-logo { text-align: center; margin-bottom: 18px; }
.rocker-login-logo img { max-height: 56px; max-width: 220px; object-fit: contain; }
.rocker-login-form { text-align: left; }
.rocker-remember-row { display: flex; justify-content: space-between; align-items: center; }
.rocker-login-footer { text-align: center; margin-top: 16px; font-size: 13px; }
.rocker-login-footer a { color: #1689f5; text-decoration: none; }
.login-alert { font-size: 13px; }

/* ---------- Toast ---------- */
.domain-toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%) translateY(-80px); z-index: 99999; padding: 10px 22px; border-radius: 8px; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; transition: all .3s; max-width: 90vw; }
.domain-toast.is-success, .domain-toast.show-success { background: #16a34a; transform: translateX(-50%) translateY(0); opacity: 1; }
.domain-toast.is-error, .domain-toast.show-error { background: #dc2626; transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- 订单数据 ---------- */
.order-reference-card .card-body { padding: 14px 16px; }
.order-reference-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-page-size { color: #64748b; display: flex; align-items: center; gap: 6px; }
.order-reference-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.order-reference-table th { font-size: 12.5px; color: #64748b; white-space: nowrap; border-bottom: 1px solid #eef2f7 !important; padding: 10px 8px; }
.order-reference-table td { padding: 10px 8px; font-size: 13px; color: #344054; white-space: nowrap; border-color: #f2f5f9; }
.order-amount { font-weight: 600; }
.order-status { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.order-status.is-paid { background: #e7f8ef; color: #12a150; }
.order-status.is-unpaid { background: #fff5e5; color: #d97706; }
.order-sort-icon { color: #b6c0cf; font-size: 11px; }
.order-text-action { background: none; border: 0; color: #1689f5; font-size: 13px; padding: 0; cursor: pointer; }
.order-text-action.is-delete { color: #e5484d; }
.order-reference-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 12px; color: #64748b; font-size: 13px; }

/* ---------- 数据中心 / 代理 ---------- */
.data-center-content .data-card-heading { padding: 16px 18px; border-bottom: 1px solid #f0f3f8; display: flex; justify-content: space-between; align-items: center; }
.data-center-table th { font-size: 12.5px; color: #64748b; white-space: nowrap; padding: 10px 12px !important; }
.data-center-table td { padding: 11px 12px; font-size: 13.5px; white-space: nowrap; }
.data-center-table small { display: block; color: #98a2b3; font-size: 12px; }
.distribution-table th { font-size: 12.5px; color: #64748b; white-space: nowrap; padding: 10px 12px !important; }
.distribution-table td { padding: 11px 12px; font-size: 13.5px; vertical-align: middle; }
.distribution-agent-identity { display: flex; flex-direction: column; }
.distribution-agent-name { font-weight: 600; color: #2f3b4e; }
.distribution-agent-meta { color: #98a2b3; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.distribution-quick-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.distribution-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.template-list-heading { padding: 16px 18px; border-bottom: 1px solid #f0f3f8; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 佣金滑条 ---------- */
.commission-field { border: 1px solid #e8edf5; border-radius: 12px; padding: 16px; background: #fbfcfe; }
.commission-field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.commission-field-title { display: flex; gap: 12px; align-items: center; }
.commission-field-title > span { width: 42px; height: 42px; border-radius: 10px; background: #e8f1ff; color: #1689f5; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.commission-range-value { font-weight: 700; color: #1689f5; font-size: 18px; }
.commission-range-scale { position: relative; height: 26px; margin-top: 2px; }
.commission-range-mark { position: absolute; top: 0; transform: translateX(-50%); text-align: center; color: #98a2b3; font-size: 11px; }
.commission-range-mark i { display: block; width: 1px; height: 8px; background: #cbd5e1; margin: 0 auto 3px; }

/* ---------- 收款模式 ---------- */
.collection-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collection-mode-option input { display: none; }
.collection-mode-switch { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid #dde3ee; border-radius: 10px; padding: 12px; cursor: pointer; color: #64748b; }
.collection-mode-option input:checked + .collection-mode-switch { border-color: #1689f5; color: #1689f5; background: #f0f7ff; }

/* ---------- 模板列表（手机卡片） ---------- */
.template-product-section { padding: 4px 0 16px; }
.template-product-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.template-product-heading h5 { display: flex; align-items: center; gap: 8px; color: #2f3b4e; }
.template-product-heading h5 em { font-style: normal; color: #98a2b3; font-size: 13px; font-weight: 400; }
.template-product-heading p { color: #98a2b3; font-size: 13px; margin: 4px 0 0; }
.template-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.template-phone-stage { position: relative; background: linear-gradient(160deg,#232a3d,#2b3752); border-radius: 12px 12px 0 0; padding: 22px 14px 16px; }
.template-phone-device { position: relative; width: 168px; margin: 0 auto; border: 6px solid #10131c; border-radius: 22px; background: #fff; overflow: hidden; }
.template-phone-speaker { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 44px; height: 4px; border-radius: 4px; background: #10131c; z-index: 5; }
.template-phone-screen { position: relative; height: 300px; overflow: hidden; }
.template-phone-preview { width: 400%; height: 400%; transform: scale(.25); transform-origin: 0 0; border: 0; pointer-events: none; }
.template-phone-open { position: absolute; inset: 0; z-index: 6; }
.template-product-status { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: #b9ffe3; background: rgba(16,185,129,.25); border: 1px solid rgba(16,185,129,.5); padding: 2px 10px; border-radius: 999px; }
.template-product-status.disabled { color: #ffe2b9; background: rgba(245,158,11,.22); border-color: rgba(245,158,11,.5); }
.template-product-body { padding: 14px 16px 16px; }
.template-product-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.template-product-summary h6 { margin: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-product-summary small { color: #98a2b3; font-size: 12px; }
.template-product-price { color: #e5484d; font-size: 17px; }
.template-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.template-actions .btn { padding: 4px 9px; font-size: 12.5px; }

/* ---------- 推广弹窗 ---------- */
.template-publish-link-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.template-publish-label { min-width: 90px; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #64748b; }
.template-publish-qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.template-publish-qr-card { border: 1px dashed #dde3ee; border-radius: 10px; padding: 14px; text-align: center; }
.template-publish-qr-frame { width: 130px; height: 130px; margin: 0 auto 8px; border: 1px solid #eef1f6; border-radius: 8px; padding: 6px; }
.template-publish-qr-frame img { width: 100%; height: 100%; }
.template-publish-qr-card strong { font-size: 13px; display: flex; gap: 5px; justify-content: center; align-items: center; }
.template-publish-qr-card small { color: #98a2b3; font-size: 12px; }

/* ---------- 大屏数据 ---------- */
.visitor-map-card .card-body { padding: 20px; }
.visitor-map-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.visitor-map-total { text-align: right; color: #98a2b3; font-size: 12px; }
.visitor-map-total strong { display: block; font-size: 26px; color: #1689f5; }
.visitor-map-layout { display: grid; grid-template-columns: 180px 1fr 260px; gap: 18px; align-items: center; }
.visitor-map-stats { display: grid; gap: 14px; text-align: center; }
.visitor-map-stats strong { display: block; font-size: 24px; }
.visitor-map-stats span { color: #98a2b3; font-size: 12px; }
.visitor-map-stats .is-blue{color:#1689f5}.visitor-map-stats .is-green{color:#12a150}.visitor-map-stats .is-orange{color:#f59e0b}.visitor-map-stats .is-purple{color:#8b5cf6}
.visitor-china-map { height: 380px; }
.visitor-province-list { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; }
.visitor-province-item { display: grid; grid-template-columns: 22px 52px 1fr 52px; gap: 8px; align-items: center; font-size: 13px; }
.visitor-province-item b { width: 20px; height: 20px; border-radius: 5px; background: #eef2f7; color: #98a2b3; text-align: center; line-height: 20px; font-size: 12px; }
.visitor-province-item b.rank-1 { background:#e5484d;color:#fff } .visitor-province-item b.rank-2{background:#f59e0b;color:#fff} .visitor-province-item b.rank-3{background:#e8a33d;color:#fff}
.visitor-province-item span { color: #344054; }
.visitor-province-item i { height: 6px; background: #eef2f7; border-radius: 4px; overflow: hidden; display: block; }
.visitor-province-item i em { display: block; height: 100%; background: linear-gradient(90deg,#3b82f6,#22c1dc); border-radius: 4px; }
.visitor-province-item small { color: #98a2b3; text-align: right; }
@media (max-width: 1199.98px) { .visitor-map-layout { grid-template-columns: 1fr; } }
.data-screen-panels { margin-top: 18px; }
.data-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 260px; align-items: end; }
.data-bar-item { text-align: center; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 6px; }
.data-bar-value { font-size: 12px; color: #344054; font-weight: 600; }
.data-bar-track { flex: 1; display: flex; align-items: flex-end; background: #f4f7fb; border-radius: 8px; }
.data-bar-track span { display: block; width: 100%; min-height: 4px; background: linear-gradient(180deg,#4facfe,#1689f5); border-radius: 8px; }
.data-bar-item strong { color: #64748b; font-size: 12.5px; font-weight: 500; }
.data-bar-item small { color: #98a2b3; font-size: 11.5px; }
.traffic-stat-card .card-body { display: flex; flex-direction: column; justify-content: center; }
.traffic-stat-content { text-align: center; padding: 20px 0; }
.traffic-stat-content strong { display: block; font-size: 44px; color: #1689f5; font-weight: 700; }
.traffic-stat-content span { color: #64748b; }

/* ---------- 设置页 ---------- */
.settings-form-actions { margin-top: 18px; }
.setting-switch strong { font-size: 14px; color: #344054; }
.site-upload-row .form-control { background: #fbfcfe; }
.account-settings-heading { margin-bottom: 14px; }
.account-settings-heading h5 { margin: 0; color: #2f3b4e; }
.account-security-panel { max-width: 520px; }
.update-product-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(63,80,116,.08); padding: 26px; }
.update-product-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.update-product-logo { width: 56px; height: 56px; border-radius: 14px; background: #e8f1ff; color: #1689f5; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.update-product-header h2 { font-size: 20px; margin: 0; }
.update-version-label { color: #98a2b3; font-size: 13px; }
.update-version-badge { background: #e8f1ff; color: #1689f5; border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.update-product-actions { margin-left: auto; display: flex; gap: 8px; }
.update-system-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; margin: 20px 0; padding: 0; }
.update-system-list > div { border: 1px solid #eef1f6; border-radius: 10px; padding: 10px 14px; }
.update-system-list dt { color: #98a2b3; font-size: 12px; font-weight: 400; }
.update-system-list dd { margin: 2px 0 0; font-weight: 600; color: #344054; }
.update-dropzone { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 34px; text-align: center; color: #64748b; cursor: pointer; transition: .2s; }
.update-dropzone.is-dragging, .update-dropzone:hover { border-color: #1689f5; background: #f5faff; }
.update-dropzone.has-error { border-color: #e5484d; background: #fff5f5; }
.update-dropzone p span { color: #1689f5; text-decoration: underline; }
.update-file-choice { margin-top: 10px; color: #344054; }
.update-file-choice strong { display: block; }
.update-file-choice span { color: #98a2b3; font-size: 12px; }
.update-install-actions { margin-top: 14px; }
.update-install-actions p { color: #98a2b3; font-size: 12.5px; }
.update-source-settings { margin-top: 18px; border-top: 1px dashed #e2e8f0; padding-top: 18px; }
.update-source-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
@media (max-width: 768px) { .update-source-fields { grid-template-columns: 1fr; } }

/* ---------- 押金 / 提现 ---------- */
.deposit-metric-row .deposit-metric { border: 1px solid #eef1f6; border-radius: 10px; padding: 14px 16px; }
.deposit-metric span { color: #98a2b3; font-size: 12.5px; }
.deposit-metric strong { display: block; font-size: 22px; color: #344054; margin: 4px 0; }
.deposit-metric small { color: #98a2b3; }
.deposit-topup-panel { margin-top: 16px; }
.deposit-topup-heading { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.deposit-topup-heading strong { color: #344054; }
.deposit-topup-heading small { color: #98a2b3; }
.deposit-topup-unavailable { border: 1px dashed #fca5a5; background: #fef2f2; color: #b91c1c; border-radius: 10px; padding: 12px; font-size: 13px; }
.deposit-rule-note { color: #98a2b3; font-size: 12.5px; margin-top: 14px; margin-bottom: 0; }
.deposit-record-table th, .deposit-record-table td { white-space: nowrap; font-size: 13px; }
.withdraw-qr-preview { text-align: center; }
.withdraw-qr-preview img { max-width: 220px; max-height: 220px; border: 1px solid #eef1f6; border-radius: 10px; }
.withdraw-qr-caption { text-align: center; color: #98a2b3; margin-top: 8px; }

/* ---------- 公告 ---------- */
.notice-admin-stack .card + .card { margin-top: 18px; }
.notice-admin-list .notice-admin-item { display: flex; justify-content: space-between; gap: 12px; border: 1px solid #eef1f6; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.notice-admin-item .notice-meta { color: #98a2b3; font-size: 12px; }
.notice-admin-item .btn { padding: 3px 9px; font-size: 12.5px; }

/* ---------- 代理端通知条 ---------- */
.portal-notice-bar { background: linear-gradient(90deg,#eef5ff,#f5faff); border: 1px solid #dbe7fb; color: #344054; border-radius: 10px; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; font-size: 13px; }
.portal-notice-bar .tag { color: #1689f5; font-weight: 600; }

/* ---------- 通用增强 ---------- */
.table > :not(caption) > * > * { padding: .55rem .75rem; }
.badge.bg-light-primary { background: #e8f1ff !important; color: #1689f5 !important; }
.badge.bg-light-info { background: #e0f2fe !important; color: #0284c7 !important; }
.badge.bg-light-success { background: #e7f8ef !important; color: #12a150 !important; }
.badge.bg-light-warning { background: #fff5e5 !important; color: #d97706 !important; }
.badge.bg-light-danger { background: #fef2f2 !important; color: #e5484d !important; }
.form-label { font-weight: 500; color: #344054; font-size: 13.5px; }
.domain-bridge-divider { border-top: 1px dashed #e2e8f0; }
.domain-bridge-test-result { font-size: 13px; }
.domain-bridge-test-result.is-testing { color: #64748b; }
.domain-bridge-test-result.is-success { color: #12a150; }
.domain-bridge-test-result.is-error { color: #e5484d; }

/* ---------- 图表容器 ---------- */
.chart-container-1 { position: relative; height: 300px; }
.dashboard-donut { position: relative; height: 220px; margin-top: 12px; }
.dashboard-metric-list .badge { min-width: 74px; }
.dashboard-ranking-list .rank-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: #4a5058; }
.dashboard-kpi-row { margin-bottom: 18px; }
.dashboard-detail-row { margin-top: 18px; }

/* ---------- 一键更换防红域名弹窗 ---------- */
.domain-quick-change-modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.domain-quick-change-modal.is-open { display: flex; }
.domain-quick-change-dialog { background: #fff; border-radius: 14px; width: 100%; max-width: 460px; }
.domain-quick-change-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid #f0f3f8; }
.domain-quick-change-header h5 { margin: 0; font-size: 16px; }
.domain-quick-change-header p { margin: 4px 0 0; color: #98a2b3; font-size: 12.5px; }
.domain-quick-change-close { background: none; border: 0; font-size: 24px; color: #98a2b3; cursor: pointer; line-height: 1; }
.domain-quick-change-body { padding: 18px 20px; }
.domain-quick-change-meta { display: flex; justify-content: space-between; color: #64748b; font-size: 13px; margin-bottom: 12px; }
.domain-quick-change-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.domain-quick-change-tabs button { border: 1.5px solid #dde3ee; background: #fff; border-radius: 9px; padding: 8px; color: #64748b; font-size: 13.5px; }
.domain-quick-change-tabs button.is-active { border-color: #1689f5; color: #1689f5; background: #f0f7ff; }
.domain-quick-change-panel { display: none; }
.domain-quick-change-panel.is-active { display: block; }
.domain-quick-change-progress { margin-top: 14px; }

/* ---------- 模板编辑器 iframe 外壳 ---------- */
.template-editor-page-content { padding: 0 !important; }
.template-editor-frame-shell { position: relative; height: calc(100vh - 62px); background: #eef1f6; }
.template-editor-frame { width: 100%; height: 100%; border: 0; display: block; }

/* ===== 布局稳健补丁（仅防表格/内容把页面撑宽，不改动任何视觉风格） ===== */
.wrapper { min-width: 0; }
.page-wrapper { min-width: 0; }
.page-content { max-width: 100%; overflow-x: clip; }

/* ===== 顶栏布局修复（原始源码 header 无定位，被 flex 挤占使内容区右移 160px） ===== */
.wrapper > header { position: fixed; top: 0; left: 260px; right: 0; z-index: 1001; }
.page-wrapper { margin-top: 62px; }
@media (max-width: 991.98px) {
  .wrapper > header { left: 0; }
}
