Files
DemonGatanjieu-Anomalous_Mo…/web/styles/10-model-sources.css
T

768 lines
18 KiB
CSS

/* Model Source Hub Modal (模型来源统一中控中心) */
/* ========================================================================= */
.anomalous-model-sources-overlay {
position: fixed;
inset: 0;
background: rgba(5, 7, 12, 0.78);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
z-index: 1000008;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
animation: anmFadeIn 0.2s ease;
}
.anomalous-model-sources-modal {
width: 880px;
max-width: 96vw;
max-height: 88vh;
background: #0e1017;
border: 1px solid rgba(244, 63, 94, 0.35);
border-radius: 12px;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 32px rgba(190, 20, 55, 0.18);
display: flex;
flex-direction: column;
overflow: hidden;
color: #e2e8f0;
}
.anomalous-sources-header {
padding: 14px 18px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(18, 20, 28, 0.9);
flex-shrink: 0;
}
.anomalous-sources-top-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.anomalous-sources-title-wrap h3 {
margin: 0;
font-size: 1.05rem;
font-weight: 600;
color: #f1f5f9;
}
.anomalous-sources-close-btn {
background: transparent;
border: none;
color: #94a3b8;
font-size: 1.1rem;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
transition: all 0.15s ease;
}
.anomalous-sources-close-btn:hover {
color: #fff;
background: rgba(255, 255, 255, 0.1);
}
.anomalous-sources-scope-tabs {
display: flex;
gap: 8px;
}
.anomalous-sources-scope-tab {
background: transparent;
border: none;
border-bottom: 2px solid transparent;
color: #94a3b8;
padding: 8px 16px;
font-size: 0.88rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
display: flex;
align-items: center;
gap: 6px;
}
.anomalous-sources-scope-tab:hover {
color: #f1f5f9;
}
.anomalous-sources-scope-tab.is-active {
color: #38bdf8;
border-bottom-color: #38bdf8;
font-weight: 600;
}
.anomalous-sources-badge-num {
font-size: 0.72rem;
padding: 1px 6px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.08);
color: #cbd5e1;
}
.anomalous-sources-filter-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 18px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
background: rgba(14, 16, 23, 0.95);
flex-shrink: 0;
}
.anomalous-sources-pills {
display: flex;
gap: 6px;
}
.anomalous-sources-pill {
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #94a3b8;
border-radius: 16px;
padding: 3px 10px;
font-size: 0.78rem;
cursor: pointer;
transition: all 0.15s ease;
}
.anomalous-sources-pill:hover {
color: #f1f5f9;
background: rgba(255, 255, 255, 0.08);
}
.anomalous-sources-pill.is-active {
background: rgba(56, 189, 248, 0.18);
border-color: rgba(56, 189, 248, 0.4);
color: #38bdf8;
font-weight: 600;
}
.anomalous-sources-search-input {
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
color: #f1f5f9;
font-size: 0.8rem;
padding: 5px 10px;
width: 220px;
outline: none;
transition: border-color 0.15s ease;
}
.anomalous-sources-search-input:focus {
border-color: #38bdf8;
}
.anomalous-sources-body {
flex: 1;
overflow-y: auto;
padding: 14px 18px;
display: flex;
flex-direction: column;
gap: 10px;
}
.anomalous-source-row-item {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 8px;
padding: 10px 14px;
display: flex;
flex-direction: column;
gap: 8px;
transition: border-color 0.15s ease, background 0.15s ease;
}
.anomalous-source-row-item.has-url {
border-left: 3px solid #10b981;
}
.anomalous-source-row-item.is-missing-url {
border-left: 3px solid #64748b;
}
.anomalous-source-row-title {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.anomalous-source-node-tag {
font-size: 0.72rem;
padding: 1px 6px;
border-radius: 4px;
background: rgba(244, 63, 94, 0.15);
border: 1px solid rgba(244, 63, 94, 0.3);
color: #fb7185;
font-family: monospace;
}
.anomalous-source-model-name {
font-size: 0.88rem;
color: #f1f5f9;
word-break: break-all;
}
.anomalous-source-badge-neutral {
font-size: 0.72rem;
padding: 1px 5px;
border-radius: 4px;
background: rgba(148, 163, 184, 0.08);
border: 1px solid rgba(148, 163, 184, 0.2);
color: #cbd5e1;
}
.anomalous-source-badge-danger {
font-size: 0.7rem;
padding: 1px 5px;
border-radius: 4px;
background: rgba(239, 68, 68, 0.2);
border: 1px solid rgba(239, 68, 68, 0.4);
color: #f87171;
}
.anomalous-source-hash-chip {
font-size: 0.72rem;
color: #64748b;
margin-left: auto;
font-family: monospace;
}
.anomalous-source-col-input-row {
display: flex;
align-items: center;
gap: 8px;
}
.anomalous-source-input-wrap {
flex: 1;
position: relative;
display: flex;
align-items: center;
}
.anomalous-source-url-input {
width: 100%;
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
color: #e2e8f0;
font-size: 0.82rem;
padding: 6px 10px;
padding-right: 96px;
outline: none;
box-sizing: border-box;
font-family: monospace;
}
.anomalous-source-url-input:focus {
border-color: #38bdf8;
background: rgba(0, 0, 0, 0.6);
}
.anomalous-source-url-input.is-locked {
background: rgba(0, 0, 0, 0.25);
border-color: rgba(255, 255, 255, 0.07);
color: #94a3b8;
cursor: default;
}
.anomalous-source-url-input.is-locked:hover {
border-color: rgba(255, 255, 255, 0.18);
}
.anomalous-source-url-input.is-editing {
border-color: #f59e0b;
background: rgba(245, 158, 11, 0.08);
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
color: #f8fafc;
}
.anomalous-source-edit-badge {
font-size: 0.7rem;
font-weight: 500;
color: #fbbf24;
background: rgba(245, 158, 11, 0.15);
border: 1px solid rgba(245, 158, 11, 0.35);
padding: 1px 6px;
border-radius: 4px;
white-space: nowrap;
}
.anomalous-btn-save-local {
background: linear-gradient(135deg, #f59e0b, #d97706) !important;
border-color: rgba(245, 158, 11, 0.6) !important;
color: #fff !important;
font-weight: 600;
animation: anomalousSourcesPulse 1.6s ease-in-out infinite;
}
@keyframes anomalousSourcesPulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}
.anomalous-source-plat-badge {
position: absolute;
right: 6px;
font-size: 0.7rem;
font-weight: 500;
padding: 2px 7px;
border-radius: 4px;
border: 1px solid;
pointer-events: none;
}
.anomalous-source-row-actions {
display: flex;
gap: 6px;
align-items: center;
flex-shrink: 0;
}
.anomalous-btn-jump {
background: linear-gradient(135deg, #0284c7, #0369a1);
border: 1px solid rgba(56, 189, 248, 0.4);
color: #fff;
}
.anomalous-btn-jump:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.anomalous-sources-footer {
padding: 10px 18px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(18, 20, 28, 0.95);
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.anomalous-sources-footer-stats {
font-size: 0.82rem;
color: #94a3b8;
}
.anomalous-sources-footer-actions {
display: flex;
gap: 8px;
}
.anomalous-sources-empty {
padding: 40px 20px;
text-align: center;
color: #94a3b8;
font-size: 0.9rem;
}
.anomalous-sources-library-hint {
padding: 8px 12px;
margin-bottom: 8px;
color: var(--amb-text-secondary, #94a3b8);
background: rgba(255, 255, 255, 0.025);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 7px;
font-size: 0.78rem;
}
.anomalous-sources-components-toggle {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
margin-top: 8px;
padding: 11px 12px;
color: var(--amb-text-secondary, #cbd5e1);
background: rgba(148, 163, 184, 0.07);
border: 1px solid rgba(148, 163, 184, 0.18);
border-radius: 8px;
cursor: pointer;
font: 600 0.84rem/1.3 system-ui, sans-serif;
text-align: left;
}
.anomalous-sources-components-toggle:hover {
color: #f1f5f9;
background: rgba(148, 163, 184, 0.11);
}
.anomalous-sources-components-toggle:focus-visible {
outline: 2px solid var(--amb-accent, #38bdf8);
outline-offset: 2px;
}
.anomalous-sources-components-label {
display: flex;
flex-direction: column;
gap: 2px;
}
.anomalous-sources-components-label small {
color: var(--amb-text-muted, #64748b);
font-size: 0.7rem;
font-weight: 400;
}
.anomalous-sources-components-list {
padding: 6px 0 0 14px;
border-left: 1px solid rgba(148, 163, 184, 0.2);
}
.anomalous-sources-components-empty {
padding: 14px 10px;
color: #64748b;
font-size: 0.8rem;
}
/* =============================================================================
UPDATE GUIDE NOTICE INDICATOR (CLEAN MONOCHROME TECH)
============================================================================= */
/* Header skin uses important padding/colors; keep this control square within that skin. */
#anomalous-header button.anomalous-update-notice-btn {
width: 32px;
min-width: 32px;
padding: 0 !important;
background: transparent !important;
border-color: rgba(255, 255, 255, 0.15) !important;
color: var(--amb-text-primary, #e2e8f0) !important;
}
#anomalous-header button.anomalous-update-notice-btn:hover {
background: rgba(255, 255, 255, 0.08) !important;
}
.anomalous-update-notice-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
border: 1px solid currentColor;
border-radius: 50%;
font: 700 12px/1 system-ui, sans-serif;
}
#anomalous-help-replay-guide-btn {
padding: 8px 14px;
background: rgba(255, 255, 255, 0.05);
color: #cbd5e1;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 4px;
cursor: pointer;
font-size: 12px;
font-weight: 500;
}
#anomalous-help-replay-guide-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
color: #fff;
}
#anomalous-update-notice-btn:focus-visible,
#anomalous-help-replay-guide-btn:focus-visible,
.anomalous-update-guide button:focus-visible {
outline: 2px solid var(--amb-accent, #38bdf8);
outline-offset: 2px;
}
/* =============================================================================
SIDEBAR ACTIONS HOVER REVEAL & TOOLTIPS
============================================================================= */
#anomalous-sidebar-actions .anomalous-action-label {
position: absolute;
inset: 0;
display: inline-flex;
align-items: center;
justify-content: center;
font: 600 11px/1 system-ui, sans-serif;
color: #ffffff;
pointer-events: none !important;
white-space: nowrap;
opacity: 0;
transform: translateY(3px);
transition: opacity 0.12s ease, transform 0.12s ease;
}
#anomalous-sidebar-actions button.anomalous-action-label-active > svg {
opacity: 0 !important;
pointer-events: none !important;
}
#anomalous-sidebar-actions button.anomalous-action-label-active .anomalous-action-label {
opacity: 1 !important;
transform: translateY(0) !important;
}
#anomalous-sidebar-actions button:focus-visible {
outline: 2px solid var(--amb-accent, #38bdf8);
outline-offset: 2px;
}
@media (hover: none) {
#anomalous-sidebar-actions button > svg { opacity: 0 !important; }
#anomalous-sidebar-actions .anomalous-action-label { opacity: 1 !important; transform: none !important; }
}
/* Suppress CSS pseudo-element tooltips on sidebar action buttons */
#anomalous-sidebar-actions button::after,
#anomalous-sidebar-actions button::before {
display: none !important;
}
/* =============================================================================
SHARED SIDEBAR FLOATING TOOLTIP BUBBLE (SINGLETON DOM)
============================================================================= */
#anomalous-sidebar-tooltip-bubble {
position: fixed;
z-index: 1000001;
pointer-events: none;
display: none;
flex-direction: column;
align-items: center;
padding: 7px 11px;
max-width: 220px;
background: rgba(18, 20, 26, 0.98);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 6px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.08);
box-sizing: border-box;
transition: opacity 0.15s ease;
}
#anomalous-sidebar-tooltip-bubble .anomalous-tooltip-title {
font-size: 11.5px;
font-weight: 600;
color: #ffffff;
margin-bottom: 2px;
text-align: center;
line-height: 1.3;
}
#anomalous-sidebar-tooltip-bubble .anomalous-tooltip-body {
font-size: 10.5px;
font-weight: 400;
color: #94a3b8;
line-height: 1.4;
text-align: center;
white-space: normal;
word-break: normal;
overflow-wrap: break-word;
}
#anomalous-sidebar-tooltip-bubble .anomalous-tooltip-arrow {
position: absolute;
bottom: -5px;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid rgba(18, 20, 26, 0.98);
transform: translateX(-50%);
}
@media (prefers-reduced-motion: reduce) {
#anomalous-sidebar-actions button .anomalous-action-label {
animation: none !important;
transform: none !important;
}
#anomalous-sidebar-tooltip-bubble {
transition: none !important;
}
}
/* =============================================================================
UPDATE GUIDE MODAL (ELEGANT MONOCHROME OBSIDIAN GLASS)
============================================================================= */
dialog.anomalous-update-guide:not([open]) {
display: none !important;
}
dialog.anomalous-update-guide[open] {
display: flex !important;
flex-direction: column;
}
dialog.anomalous-update-guide {
position: fixed;
inset: 0;
margin: auto;
width: 480px;
max-width: calc(100vw - 32px);
height: fit-content;
max-height: 85vh;
padding: 0;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 16px;
background: linear-gradient(145deg, rgba(28, 30, 38, 0.98), rgba(16, 18, 24, 0.98));
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.12);
color: #f1f5f9;
outline: none;
overflow-y: auto;
box-sizing: border-box;
z-index: 1000000;
animation: anomalous-guide-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
dialog.anomalous-update-guide > * { flex-shrink: 0; }
@keyframes anomalous-guide-pop {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
dialog.anomalous-update-guide::backdrop {
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
animation: anomalous-fade-in 0.2s ease;
}
@keyframes anomalous-fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
.anomalous-update-guide-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 20px;
background: rgba(255, 255, 255, 0.02);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.5px;
color: #94a3b8;
}
.anomalous-update-guide-close {
background: transparent;
border: none;
color: #94a3b8;
font-size: 20px;
line-height: 1;
cursor: pointer;
padding: 2px 6px;
border-radius: 6px;
transition: all 0.15s ease;
}
.anomalous-update-guide-close:hover {
color: #ffffff;
background: rgba(255, 255, 255, 0.1);
}
.anomalous-update-guide-icon {
width: 58px;
height: 58px;
margin: 24px auto 14px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.14);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: #f1f5f9;
user-select: none;
flex-shrink: 0;
}
#anomalous-update-guide-title {
margin: 0 24px 10px;
font-size: 17px;
font-weight: 600;
color: #ffffff;
text-align: center;
letter-spacing: 0.2px;
}
#anomalous-update-guide-body {
margin: 0 24px 16px;
font-size: 13px;
line-height: 1.65;
color: #cbd5e1;
text-align: center;
min-height: 60px;
}
.anomalous-update-guide-progress {
margin: 0 24px 20px;
font-size: 11px;
color: #64748b;
text-align: center;
font-weight: 500;
letter-spacing: 0.4px;
}
.anomalous-update-guide-footer {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding: 14px 20px;
background: rgba(0, 0, 0, 0.28);
border-top: 1px solid rgba(255, 255, 255, 0.06);
gap: 10px;
}
.anomalous-update-guide-footer .anomalous-btn-ghost {
padding: 7px 15px;
font-size: 12px;
border-radius: 6px;
color: #94a3b8;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.08);
cursor: pointer;
transition: all 0.15s ease;
}
.anomalous-update-guide-footer .anomalous-btn-ghost:hover:not(:disabled) {
color: #ffffff;
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.18);
}
.anomalous-update-guide-footer .anomalous-btn-ghost:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.anomalous-update-guide-footer .anomalous-btn-primary {
padding: 7px 22px;
font-size: 12px;
font-weight: 600;
border-radius: 6px;
color: #0f172a;
background: #f1f5f9;
border: 1px solid #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
cursor: pointer;
transition: all 0.15s ease;
}
.anomalous-update-guide-footer .anomalous-btn-primary:hover {
background: #ffffff;
box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
transform: translateY(-1px);
}