/* Pegasus · Shortcut */
:root {
    --sc-pink: #f4c8c8;
    --sc-pink-soft: #fde6e6;
    --sc-bg: #f5f6fa;
    --sc-card: #ffffff;
    --sc-border: #e6e8ef;
    --sc-text: #1f2937;
    --sc-muted: #6b7280;
    --sc-blue: #2962ff;
    --sc-blue-soft: #e7efff;
    --sc-green: #67c23a;
    --sc-orange: #f5b078;
    --sc-orange-soft: #ffd9b3;
    --sc-red: #f56c6c;
    --sc-gray: #b9bcc4;
    --sc-yellow: #f5a623;
}

* { box-sizing: border-box; }

body.sc-body {
    margin: 0;
    background: var(--sc-bg);
    color: var(--sc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.sc-shell {
    background: var(--sc-blue);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 24px 16px 60px;
}

.sc-shell-home {
    background: var(--sc-blue);
    align-items: center;
    padding: 40px 16px;
}

.sc-home-card {
    width: 520px;
    max-width: 100%;
    background: var(--sc-card);
    border-radius: 18px;
    padding: 24px 32px 32px;
    box-shadow: 0 6px 24px rgba(20, 20, 40, 0.04);
}

.sc-home-title {
    text-align: center;
    color: var(--sc-blue);
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sc-blue);
    width: fit-content;
    margin: 0 auto 28px;
}

.sc-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.sc-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 1px solid var(--sc-border);
    border-radius: 10px;
    background: #fff;
    color: var(--sc-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.18s ease;
}
.sc-entry:hover { box-shadow: 0 2px 10px rgba(20,20,40,0.08); transform: translateY(-1px); }
.sc-entry.is-disabled { color: #a8acb8; background: #f3f4f8; cursor: not-allowed; }
.sc-entry.is-disabled:hover { transform: none; box-shadow: none; }

.sc-page {
    width: 100%;
    max-width: 1024px;
    background: var(--sc-card);
    border-radius: 12px;
    padding: 18px 28px 32px;
    position: relative;
}
.sc-page-wide { max-width: 1980px; }

.sc-back {
    color: var(--sc-blue);
    text-decoration: none;
    font-size: 14px;
    position: absolute;
    left: 18px;
    top: 18px;
}
.sc-back:hover { text-decoration: underline; }

.sc-title {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    margin: 8px 0 24px;
}
.sc-title b { font-weight: 600; }

.sc-field {
    margin-bottom: 16px;
}
.sc-field > label {
    display: block;
    font-size: 14px;
    color: var(--sc-text);
    margin-bottom: 8px;
}
.sc-req { color: var(--sc-red); margin-right: 4px; }

.sc-textarea,
.sc-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--sc-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--sc-text);
    background: #fff;
    font-family: inherit;
    resize: vertical;
    outline: none;
}
.sc-textarea:focus,
.sc-input:focus { border-color: var(--sc-blue); box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.08); }
.sc-input-masked { -webkit-text-security: disc; }
.sc-textarea { min-height: 100px; }
.sc-textarea-fat { min-height: 320px; }

.sc-input-date { width: 180px; display: inline-block; }
.sc-date-row { display: flex; align-items: center; gap: 12px; }
.sc-date-sep { color: var(--sc-muted); }

.sc-select {
    width: 240px;
    padding: 8px 12px;
    border: 1px solid var(--sc-border);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    outline: none;
}

.sc-radio-group, .sc-check-group { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 6px 0; }
.sc-radio, .sc-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.sc-radio input, .sc-check input { margin: 0; }

