:root {
    --black: #111111;
    --black-2: #1b1b1b;
    --text: #202020;
    --muted: #777777;
    --line: #dedede;
    --line-soft: #eeeeee;
    --canvas: #f3f3f3;
    --white: #ffffff;
    --success: #239b55;
    --danger: #d74444;
    --warning: #c58b1b;
    --sidebar: 224px;
    --topbar: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body, button, input, select, textarea { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 13px; color: var(--text); }
button, input, select, textarea { outline: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.admin-body { background: var(--canvas); }
.admin-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--sidebar); background: var(--black); color: #d6d6d6; display: flex; flex-direction: column; }
.brand { height: var(--topbar); display: flex; align-items: center; gap: 11px; padding: 0 18px; border-bottom: 1px solid #2d2d2d; color: #fff; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: #fff; color: #111; border-radius: 2px; font-size: 17px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: #8c8c8c; font-size: 10px; }
.nav { padding: 12px 10px; overflow: auto; }
.nav-title { margin: 15px 10px 7px; color: #696969; font-size: 10px; letter-spacing: .12em; }
.nav-item { height: 40px; margin: 3px 0; padding: 0 10px; display: flex; align-items: center; gap: 10px; border-radius: 2px; color: #bdbdbd; }
.nav-item b { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; color: #111; background: #fff; font-size: 9px; }
.nav-item:hover { color: #fff; background: #202020; }
.nav-item.active { background: #fff; color: #111; font-weight: 600; }
.nav-item.active b { color: #fff; background: #111; }
.sidebar-note { margin: auto 12px 14px; padding: 13px; border: 1px solid #303030; background: #171717; }
.sidebar-note strong { color: #eee; font-size: 11px; }
.sidebar-note p { margin: 7px 0 0; color: #777; font-size: 10px; line-height: 1.7; }
.sidebar-mask { display: none; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 40; top: 0; height: var(--topbar); padding: 0 20px; display: flex; align-items: center; gap: 14px; background: #fff; border-bottom: 1px solid var(--line); }
.menu-button { display: none; width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; }
.global-search { width: 360px; height: 34px; padding: 0 11px; display: flex; align-items: center; gap: 8px; background: #f7f7f7; border: 1px solid #e2e2e2; }
.global-search span { color: #666; font-size: 18px; line-height: 1; }
.global-search input { flex: 1; min-width: 0; border: 0; background: transparent; }
.topbar-spacer { flex: 1; }
.notice-button { position: relative; width: 34px; height: 34px; border: 0; background: #fff; font-size: 20px; }
.notice-button em { position: absolute; top: 2px; right: 1px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: #111; color: #fff; font-size: 8px; font-style: normal; }
.account { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #111; color: #fff; font-weight: 700; }
.account strong, .account small { display: block; }
.account strong { font-size: 12px; }
.account small { margin-top: 2px; color: #999; font-size: 9px; }
.logout { padding: 7px 10px; border: 1px solid var(--line); background: #fff; font-size: 11px; }
.logout:hover { background: #111; color: #fff; border-color: #111; }
.logout-form { margin: 0; }

.main-content { min-height: calc(100vh - var(--topbar)); }
.page-wrap { width: min(1500px, 100%); margin: 0 auto; padding: 20px; }
.page-heading { min-height: 55px; margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-heading h1 { margin: 0; font-size: 19px; line-height: 1.4; }
.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.page-actions { display: flex; gap: 8px; }
.page-help { color: var(--muted); font-size: 11px; }

.button { min-height: 34px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d6d6d6; border-radius: 2px; background: #fff; color: #222; font-size: 12px; }
.button:hover { border-color: #999; }
.button-dark { background: #111; border-color: #111; color: #fff; }
.button-dark:hover { background: #2a2a2a; border-color: #2a2a2a; }
.button-block { width: 100%; }
.button-small { min-height: 28px; padding: 0 9px; font-size: 9px; white-space: nowrap; }
.button:disabled { opacity: .55; cursor: default; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { min-height: 122px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.metric:first-child { border-left: 3px solid #111; }
.metric span, .metric strong, .metric small { display: block; }
.metric span { color: #666; font-size: 11px; }
.metric strong { margin: 10px 0 9px; font-size: 27px; line-height: 1; }
.metric small { color: #999; font-size: 9px; }
.mini-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-stat-grid article { min-height: 84px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); }
.mini-stat-grid span, .mini-stat-grid strong, .mini-stat-grid small { display: block; }
.mini-stat-grid span { color: #777; font-size: 10px; }
.mini-stat-grid strong { margin-top: 7px; font-size: 19px; }
.mini-stat-grid small { margin-top: 4px; color: #aaa; font-size: 9px; }

.dashboard-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dashboard-main { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(330px, 1fr); gap: 14px; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.panel-head { min-height: 48px; padding: 11px 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2 { margin: 0; font-size: 13px; }
.panel-head p { margin: 4px 0 0; color: #999; font-size: 9px; }
.panel-head a { padding-top: 3px; color: #555; font-size: 10px; }
.panel-note { align-self: center; color: #999; font-size: 9px; }
.table-panel { margin-bottom: 14px; }
.compact-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; }
.compact-metrics div { min-height: 65px; padding: 11px 8px; text-align: center; background: #fafafa; border: 1px solid #ededed; }
.compact-metrics strong, .compact-metrics span { display: block; }
.compact-metrics strong { font-size: 19px; }
.compact-metrics span { margin-top: 5px; color: #888; font-size: 9px; }
.progress-row { padding: 3px 14px 16px; display: grid; grid-template-columns: 70px 1fr 42px; align-items: center; gap: 10px; font-size: 9px; color: #777; }
.progress-row > div, .score > span { height: 5px; overflow: hidden; background: #e9e9e9; border-radius: 5px; }
.progress-row i, .score i { display: block; height: 100%; background: #222; }
.progress-row strong { text-align: right; color: #333; }
.engine-info { margin: 0; padding: 5px 14px 14px; }
.engine-info div { padding: 6px 0; display: flex; justify-content: space-between; border-top: 1px solid #f0f0f0; }
.engine-info dt { color: #888; font-size: 10px; }
.engine-info dd { margin: 0; font-weight: 600; font-size: 10px; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.wide-table { min-width: 1050px; }
.data-table th { padding: 10px 12px; background: #f7f7f7; border-bottom: 1px solid var(--line); color: #666; font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #ededed; font-size: 11px; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafafa; }
.title-cell { max-width: 320px; overflow: hidden; color: #222; font-weight: 600; text-overflow: ellipsis; }
.block { display: block; margin-top: 4px; color: #999; font-weight: 400; font-size: 9px; }
.tag { min-height: 20px; padding: 2px 7px; display: inline-flex; align-items: center; border: 1px solid #dedede; border-radius: 2px; background: #f4f4f4; color: #555; font-size: 9px; }
.tag-success { color: var(--success); border-color: #bfe2cc; background: #eef8f1; }
.tag-danger { color: var(--danger); border-color: #e7c1c1; background: #fff3f3; }
.entity { display: flex; align-items: center; gap: 9px; }
.entity > span, .file-name > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; background: #111; color: #fff; font-size: 10px; font-weight: 700; }
.entity strong, .entity small { display: block; }
.entity strong { font-size: 11px; }
.entity small { margin-top: 3px; color: #999; font-size: 9px; }
.score { min-width: 105px; display: flex; align-items: center; gap: 8px; }
.score > span { width: 60px; }
.score b { font-size: 9px; }
.inline-form select { height: 28px; padding: 0 22px 0 7px; border: 1px solid #d8d8d8; background: #fff; font-size: 9px; }
.file-name { display: flex; align-items: center; gap: 9px; }
.file-name > span { background: #e5e5e5; color: #444; }

.site-summary-list { padding: 8px 14px 14px; }
.site-summary { min-height: 52px; padding: 8px 0; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #eee; }
.site-summary:last-child { border-bottom: 0; }
.site-avatar { width: 30px; height: 30px; display: grid; place-items: center; background: #eee; color: #555; font-size: 9px; font-weight: 700; }
.site-summary > div { min-width: 0; flex: 1; }
.site-summary strong, .site-summary small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.site-summary strong { font-size: 11px; }
.site-summary small { margin-top: 3px; color: #999; font-size: 9px; }
.site-summary p { margin: 0; color: #777; font-size: 9px; }
.site-summary p b { color: #222; }
.site-summary p em { display: block; margin-top: 3px; color: #999; font-style: normal; text-align: right; }

.filter-bar { margin-bottom: 12px; padding: 10px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); }
.filter-bar input, .filter-bar select { height: 34px; min-width: 170px; padding: 0 10px; border: 1px solid #d8d8d8; background: #fff; }
.filter-bar input:focus, .filter-bar select:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .field-grid input:focus, .field-grid select:focus, .field-grid textarea:focus, .login-form input:focus { border-color: #555; box-shadow: 0 0 0 2px #eeeeee; }

.alert { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #d6d6d6; background: #fff; font-size: 11px; }
.alert-success { color: #236f42; border-color: #bfe2cc; background: #f2faf5; }
.alert-error { color: #a73333; border-color: #e7c1c1; background: #fff5f5; }

.modal { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.55); }
.modal.open { display: grid; }
.modal-card { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 3px; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.modal-card > header { min-height: 60px; padding: 13px 16px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-card h2 { margin: 0; font-size: 15px; }
.modal-card header p { margin: 4px 0 0; color: #888; font-size: 9px; }
.modal-card header button { border: 0; background: transparent; font-size: 22px; }
.modal-card form > footer { padding: 12px 16px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: #fafafa; }
.form-grid { padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.form-grid label.full, .form-grid .form-field.full { grid-column: 1 / -1; }
.form-grid label > span, .form-grid .form-field > span, .login-form label > span { display: block; margin-bottom: 6px; color: #555; font-size: 10px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 0 10px; border: 1px solid #d8d8d8; background: #fff; }
.form-grid input, .form-grid select { height: 38px; }
.form-grid textarea { padding-top: 10px; resize: vertical; line-height: 1.7; }
.table-actions { display: flex; align-items: center; gap: 6px; }
.table-actions a { padding: 5px 8px; border: 1px solid #d8d8d8; background: #fff; font-size: 9px; }
.table-actions a:hover { color: #fff; background: #111; border-color: #111; }
.deploy-table { min-width: 1140px; }
.domain-text { font-family: Consolas, monospace; font-size: 10px; }
.table-text { max-width: 190px; display: block; overflow: hidden; text-overflow: ellipsis; }
.error-text { max-width: 210px; overflow: hidden; color: var(--danger); text-overflow: ellipsis; }
.deploy-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); gap: 14px; align-items: start; }
.nginx-panel { min-width: 0; }
.config-code { max-height: 610px; margin: 0; padding: 18px; overflow: auto; background: #151515; color: #d7d7d7; font: 10px/1.75 Consolas, "Courier New", monospace; white-space: pre; }
.readiness-panel { align-self: start; }
.deploy-checklist { margin: 0; padding: 8px 16px; list-style: none; }
.deploy-checklist li { padding: 13px 0; display: flex; gap: 11px; border-bottom: 1px solid #ededed; }
.deploy-checklist li:last-child { border-bottom: 0; }
.deploy-checklist b { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; background: #111; color: #fff; font-size: 9px; }
.deploy-checklist strong { font-size: 10px; }
.deploy-checklist p { margin: 4px 0 0; color: #888; font-size: 9px; line-height: 1.6; }
.deploy-warning { margin: 8px 16px 16px; padding: 12px; border: 1px solid #e2d4af; background: #fffaf0; }
.deploy-warning strong { color: #7d5a10; font-size: 10px; }
.deploy-warning p { margin: 6px 0 0; color: #8b7443; font-size: 9px; line-height: 1.6; }

.settings-form { padding-bottom: 72px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-section { align-self: start; }
.settings-section .panel-head { align-items: center; }
.step-chip { width: 28px; height: 22px; display: grid; place-items: center; background: #111; color: #fff; font-size: 9px; }
.field-grid { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-grid.single-column { grid-template-columns: 1fr; }
.field-grid label.full, .field-grid .form-field.full { grid-column: 1 / -1; }
.field-grid label > span, .field-grid .form-field > span, .editor-fields label > span { display: block; margin-bottom: 6px; color: #555; font-size: 10px; }
.field-grid input, .field-grid select, .field-grid textarea, .editor-fields input, .editor-fields select, .editor-fields textarea { width: 100%; padding: 0 10px; border: 1px solid #d8d8d8; background: #fff; }
.field-grid input, .field-grid select, .editor-fields input, .editor-fields select { height: 38px; }
.field-grid textarea, .editor-fields textarea { padding-top: 10px; resize: vertical; line-height: 1.75; }
.field-grid label small { display: block; margin-top: 7px; color: #999; font-size: 9px; line-height: 1.5; }
.code-textarea { font-family: Consolas, monospace; font-size: 11px; }
.sticky-save { position: fixed; z-index: 35; right: 0; bottom: 0; left: var(--sidebar); min-height: 58px; padding: 10px 20px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.sticky-save span { color: #777; font-size: 10px; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.editor-main { min-width: 0; }
.editor-fields { padding: 16px; }
.editor-fields > label { display: block; margin-bottom: 14px; }
.editor-fields .field-grid { padding: 0; }
.title-input { height: 46px !important; font-size: 18px; font-weight: 600; }
.article-content { min-height: 410px; font-size: 13px; }
.editor-side { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar) + 14px); }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.app-card { min-height: 132px; padding: 16px; display: grid; grid-template-columns: 38px 1fr auto; align-items: start; gap: 11px; background: #fff; border: 1px solid var(--line); }
.app-mark { width: 38px; height: 38px; display: grid; place-items: center; background: #111; color: #fff; font-weight: 700; }
.app-card h2 { margin: 1px 0 5px; font-size: 13px; }
.app-card p { margin: 0; color: #888; font-size: 9px; line-height: 1.6; }
.app-card .button { grid-column: 2 / 4; justify-self: end; min-height: 29px; padding: 0 11px; font-size: 10px; }
.info-panel { padding-bottom: 10px; }
.step-list { margin: 0; padding: 10px 18px 5px; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step-list li { padding: 13px; display: flex; gap: 10px; border: 1px solid #e7e7e7; }
.step-list b { width: 22px; height: 22px; display: grid; place-items: center; background: #111; color: #fff; font-size: 10px; }
.step-list strong { font-size: 11px; }
.step-list p { margin: 5px 0 0; color: #888; font-size: 9px; line-height: 1.6; }

.login-body { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: #f1f1f1; }
.login-panel { width: min(390px, 100%); padding: 28px; background: #fff; border: 1px solid #d9d9d9; border-radius: 3px; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.login-brand { margin-bottom: 25px; display: flex; align-items: center; gap: 12px; }
.login-mark { width: 44px; height: 44px; display: grid; place-items: center; background: #111; color: #fff; font-size: 20px; font-weight: 800; }
.login-brand h1 { margin: 0; font-size: 18px; }
.login-brand p { margin: 5px 0 0; color: #888; font-size: 10px; }
.login-form { display: grid; gap: 15px; }
.login-form input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #d5d5d5; background: #fff; }
.login-form .button { margin-top: 3px; height: 42px; }
.login-tip { margin-top: 18px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; align-items: center; gap: 5px; background: #f6f6f6; color: #777; font-size: 9px; }
.login-tip code { color: #111; font-weight: 700; }
.login-foot { margin: 17px 0 0; color: #aaa; font-size: 9px; text-align: center; }
.empty-cell { padding: 28px 12px !important; color: #999 !important; text-align: center; font-weight: 400 !important; }

/* ---- V4 账号/权限/审计 ---- */
.check-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; }
.check-item { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid #dedede; background: #fafafa; font-size: 11px; cursor: pointer; }
.check-item input { margin: 0; }
.perm-tree { max-height: 46vh; overflow-y: auto; padding: 4px 2px; }
.perm-group { margin-bottom: 10px; border: 1px solid #e7e7e7; background: #fafafa; }
.perm-group-head { padding: 9px 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #eee; cursor: pointer; }
.perm-group-head small, .perm-item small { margin-left: 4px; color: #aaa; font-size: 9px; }
.perm-item { padding: 7px 12px 7px 34px; display: flex; align-items: center; gap: 8px; font-size: 11px; cursor: pointer; }
.perm-subitem { padding-left: 56px; color: #555; }
.perm-item:hover { background: #f2f6fb; }
.perm-item input { margin: 0; }
.audit-detail { padding: 4px 18px; display: grid; gap: 10px; }
.audit-detail p { margin: 0; display: grid; grid-template-columns: 90px 1fr; align-items: baseline; gap: 8px; font-size: 11px; }
.audit-detail p > span { color: #888; }
.audit-detail p small { color: #888; word-break: break-all; }
.code-block { padding: 10px; display: block; max-height: 180px; overflow: auto; background: #f6f6f6; border: 1px solid #ededed; font-size: 10px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.settings-panel { padding-bottom: 10px; }
.perm-modal .modal-card { width: min(640px, calc(100vw - 40px)); }

/* ---- V4 CMS ---- */
.rich-editor { border: 1px solid #d8d8d8; background: #fff; }
.rich-toolbar { padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #e8e8e8; background: #fafafa; }
.rich-toolbar button { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid #dedede; background: #fff; font-size: 12px; cursor: pointer; }
.rich-toolbar button:hover { border-color: #555; }
.rich-content { min-height: 320px; padding: 14px 16px; line-height: 1.8; font-size: 14px; overflow-y: auto; }
.rich-content:focus { outline: none; }
.rich-content img { max-width: 100%; }
.rich-content blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid #bbb; background: #f7f7f7; color: #666; }
.rich-content pre, .rich-content code { background: #f5f5f5; font-family: Consolas, monospace; }
.rich-content table { border-collapse: collapse; }
.rich-content td, .rich-content th { border: 1px solid #ddd; padding: 6px 10px; }
.rich-content[data-placeholder]:empty::before { color: #a5afbe; content: attr(data-placeholder); pointer-events: none; }
.cover-row { display: flex; gap: 8px; }
.cover-row input { flex: 1; }
.link-suggest { display: flex; gap: 8px; flex-wrap: wrap; }
.link-suggest input { flex: 1; min-width: 200px; }
.link-suggest-list { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.link-suggest-item { font-size: 10px !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-list { padding: 4px 14px 10px; display: grid; gap: 8px; }
.version-item { padding: 8px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; border: 1px solid #ededed; background: #fafafa; }
.version-item > span { font-weight: 700; color: #555; }
.version-item strong { display: block; font-size: 11px; }
.version-item small { color: #999; font-size: 9px; }
.version-item .button { min-height: 26px; padding: 0 9px; font-size: 10px; }
.empty-tip { margin: 10px 0; color: #999; font-size: 10px; text-align: center; }
.batch-bar { padding: 10px 12px; border-top: 1px solid #ededed; background: #fafafa; }
.batch-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; }
.batch-form select, .batch-form input { padding: 6px 8px; border: 1px solid #d8d8d8; background: #fff; font-size: 11px; }
.batch-form b { color: #111; }

@media (max-width: 1100px) {
    .metric-grid-five { grid-template-columns: repeat(3, 1fr); }
    .app-grid { grid-template-columns: repeat(2, 1fr); }
    .step-list { grid-template-columns: repeat(2, 1fr); }
    .deploy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .metric-grid, .mini-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-row, .dashboard-main { grid-template-columns: 1fr; }
    .global-search { width: 280px; }
    .settings-grid, .editor-layout { grid-template-columns: 1fr; }
    .editor-side { position: static; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-mask { position: fixed; z-index: 45; inset: 0; background: rgba(0,0,0,.38); }
    .sidebar-mask.open { display: block; }
    .workspace { margin-left: 0; }
    .menu-button { display: block; }
    .topbar { padding: 0 12px; gap: 9px; }
    .global-search { min-width: 0; width: auto; flex: 1; }
    .account > span:last-child { display: none; }
    .account { padding-left: 8px; }
    .page-wrap { padding: 14px; }
    .page-heading { align-items: flex-start; }
    .filter-bar { align-items: stretch; flex-wrap: wrap; }
    .filter-bar input, .filter-bar select { flex: 1 1 170px; min-width: 0; }
    .app-grid { grid-template-columns: 1fr; }
    .sticky-save { left: 0; }
}

@media (max-width: 540px) {
    .metric-grid, .metric-grid-five, .mini-stat-grid { grid-template-columns: 1fr; }
    .metric { min-height: 110px; }
    .page-heading { display: block; }
    .page-heading .button, .page-heading .page-actions { margin-top: 12px; }
    .page-actions { display: flex; }
    .compact-metrics { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid label.full { grid-column: auto; }
    .field-grid { grid-template-columns: 1fr; }
    .field-grid label.full { grid-column: auto; }
    .sticky-save { justify-content: space-between; padding: 9px 14px; }
    .sticky-save span { display: none; }
    .step-list { grid-template-columns: 1fr; }
    .notice-button { display: none; }
    .logout { padding: 7px; }
}

/* 爬虫日志分析 */
.crawler-trust-note strong { color: #26324a; }
.crawler-analysis-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; margin-bottom: 16px; }
.crawler-trend { padding: 14px 18px 18px; }
.crawler-trend-row { min-height: 34px; display: grid; grid-template-columns: 42px minmax(100px, 1fr) 38px 105px; align-items: center; gap: 10px; color: #77849a; font-size: 9px; }
.crawler-trend-row > div { height: 8px; overflow: hidden; background: #edf2f8; border-radius: 8px; }
.crawler-trend-row i { display: block; height: 100%; background: linear-gradient(90deg, #74a3f8, #2563eb); border-radius: inherit; }
.crawler-trend-row strong { color: #2c3951; text-align: right; }
.crawler-trend-row small { color: #98a3b5; text-align: right; }
.crawler-log-table { min-width: 1520px; }
.crawler-ua { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.crawler-catalog-panel { margin-bottom: 16px; }
.crawler-catalog-grid { padding: 16px 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.crawler-catalog-grid > div { min-height: 100px; padding: 13px; background: #f8faff; border: 1px solid #e7edf7; border-radius: 9px; }
.crawler-catalog-grid strong, .crawler-catalog-grid span { display: block; }
.crawler-catalog-grid strong { color: #2c3951; font-size: 11px; }
.crawler-catalog-grid span { margin-top: 5px; color: #2563eb; font-size: 9px; }
.crawler-catalog-grid p { margin: 8px 0 0; color: #7f8ba0; font-size: 9px; line-height: 1.65; }
@media (max-width: 980px) {
    .crawler-analysis-grid { grid-template-columns: 1fr; }
    .crawler-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .crawler-trend-row { grid-template-columns: 38px minmax(70px, 1fr) 30px; }
    .crawler-trend-row small { display: none; }
    .crawler-catalog-grid { grid-template-columns: 1fr; padding: 14px; }
}

/* ========================================================================== */
/* V5 · Blue & White SaaS UI                                                  */
/* ========================================================================== */
:root {
    --black: #2563eb;
    --black-2: #1d4ed8;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --primary-line: #bfdbfe;
    --text: #172033;
    --muted: #6b7890;
    --line: #e3e9f2;
    --line-soft: #edf1f6;
    --canvas: #f5f7fb;
    --white: #ffffff;
    --success: #16a36a;
    --danger: #e5484d;
    --warning: #d99000;
    --sidebar: 236px;
    --topbar: 68px;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(31, 42, 68, .04), 0 8px 24px rgba(31, 42, 68, .035);
}

html { background: var(--canvas); }
body, button, input, select, textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
}
::selection { color: #fff; background: var(--primary); }
button, input, select, textarea { transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; }

.admin-body { background: var(--canvas); }
.sidebar {
    width: var(--sidebar);
    color: #536078;
    background: #fff;
    border-right: 1px solid var(--line);
    box-shadow: 6px 0 26px rgba(31, 42, 68, .025);
}
.brand {
    height: var(--topbar);
    gap: 12px;
    padding: 0 20px;
    color: var(--text);
    border-bottom: 1px solid var(--line-soft);
}
.brand-mark {
    width: 36px;
    height: 36px;
    color: #fff;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(37, 99, 235, .22);
    font-size: 12px;
    letter-spacing: -.02em;
}
.brand strong { color: #182238; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.brand small { margin-top: 3px; color: #8b97aa; font-size: 10px; }
.nav { padding: 18px 14px 24px; scrollbar-width: thin; scrollbar-color: #dce4ef transparent; }
.nav-group { margin: 0 0 21px; padding: 0; background: transparent; border: 0; }
.nav-group:last-child { margin-bottom: 8px; }
.nav-title { display: flex; align-items: center; gap: 10px; margin: 0 4px 8px; padding: 0; color: #99a4b6; border: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.nav-title::after { content: ""; width: 100%; height: 1px; background: #edf0f5; }
.nav-group-items { position: relative; margin-left: 5px; padding: 1px 0 1px 10px; border-left: 1px solid #e5eaf1; }
.nav-item {
    position: relative;
    height: 38px;
    margin: 2px 0;
    padding: 0 11px;
    gap: 0;
    color: #5d6980;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
}
.nav-item b {
    min-width: 19px;
    height: 19px;
    color: #4774bd;
    background: #eaf2ff;
    border: 0;
    font-size: 9px;
}
.nav-item:hover { color: #315f9f; background: #f4f7fb; }
.nav-item.active { color: #1f5fc4; background: #edf4ff; box-shadow: none; font-weight: 650; }
.nav-item.active::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: -11px; width: 2px; background: #3b78dc; border-radius: 2px; }
.nav-item.active b { color: #fff; background: #5b8def; }
.sidebar-note {
    margin: auto 14px 16px;
    padding: 13px 14px;
    color: #44618d;
    background: #f5f9ff;
    border: 1px solid #dceaff;
    border-radius: 10px;
}
.sidebar-note > div { display: flex; align-items: center; gap: 7px; }
.sidebar-note strong { color: #315b98; font-size: 10px; }
.sidebar-note p { margin-top: 6px; color: #7c91af; line-height: 1.5; }
.system-dot { width: 7px; height: 7px; border-radius: 50%; background: #22b77a; box-shadow: 0 0 0 4px rgba(34,183,122,.1); }

.workspace { margin-left: var(--sidebar); }
.topbar {
    height: var(--topbar);
    padding: 0 24px;
    gap: 12px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(31,42,68,.015);
    backdrop-filter: blur(12px);
}
.menu-button {
    width: 38px;
    height: 38px;
    color: #536078;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.global-search {
    width: min(390px, 34vw);
    height: 38px;
    padding: 0 13px;
    gap: 10px;
    background: #f6f8fb;
    border: 1px solid transparent;
    border-radius: 10px;
}
.global-search:focus-within { background: #fff; border-color: #93b7fb; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.global-search input { color: #26324a; font-size: 12px; }
.global-search input::placeholder { color: #9ca7b9; }
.search-icon { position: relative; width: 15px; height: 15px; flex: 0 0 auto; border: 1.8px solid #8491a6; border-radius: 50%; }
.search-icon::after { position: absolute; right: -4px; bottom: -2px; width: 6px; height: 1.8px; content: ""; background: #8491a6; border-radius: 2px; transform: rotate(45deg); }
.notice-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #61708a;
    background: #f6f8fb;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}
.notice-button:hover { color: var(--primary); background: var(--primary-soft); border-color: #dbeafe; }
.account { gap: 10px; padding-left: 12px; border-left-color: var(--line); }
.avatar {
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(145deg, #5b8def, #2563eb);
    box-shadow: 0 4px 12px rgba(37,99,235,.16);
}
.account strong { color: #26324a; font-size: 11px; }
.account small { color: #8c98aa; font-size: 9px; }
.logout {
    min-height: 32px;
    padding: 0 11px;
    color: #68758a;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 10px;
}
.logout:hover { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-line); }

.page-wrap { width: min(1540px, 100%); padding: 26px 28px 36px; }
.page-heading { min-height: 58px; margin-bottom: 20px; align-items: center; }
.page-heading h1 { color: #172033; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.page-heading p { margin-top: 6px; color: #7c899e; font-size: 11px; }
.page-actions { flex-wrap: wrap; }
.page-help { display: block; margin: -8px 0 16px; color: #7d899b; font-size: 10px; }

.button {
    min-height: 36px;
    padding: 0 14px;
    color: #43516a;
    background: #fff;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(31,42,68,.025);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.button:hover { color: var(--primary); background: #f9fbff; border-color: #9ebdf5; }
.button-dark { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 5px 13px rgba(37,99,235,.16); }
.button-dark:hover { color: #fff; background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 7px 16px rgba(37,99,235,.2); }
.button-small { min-height: 30px; padding: 0 10px; font-size: 10px; }
.button:disabled { color: #9aa4b4; background: #f3f5f8; border-color: #e6eaf0; box-shadow: none; }

.metric-grid { gap: 14px; margin-bottom: 16px; }
.metric {
    position: relative;
    min-height: 128px;
    padding: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.metric::after { position: absolute; top: 20px; right: 20px; width: 8px; height: 8px; content: ""; background: #3b82f6; border-radius: 50%; box-shadow: 0 0 0 6px #eff6ff; }
.metric:nth-child(2)::after { background: #8b5cf6; box-shadow: 0 0 0 6px #f5f3ff; }
.metric:nth-child(3)::after { background: #16a36a; box-shadow: 0 0 0 6px #ecfdf5; }
.metric:nth-child(4)::after { background: #f59e0b; box-shadow: 0 0 0 6px #fffbeb; }
.metric:nth-child(5)::after { background: #06b6d4; box-shadow: 0 0 0 6px #ecfeff; }
.metric:first-child { border-left: 1px solid var(--line); }
.metric span { color: #6f7c91; font-size: 11px; font-weight: 500; }
.metric strong { margin: 13px 0 10px; color: #172033; font-size: 28px; font-weight: 720; letter-spacing: -.03em; }
.metric small { color: #9aa5b6; font-size: 9px; }
.mini-stat-grid { gap: 12px; margin-bottom: 16px; }
.mini-stat-grid article {
    min-height: 90px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.mini-stat-grid span { color: #748198; font-size: 10px; }
.mini-stat-grid strong { color: #172033; font-size: 21px; }
.mini-stat-grid small { color: #9ba6b7; }

.dashboard-row, .dashboard-main { gap: 16px; margin-bottom: 16px; }
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.panel-head { min-height: 58px; padding: 14px 18px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.panel-head h2 { color: #26324a; font-size: 13px; font-weight: 700; }
.panel-head p { margin-top: 5px; color: #929daf; font-size: 9px; }
.panel-head a { color: var(--primary); font-size: 10px; font-weight: 600; }
.panel-head a:hover { color: var(--primary-hover); }
.panel-note { color: #8b97aa; }
.table-panel { margin-bottom: 16px; }
.compact-metrics { gap: 10px; padding: 16px 18px; }
.compact-metrics div { min-height: 70px; padding: 12px 8px; background: #f8faff; border: 1px solid #edf2fa; border-radius: 9px; }
.compact-metrics strong { color: #25314a; font-size: 20px; }
.compact-metrics span { color: #8591a5; }
.progress-row { padding: 5px 18px 18px; grid-template-columns: 74px 1fr 46px; }
.progress-row > div, .score > span { height: 6px; background: #e9eef6; }
.progress-row i, .score i { background: linear-gradient(90deg, #5b8def, #2563eb); border-radius: inherit; }
.progress-row strong { color: var(--primary); }
.engine-info { padding: 5px 18px 16px; }
.engine-info div { padding: 8px 0; border-top-color: var(--line-soft); }
.engine-info dt { color: #8692a5; }
.engine-info dd { color: #3b4860; }

.data-table th { padding: 12px 14px; color: #718097; background: #f8fafd; border-bottom-color: var(--line); font-size: 10px; font-weight: 650; }
.data-table td { padding: 12px 14px; color: #48556c; border-bottom-color: var(--line-soft); font-size: 11px; }
.data-table tbody tr { transition: background-color .15s ease; }
.data-table tbody tr:hover { background: #f8fbff; }
.title-cell { color: #25314a; }
.block { color: #98a3b5; }
.tag {
    min-height: 22px;
    padding: 2px 8px;
    color: #5f6c82;
    background: #f5f7fa;
    border: 1px solid #e2e7ef;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 550;
}
.tag-success { color: #087a4e; background: #ecfdf5; border-color: #bcebd6; }
.tag-danger { color: #c3313a; background: #fff1f2; border-color: #fecdd3; }
.entity > span, .file-name > span {
    border-radius: 8px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid #dbeafe;
}
.entity strong { color: #2e3a52; }
.entity small { color: #97a3b5; }
.file-name > span { color: #63718a; background: #f2f5f9; border-color: #e5eaf1; }
.score > span { border-radius: 6px; }
.inline-form select { border-color: #dbe2ec; border-radius: 7px; color: #536078; }
.inline-form select:focus { border-color: #8bb0f4; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.site-summary-list { padding: 10px 18px 16px; }
.site-summary { min-height: 58px; padding: 10px 0; border-bottom-color: var(--line-soft); }
.site-avatar { width: 34px; height: 34px; color: var(--primary); background: var(--primary-soft); border-radius: 9px; }
.site-summary strong { color: #354158; }
.site-summary small, .site-summary p, .site-summary p em { color: #919cad; }
.site-summary p b { color: #354158; }

.filter-bar {
    margin-bottom: 14px;
    padding: 12px;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}
.filter-bar input, .filter-bar select { min-width: 140px; flex: 1 1 140px; }
.filter-bar .button { flex: 0 0 auto; }
.filter-bar input, .filter-bar select,
.form-grid input, .form-grid select, .form-grid textarea,
.field-grid input, .field-grid select, .field-grid textarea,
.editor-fields input, .editor-fields select, .editor-fields textarea,
.login-form input, .batch-form select, .batch-form input {
    color: #334058;
    background: #fff;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
}
.filter-bar input, .filter-bar select { height: 36px; }
.filter-bar input::placeholder, .form-grid input::placeholder, .form-grid textarea::placeholder,
.field-grid input::placeholder, .field-grid textarea::placeholder, .login-form input::placeholder { color: #a5afbe; }
.filter-bar input:focus, .filter-bar select:focus, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus,
.field-grid input:focus, .field-grid select:focus, .field-grid textarea:focus, .editor-fields input:focus, .editor-fields select:focus,
.editor-fields textarea:focus, .login-form input:focus, .batch-form input:focus, .batch-form select:focus {
    border-color: #86abf2;
    box-shadow: 0 0 0 3px rgba(37,99,235,.09);
}

.alert { padding: 11px 14px; color: #536078; background: #f8faff; border: 1px solid #dfe8f6; border-radius: 9px; }
.alert-success { color: #087a4e; background: #effcf6; border-color: #bcebd6; }
.alert-error { color: #b92b35; background: #fff3f4; border-color: #fecdd3; }

.modal { background: rgba(22, 32, 51, .48); backdrop-filter: blur(3px); }
.modal-card { border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: 0 24px 70px rgba(17, 31, 54, .22); }
.modal-card > header { min-height: 64px; padding: 15px 18px; align-items: center; border-bottom-color: var(--line-soft); }
.modal-card h2 { color: #26324a; font-size: 15px; }
.modal-card header p { color: #919caf; }
.modal-card header button { width: 32px; height: 32px; display: grid; place-items: center; color: #7d899b; background: #f5f7fa; border-radius: 8px; }
.modal-card header button:hover { color: var(--primary); background: var(--primary-soft); }
.modal-card form > footer { padding: 13px 18px; background: #f9fbfd; border-top-color: var(--line-soft); }
.form-grid { padding: 18px; gap: 15px; }
.form-grid label > span, .form-grid .form-field > span, .login-form label > span, .field-grid label > span, .field-grid .form-field > span, .editor-fields label > span { color: #536078; font-weight: 550; }
.form-grid input, .form-grid select { height: 40px; }
.form-grid .form-note.full { grid-column: 1 / -1; }
.form-note { padding: 11px 13px; color: #70809a; background: #f6f9fd; border: 1px solid #e1e9f4; border-radius: 8px; font-size: 12px; line-height: 1.7; }
.table-actions { flex-wrap: wrap; }
.table-actions a { padding: 6px 9px; color: #536078; background: #fff; border: 1px solid #dbe2ec; border-radius: 7px; }
.table-actions a:hover { color: var(--primary); background: var(--primary-soft); border-color: #bad2fb; }

.config-code { background: #172033; color: #dbe7ff; border-radius: 0 0 var(--radius) var(--radius); }
.deploy-checklist b, .step-list b { color: #fff; background: var(--primary); border-radius: 7px; }
.deploy-checklist li { border-bottom-color: var(--line-soft); }
.deploy-warning { background: #fffaf0; border-color: #f3dfad; border-radius: 8px; }
.step-chip { color: #fff; background: var(--primary); border-radius: 7px; }
.field-grid { padding: 18px; gap: 15px; }
.field-grid input, .field-grid select, .editor-fields input, .editor-fields select { height: 40px; }
.settings-form-bordered { border-top: 1px solid var(--line-soft); }
.sticky-save {
    position: static;
    min-height: 62px;
    padding: 12px 18px;
    background: #f9fbfd;
    border-top: 1px solid var(--line-soft);
}
.sticky-save span { color: #8793a6; }
.editor-fields { padding: 18px; }
.editor-side { top: calc(var(--topbar) + 18px); }
.title-input { height: 48px !important; color: #1f2b42 !important; }
.app-grid { gap: 14px; margin-bottom: 16px; }
.app-card { min-height: 142px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.app-mark { width: 40px; height: 40px; color: var(--primary); background: var(--primary-soft); border: 1px solid #dbeafe; border-radius: 10px; }
.app-card h2 { color: #29354d; }
.app-card p { color: #8995a8; }
.step-list li { border-color: var(--line); border-radius: 9px; background: #fbfcfe; }

.check-item { color: #536078; background: #f8fafd; border-color: #dfe5ee; border-radius: 7px; }
.check-item:has(input:checked) { color: var(--primary); background: var(--primary-soft); border-color: #b7d0fb; }
.perm-group { border-color: var(--line); background: #fbfcfe; border-radius: 9px; overflow: hidden; }
.perm-group-head { border-bottom-color: var(--line-soft); }
.perm-item:hover { color: var(--primary); background: var(--primary-soft); }
.code-block { color: #44516a; background: #f7f9fc; border-color: var(--line); border-radius: 8px; }
.rich-editor { border-color: #dbe2ec; border-radius: 9px; overflow: hidden; }
.rich-toolbar { background: #f8fafd; border-bottom-color: var(--line); }
.rich-toolbar button { color: #536078; background: #fff; border-color: #dbe2ec; border-radius: 6px; }
.rich-toolbar button:hover { color: var(--primary); background: var(--primary-soft); border-color: #9dbcf4; }
.rich-content blockquote { border-left-color: var(--primary); background: var(--primary-soft); }
.version-item { background: #f8fafd; border-color: var(--line); border-radius: 8px; }
.batch-bar { padding: 11px 14px; background: #f9fbfd; border-top-color: var(--line-soft); border-radius: 0 0 var(--radius) var(--radius); }
.batch-form b { color: var(--primary); }
.empty-cell { color: #9aa5b6 !important; }
.panel-action-bar { padding: 12px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line-soft); background: #f9fbfd; border-radius: 0 0 var(--radius) var(--radius); }
.tree-depth-1 { padding-left: 34px !important; }
.tree-depth-2 { padding-left: 58px !important; }
.redirect-from-field { width: 220px; }
.redirect-to-field { width: 280px; }

/* 品牌 Logo 与产品管理 */
.image-uploader { display: flex; align-items: center; gap: 18px; padding: 14px; background: #f8fafd; border: 1px dashed #cbd7e8; border-radius: 12px; }
.upload-preview { flex: 0 0 auto; width: 150px; height: 78px; display: grid; place-items: center; overflow: hidden; color: #7890b4; background: #fff; border: 1px solid #e1e8f2; border-radius: 10px; font-size: 12px; font-weight: 700; }
.upload-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.product-image-preview { width: 220px; height: 156px; background: linear-gradient(145deg, #edf5ff, #fff); }
.product-image-preview img { object-fit: cover; }
.upload-controls { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.upload-controls small { color: #8b98aa; font-size: 10px; line-height: 1.6; }
.product-table { min-width: 980px; }
.product-name-cell { min-width: 270px; }
.product-admin-card { display: flex; align-items: center; gap: 12px; }
.product-admin-card > img, .product-cover-empty { flex: 0 0 auto; width: 58px; height: 44px; display: grid; place-items: center; object-fit: cover; color: var(--primary); background: var(--primary-soft); border: 1px solid #dce8fb; border-radius: 9px; font-weight: 800; }
.product-admin-card strong, .product-admin-card small { display: block; }
.product-admin-card strong { color: #26324a; font-size: 12px; }
.product-admin-card small { max-width: 310px; margin-top: 5px; overflow: hidden; color: #93a0b2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.table-actions form { display: inline-flex; }
.table-actions button { padding: 6px 9px; border: 1px solid #f4c9cd; border-radius: 7px; color: #c13d47; background: #fff8f8; font-size: 10px; }
.table-actions button:hover { background: #fff0f1; }
.empty-state { min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.empty-state strong { color: #44516a; font-size: 13px; }
.empty-state span { color: #99a4b4; }
.modal-card-wide { width: min(760px, calc(100vw - 28px)); }
.modal-card-editor { width: min(940px, calc(100vw - 28px)); }
.modal-card-editor .form-grid { padding: 20px; }
.compact-uploader { min-height: 126px; }
.content-cover-preview { width: 178px; height: 100px; background: linear-gradient(145deg, #eef6ff, #fff); }
.content-cover-preview img { object-fit: cover; }
.simple-rich-editor .rich-toolbar { align-items: center; padding: 8px; }
.simple-rich-editor .rich-toolbar button { min-width: 32px; height: 30px; font-size: 10px; }
.simple-rich-editor [data-editor-status] { margin-left: auto; padding: 0 6px; color: #4f8a69; font-size: 9px; }
.simple-rich-editor [data-editor-status].error { color: var(--danger); }
.compact-rich-content { min-height: 230px; max-height: 420px; }
.product-rich-content { min-height: 380px; max-height: 680px; }
.field-help { margin-top: 7px; display: block; color: #929daf; font-size: 9px; line-height: 1.6; }
.rich-content h2 { margin: 22px 0 10px; color: #25334b; font-size: 21px; }
.rich-content h3 { margin: 18px 0 8px; color: #35445c; font-size: 17px; }
.rich-content p { margin: 0 0 12px; }
.rich-content hr { margin: 20px 0; border: 0; border-top: 1px solid #dfe5ee; }
.rich-content a { color: var(--primary); text-decoration: underline; }
.product-editor .editor-main { overflow: hidden; }
.product-content-input { min-height: 330px; line-height: 1.8; font-family: inherit; }
.product-help-card { padding: 20px; }
.product-help-card .help-icon { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 8px; font-weight: 800; }
.product-help-card h3 { margin: 14px 0 8px; color: #27334a; font-size: 13px; }
.product-help-card p { margin: 0; color: #8793a6; font-size: 10px; line-height: 1.8; }
.file-name > div { min-width: 0; }
.file-name > div strong, .file-name > div small { display: block; }
.file-name > div small { max-width: 360px; margin-top: 4px; overflow: hidden; color: #99a5b6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.media-thumb { flex: 0 0 auto; width: 48px; height: 40px; overflow: hidden; border: 1px solid #dfe7f1; border-radius: 8px; background: #f5f8fc; }
.media-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }

.login-body {
    min-height: 100vh;
    padding: 34px;
    background:
        radial-gradient(circle at 12% 10%, rgba(59,130,246,.09), transparent 28%),
        radial-gradient(circle at 88% 90%, rgba(96,165,250,.08), transparent 25%),
        #f3f7fd;
}
.login-shell {
    width: min(960px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(35, 62, 105, .12);
}
.login-intro {
    position: relative;
    padding: 42px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 58%, #1743b2 100%);
}
.login-intro::before, .login-intro::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.login-intro::before { width: 360px; height: 360px; right: -150px; top: -120px; }
.login-intro::after { width: 240px; height: 240px; left: -100px; bottom: -120px; }
.login-intro-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.login-intro-brand > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--primary); background: #fff; border-radius: 10px; font-size: 11px; font-weight: 800; }
.login-intro-brand strong { font-size: 15px; }
.login-intro-copy { position: relative; z-index: 1; margin-top: 98px; }
.login-intro-copy small { color: #bfdbfe; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.login-intro-copy h1 { margin: 14px 0 18px; font-size: 33px; line-height: 1.35; letter-spacing: -.03em; }
.login-intro-copy p { max-width: 390px; margin: 0; color: #dbeafe; font-size: 12px; line-height: 1.9; }
.login-intro-meta { position: absolute; z-index: 1; right: 42px; bottom: 36px; left: 42px; display: flex; gap: 16px; color: #bfdbfe; font-size: 9px; }
.login-intro-meta span { position: relative; padding-left: 12px; }
.login-intro-meta span::before { position: absolute; top: 3px; left: 0; width: 5px; height: 5px; content: ""; background: #93c5fd; border-radius: 50%; }
.login-panel {
    width: auto;
    padding: 70px 52px 42px;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.login-brand { margin-bottom: 30px; }
.login-mark { display: none; }
.login-brand h2 { margin: 0; color: #172033; font-size: 24px; letter-spacing: -.02em; }
.login-brand p { margin: 7px 0 0; color: #8793a6; font-size: 11px; }
.login-form { gap: 17px; }
.login-form label > span { margin-bottom: 8px; color: #44516a; font-size: 11px; }
.login-form input { height: 44px; padding: 0 13px; }
.login-form .button { height: 44px; margin-top: 5px; border-radius: 9px; }
.login-tip { margin-top: 20px; padding: 11px 12px; color: #8995a8; background: #f6f9fd; border: 1px solid #e8eef6; border-radius: 8px; }
.login-tip code { color: var(--primary); }
.login-foot { margin-top: 20px; color: #a0aabd; }

@media (max-width: 1100px) {
    .page-wrap { padding: 22px; }
}

@media (max-width: 900px) {
    .global-search { width: min(320px, 38vw); }
    .login-shell { grid-template-columns: minmax(300px, .85fr) minmax(360px, 1fr); }
    .login-intro { padding: 34px; }
    .login-intro-copy { margin-top: 90px; }
    .login-intro-copy h1 { font-size: 28px; }
    .login-intro-meta { right: 34px; left: 34px; flex-direction: column; gap: 8px; }
    .login-panel { padding: 62px 40px 38px; }
}

@media (max-width: 768px) {
    .sidebar { box-shadow: 14px 0 40px rgba(31,42,68,.16); }
    .sidebar-mask { background: rgba(24,35,55,.38); backdrop-filter: blur(2px); }
    .workspace { margin-left: 0; }
    .topbar { padding: 0 14px; }
    .global-search { width: auto; }
    .page-wrap { padding: 18px 14px 28px; }
    .page-heading { margin-bottom: 16px; }
    .page-heading h1 { font-size: 20px; }
    .redirect-from-field, .redirect-to-field { width: auto; }
    .login-body { padding: 18px; }
    .login-shell { width: min(460px, 100%); min-height: 0; display: block; }
    .login-intro { min-height: 170px; padding: 26px 28px; }
    .login-intro-copy { margin-top: 34px; }
    .login-intro-copy small, .login-intro-copy p, .login-intro-meta { display: none; }
    .login-intro-copy h1 { margin: 0; font-size: 24px; }
    .login-panel { padding: 34px 28px 30px; }
}

@media (max-width: 540px) {
    .topbar { height: 62px; }
    .global-search { display: none; }
    .notice-button { margin-left: auto; }
    .page-heading { min-height: 0; }
    .page-actions { width: 100%; }
    .page-actions .button { flex: 1; }
    .metric-grid { gap: 10px; }
    .metric { min-height: 104px; padding: 16px; }
    .metric::after { top: 17px; right: 17px; }
    .metric strong { margin: 10px 0 7px; font-size: 25px; }
    .panel-head { padding: 13px 14px; }
    .compact-metrics { padding: 14px; }
    .form-grid, .field-grid, .editor-fields { padding: 14px; }
    .sticky-save { padding: 11px 14px; }
    .login-body { padding: 10px; }
    .login-shell { border-radius: 15px; }
    .login-intro { min-height: 145px; padding: 23px; }
    .login-intro-copy { margin-top: 26px; }
    .login-intro-copy h1 { font-size: 21px; }
    .login-panel { padding: 28px 22px 24px; }
    .login-brand h2 { font-size: 21px; }
    .image-uploader { align-items: stretch; flex-direction: column; }
    .upload-preview, .product-image-preview { width: 100%; height: 150px; }
    .modal-card-editor .form-grid { padding: 14px; }
    .compact-rich-content, .product-rich-content { min-height: 260px; }
}

/* V5.4 可读性优化：后台最小字号、行高与控件尺寸统一 */
body, button, input, select, textarea { font-size: 14px; line-height: 1.55; }
body p, body small { font-size: 12px; line-height: 1.65; }
.brand small, .account small, .nav-title { font-size: 12px; }
.nav-item { height: 42px; font-size: 13px; }
.nav-item b, .notice-button em { min-width: 18px; min-height: 18px; font-size: 11px; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note p { font-size: 12px; }
.global-search input, .filter-bar input, .filter-bar select { font-size: 13px; }
.account strong, .logout { font-size: 13px; }
.page-heading p, .page-help { font-size: 13px; line-height: 1.6; }
.button { min-height: 36px; font-size: 13px; }
.button-small { min-height: 32px; font-size: 12px; }
.metric span { font-size: 13px; }
.metric small, .mini-stat-grid small { font-size: 12px; }
.mini-stat-grid span, .compact-metrics span { font-size: 12px; }
.panel-head { min-height: 54px; }
.panel-head h2 { font-size: 15px; }
.panel-head p, .panel-head a, .panel-note { font-size: 12px; line-height: 1.55; }
.progress-row, .engine-info dt, .engine-info dd { font-size: 12px; }
.data-table th { padding-top: 13px; padding-bottom: 13px; font-size: 12px; line-height: 1.45; }
.data-table td { padding-top: 13px; padding-bottom: 13px; font-size: 13px; line-height: 1.55; }
.block, .tag, .entity small, .site-summary small, .site-summary p, .score b { font-size: 12px; line-height: 1.5; }
.tag { min-height: 24px; padding: 3px 8px; }
.entity strong, .site-summary strong { font-size: 13px; }
.entity > span, .file-name > span, .site-avatar { font-size: 12px; }
.inline-form select { height: 32px; font-size: 12px; }
.table-actions a, .table-actions button { min-height: 30px; font-size: 12px; }
.domain-text, .code-block, .config-code { font-size: 12px; }
.alert { font-size: 13px; line-height: 1.6; }
.modal-card header p { font-size: 12px; }
.form-grid label > span, .form-grid .form-field > span, .login-form label > span,
.field-grid label > span, .field-grid .form-field > span, .editor-fields label > span { font-size: 13px; }
.form-grid input, .form-grid select, .field-grid input, .field-grid select,
.editor-fields input, .editor-fields select { min-height: 42px; font-size: 14px; }
.form-grid textarea, .field-grid textarea, .editor-fields textarea { font-size: 14px; line-height: 1.75; }
.field-grid label small, .field-help, .upload-controls small, .product-admin-card small,
.file-name > div small, .simple-rich-editor [data-editor-status] { font-size: 12px; line-height: 1.55; }
.sticky-save span, .app-card p, .step-list p, .perm-group-head small,
.perm-item small, .version-item small, .empty-tip { font-size: 12px; }
.deploy-checklist strong, .deploy-warning strong { font-size: 13px; }
.deploy-checklist p, .deploy-warning p { font-size: 12px; }
.login-intro-copy small, .login-intro-meta, .login-tip, .login-foot { font-size: 12px; }
.login-intro-copy p, .login-brand p { font-size: 13px; }
.crawler-trend-row, .crawler-catalog-grid span, .crawler-catalog-grid p { font-size: 12px; }
.crawler-catalog-grid strong { font-size: 13px; }

/* Pexels 文章图库选择器 */
.pexels-toolbar-button { min-width: auto !important; padding: 0 10px !important; color: #087a4e !important; background: #effcf6 !important; border-color: #bcebd6 !important; font-weight: 700; }
.pexels-picker-body { padding: 18px; }
.pexels-search-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.pexels-search-bar input { width: 100%; height: 42px; padding: 0 13px; color: #334058; background: #fff; border: 1px solid #dbe2ec; border-radius: 8px; }
.pexels-search-bar input:focus { outline: none; border-color: #86abf2; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.pexels-picker-status { min-height: 39px; margin: 12px 0; padding: 9px 11px; color: #70809a; background: #f6f9fd; border: 1px solid #e1e9f4; border-radius: 8px; font-size: 12px; }
.pexels-picker-status.error { color: #b92b35; background: #fff3f4; border-color: #fecdd3; }
.pexels-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pexels-result-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dfe7f2; border-radius: 10px; }
.pexels-result-card > img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; background: #edf2f8; }
.pexels-result-card > div { padding: 10px 11px 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pexels-result-card strong { overflow: hidden; color: #35445c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pexels-result-card small { flex: 0 0 auto; color: #8a97aa; font-size: 10px; }
.pexels-result-card footer { padding: 0 10px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pexels-result-card footer .button { min-height: 32px; padding: 0 7px; font-size: 11px; }
.pexels-empty { grid-column: 1 / -1; padding: 42px 20px; color: #8795a9; text-align: center; background: #f8fafd; border: 1px dashed #d7e1ee; border-radius: 10px; }
.pexels-picker-more { padding-top: 14px; text-align: center; }
.rich-content figure { margin: 18px 0; }
.rich-content figure img { width: 100%; height: auto; display: block; border-radius: 8px; }
.rich-content figcaption { margin-top: 7px; color: #8190a4; font-size: 11px; line-height: 1.6; }
.pexels-picker-status a { color: var(--primary); font-weight: 700; }

@media (max-width: 768px) {
    body, button, input, select, textarea { font-size: 14px; }
    .data-table th { font-size: 12px; }
    .data-table td { font-size: 13px; }
    .pexels-search-bar { grid-template-columns: 1fr; }
    .pexels-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .pexels-result-grid { grid-template-columns: 1fr; }
}

/* 微信公众号线索通知 */
.modal-card-wide { width: min(820px, calc(100vw - 32px)); max-height: 92vh; overflow-y: auto; }
.modal-secondary-action { padding: 0 18px 18px; display: flex; justify-content: flex-end; }
.bind-panel { margin-bottom: 16px; }
.bind-layout { min-height: 220px; padding: 22px; display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: center; gap: 26px; }
.bind-layout .empty-state { grid-column: 1 / -1; }
.bind-qr { padding: 9px; background: #fff; border: 1px solid #dce5f0; border-radius: 13px; }
.bind-qr img { width: 100%; display: block; }
.bind-copy strong { color: #26324a; font-size: 17px; }
.bind-copy p { max-width: 640px; margin: 8px 0 14px; color: #65738a; }
.bind-copy dl { display: grid; grid-template-columns: 70px 1fr; gap: 6px 12px; margin: 0 0 12px; }
.bind-copy dt { color: #8a96a8; }.bind-copy dd { margin: 0; color: #40506a; font-weight: 600; }.bind-copy small { color: #98a3b3; }
.recipient-form { min-width: 310px; display: flex; align-items: center; gap: 7px; }
.recipient-form > input { width: 104px; height: 34px; padding: 0 9px; border: 1px solid #dbe3ee; border-radius: 7px; }
.switch-line { white-space: nowrap; color: #617087; font-size: 12px; }.switch-line input { vertical-align: -2px; }
.button-danger-soft { color: #b42318; background: #fff5f4; border-color: #fecdca; }
.tag-danger { color: #b42318; background: #fff1f1; border-color: #fecaca; }
.metric-text { font-size: 19px !important; }.mono-text { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 12px; }
.error-cell { max-width: 280px; color: #a63b3b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media(max-width:700px){.bind-layout{grid-template-columns:1fr}.bind-qr{width:190px;margin:auto}.recipient-form{min-width:280px;flex-wrap:wrap}}

/* V5.5 客户账号弹窗：原生控件归一化、品牌选择和权限层级 */
.customer-account-modal { width: min(880px, calc(100vw - 36px)); max-height: min(90vh, 880px); overflow: hidden; border-radius: 16px; display: flex; flex-direction: column; }
.customer-account-modal > form { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.customer-modal-header { padding: 20px 24px 18px !important; align-items: flex-start !important; background: #fff; }
.customer-modal-header h2 { margin: 3px 0 4px; color: #18243a; font-size: 18px; letter-spacing: -.02em; }
.customer-modal-header p { margin: 0; color: #7d8aa0; font-size: 12px; }
.customer-modal-kicker { display: block; color: #2161e8; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.customer-modal-body { padding: 0 24px 24px; overflow-y: auto; background: #f7f9fc; }
.customer-form-section { margin-top: 14px; padding: 18px; background: #fff; border: 1px solid #e3e9f2; border-radius: 12px; box-shadow: 0 3px 12px rgba(23,43,77,.025); }
.customer-form-section > header { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.customer-form-section > header > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: #245ed3; background: #edf3ff; border-radius: 8px; font-size: 10px; font-weight: 800; }
.customer-form-section > header h3 { margin: 0 0 2px; color: #25324a; font-size: 14px; }
.customer-form-section > header p { margin: 0; color: #8a96a8; font-size: 11px; }
.customer-account-fields { padding: 0; gap: 14px; }
.customer-account-fields label > small { margin-top: 5px; display: block; color: #98a3b4; font-size: 10px; }
.customer-brand-tools { margin: -2px 0 12px; display: flex; align-items: flex-end; gap: 12px; }
.customer-brand-search { min-width: 0; flex: 1 1 auto; position: relative; }
.customer-brand-search > span { display: block; margin-bottom: 6px; color: #56667e; font-size: 11px; font-weight: 700; }
.customer-brand-search::after { content: ''; width: 13px; height: 13px; position: absolute; left: 12px; bottom: 12px; border: 1.5px solid #8a98ac; border-radius: 50%; pointer-events: none; }
.customer-brand-search::before { content: ''; width: 6px; height: 1.5px; position: absolute; left: 23px; bottom: 10px; z-index: 1; background: #8a98ac; border-radius: 2px; transform: rotate(45deg); pointer-events: none; }
.customer-brand-search input { width: 100%; height: 38px; padding: 0 36px 0 37px !important; color: #2d3a52; background: #fbfcfe; border: 1px solid #dce4ef; border-radius: 9px; font-size: 12px; outline: none; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.customer-brand-search input:focus { background: #fff; border-color: #82a7ef; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.customer-brand-search input::placeholder { color: #a1acbc; }
.customer-brand-search input::-webkit-search-cancel-button { cursor: pointer; }
.customer-brand-summary { margin: 0 0 11px; flex: 0 0 auto; color: #7d8ba0; font-size: 11px; white-space: nowrap; }
.customer-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-choice-card[hidden] { display: none !important; }
.customer-choice-card { min-width: 0; min-height: 72px; padding: 12px 13px; display: flex; align-items: center; gap: 11px; position: relative; border: 1px solid #dfe6f0; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.customer-choice-card:hover { border-color: #b9cbed; background: #fbfdff; }
.customer-choice-card:has(input:checked) { border-color: #8cb0fa; background: #f5f8ff; box-shadow: inset 0 0 0 1px rgba(37,99,235,.08); }
.customer-choice-card > input,.customer-permission-card > input,.customer-inline-option > input { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }
.customer-choice-check { width: 18px; height: 18px; display: block; flex: 0 0 auto; position: relative; background: #fff; border: 1.5px solid #c7d1df; border-radius: 5px; }
.customer-choice-card > input:checked + .customer-choice-check { background: #2563eb; border-color: #2563eb; }
.customer-choice-card > input:checked + .customer-choice-check::after { content: ''; width: 5px; height: 9px; position: absolute; left: 6px; top: 3px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.customer-choice-copy { min-width: 0; display: block; }
.customer-choice-copy strong,.customer-choice-copy small,.customer-choice-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-choice-copy strong { color: #2d3a52; font-size: 13px; }
.customer-choice-copy small { margin-top: 2px; color: #6f7f97; font-size: 11px; }
.customer-choice-copy em { margin-top: 5px; color: #a0aabb; font-size: 10px; font-style: normal; }
.customer-picker-empty { grid-column: 1 / -1; padding: 28px; color: #8794a8; text-align: center; background: #fafbfd; border: 1px dashed #d9e1ec; border-radius: 9px; }
.customer-brand-no-result { padding: 22px; }
.customer-brand-no-result[hidden] { display: none; }
.customer-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-permission-card { min-width: 0; min-height: 70px; padding: 13px 46px 13px 14px; display: flex; align-items: center; position: relative; background: #fafbfd; border: 1px solid #e1e7f0; border-radius: 10px; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.customer-permission-card:hover { background: #f7f9fd; }
.customer-permission-card:has(input:checked) { background: #f5f8ff; border-color: #a5bef0; }
.customer-permission-card span,.customer-permission-card strong,.customer-permission-card small { display: block; min-width: 0; }
.customer-permission-card strong { margin-bottom: 3px; color: #2d3a52; font-size: 13px; }
.customer-permission-card small { color: #8794a8; font-size: 10px; }
.customer-permission-card i { width: 32px; height: 18px; position: absolute; right: 13px; top: 50%; background: #cbd4e0; border-radius: 999px; transform: translateY(-50%); transition: background .16s ease; }
.customer-permission-card i::after { content: ''; width: 14px; height: 14px; position: absolute; left: 2px; top: 2px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(30,48,78,.24); transition: transform .16s ease; }
.customer-permission-card > input:checked ~ i { background: #2563eb; }
.customer-permission-card > input:checked ~ i::after { transform: translateX(14px); }
.customer-permission-note { margin-top: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; color: #697991; background: #f7f9fc; border-radius: 8px; font-size: 11px; }
.customer-permission-note strong { flex: 0 0 auto; color: #455873; }
.customer-account-modal footer { min-height: 66px; padding: 14px 24px !important; gap: 9px; background: #fff; border-top: 1px solid #e7ecf3; }
.customer-footer-tip { margin-right: auto; color: #96a1b2; font-size: 11px; }
.customer-inline-option { min-height: 42px; padding: 10px 12px; display: flex !important; align-items: center; gap: 9px; position: relative; border: 1px solid #e0e6ef; border-radius: 8px; background: #fafbfd; cursor: pointer; }
.customer-inline-option > span { width: 17px; height: 17px; display: block; position: relative; background: #fff; border: 1px solid #c7d1df; border-radius: 5px; }
.customer-inline-option > input:checked + span { background: #2563eb; border-color: #2563eb; }
.customer-inline-option > input:checked + span::after { content: ''; width: 7px; height: 4px; position: absolute; left: 4px; top: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.customer-inline-option strong { color: #52627a; font-size: 12px; }
@media(max-width:720px){.customer-choice-grid,.customer-permission-grid{grid-template-columns:1fr}.customer-brand-tools{align-items:stretch;flex-direction:column;gap:7px}.customer-brand-summary{margin:0}.customer-modal-body{padding:0 14px 16px}.customer-modal-header{padding:17px 16px 15px!important}.customer-form-section{padding:15px}.customer-account-modal footer{padding:12px 16px!important}.customer-footer-tip{display:none}}

/* V5.7 GEO 优化中心 */
.geo-site-filter select { min-width: 340px; }
.geo-profile-panel,.geo-article-form { margin-top: 18px; }
.score-badge { min-width: 58px; padding: 9px 12px; color: #1d4ed8; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 10px; text-align: center; font-weight: 800; }
.panel-actions { padding-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid #edf1f6; }
.geo-missing { margin-right: auto; color: #74839a; font-size: 12px; }
.geo-gap-list { color: #64748b; font-size: 12px; line-height: 1.7; }
.geo-article-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:720px){.geo-site-filter select{min-width:0;width:100%}.geo-article-metrics{grid-template-columns:1fr}.panel-actions{align-items:stretch;flex-direction:column}.geo-missing{margin-right:0}}

/* V5.6 移除单字/字母伪图标后的布局归一化 */
.brand { gap: 0; }
.account-security-link { padding: 7px 9px; color: #65758d; border: 1px solid #dfe6ef; border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 600; }
.account-security-link:hover { color: var(--primary); background: var(--primary-soft); border-color: #d5e3fb; }
.entity { gap: 0; }
.app-card { grid-template-columns: minmax(0,1fr) auto; }
.app-card .button { grid-column: 1 / 3; }
.product-admin-card:not(:has(img)) { gap: 0; }
.product-help-card h3 { margin-top: 0; }
