:root { --gn-font-sans: "Inter", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Ubuntu", sans-serif; --gn-font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", "Noto Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace; } html, body, #root { height: 100%; margin: 0; padding: 0; overflow: hidden; /* Disable global scrollbar */ background-color: transparent !important; /* CRITICAL: Allow Wails window transparency */ } body, #root { border-radius: var(--gonavi-border-radius); /* Slightly rounded app window corners */ } body, button, input, textarea, select { font-family: var(--gn-font-sans); } code, pre, kbd, samp { font-family: var(--gn-font-mono); } /* 侧边栏 Tree 样式优化 */ .ant-tree .ant-tree-treenode { width: 100%; } .ant-tree .ant-tree-node-content-wrapper { display: flex !important; align-items: center; white-space: nowrap; user-select: none !important; -webkit-user-select: none !important; } .ant-tree .ant-tree-title, .ant-tree .ant-tree-treenode * { user-select: none !important; -webkit-user-select: none !important; } .ant-tree .ant-tree-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; } .sidebar-tree-scroll-shell { overflow-x: auto; overflow-y: hidden; } .sidebar-tree-scroll-content { min-width: 100%; } .sidebar-tree-scroll-shell .ant-tree { min-width: 100%; } .sidebar-tree-scroll-shell .ant-tree .ant-tree-list-holder, .sidebar-tree-scroll-shell .ant-tree .ant-tree-list-holder-inner { min-width: 100%; } .sidebar-tree-scroll-shell .ant-tree .ant-tree-treenode { width: auto; min-width: 100%; } .sidebar-tree-scroll-shell .ant-tree .ant-tree-node-content-wrapper { width: max-content !important; min-width: 100%; display: flex !important; align-items: center; gap: 8px; } .sidebar-tree-scroll-shell .ant-tree .ant-tree-switcher { flex: 0 0 24px; width: 24px; min-width: 24px; } .sidebar-tree-scroll-shell .ant-tree .ant-tree-iconEle { flex: 0 0 16px; width: 16px; min-width: 16px; display: inline-flex; align-items: center; justify-content: center; margin-inline-end: 0; } .sidebar-tree-scroll-shell .ant-tree .ant-tree-title { flex: 0 0 auto; min-width: max-content; overflow: visible; text-overflow: clip; } .redis-viewer-workbench .ant-tree { background: transparent; } .redis-viewer-workbench .ant-tree .ant-tree-list-holder-inner, .redis-viewer-workbench .ant-tree .ant-tree-list-holder-inner .ant-tree-treenode { width: 100% !important; } .redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper { min-height: 36px; border-radius: 14px; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; background: transparent !important; border: none !important; box-shadow: none !important; outline: none !important; flex: 1 1 auto; min-width: 0; width: auto !important; } .redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper:hover, .redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper:active, .redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper:focus, .redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper:focus-visible, .redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected, .redis-viewer-workbench .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected:hover { background: transparent !important; border-color: transparent !important; box-shadow: none !important; outline: none !important; } .redis-viewer-workbench .ant-tree .ant-tree-treenode { padding: 2px 0; width: 100%; border-radius: 14px; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; border: none; align-items: center; position: relative; z-index: 0; display: flex !important; box-sizing: border-box; } .redis-viewer-workbench .ant-tree .ant-tree-switcher { width: 0 !important; min-width: 0 !important; margin-inline-end: 0 !important; padding: 0 !important; overflow: hidden !important; background: transparent !important; } .redis-viewer-workbench .ant-tree .ant-tree-switcher:hover, .redis-viewer-workbench .ant-tree .ant-tree-switcher:active, .redis-viewer-workbench .ant-tree .ant-tree-switcher:focus { background: transparent !important; } .redis-viewer-workbench .redis-tree-expander-button:hover, .redis-viewer-workbench .redis-tree-expander-button:focus-visible { background: transparent !important; outline: none; } .redis-viewer-workbench .ant-radio-group .ant-radio-button-wrapper { border-radius: 10px; margin-inline-end: 6px; } .redis-viewer-workbench .ant-radio-group .ant-radio-button-wrapper:last-child { margin-inline-end: 0; } .redis-viewer-workbench .ant-table { background: transparent; } .redis-viewer-workbench .ant-table-wrapper .ant-table-thead > tr > th { font-weight: 700; } /* Scrollbar styling for dark mode */ body[data-theme='dark'] ::-webkit-scrollbar { width: 10px; height: 10px; } body[data-theme='dark'] ::-webkit-scrollbar-track { background: #1f1f1f; } body[data-theme='dark'] ::-webkit-scrollbar-corner { background: #1f1f1f; } body[data-theme='dark'] ::-webkit-scrollbar-thumb { background: #424242; border-radius: 4px; border: 2px solid #1f1f1f; } body[data-theme='dark'] ::-webkit-scrollbar-thumb:hover { background: #666; } /* Scrollbar styling for light mode (transparent-friendly) */ body[data-theme='light'] ::-webkit-scrollbar { width: 10px; height: 10px; } body[data-theme='light'] ::-webkit-scrollbar-track { background: transparent; } body[data-theme='light'] ::-webkit-scrollbar-corner { background: transparent; } body[data-theme='light'] ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.18); border-radius: 4px; border: 2px solid transparent; background-clip: content-box; } body[data-theme='light'] ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.30); border: 2px solid transparent; background-clip: content-box; } .gn-query-monaco-stage .monaco-editor .suggest-details-container { min-height: 260px; } .gn-query-monaco-stage .monaco-editor .suggest-details { min-height: 260px; } .gn-query-monaco-stage .monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main { justify-content: flex-start; gap: 6px; } /* 补全主名称优先完整显示,避免被右侧表名/类型挤成 primary_ent... */ .gn-query-monaco-stage .monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left { flex: 1 1 auto; min-width: 0; overflow: hidden; } /* 表名/类型等元数据让位:始终可见,但空间不足时优先压缩/省略右侧 */ .gn-query-monaco-stage .monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right { flex: 0 1 auto; flex-shrink: 4; max-width: 48%; min-width: 0; overflow: hidden; } .gn-query-monaco-stage .monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .right > .details-label { display: inline !important; margin-left: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Ensure body background matches theme to avoid white flashes, but kept transparent for window composition */ body { transition: color 0.3s; } body[data-theme='dark'] { /* 移除全局 text-shadow:对每个文本元素增加 GPU compositing 成本, 在透明窗口环境下会显著加剧 GPU 负载 */ } /* 暗色 + 透明:提升选中/焦点可读性,避免默认蓝色在半透明背景下发灰 */ body[data-theme='dark'] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected, body[data-theme='dark'] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected:hover { background: rgba(246, 196, 83, 0.24) !important; color: rgba(255, 236, 179, 0.98) !important; } body[data-theme='dark'] .redis-viewer-workbench .ant-tree .ant-tree-treenode:hover { background: rgba(255, 255, 255, 0.05) !important; } body[data-theme='dark'] .redis-viewer-workbench .ant-tree .ant-tree-treenode.ant-tree-treenode-selected, body[data-theme='dark'] .redis-viewer-workbench .ant-tree .ant-tree-treenode.ant-tree-treenode-selected:hover { background: linear-gradient(90deg, rgba(246, 196, 83, 0.22), rgba(246, 196, 83, 0.08)) !important; border: 1px solid rgba(246, 196, 83, 0.24) !important; } body[data-theme='dark'] .ant-checkbox-checked .ant-checkbox-inner { background-color: #f6c453 !important; border-color: #f6c453 !important; } body[data-theme='dark'] .ant-checkbox-indeterminate .ant-checkbox-inner::after { background-color: #f6c453 !important; } body[data-theme='dark'] .ant-checkbox:hover .ant-checkbox-inner, body[data-theme='dark'] .ant-checkbox-wrapper:hover .ant-checkbox-inner { border-color: #f6c453 !important; } body[data-theme='dark'] .ant-radio-checked .ant-radio-inner { border-color: #f6c453 !important; background-color: #f6c453 !important; } body[data-theme='dark'] .ant-radio-wrapper:hover .ant-radio-inner, body[data-theme='dark'] .ant-radio:hover .ant-radio-inner { border-color: #f6c453 !important; } body[data-theme='dark'] .ant-switch.ant-switch-checked { background: #d8a93b !important; } body[data-theme='dark'] .ant-table-tbody > tr.ant-table-row-selected > td, body[data-theme='dark'] .ant-table-tbody .ant-table-row.ant-table-row-selected > .ant-table-cell { background: rgba(246, 196, 83, 0.18) !important; } body[data-theme='dark'] .ant-table-tbody > tr.ant-table-row-selected:hover > td, body[data-theme='dark'] .ant-table-tbody .ant-table-row.ant-table-row-selected:hover > .ant-table-cell { background: rgba(246, 196, 83, 0.26) !important; } body[data-theme='dark'] .redis-viewer-workbench .ant-radio-button-wrapper { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); color: rgba(230, 234, 242, 0.9); } body[data-theme='dark'] .redis-viewer-workbench .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) { background: rgba(246, 196, 83, 0.16); border-color: rgba(246, 196, 83, 0.3); color: #f6c453; } body[data-theme='light'] .redis-viewer-workbench .ant-tree .ant-tree-treenode:hover { background: rgba(15, 23, 42, 0.04) !important; } body[data-theme='light'] .redis-viewer-workbench .ant-tree .ant-tree-treenode.ant-tree-treenode-selected, body[data-theme='light'] .redis-viewer-workbench .ant-tree .ant-tree-treenode.ant-tree-treenode-selected:hover { color: rgba(15, 23, 42, 0.92) !important; background: linear-gradient(90deg, rgba(22, 119, 255, 0.12), rgba(22, 119, 255, 0.04)) !important; border: 1px solid rgba(22, 119, 255, 0.18) !important; } body[data-theme='light'] .redis-viewer-workbench .ant-radio-button-wrapper { background: rgba(255, 255, 255, 0.72); border-color: rgba(15, 23, 42, 0.08); color: rgba(51, 65, 85, 0.88); } body[data-theme='light'] .redis-viewer-workbench .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) { background: rgba(22, 119, 255, 0.1); border-color: rgba(22, 119, 255, 0.22); color: #1677ff; } /* 连接配置弹窗:滚动仅在弹窗 body 内部,不使用外层 wrap 滚动条 */ .connection-modal-wrap { overflow: hidden !important; } .connection-modal-wrap .ant-modal-content { max-height: calc(100vh - 72px); display: flex; flex-direction: column; } .connection-modal-wrap .ant-modal-body { flex: 1 1 auto; min-height: 0; } .connection-modal-wrap .ant-modal-footer { flex-shrink: 0; } /* Custom Title Bar Close Button Hover */ .titlebar-close-btn:hover { background-color: #ff4d4f !important; color: #fff !important; } .driver-manager-modal .ant-modal-body { background: var(--ant-color-bg-layout, #f5f5f5); } .driver-manager-shell { display: flex; flex-direction: column; gap: 14px; } .driver-manager-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: stretch; padding: 14px 16px; border: 1px solid rgba(5, 5, 5, 0.08); border-radius: 8px; background: var(--ant-color-bg-container, #fff); } .driver-manager-heading { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .driver-manager-stats { display: grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 8px; min-width: 360px; } .driver-manager-stat { display: flex; flex-direction: column; gap: 2px; justify-content: center; min-height: 58px; padding: 8px 10px; border: 1px solid rgba(5, 5, 5, 0.08); border-radius: 8px; background: rgba(5, 5, 5, 0.02); } .driver-manager-stat span:first-child { font-size: 20px; font-weight: 700; line-height: 1.2; } .driver-manager-stat-warning span:first-child { color: #d48806; } .driver-manager-directory-panel { border: 1px solid rgba(5, 5, 5, 0.08); border-radius: 8px; background: var(--ant-color-bg-container, #fff); } .driver-manager-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; } .driver-manager-search { min-width: 280px; flex: 1 1 360px; } .driver-manager-toolbar-actions { justify-content: flex-end; } .driver-manager-batch-progress-panel { display: grid; gap: 8px; padding: 12px 14px; border-radius: 8px; } .driver-manager-batch-progress-header, .driver-manager-batch-progress-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; min-width: 0; } .driver-manager-batch-progress-header span, .driver-manager-batch-progress-meta span { min-width: 0; word-break: break-word; } .driver-manager-list-head { display: flex; justify-content: space-between; gap: 12px; min-height: 24px; } .driver-manager-list { display: flex; flex-direction: column; gap: 10px; } .driver-manager-card { border: 1px solid rgba(5, 5, 5, 0.08); border-radius: 8px; background: var(--ant-color-bg-container, #fff); overflow: hidden; } .driver-manager-card-warning { border-color: rgba(250, 173, 20, 0.35); } .driver-manager-card-ready { border-color: rgba(82, 196, 26, 0.22); } .driver-manager-card-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 38%); gap: 16px; padding: 16px; } .driver-manager-card-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .driver-manager-title-row, .driver-manager-meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; } .driver-manager-driver-name { font-size: 16px; } .driver-manager-meta-row { row-gap: 4px; } .driver-manager-update-note { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: rgba(250, 173, 20, 0.1); } .driver-manager-note-text, .driver-manager-muted-message { margin-bottom: 0 !important; } .driver-manager-muted-message { color: var(--ant-color-text-secondary); } .driver-manager-card-controls { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .driver-manager-control-block { display: grid; gap: 4px; } .driver-manager-control-label, .driver-manager-small-text { font-size: 12px; } .driver-manager-version-control { display: grid; gap: 4px; } .driver-manager-version-lock { line-height: 24px; } .driver-manager-card-actions { justify-content: flex-end; } .driver-manager-card-actions .ant-btn { min-width: 88px; } .driver-manager-footer-actions { width: 100%; display: flex; justify-content: flex-end; } @media (max-width: 900px) { .driver-manager-header, .driver-manager-card-main { grid-template-columns: 1fr; } .driver-manager-stats { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); } .driver-manager-card-actions { justify-content: flex-start; } .driver-manager-batch-progress-header, .driver-manager-batch-progress-meta { justify-content: flex-start; } } .security-update-action-btn.ant-btn, .security-update-action-btn.ant-btn-default, .security-update-action-btn.ant-btn-primary, .security-update-action-btn.ant-btn-text { box-shadow: none !important; } .security-update-action-btn.ant-btn:focus, .security-update-action-btn.ant-btn:focus-visible, .security-update-action-btn.ant-btn-default:focus, .security-update-action-btn.ant-btn-default:focus-visible, .security-update-action-btn.ant-btn-primary:focus, .security-update-action-btn.ant-btn-primary:focus-visible, .security-update-action-btn.ant-btn-text:focus, .security-update-action-btn.ant-btn-text:focus-visible { outline: none !important; box-shadow: none !important; } .security-update-banner { position: relative; isolation: isolate; } .security-update-result-card { transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease; } .security-update-result-card-active { animation: security-update-result-pulse 1.8s ease; } @keyframes security-update-result-pulse { 0% { transform: translateY(0); } 30% { transform: translateY(-2px); } 100% { transform: translateY(0); } } .gonavi-query-editor-link-hint { color: #1677ff !important; cursor: pointer; text-decoration: underline; text-decoration-style: solid; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; } .gonavi-query-editor-object-token { color: #2563eb; } .gonavi-query-editor-column-token { color: #0f766e; } .gonavi-query-editor-db-token { color: #7c3aed; } body[data-theme='dark'] .gonavi-query-editor-object-token { color: #7dd3fc; } body[data-theme='dark'] .gonavi-query-editor-link-hint { color: #69b1ff !important; } body[data-theme='dark'] .gonavi-query-editor-column-token { color: #5eead4; } body[data-theme='dark'] .gonavi-query-editor-db-token { color: #c4b5fd; } .gonavi-query-editor-ai-inline-ghost { color: rgba(100, 116, 139, 0.7); font-style: italic; pointer-events: none; } .gonavi-query-editor-ai-inline-ghost-overlay { color: rgba(100, 116, 139, 0.7); font-style: italic; pointer-events: none; position: absolute; white-space: pre; z-index: 6; } body[data-theme='dark'] .gonavi-query-editor-ai-inline-ghost { color: rgba(203, 213, 225, 0.56); } body[data-theme='dark'] .gonavi-query-editor-ai-inline-ghost-overlay { color: rgba(203, 213, 225, 0.56); } /* Legacy sidebar resize bounds — mirror v2 .gn-v2-app-sider so Ant Design inline width locks do not collapse drag range. */ body[data-ui-version="legacy"] .ant-layout-sider { min-width: 232px !important; max-width: min(960px, calc(100vw - 360px)) !important; } body .gonavi-about-update-channel.ant-segmented.ant-segmented { height: 42px !important; padding: 4px !important; border: 1px solid rgba(15, 23, 42, 0.10) !important; border-radius: 12px !important; background: rgba(15, 23, 42, 0.035) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important; } body .gonavi-about-update-channel .ant-segmented-group { gap: 3px; } body .gonavi-about-update-channel .ant-segmented-item { border-radius: 9px !important; } body .gonavi-about-update-channel .ant-segmented-item-label { min-height: 32px !important; padding: 0 14px !important; color: rgba(15, 23, 42, 0.62) !important; font-size: 14px !important; font-weight: 700 !important; line-height: 32px !important; } body .gonavi-about-update-channel .ant-segmented-item-selected, body .gonavi-about-update-channel .ant-segmented-thumb { background: rgba(255, 255, 255, 0.98) !important; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12) !important; } body .gonavi-about-update-channel .ant-segmented-item-selected .ant-segmented-item-label { color: #0f172a !important; } body .gonavi-about-update-channel.ant-segmented-disabled { opacity: 0.58; } body[data-theme='dark'] .gonavi-about-update-channel.ant-segmented.ant-segmented { border-color: rgba(148, 163, 184, 0.22) !important; background: rgba(15, 23, 42, 0.55) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important; } body[data-theme='dark'] .gonavi-about-update-channel .ant-segmented-item-label { color: rgba(226, 232, 240, 0.62) !important; } body[data-theme='dark'] .gonavi-about-update-channel .ant-segmented-item-selected, body[data-theme='dark'] .gonavi-about-update-channel .ant-segmented-thumb { background: rgba(30, 41, 59, 0.98) !important; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26) !important; } body[data-theme='dark'] .gonavi-about-update-channel .ant-segmented-item-selected .ant-segmented-item-label { color: #f8fafc !important; } /* ── Theme settings (v2 only): clean desktop settings ─── */ body .gonavi-theme-settings { --gn-settings-fg: #0f172a; --gn-settings-muted: #64748b; --gn-settings-line: #e2e8f0; --gn-settings-track: #e2e8f0; --gn-settings-chip-bg: #f8fafc; --gn-settings-chip-fg: #0f172a; --gn-settings-seg-bg: #f8fafc; --gn-settings-seg-border: #e2e8f0; --gn-settings-seg-item: #64748b; --gn-settings-seg-selected-bg: #fff; --gn-settings-seg-selected-fg: #0f172a; --gn-settings-seg-shadow: none; --gn-settings-accent: #16a34a; --gn-settings-accent-soft: #dcfce7; --gn-settings-accent-border: #86efac; --gn-settings-card-bg: #ffffff; } body[data-theme='dark'] .gonavi-theme-settings { --gn-settings-fg: rgba(248, 250, 252, 0.94); --gn-settings-muted: rgba(226, 232, 240, 0.58); --gn-settings-line: rgba(255, 255, 255, 0.10); --gn-settings-track: rgba(255, 255, 255, 0.12); --gn-settings-chip-bg: rgba(255, 255, 255, 0.06); --gn-settings-chip-fg: rgba(248, 250, 252, 0.88); --gn-settings-seg-bg: rgba(255, 255, 255, 0.04); --gn-settings-seg-border: rgba(148, 163, 184, 0.18); --gn-settings-seg-item: rgba(226, 232, 240, 0.58); --gn-settings-seg-selected-bg: rgba(30, 41, 59, 0.96); --gn-settings-seg-selected-fg: #f8fafc; --gn-settings-accent: #22c55e; --gn-settings-accent-soft: rgba(34, 197, 94, 0.18); --gn-settings-accent-border: rgba(74, 222, 128, 0.55); --gn-settings-card-bg: rgba(255, 255, 255, 0.02); } body .gonavi-theme-settings .gonavi-settings-section { padding-left: 0; border-left: none; margin-bottom: 4px; } body .gonavi-theme-settings .gonavi-settings-section + .gonavi-settings-section { margin-top: 20px; padding-top: 0; border-top: none; } body .gonavi-theme-settings .gonavi-settings-section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--gn-settings-fg); font-size: 13px; font-weight: 700; letter-spacing: 0.01em; } body .gonavi-theme-settings .gonavi-settings-section-hint { margin: -2px 0 10px; color: var(--gn-settings-muted); font-size: 12px; line-height: 1.5; } body .gonavi-theme-settings .gonavi-settings-row { display: grid; grid-template-columns: minmax(120px, 168px) minmax(0, 1fr); gap: 12px 16px; align-items: center; min-height: 40px; padding: 8px 0; } body .gonavi-theme-settings .gonavi-settings-row.is-stacked { grid-template-columns: 1fr; gap: 8px; align-items: stretch; } body .gonavi-theme-settings .gonavi-settings-row + .gonavi-settings-row { border-top: 1px solid var(--gn-settings-line); } body .gonavi-theme-settings .gonavi-settings-label { color: var(--gn-settings-fg); font-size: 13px; font-weight: 600; line-height: 1.35; } body .gonavi-theme-settings .gonavi-settings-label-hint { margin-top: 3px; color: var(--gn-settings-muted); font-size: 12px; font-weight: 400; line-height: 1.45; } body .gonavi-theme-settings .gonavi-settings-control { min-width: 0; } body .gonavi-theme-settings .gonavi-settings-slider-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 2px 0; overflow: visible; } body .gonavi-theme-settings .gonavi-settings-slider-row.has-marks { align-items: flex-start; padding-bottom: 2px; } body .gonavi-theme-settings .gonavi-settings-slider-row.has-marks .gonavi-settings-slider-value { margin-top: 6px; } body .gonavi-theme-settings .gonavi-settings-slider-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } /* * antd Slider 手柄用 translateX(-50%),在 0%/100% 会各伸出半个圆 + 描边阴影。 * 外层 padding 需 ≥ 半宽手柄(9) + 描边(2~3),否则仍会缺一截。 */ body .gonavi-theme-settings .gonavi-settings-slider-track-wrap { flex: 0 0 auto; width: 100%; min-width: 0; padding-inline: 14px; overflow: visible; box-sizing: border-box; } body .gonavi-theme-settings .gonavi-settings-slider-track-wrap .ant-slider { width: 100%; margin: 0 !important; padding-block: 14px !important; padding-inline: 0 !important; overflow: visible !important; } /* 预设刻度:独立一行,严格在进度条下方,不叠在轨道上 */ body .gonavi-theme-settings .gonavi-settings-slider-presets { position: relative; height: 18px; margin: 0 14px; box-sizing: border-box; } body .gonavi-theme-settings .gonavi-settings-slider-preset { position: absolute; top: 0; transform: translateX(-50%); margin: 0; padding: 0; border: none; background: transparent; color: var(--gn-settings-muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 18px; white-space: nowrap; cursor: pointer; } body .gonavi-theme-settings .gonavi-settings-slider-preset:hover:not(:disabled) { color: var(--gn-settings-fg); } body .gonavi-theme-settings .gonavi-settings-slider-preset.is-active { color: var(--gn-settings-accent); font-weight: 700; } body .gonavi-theme-settings .gonavi-settings-slider-preset:disabled { cursor: not-allowed; opacity: 0.55; } body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number, body .gonavi-theme-settings .ant-input-number-group.ant-input-number-group-wrapper.gonavi-settings-slider-value-input, body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number-group-wrapper { flex: 0 0 auto !important; width: 64px !important; min-width: 56px !important; max-width: 72px !important; } body .gonavi-theme-settings .gonavi-settings-slider-value-input .ant-input-number, body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number { width: 100% !important; border-radius: 999px 0 0 999px !important; border-color: color-mix(in srgb, var(--gn-settings-accent) 28%, var(--gn-settings-line)) !important; background: color-mix(in srgb, var(--gn-settings-accent) 8%, transparent) !important; } /* 无 addon 时整颗胶囊 */ body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number:not(.ant-input-number-group-wrapper) { width: 52px !important; min-width: 48px !important; max-width: 56px !important; border-radius: 999px !important; } body .gonavi-theme-settings .gonavi-settings-slider-value-input .ant-input-number-input { height: 28px !important; padding: 0 2px 0 6px !important; color: var(--gn-settings-fg) !important; font-size: 12px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; text-align: center !important; } body .gonavi-theme-settings .gonavi-settings-slider-value-input .ant-input-number-group-addon { min-width: 18px !important; width: 18px !important; padding: 0 6px 0 0 !important; border: 1px solid color-mix(in srgb, var(--gn-settings-accent) 28%, var(--gn-settings-line)) !important; border-left: none !important; border-radius: 0 999px 999px 0 !important; background: color-mix(in srgb, var(--gn-settings-accent) 8%, transparent) !important; color: var(--gn-settings-muted) !important; font-size: 11px !important; font-weight: 700 !important; line-height: 26px !important; } /* 带 % / px 的整体圆角胶囊外观 */ body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number-group-wrapper .ant-input-number { border-right: none !important; } body .gonavi-theme-settings .gonavi-settings-slider-value-input.ant-input-number-disabled { opacity: 0.6; } body .gonavi-theme-settings .ant-slider-rail { height: 8px !important; border-radius: 999px !important; background: var(--gn-settings-track) !important; box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06); } body .gonavi-theme-settings .ant-slider-track { height: 8px !important; border-radius: 999px !important; background: linear-gradient(90deg, color-mix(in srgb, var(--gn-settings-accent) 78%, #fff) 0%, var(--gn-settings-accent) 100%) !important; } body .gonavi-theme-settings .ant-slider-handle { width: 16px !important; height: 16px !important; inset-block-start: 10px !important; z-index: 2; } /* 关掉 antd 默认 before 光晕,避免叠成空心环 */ body .gonavi-theme-settings .ant-slider-handle::before { display: none !important; } body .gonavi-theme-settings .ant-slider-handle::after { width: 16px !important; height: 16px !important; inset-inline-start: 0 !important; inset-block-start: 0 !important; border-radius: 50% !important; /* 实心白底 + 绿描边,禁用时也不靠整控件 opacity 变空心 */ background: #fff !important; box-shadow: 0 0 0 2px var(--gn-settings-accent), 0 1px 4px rgba(15, 23, 42, 0.14) !important; opacity: 1 !important; transition: box-shadow 0.12s ease !important; } body .gonavi-theme-settings .ant-slider-handle:hover::after, body .gonavi-theme-settings .ant-slider-handle:focus::after { box-shadow: 0 0 0 2px var(--gn-settings-accent), 0 0 0 4px color-mix(in srgb, var(--gn-settings-accent) 22%, transparent), 0 1px 4px rgba(15, 23, 42, 0.14) !important; } body .gonavi-theme-settings .ant-slider:hover .ant-slider-track, body .gonavi-theme-settings .ant-slider:focus-within .ant-slider-track { background: linear-gradient(90deg, color-mix(in srgb, var(--gn-settings-accent) 78%, #fff) 0%, var(--gn-settings-accent) 100%) !important; } /* 禁用:不要整条 opacity,否则白心被透掉只剩绿环 */ body .gonavi-theme-settings .ant-slider-disabled { opacity: 1 !important; } body .gonavi-theme-settings .ant-slider-disabled .ant-slider-rail { background: color-mix(in srgb, var(--gn-settings-track) 70%, transparent) !important; } body .gonavi-theme-settings .ant-slider-disabled .ant-slider-track { background: color-mix(in srgb, var(--gn-settings-accent) 35%, var(--gn-settings-track)) !important; } body .gonavi-theme-settings .ant-slider-disabled .ant-slider-handle { cursor: not-allowed; } body .gonavi-theme-settings .ant-slider-disabled .ant-slider-handle::after { background: #fff !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gn-settings-accent) 40%, #94a3b8), 0 1px 3px rgba(15, 23, 42, 0.10) !important; opacity: 1 !important; } /* 选项 Segmented:小胶囊;is-compact 不拉满整行 */ body .gonavi-theme-settings .gonavi-settings-segmented-choice.ant-segmented { width: 100%; height: auto !important; min-height: 0 !important; padding: 0 !important; border: none !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice.is-compact.ant-segmented { width: auto !important; max-width: 100%; display: inline-flex !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-group { display: flex !important; width: 100%; gap: 6px !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice.is-compact .ant-segmented-group { width: auto !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item { flex: 1 1 0; min-width: 0; border-radius: 8px !important; border: 1px solid var(--gn-settings-line) !important; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice.is-compact .ant-segmented-item { flex: 0 0 auto !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item:not(.ant-segmented-item-selected) { background: transparent !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item:hover:not(.ant-segmented-item-selected) { background: var(--gn-settings-seg-bg) !important; border-color: color-mix(in srgb, var(--gn-settings-accent) 28%, var(--gn-settings-line)) !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item-label { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 30px !important; padding: 0 12px !important; font-size: 12.5px !important; font-weight: 600 !important; line-height: 30px !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item:not(.ant-segmented-item-selected) .ant-segmented-item-label { color: var(--gn-settings-muted) !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-thumb { display: none !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item.ant-segmented-item-selected, body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item[aria-selected='true'] { border-color: var(--gn-settings-accent) !important; background: var(--gn-settings-accent-soft) !important; box-shadow: none !important; } body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item.ant-segmented-item-selected .ant-segmented-item-label, body .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item[aria-selected='true'] .ant-segmented-item-label { color: var(--gn-settings-accent) !important; font-weight: 700 !important; } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item.ant-segmented-item-selected, body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item[aria-selected='true'] { border-color: color-mix(in srgb, var(--gn-settings-accent) 70%, rgba(255, 255, 255, 0.2)) !important; background: color-mix(in srgb, var(--gn-settings-accent) 22%, transparent) !important; } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item.ant-segmented-item-selected .ant-segmented-item-label, body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-segmented-choice .ant-segmented-item[aria-selected='true'] .ant-segmented-item-label { color: #86efac !important; } /* 界面版本预览卡(紧凑双列) */ body .gonavi-theme-settings .gonavi-settings-ui-version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } body .gonavi-theme-settings .gonavi-settings-ui-version-tile { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--gn-settings-line); border-radius: 12px; background: var(--gn-settings-card-bg); color: var(--gn-settings-fg); text-align: left; cursor: pointer; transition: border-color 0.12s ease, box-shadow 0.12s ease; } body .gonavi-theme-settings .gonavi-settings-ui-version-tile:hover { border-color: #cbd5e1; } body .gonavi-theme-settings .gonavi-settings-ui-version-tile.is-active { border-color: var(--gn-settings-accent); box-shadow: 0 0 0 1px var(--gn-settings-accent-border); background: var(--gn-settings-card-bg); } body .gonavi-theme-settings .gonavi-settings-ui-version-preview { position: relative; height: 58px; overflow: hidden; border-radius: 8px; border: 1px solid var(--gn-settings-line); background: #f1f5f9; } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-preview { background: #0f172a; } body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-legacy { display: grid; grid-template-columns: 34% 1fr; } body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-v2 { display: grid; grid-template-columns: 18px 1fr; } body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-side { display: flex; flex-direction: column; gap: 5px; padding: 8px 6px; border-right: 1px solid rgba(15, 23, 42, 0.08); background: rgba(255, 255, 255, 0.72); } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-side { border-right-color: rgba(255, 255, 255, 0.08); background: rgba(30, 41, 59, 0.85); } body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-v2 .uv-side { align-items: center; padding: 8px 3px; background: linear-gradient(180deg, #16a34a 0%, #15803d 100%); border-right: none; } body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(15, 23, 42, 0.18); } body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-v2 .uv-dot { width: 7px; height: 7px; background: rgba(255, 255, 255, 0.88); } body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-main { display: flex; flex-direction: column; gap: 6px; padding: 8px; } body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-bar { height: 8px; border-radius: 4px; background: rgba(15, 23, 42, 0.10); } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-bar { background: rgba(248, 250, 252, 0.12); } body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-bar.is-accent { width: 42%; background: color-mix(in srgb, var(--gn-settings-accent) 55%, rgba(15, 23, 42, 0.08)); } body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-v2 .uv-bar.is-accent { width: 48%; background: color-mix(in srgb, var(--gn-settings-accent) 70%, #fff); } body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; flex: 1; } body .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-card { border-radius: 5px; background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(15, 23, 42, 0.06); } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-preview .uv-card { background: rgba(30, 41, 59, 0.9); border-color: rgba(255, 255, 255, 0.08); } body .gonavi-theme-settings .gonavi-settings-ui-version-preview.is-legacy .uv-card { border-radius: 2px; } body .gonavi-theme-settings .gonavi-settings-ui-version-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; } body .gonavi-theme-settings .gonavi-settings-ui-version-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.3; } body .gonavi-theme-settings .gonavi-settings-ui-version-badge { flex-shrink: 0; padding: 1px 6px; border-radius: 999px; background: rgba(15, 23, 42, 0.06); color: var(--gn-settings-muted); font-size: 10px; font-weight: 700; } body .gonavi-theme-settings .gonavi-settings-ui-version-badge.is-new { background: rgba(2, 132, 199, 0.12); color: #0284c7; } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-badge { background: rgba(255, 255, 255, 0.08); } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-ui-version-badge.is-new { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; } /* 顶部分段:原生 button Tab(不依赖 antd Segmented) */ body .gonavi-theme-settings .gonavi-settings-tabs { display: flex; width: 100%; border-bottom: 1px solid var(--gn-settings-line); } body .gonavi-theme-settings .gonavi-settings-tab { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 -1px; padding: 10px 8px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--gn-settings-muted); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; } body .gonavi-theme-settings .gonavi-settings-tab:hover { color: var(--gn-settings-fg); } body .gonavi-theme-settings .gonavi-settings-tab.is-active { color: var(--gn-settings-accent); border-bottom-color: var(--gn-settings-accent); font-weight: 700; } body .gonavi-theme-settings .gonavi-settings-tab-icon { display: inline-flex; font-size: 14px; } body .gonavi-theme-settings .gonavi-settings-inline-choice-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--gn-settings-line); } body .gonavi-theme-settings .gonavi-settings-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; } body .gonavi-theme-settings .gonavi-settings-pill { margin: 0; padding: 6px 12px; border: 1px solid var(--gn-settings-line); border-radius: 8px; background: var(--gn-settings-card-bg); color: var(--gn-settings-muted); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; cursor: pointer; } body .gonavi-theme-settings .gonavi-settings-pill:hover { border-color: #cbd5e1; color: var(--gn-settings-fg); } body .gonavi-theme-settings .gonavi-settings-pill.is-active { border-color: var(--gn-settings-accent); background: var(--gn-settings-accent-soft); color: var(--gn-settings-accent); font-weight: 700; } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-pill.is-active { color: #86efac; border-color: color-mix(in srgb, var(--gn-settings-accent) 70%, rgba(255, 255, 255, 0.2)); background: color-mix(in srgb, var(--gn-settings-accent) 22%, transparent); } body .gonavi-theme-settings .gonavi-settings-inline-meta { margin-top: 8px; color: var(--gn-settings-muted); font-size: 12px; line-height: 1.5; } /* Beta:弱提示,不要大黄条 */ body .gonavi-theme-settings .gonavi-settings-beta-chip { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--gn-settings-accent) 12%, transparent); color: var(--gn-settings-accent); font-size: 10px; font-weight: 700; line-height: 18px; } body .gonavi-theme-settings .gonavi-settings-alert { margin-top: 6px; padding: 0; border: none; background: transparent; color: var(--gn-settings-muted); font-size: 11.5px; line-height: 1.45; } body[data-theme='dark'] .gonavi-theme-settings .gonavi-settings-alert { border: none; background: transparent; color: var(--gn-settings-muted); } /* Compact theme-mode previews */ body .gonavi-theme-settings .gonavi-settings-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } body .gonavi-theme-settings .gonavi-settings-mode-tile { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--gn-settings-line); border-radius: 12px; background: var(--gn-settings-card-bg); color: var(--gn-settings-fg); text-align: left; cursor: pointer; transition: border-color 0.12s ease, box-shadow 0.12s ease; } body .gonavi-theme-settings .gonavi-settings-mode-tile:hover { border-color: #cbd5e1; } body .gonavi-theme-settings .gonavi-settings-mode-tile.is-active { border-color: var(--gn-settings-accent); box-shadow: 0 0 0 1px var(--gn-settings-accent-border); background: var(--gn-settings-card-bg); } body .gonavi-theme-settings .gonavi-settings-mode-preview { height: 44px; overflow: hidden; border-radius: 8px; border: 1px solid var(--gn-settings-line); display: grid; } body .gonavi-theme-settings .gonavi-settings-mode-preview.is-system { grid-template-columns: 1fr 1fr; } body .gonavi-theme-settings .gonavi-settings-mode-preview-pane { display: grid; gap: 4px; align-content: center; padding: 7px 8px; } body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-light { background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%); } body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-dark { background: linear-gradient(180deg, #0f172a 0%, #111827 100%); } body .gonavi-theme-settings .gonavi-settings-mode-preview-line { height: 5px; border-radius: 999px; } body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-light .gonavi-settings-mode-preview-line:nth-child(1) { width: 58%; background: rgba(15, 23, 42, 0.14); } body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-light .gonavi-settings-mode-preview-line:nth-child(2) { width: 78%; background: rgba(22, 163, 74, 0.38); } body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-light .gonavi-settings-mode-preview-line:nth-child(3) { width: 42%; background: rgba(15, 23, 42, 0.10); } body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-dark .gonavi-settings-mode-preview-line:nth-child(1) { width: 58%; background: rgba(248, 250, 252, 0.22); } body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-dark .gonavi-settings-mode-preview-line:nth-child(2) { width: 78%; background: rgba(74, 222, 128, 0.45); } body .gonavi-theme-settings .gonavi-settings-mode-preview-pane.is-dark .gonavi-settings-mode-preview-line:nth-child(3) { width: 42%; background: rgba(248, 250, 252, 0.12); } body .gonavi-theme-settings .gonavi-settings-mode-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; } body .gonavi-theme-settings .gonavi-settings-mode-label { font-size: 13px; font-weight: 700; line-height: 1.3; } body .gonavi-theme-settings .gonavi-settings-mode-check { color: var(--gn-settings-accent); font-size: 12px; flex-shrink: 0; } /* Control-only stacked row: no duplicate label column */ body .gonavi-theme-settings .gonavi-settings-row.is-control-only { grid-template-columns: 1fr; padding-top: 2px; } body .gonavi-theme-settings .gonavi-settings-row.is-control-only .gonavi-settings-label { display: none; }