.sc-tip {
    color: var(--sc-red);
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    color: var(--sc-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1.2;
}
.sc-btn:hover { opacity: 0.92; }
.sc-btn[disabled],
.sc-btn-disabled { background: var(--sc-gray); color: #fff; cursor: not-allowed; }
.sc-btn-disabled:hover { opacity: 1; }

.sc-btn-primary { background: var(--sc-blue); color: #fff; }
.sc-btn-success { background: var(--sc-green); color: #fff; }
.sc-btn-orange  { background: var(--sc-orange); color: #fff; }
.sc-btn-ghost   { background: #fff; border-color: var(--sc-border); color: var(--sc-text); }

.sc-btn-lg  { width: 100%; padding: 12px; font-size: 15px; margin-top: 10px; }
.sc-btn-full{ flex: 1; padding: 14px; font-size: 15px; }

.sc-actions { display: flex; gap: 12px; margin-top: 16px; }
.sc-actions-two { gap: 16px; }

.sc-mt { margin-top: 18px; }

.sc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}
.sc-table th, .sc-table td {
    border: 1px solid #f0f1f5;
    padding: 10px 8px;
    text-align: center;
    word-break: break-all;
}
.sc-table th { background: #fafbfc; color: var(--sc-muted); font-weight: 500; }
.sc-table-fixed { table-layout: auto; }
.sc-col-check { width: 36px; }
.sc-empty { color: var(--sc-muted); padding: 30px 0 !important; }

.sc-batch-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.sc-pill {
    border: none;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.4;
}
.sc-pill:hover { opacity: 0.92; }
.sc-pill-red    { background: var(--sc-red); }
.sc-pill-green  { background: var(--sc-green); }
.sc-pill-orange { background: var(--sc-orange); }
.sc-pill-blue   { background: var(--sc-blue); }
.sc-pill-disabled { cursor: not-allowed; opacity: 0.5; pointer-events: none; }
.sc-pill-disabled:hover { opacity: 0.5; }

.sc-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.sc-tag-green  { background: #e8f7e1; color: #449c1a; }
.sc-fv-ipcell { line-height: 1.5; }
.sc-fv-ipcell .sc-tag { display: inline-block; margin-bottom: 2px; }
.sc-fv-threshold { color: #222; font-size: 12px; font-weight: 400; white-space: nowrap; }
.sc-tag-orange { background: #fdebd0; color: #c97916; }
.sc-tag-red    { background: #fde1e1; color: #c64242; }
.sc-tag-blue   { background: #e3edff; color: var(--sc-blue); }
.sc-tag-pink   { background: #fde7eb; color: #c44569; border: 1px solid #f4c2cb; }

.sc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Modal */
.sc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.sc-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.sc-modal-box {
    position: relative;
    width: 480px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    margin: 12vh auto 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.sc-modal-narrow { width: 360px; }
.sc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--sc-border);
}
.sc-modal-title { font-size: 16px; font-weight: 500; }
.sc-modal-close { background: none; border: none; font-size: 22px; color: var(--sc-muted); cursor: pointer; line-height: 1; }
.sc-modal-body { padding: 18px 20px; }
.sc-modal-foot { padding: 12px 20px 18px; text-align: right; }

.sc-upload {
    border: 1px dashed var(--sc-border);
    border-radius: 6px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fafbfc;
    position: relative;
    overflow: hidden;
}
.sc-upload:hover { border-color: var(--sc-blue); background: var(--sc-blue-soft); }
.sc-upload-tip  { color: var(--sc-muted); font-size: 13px; }
.sc-upload-preview { max-width: 100%; max-height: 100%; display: none; }
.sc-upload.is-loaded .sc-upload-tip { display: none; }
.sc-upload.is-loaded .sc-upload-preview { display: block; }

/* 直跳下载页配置 */
.sc-title-center { margin-bottom: 8px; color: var(--sc-blue); }
.sc-dl-warn { text-align: center; color: var(--sc-red); font-size: 13px; margin: 0 0 20px; }
.sc-dl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.sc-dl-panel { border: 1px solid var(--sc-border); border-radius: 8px; background: #fff; overflow: hidden; }
.sc-dl-panel-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--sc-border);
    background: #fafbfc;
    font-size: 14px;
    font-weight: 600;
}
.sc-dl-panel-body { padding: 18px 16px; }
.sc-dl-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.sc-dl-inline-label { font-size: 14px; }
.sc-dl-inline-note { color: var(--sc-red); font-size: 12px; }
.sc-dl-links { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.sc-dl-links.is-multi {
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--sc-red);
    border-radius: 6px;
    padding: 12px;
}
.sc-dl-hint { color: var(--sc-muted); font-size: 12px; margin-top: 6px; }
.sc-upload-sm { width: 94px; height: 94px; }
.sc-upload-sm .sc-upload-tip { font-size: 26px; }
.sc-dl-cell-link { word-break: break-all; text-align: left; }
.sc-dl-cell-name { color: var(--sc-muted); margin-right: 4px; }

.sc-verify-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sc-verify-inline > label.sc-verify-inline-label { margin-bottom: 0; min-width: auto; }

@media (max-width: 1100px) {
    .sc-dl-cols { grid-template-columns: 1fr; }
}

.sc-qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.sc-qr-tile {
    border: 1px solid var(--sc-border);
    background: #fff;
    color: var(--sc-text);
    padding: 12px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.sc-qr-tile.is-active {
    background: var(--sc-blue);
    color: #fff;
    border-color: var(--sc-blue);
}

/* Reserved page */
.sc-reserved {
    text-align: center;
    padding: 50px 20px;
}
.sc-reserved-icon { font-size: 48px; margin-bottom: 12px; }
.sc-reserved-text { color: var(--sc-muted); margin-bottom: 24px; }

/* Filter / IP / Link 共用 */
.sc-toolbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sc-toolbar-info { color: var(--sc-muted); font-size: 13px; }
.sc-hidden-area { display: none; }

.sc-filter-table th, .sc-filter-table td { font-size: 12px; padding: 8px 6px; }
.sc-filter-table .sc-row-missing td { color: var(--sc-red); }

.sc-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}
.sc-filter-top-btns { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.sc-filter-top-btns .sc-btn { flex: 1; min-width: 140px; text-align: center; text-decoration: none; }
.sc-field-error { color: var(--sc-red); font-size: 13px; margin-top: 6px; }
.sc-pwd-err { color: var(--sc-red); font-size: 13px; margin-top: 6px; }
.sc-filter-list { background: #fff; border: 1px solid var(--sc-border); border-radius: 8px; overflow: visible; }
.sc-filter-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    padding: 12px 16px; border-bottom: 1px solid var(--sc-border);
}
.sc-filter-row-stack { flex-direction: column; align-items: stretch; gap: 8px; }
.sc-filter-row-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; width: 100%; }
.sc-filter-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; }
.sc-filter-row:last-child { border-bottom: none; }
.sc-filter-row-title { min-width: 100px; font-weight: 600; font-size: 14px; }
.sc-filter-note { color: var(--sc-red); font-size: 12px; }
.sc-filter-note-block { display: block; width: 100%; margin-top: 4px; }
.sc-stepper { display: flex; align-items: center; gap: 4px; }
.sc-step-btn {
    width: 28px; height: 28px; border: 1px solid var(--sc-border); background: #fff;
    border-radius: 4px; cursor: pointer; font-size: 16px; line-height: 1;
}
.sc-step-val { width: 56px; text-align: center; border: 1px solid var(--sc-border); border-radius: 4px; padding: 4px; }
.sc-step-unit { font-size: 13px; color: var(--sc-muted); }
.sc-region-wrap { flex: 1; min-width: 200px; max-width: 100%; }
.sc-region-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sc-region-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: #e8f0fe; border: 1px solid #c5d9f5; border-radius: 4px; font-size: 12px; }
.sc-region-tag-x { cursor: pointer; color: #999; font-weight: bold; }
.sc-region-box { position: relative; }
.sc-region-trigger { border: 1px solid var(--sc-border); border-radius: 4px; padding: 8px 12px; font-size: 13px; color: var(--sc-muted); cursor: pointer; background: #fff; }
.sc-region-trigger.has-val { color: var(--sc-text); }
.sc-region-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 999; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--sc-border); border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.15); margin-top: 4px; }
.sc-region-opt { padding: 8px 12px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.sc-region-opt:hover { background: #f5f7fa; }
.sc-region-opt.is-on { background: #e8f0fe; }
.sc-region-opt-check { width: 14px; color: var(--sc-blue); }
.sc-filter-row-region { flex-direction: column; align-items: flex-start; gap: 8px; position: relative; z-index: 10; overflow: visible; }
.sc-btn-block { display: block; width: 100%; }
.sc-btn-green { background: var(--sc-green); color: #fff; border: none; }
.sc-btn-red { background: var(--sc-red); color: #fff; border: none; }
.sc-fc-export-row { text-align: right; margin-top: 10px; }
.sc-fc-ip-input { width: 80px; padding: 4px 6px; border: 1px solid var(--sc-border); border-radius: 4px; text-align: center; }
.sc-fc-switch { display: inline-flex; gap: 12px; white-space: nowrap; justify-content: center; }
.sc-fc-total-row td { background: #f5f7fa; font-weight: 600; }
.sc-ip-info { display: inline-block; margin-left: 4px; color: var(--sc-blue); cursor: help; font-size: 12px; }
.sc-iprev-ip { color: #dc2626; font-weight: 500; }
.sc-filter-card {
    background: #fff;
    border: 1px solid var(--sc-border);
    border-radius: 8px;
    padding: 12px 14px;
}
.sc-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-filter-title { font-weight: 600; }
.sc-filter-desc { color: var(--sc-muted); font-size: 12px; margin-top: 4px; min-height: 18px; }
.sc-input-num { width: 100%; margin-top: 8px; }

.sc-stats-top, .sc-stats-row {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-top: 10px;
}
.sc-stats-row .sc-pill { cursor: default; }
.sc-pill-gray { background: var(--sc-gray); color: #fff; }
.sc-pill b { margin-left: 4px; }

.sc-table-scroll { width: 100%; overflow-x: auto; margin-top: 12px; }
.sc-table-compact th, .sc-table-compact td { font-size: 12px; padding: 6px 4px; white-space: nowrap; }
.sc-tag-invalid { background: var(--sc-gray); color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.sc-tag-valid   { background: var(--sc-green); color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.sc-link-list { word-break: break-all; text-align: left; }

@media (max-width: 640px) {
    .sc-home-grid { grid-template-columns: 1fr; }
    .sc-two-col   { grid-template-columns: 1fr; }
    .sc-page { padding: 50px 14px 24px; }
    .sc-filter-grid { grid-template-columns: 1fr; }
    .sc-batch-bar { gap: 5px; }
    .sc-batch-bar .sc-pill { font-size: 12px; padding: 5px 8px; }
    .sc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sc-table-scroll .sc-table { min-width: 900px; }
}

/* ============ 查粉系统 ============ */
.sc-fq-top-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px 0 16px;
}
.sc-fq-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
}
.sc-fq-card-label { color: #6b7280; font-size: 13px; margin-bottom: 6px; }
.sc-fq-card-value { color: #1f2937; font-size: 22px; font-weight: 700; }

.sc-fq-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.sc-fq-panel-title {
    font-weight: 600;
    color: #1f2937;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.sc-fq-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sc-fq-tags:last-child { margin-bottom: 0; }

.sc-fq-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    background: #1e90ff;
    border: 1px solid transparent;
    transition: opacity .15s;
}
.sc-fq-tag b { font-weight: 700; }
.sc-fq-tag:hover { opacity: .85; }
.sc-fq-tag-active { box-shadow: 0 0 0 2px rgba(30,144,255,.45); transform: translateY(-1px); }
.sc-fq-tag-green  { background: #28a745; border-color: #28a745; }
.sc-fq-tag-blue   { background: #1e90ff; border-color: #1e90ff; }
.sc-fq-tag-red    { background: #f56c6c; border-color: #f56c6c; }
.sc-fq-tag-orange { background: #e6a23c; border-color: #e6a23c; }
.sc-fq-tag-pink   { background: #f56c6c; border-color: #f56c6c; }
.sc-fq-tag-gray   { background: #909399; border-color: #909399; }

.sc-fq-tag-lite {
    background: #fff;
    color: #333;
    border-color: #d9d9d9;
}
.sc-fq-legend .sc-fq-tag-lite { cursor: default; }
.sc-fq-tag-lite.sc-fq-tag-green  { background: #eaffea; color: #28c76f; border-color: #28c76f; }
.sc-fq-tag-lite.sc-fq-tag-blue   { background: #e6f7ff; color: #1890ff; border-color: #1890ff; }
.sc-fq-tag-lite.sc-fq-tag-red,
.sc-fq-tag-lite.sc-fq-tag-pink   { background: #ffecec; color: #ff4d4f; border-color: #ff4d4f; }
.sc-fq-tag-lite.sc-fq-tag-orange { background: #fff7e6; color: #ffa940; border-color: #ffa940; }
.sc-fq-tag-lite.sc-fq-tag-active { box-shadow: 0 0 0 2px rgba(24,144,255,.25); }

.sc-fq-legend { display: flex; align-items: center; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.sc-fq-legend-text { color: #6b7280; font-size: 13px; }

.sc-fq-ip {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    user-select: all;
    -webkit-user-select: all;
}
.sc-fq-ip-copy {
    cursor: copy;
}

.sc-fq-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}
.sc-fq-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.sc-fq-form-row:last-of-type { margin-bottom: 0; }
.sc-fq-form-label {
    flex: 0 0 90px;
    text-align: right;
    color: #374151;
    font-size: 14px;
}
.sc-fq-req { color: #ef4444; margin-right: 4px; }
.sc-fq-form-row .sc-input,
.sc-fq-form-row .sc-textarea { flex: 1; }
.sc-fq-date-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sc-fq-date-row .sc-input { flex: 1; }
.sc-fq-date-sep { color: #6b7280; }
.sc-fq-form-actions { text-align: center; margin-top: 12px; }

.sc-fq-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 12px 0;
}

.sc-fq-cols-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.sc-fq-col-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; cursor: pointer; }

.sc-fq-status-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.sc-fq-table-wrap { overflow-x: auto; border: 1px solid #e8e8e8; border-radius: 4px; background: #fff; }
.sc-fq-table { min-width: 2200px; table-layout: auto; border-collapse: collapse; }
.sc-fq-table th, .sc-fq-table td {
    white-space: nowrap;
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.4;
    vertical-align: middle;
    border: 1px solid #e8e8e8;
    text-align: center;
}
.sc-fq-table th {
    min-width: 96px;
    background: #fafafa;
    font-weight: 500;
    color: #333;
    vertical-align: middle;
    padding: 12px 10px;
    white-space: nowrap;
}
.sc-fq-table td { min-width: 72px; background: #fff; white-space: nowrap; }
.sc-fq-table tbody tr:hover td { background: #f9fafb; }
.sc-fq-th-inner {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}
.sc-fq-th-text {
    font-size: 13px;
    white-space: nowrap;
}
.sc-fq-table th.sc-fq-sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 8px;
}
.sc-fq-table th.sc-fq-sortable:hover { background: #f3f4f6; }
.sc-fq-sort-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    flex-shrink: 0;
}
.sc-fq-sort-icon::after {
    content: '↕';
    display: inline-block;
    font-size: 11px;
    color: #c0c4cc;
}
.sc-fq-table th.sc-fq-sort-asc .sc-fq-sort-icon::after { content: '↑'; color: #409eff; }
.sc-fq-table th.sc-fq-sort-desc .sc-fq-sort-icon::after { content: '↓'; color: #409eff; }

.sc-fq-pager-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 0 4px;
    font-size: 13px;
    color: #606266;
}
.sc-fq-pager-total b { color: #303133; font-weight: 600; }
.sc-fq-pagesize {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 13px;
}
.sc-fq-pager {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sc-fq-page-btn {
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    padding: 0 6px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
}
.sc-fq-page-btn:hover { color: #409eff; border-color: #409eff; }
.sc-fq-page-btn.sc-fq-page-active {
    background: #409eff;
    border-color: #409eff;
    color: #fff;
}
.sc-fq-page-ellipsis {
    padding: 0 4px;
    color: #909399;
}

.sc-fq-msg-img {
    max-width: 72px;
    max-height: 72px;
    border-radius: 4px;
    cursor: zoom-in;
    vertical-align: middle;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}
.sc-fq-msg-img:hover { opacity: .88; }

.sc-fq-img-preview {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.sc-fq-img-preview-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
}
.sc-fq-img-preview-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92vw;
    max-height: 92vh;
    z-index: 1;
}
.sc-fq-img-preview-box img {
    display: block;
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}
.sc-fq-img-preview-close {
    position: absolute;
    top: -36px;
    right: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #111;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 900px) {
    .sc-fq-top-cards { grid-template-columns: repeat(2, 1fr); }
    .sc-fq-cols-panel { grid-template-columns: repeat(2, 1fr); }
    .sc-fq-form-label { flex: 0 0 70px; font-size: 12px; }
}
