:root { color-scheme: light; --workbench: #f1f5f9; --surface: #ffffff; --surface-muted: #f8fafc; --ink: #0f172a; --ink-muted: #475569; --line: #e2e8f0; --line-strong: #94a3b8; --locator: #0284c7; --locator-soft: #e0f2fe; --verified: #059669; --verified-soft: #d1fae5; --risk: #d97706; --risk-soft: #fef3c7; --danger: #dc2626; --danger-soft: #fee2e2; --detail-width: 470px; --topbar-height: 68px; font-family: "Segoe UI Variable", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; font-size: 16px; letter-spacing: 0; } * { box-sizing: border-box; letter-spacing: 0; } [hidden] { display: none !important; } html, body { inline-size: 100%; block-size: 100%; margin: 0; overflow: hidden; background: var(--workbench); color: var(--ink); } button, input, select { font: inherit; } button, select, input[type="checkbox"] { cursor: pointer; } button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid color-mix(in srgb, var(--locator) 42%, transparent); outline-offset: 2px; } .sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .app-shell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-block-size: 100dvh; block-size: 100dvh; } .topbar { position: relative; z-index: 60; min-block-size: var(--topbar-height); display: grid; grid-template-columns: minmax(200px, 280px) minmax(260px, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px; background: var(--surface); border-block-end: 1px solid var(--line); } .product-block { min-inline-size: 0; max-inline-size: 280px; display: flex; align-items: center; gap: 11px; overflow: hidden; } .product-block > div { min-inline-size: 0; overflow: hidden; } .product-mark { flex: 0 0 auto; inline-size: 10px; block-size: 36px; background: var(--locator); border-radius: 2px; box-shadow: inset 0 -11px 0 var(--verified); } .product-title { overflow: hidden; color: var(--ink); font-family: Bahnschrift, "Segoe UI Variable", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: 1rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; } .product-meta { margin-block-start: 3px; overflow: hidden; color: var(--ink-muted); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; } .search-block { position: relative; min-inline-size: 0; } .search-field { min-block-size: 44px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 7px; padding-inline: 12px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 6px; color: var(--ink-muted); } .search-field:focus-within { background: var(--surface); border-color: var(--locator); box-shadow: 0 0 0 3px var(--locator-soft); } .search-field input { min-inline-size: 0; inline-size: 100%; block-size: 40px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 0.9rem; } .search-results { position: absolute; z-index: 50; inset-block-start: calc(100% + 6px); inset-inline: 0; max-block-size: min(420px, 60vh); overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 16px 36px rgba(24, 32, 29, 0.18); } .search-result { inline-size: 100%; min-block-size: 52px; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 12px; border: 0; border-block-end: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; } .search-result:hover, .search-result[aria-selected="true"] { background: var(--locator-soft); } .result-key, .mono { font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; } .result-detail { min-inline-size: 0; overflow: hidden; color: var(--ink-muted); font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; } .empty-search { padding: 18px; color: var(--ink-muted); font-size: 0.84rem; text-align: center; } .status-cluster { display: flex; align-items: center; gap: 8px; } .status-badge { min-block-size: 30px; display: inline-flex; align-items: center; padding-inline: 10px; border: 1px solid transparent; border-radius: 999px; font-size: 0.76rem; font-weight: 650; white-space: nowrap; } .status-loading { background: var(--surface-muted); border-color: var(--line); color: var(--ink-muted); } .status-pass { background: var(--verified-soft); border-color: #9ac6ad; color: var(--verified); } .status-stale { background: var(--risk-soft); border-color: #e7b768; color: #874500; } .status-error { background: var(--danger-soft); border-color: #f3a6a0; color: var(--danger); } .workspace { min-block-size: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--detail-width); } .board-pane { min-inline-size: 0; min-block-size: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) 32px; grid-template-areas: "status" "toolbar" "board" "footer"; background: var(--workbench); } .stale-banner { grid-area: status; padding: 8px 14px; background: var(--risk-soft); border-block-end: 1px solid #e7b768; color: #704000; font-size: 0.8rem; } .board-toolbar { grid-area: toolbar; min-block-size: 54px; display: flex; align-items: center; gap: 18px; padding: 6px 12px; background: var(--surface); border-block-end: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; } fieldset { margin: 0; padding: 0; border: 0; } .segmented { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } .segmented label { position: relative; min-block-size: 36px; display: inline-flex; align-items: center; justify-content: center; border-inline-end: 1px solid var(--line); } .segmented label:last-child { border-inline-end: 0; } .segmented input { position: absolute; opacity: 0; } .segmented span { min-inline-size: 46px; block-size: 36px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 9px; color: var(--ink-muted); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.76rem; font-weight: 650; } .segmented input:checked + span { background: var(--ink); color: var(--surface); } .side-controls { flex: 0 0 auto; } .side-controls label span { min-inline-size: 2.6em; } .layer-controls { flex: 1 0 auto; display: flex; align-items: center; gap: 14px; } .layer-controls label { min-block-size: 36px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 0.76rem; white-space: nowrap; } .layer-controls input { inline-size: 16px; block-size: 16px; margin: 0; accent-color: var(--locator); } .swatch { inline-size: 10px; block-size: 10px; border: 1px solid rgba(24, 32, 29, 0.28); border-radius: 2px; } .swatch-mask { background: #eef7f2; border: 1px solid #64748b; } .swatch-silk { background: #0f172a; } .swatch-copper { background: #fbbf24; } .swatch-photo { background: #87938d; } .disabled-control { cursor: not-allowed; opacity: 0.52; } .view-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; } .icon-button { min-inline-size: 44px; min-block-size: 44px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-family: "Segoe UI Symbol", "Segoe UI", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; font-size: 1.2rem; line-height: 1; } .icon-button:hover { background: var(--surface-muted); border-color: var(--line-strong); } .tool-pill-btn { min-block-size: 44px; display: inline-flex; align-items: center; gap: 5px; padding-inline: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 0.78rem; font-weight: 650; white-space: nowrap; cursor: pointer; } .tool-pill-btn:hover { background: var(--surface-muted); border-color: var(--line-strong); } .tool-pill-btn[aria-pressed="true"] { border-color: #0284c7; background: #e0f2fe; color: #0369a1; box-shadow: inset 0 0 0 1px #38bdf8; } .drawer-toggle { display: none; } .board-viewport { grid-area: board; position: relative; min-block-size: 0; margin: 12px; overflow: hidden; background-color: #f4f6f8; background-image: radial-gradient(circle, #cbd5e1 0.9px, transparent 0.9px); background-size: 20px 20px; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: inset 0 0 0 1px #ffffff, 0 4px 16px rgba(15, 23, 42, 0.05); } .board-layer-canvas, .board-fast-canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; display: block; pointer-events: none; } .board-layer-canvas { z-index: 0; } .board-fast-canvas { z-index: 2; } #board-svg { position: relative; z-index: 1; inline-size: 100%; block-size: 100%; display: block; cursor: grab; touch-action: none; user-select: none; contain: layout style paint; } #board-svg.perf-ultra #pin-layer, #board-svg.perf-ultra #hotspot-layer .hotspot-resistor { display: none; } #board-svg.is-panning { cursor: grabbing; } #board-svg.is-box-zoom { cursor: crosshair; } .box-zoom-marquee { position: absolute; z-index: 12; border: 2px dashed #0284c7; border-radius: 4px; background: rgba(14, 165, 233, 0.16); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75); pointer-events: none; } .board-minimap-wrap { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; z-index: 10; display: grid; gap: 4px; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1); } .minimap-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #475569; font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.65rem; font-weight: 700; } #minimap-zoom-badge { color: #0284c7; } .board-minimap { display: block; inline-size: 220px; block-size: 44px; border: 1px solid #cbd5e1; border-radius: 4px; background: #f1f5f9; cursor: crosshair; touch-action: none; } .zoom-hud-dock { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 999px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1); } .hud-btn { min-inline-size: 28px; block-size: 28px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 7px; border: 1px solid #cbd5e1; border-radius: 999px; background: #f8fafc; color: #0f172a; font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.76rem; font-weight: 700; cursor: pointer; user-select: none; } .hud-btn:hover { border-color: #94a3b8; background: #f1f5f9; } .hud-btn:active { background: #e2e8f0; } .hud-box-btn[aria-pressed="true"] { border-color: #0284c7; background: #e0f2fe; color: #0369a1; } .hud-step-btn { font-size: 1rem; line-height: 1; } .zoom-slider { inline-size: 115px; block-size: 6px; margin: 0 2px; accent-color: #0284c7; cursor: pointer; } .hud-zoom-value { min-inline-size: 46px; text-align: center; color: #0f172a; font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.74rem; font-weight: 700; } .hud-presets { display: inline-flex; align-items: center; gap: 3px; padding-inline-start: 6px; border-inline-start: 1px solid #e2e8f0; } .hud-preset-btn { block-size: 24px; padding-inline: 7px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #475569; font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.68rem; font-weight: 700; cursor: pointer; } .hud-preset-btn:hover { background: #f1f5f9; color: #0f172a; } .hud-preset-btn.is-active { border-color: #bae6fd; background: #e0f2fe; color: #0369a1; } .hud-preset-btn.is-fit { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; } .hud-preset-btn.is-fit:hover { border-color: #94a3b8; background: #e2e8f0; } #layer-mask { opacity: 1.0; } #layer-silk { opacity: 1.0; } #layer-copper { opacity: 1.0; mix-blend-mode: normal; } #layer-photo { opacity: 0.72; } .hotspot { fill: transparent; stroke: none; pointer-events: none; } .hotspot.is-selected { fill: rgba(8, 126, 139, 0.08); stroke: var(--locator); stroke-width: 0.28; stroke-dasharray: 0.8 0.4; } .hotspot-resistor { fill: rgba(99, 102, 241, 0.08); stroke: rgba(99, 102, 241, 0.55); cursor: pointer; pointer-events: all; stroke-width: 0.15; vector-effect: non-scaling-stroke; } .hotspot-resistor.is-selected, .hotspot-resistor:hover, .hotspot-resistor:focus { fill: rgba(99, 102, 241, 0.22); stroke: #4f46e5; } .resistor-pad-marker { fill: rgba(99, 102, 241, 0.16); stroke: #6366f1; stroke-width: 0.12; pointer-events: none; } .resistor-pad-halo { fill: none; stroke: rgba(99, 102, 241, 0.65); stroke-width: 0.18; stroke-dasharray: 0.35 0.25; pointer-events: none; } .back-view-tip { margin: 0.35rem 0 0; padding: 0.45rem 0.6rem; border-left: 3px solid var(--risk); background: var(--risk-soft); color: var(--ink); font-size: 0.92rem; line-height: 1.35; } .coverage-hint { margin: 0.35rem 0 0; padding: 0.4rem 0.55rem; background: var(--surface-muted); border: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-muted); } .assembly-badge { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.35rem; border-radius: 0.2rem; background: var(--danger-soft); color: var(--danger); font-size: 0.8rem; } .pin-hit { fill: transparent; stroke: none; cursor: pointer; pointer-events: all; } #board-svg.pins-interactive .pin-hit { pointer-events: all; } .pin-dot { fill: rgba(251, 191, 36, 0.28); stroke: #b45309; stroke-width: 1.15; vector-effect: non-scaling-stroke; pointer-events: none; transition: stroke 0.15s ease, fill 0.15s ease; } .pin-group.resistor-pad .pin-dot { fill: rgba(99, 102, 241, 0.16); stroke: #4f46e5; stroke-width: 1; } .pin-group.role-shield .pin-dot { fill: rgba(182, 95, 5, 0.15); stroke: var(--risk); stroke-width: 1; stroke-dasharray: 2 1; } .pin-group.role-mechanical .pin-dot { fill: transparent; stroke: none; } .pin-group.role-unknown .pin-dot { fill: rgba(180, 35, 24, 0.12); stroke: var(--danger); stroke-dasharray: 1.5 1.5; } .pin-group:hover .pin-dot, .pin-group:focus .pin-dot { fill: rgba(14, 165, 233, 0.35); stroke: #0284c7; stroke-width: 2.2; } .pin-group.is-selected .pin-dot { fill: rgba(245, 158, 11, 0.45); stroke: #d97706; stroke-width: 2.6; } .net-highlight { fill: rgba(99, 102, 241, 0.28); stroke: #4f46e5; stroke-width: 1.8; vector-effect: non-scaling-stroke; pointer-events: none; } .selected-pin-marker { fill: rgba(16, 185, 129, 0.36); stroke: #059669; stroke-width: 2.2; vector-effect: non-scaling-stroke; pointer-events: none; } .net-highlight-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; } .net-highlight-toggle-btn { padding: 3px 9px; border-radius: 999px; border: 1px solid #cbd5e1; background: #ffffff; color: #334155; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; } .net-highlight-toggle-btn:hover { border-color: #6366f1; color: #4f46e5; background: #eef2ff; } .net-highlight-toggle-btn.is-active { border-color: #4f46e5; background: #4f46e5; color: #ffffff; } .selection-reticle { fill: rgba(2, 132, 199, 0.06); stroke: #0284c7; stroke-width: 2.2; vector-effect: non-scaling-stroke; pointer-events: none; } .selection-cross { stroke: #0284c7; stroke-width: 1.8; vector-effect: non-scaling-stroke; } .board-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-muted); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.82rem; pointer-events: none; } .board-tooltip { position: absolute; z-index: 15; max-inline-size: min(300px, calc(100% - 24px)); padding: 9px 11px; background: rgba(24, 32, 29, 0.96); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 5px; color: #ffffff; box-shadow: 0 8px 22px rgba(24, 32, 29, 0.25); font-size: 0.76rem; line-height: 1.45; pointer-events: none; } .tooltip-key { color: #99e1e6; font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-weight: 700; } .tooltip-role { color: #ffd08a; font-size: 0.68rem; font-weight: 700; } .coordinate-rail { position: absolute; inset-block-start: 7px; inset-inline: 12px; display: flex; justify-content: space-between; color: rgba(24, 32, 29, 0.55); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.62rem; pointer-events: none; } .board-footer { grid-area: footer; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-inline: 14px; color: var(--ink-muted); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.7rem; } .board-footer > span:last-child { overflow: hidden; text-align: end; text-overflow: ellipsis; white-space: nowrap; } .footer-center-cluster { display: inline-flex; align-items: center; gap: 8px; } .perf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border: 1px solid #a7f3d0; border-radius: 999px; background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%); color: #047857; font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.66rem; font-weight: 700; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; } .perf-badge:hover { border-color: #34d399; background: #d1fae5; } .perf-badge.is-svg-mode { border-color: #cbd5e1; background: #f8fafc; color: #475569; } .detail-panel { min-inline-size: 0; min-block-size: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--surface); border-inline-start: 1px solid var(--line); overflow: hidden; } .drawer-handle { display: none; } .detail-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block-end: 1px solid var(--line); } .detail-tabs button { min-block-size: 46px; padding-inline: 4px; border: 0; border-block-end: 3px solid transparent; background: var(--surface); color: var(--ink-muted); font-size: 0.78rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .detail-tabs button[aria-selected="true"] { border-block-end-color: var(--locator); color: var(--ink); } .panel-content { min-block-size: 0; overflow: auto; padding: 18px; scrollbar-width: thin; } .empty-panel { min-block-size: 100%; display: grid; place-content: center; gap: 8px; color: var(--ink-muted); text-align: center; } .empty-panel strong { color: var(--ink); font-size: 0.98rem; } .empty-stats { font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.76rem; } .detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-block-end: 14px; border-block-end: 1px solid var(--line); } .detail-reference { margin: 0; font-family: Bahnschrift, Consolas, "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; font-size: 1.35rem; font-weight: 700; } .detail-summary { margin: 5px 0 0; color: var(--ink-muted); font-size: 0.82rem; line-height: 1.45; } .category-tag, .evidence-tag { min-block-size: 26px; display: inline-flex; align-items: center; padding-inline: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-muted); color: var(--ink-muted); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.68rem; white-space: nowrap; } .evidence-tag.verified { background: var(--verified-soft); border-color: #9ac6ad; color: var(--verified); } .side-tag { min-block-size: 26px; display: inline-flex; align-items: center; padding-inline: 8px; border: 1px solid #c9a227; border-radius: 999px; background: #fff8df; color: #7a5b00; font-size: 0.68rem; white-space: nowrap; } .evidence-conflict { margin-top: 12px; padding: 10px; border: 1px solid #d9a09a; border-radius: 8px; background: #fff5f3; } .evidence-conflict-note { margin-bottom: 8px; } .search-help { margin-top: 4px; font-size: 0.72rem; color: var(--ink-muted); } .search-help summary { cursor: pointer; user-select: none; } .search-help-body { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; } .help-chip, .term { border: 1px solid var(--line); border-radius: 999px; background: var(--surface-muted); padding: 2px 8px; font: inherit; cursor: pointer; } .help-chip:hover, .term:hover { border-color: var(--accent, #3a6ea5); } .help-glossary { flex-basis: 100%; margin: 4px 0 0; line-height: 1.5; } .pin-row.is-conflict { opacity: 0.7; cursor: not-allowed; } .net-highlight.net-resistor { fill: rgba(196, 120, 40, 0.28); stroke: #c47828; } .detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 14px 0; border-block: 1px solid var(--line); } .fact { min-inline-size: 0; padding: 10px 8px; border-block-end: 1px solid var(--line); } .fact:nth-child(odd) { border-inline-end: 1px solid var(--line); } .fact:nth-last-child(-n + 2) { border-block-end: 0; } .fact-label { display: block; margin-block-end: 4px; color: var(--ink-muted); font-size: 0.68rem; } .fact-value { display: block; overflow-wrap: anywhere; font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.76rem; } .section-title { margin: 18px 0 8px; color: var(--ink-muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; } .connector-layout { margin-block-start: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-muted); } .connector-layout-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .connector-layout-title { margin: 0; } .connector-orientation { display: grid; justify-items: center; gap: 4px; margin-block-start: 10px; } .connector-axis-row { inline-size: 100%; display: grid; grid-template-columns: 18px minmax(0, 1fr) 18px; align-items: center; gap: 4px; } .connector-axis { color: var(--ink-muted); font-size: 0.66rem; font-weight: 700; text-align: center; } .connector-grid { min-inline-size: 0; display: grid; gap: 5px; } .connector-grid-row { min-inline-size: 0; display: grid; grid-template-columns: repeat(var(--connector-columns), minmax(0, 1fr)); gap: 5px; } .connector-contact { min-inline-size: 0; min-block-size: 42px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.78rem; font-weight: 700; } .connector-contact:hover, .connector-contact.is-selected { border-color: var(--locator); background: var(--locator-soft); color: #07545c; } .connector-layout-meta { margin-block-start: 9px; overflow-wrap: anywhere; color: var(--ink-muted); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.66rem; line-height: 1.4; } .connector-perspective-note { margin-block-start: 8px; padding-block-start: 8px; border-block-start: 1px solid var(--line); color: #07545c; font-size: 0.7rem; font-weight: 650; line-height: 1.45; } .pin-list { border-block-start: 1px solid var(--line); } .pin-row { inline-size: 100%; min-block-size: 54px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 5px; border: 0; border-block-end: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; } .pin-row:hover, .pin-row.is-selected { background: var(--locator-soft); } .pin-number { font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-weight: 700; } .pin-primary { min-inline-size: 0; } .pin-net { display: block; margin-block-start: 3px; overflow: hidden; color: var(--ink-muted); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.77rem; text-overflow: ellipsis; white-space: nowrap; } .pin-summary { display: block; overflow: hidden; color: var(--ink); font-weight: 650; line-height: 1.35; font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; } .pin-direction { color: var(--ink-muted); font-size: 0.68rem; white-space: nowrap; } .pin-detail { margin-block-start: 16px; padding-block-start: 15px; border-block-start: 2px solid var(--locator); } .pin-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .pin-detail-header h3 { margin: 0; font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 1rem; } .programming-guide { margin-block-start: 14px; padding: 2px 0 2px 14px; border-inline-start: 4px solid var(--line-strong); } .programming-guide.status-verified_fpga, .programming-guide.status-verified_mcu { border-inline-start-color: var(--verified); } .programming-guide.status-board_only { border-inline-start-color: var(--risk); } .programming-guide.status-not_programmable, .programming-guide.status-unknown { border-inline-start-color: var(--danger); } .programming-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .programming-title { margin-block-start: 0; color: var(--ink); font-size: 0.78rem; text-transform: none; } .programming-conclusion { margin: 7px 0 0; color: var(--ink); font-size: 0.84rem; font-weight: 700; line-height: 1.55; } .programming-copy { margin: 0; color: var(--ink-muted); font-size: 0.74rem; line-height: 1.55; } .guidance-list, .component-list { margin: 0; padding: 0; list-style: none; } .guidance-list li, .component-list li { position: relative; padding: 5px 0 5px 15px; color: var(--ink); font-size: 0.72rem; line-height: 1.5; overflow-wrap: anywhere; } .guidance-list li::before, .component-list li::before { content: ""; position: absolute; inset-inline-start: 1px; inset-block-start: 11px; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--locator); } .constraint-list li { font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; } .risk-list li::before { background: var(--risk); } .component-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; } .component-list li { font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; } .path-list, .source-list { margin: 0; padding: 0; list-style: none; } .path-list li { position: relative; padding: 8px 8px 8px 18px; border-inline-start: 2px solid var(--line); color: var(--ink); font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.73rem; overflow-wrap: anywhere; } .path-list li::before { content: ""; position: absolute; inset-inline-start: -5px; inset-block-start: 13px; inline-size: 8px; block-size: 8px; background: var(--locator); border-radius: 50%; } .source-list li { padding: 6px 0; border-block-end: 1px solid var(--line); color: var(--ink-muted); font-size: 0.7rem; line-height: 1.45; overflow-wrap: anywhere; } .risk-note, .info-note { margin-block-start: 12px; padding: 9px 10px; border-inline-start: 3px solid var(--risk); background: var(--risk-soft); color: #704000; font-size: 0.72rem; line-height: 1.5; } .info-note { border-inline-start-color: var(--locator); background: var(--locator-soft); color: #07545c; } .adc-controls { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; margin-block-start: 8px; } .adc-controls input, .candidate-controls select { min-inline-size: 0; min-block-size: 44px; padding-inline: 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--ink); } .copy-button { min-inline-size: 44px; min-block-size: 44px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 1.05rem; } .copy-button:disabled, .adc-controls input:disabled { cursor: not-allowed; opacity: 0.5; } .copy-status { min-block-size: 20px; margin-block-start: 5px; color: var(--ink-muted); font-size: 0.68rem; } .candidate-controls { display: grid; gap: 7px; padding-block-end: 15px; border-block-end: 1px solid var(--line); } .candidate-controls label { color: var(--ink-muted); font-size: 0.72rem; font-weight: 700; } .candidate-list { margin-block-start: 12px; } .candidate-row { inline-size: 100%; display: grid; gap: 6px; padding: 12px 4px; border: 0; border-block-end: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; } .candidate-row:hover { background: var(--locator-soft); } .candidate-key { font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.82rem; font-weight: 700; } .candidate-reason, .candidate-warning { color: var(--ink-muted); font-size: 0.7rem; line-height: 1.45; } .candidate-warning { color: #704000; } @media (max-width: 1180px) { :root { --detail-width: 350px; } .topbar { grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.4fr) auto; gap: 10px; } .layer-controls { gap: 9px; } } @media (max-width: 860px) { :root { --topbar-height: 116px; } .topbar { grid-template-columns: minmax(0, 1fr); gap: 8px 10px; padding: 8px 10px; } .product-title { font-size: 0.92rem; } .product-meta { font-size: 0.66rem; } .search-block { grid-column: 1; grid-row: 3; } .status-cluster { grid-column: 1; grid-row: 2; min-inline-size: 0; flex-wrap: wrap; } .version-select-cluster, .version-select { min-inline-size: 0; max-inline-size: 100%; } .status-badge { max-inline-size: 98px; overflow: hidden; text-overflow: ellipsis; } .workspace { display: block; min-block-size: 0; } .board-pane { block-size: 100%; padding-block-end: 48px; } .board-toolbar { gap: 12px; padding-inline: 8px; } .layer-controls label { font-size: 0.7rem; } .board-viewport { margin: 8px; } .board-footer { padding-inline: 10px; } .drawer-toggle { display: inline-grid; } .detail-panel { position: fixed; z-index: 40; inset-inline: 0; inset-block-end: 0; block-size: min(62dvh, 560px); display: grid; grid-template-rows: 16px auto minmax(0, 1fr); border: 1px solid var(--line-strong); border-block-end: 0; border-radius: 8px 8px 0 0; box-shadow: 0 -12px 32px rgba(24, 32, 29, 0.2); transform: translateY(0); transition: transform 180ms ease; } .app-shell.detail-collapsed .detail-panel { transform: translateY(calc(100% - 50px)); } .app-shell.detail-collapsed .drawer-toggle span { display: inline-block; transform: rotate(180deg); } .drawer-handle { display: block; inline-size: 42px; block-size: 4px; align-self: center; justify-self: center; background: var(--line-strong); border-radius: 3px; } .detail-tabs button { min-block-size: 34px; } .panel-content { padding: 14px; } } @media (max-width: 460px) { .product-mark { block-size: 30px; } .product-title { max-inline-size: 205px; } .status-badge { display: none; } .search-field input { font-size: 0.82rem; } .board-toolbar { min-block-size: 50px; } .layer-controls { display: none; } .segmented span { min-inline-size: 42px; padding-inline: 6px; } .board-footer { grid-template-columns: 1fr auto; } .board-footer span:last-child { display: none; } .coordinate-rail { font-size: 0.56rem; } .component-list { grid-template-columns: 1fr; } } .version-select-cluster { display: flex; align-items: center; } .version-select { padding: 5px 10px; font-size: 0.84rem; font-weight: 600; color: var(--ink); background: var(--surface-muted); border: 1px solid var(--line-strong); border-radius: 6px; outline: none; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; } .version-select:hover, .version-select:focus { border-color: var(--locator); box-shadow: 0 0 0 2px var(--locator-soft); } .schematic-top-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; font-size: 0.84rem; font-weight: 600; text-decoration: none; color: var(--locator); background: var(--locator-soft); border: 1px solid color-mix(in srgb, var(--locator) 35%, transparent); border-radius: 6px; white-space: nowrap; transition: background 0.15s ease, transform 0.15s ease; } .schematic-top-link:hover { background: color-mix(in srgb, var(--locator) 20%, white); transform: translateY(-1px); } .schematic-panel-body { display: flex; flex-direction: column; gap: 14px; } .schematic-header-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .schematic-title { font-size: 0.95rem; font-weight: 700; color: var(--ink); } .schematic-ext-link { font-size: 0.8rem; color: var(--locator); text-decoration: underline; } .schematic-meta-box { display: flex; flex-direction: column; gap: 12px; } .schematic-block { padding: 10px 12px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 6px; font-size: 0.82rem; line-height: 1.5; } .schematic-block strong { display: block; margin-bottom: 6px; color: var(--ink); } .schematic-list { margin: 0; padding-left: 18px; color: var(--ink-muted); } .schematic-list li { margin-bottom: 3px; } .schematic-embed-frame { margin-top: 8px; width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } .pdf-viewer-frame { width: 100%; height: 100%; border: none; } .peripheral-top-btn { cursor: pointer; } .hotspot.is-peripheral-match { fill: rgba(16, 185, 129, 0.14); stroke: #059669; stroke-width: 0.35; stroke-dasharray: 0.7 0.35; } .detail-badge-cluster { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .category-tag.is-used-tag { background: var(--verified-soft); border-color: #9ac6ad; color: var(--verified); } .category-tag.is-spare-tag { background: var(--risk-soft); border-color: #e7b768; color: #874500; } .logical-pin-badge { display: inline-flex; align-items: center; margin-block-start: 3px; padding: 2px 7px; border-radius: 4px; font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.72rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; } .logical-pin-badge.is-fpga { background: #e0f2fe; border: 1px solid #7dd3fc; color: #0369a1; } .logical-pin-badge.is-mcu { background: #f3e8ff; border: 1px solid #d8b4fe; color: #6b21a8; } .logical-pin-badge.is-gnd { background: #f1f5f9; border: 1px solid #cbd5e1; color: #475569; } .logical-pin-badge.is-power { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; } .logical-pin-summary-box { margin-block-start: 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid #bae6fd; border-inline-start: 4px solid var(--locator); border-radius: 6px; display: flex; flex-direction: column; gap: 5px; } .logical-pin-box-title { font-size: 0.72rem; font-weight: 700; color: var(--locator); } .logical-pin-role { font-size: 0.78rem; font-weight: 650; color: var(--ink); } .logical-pin-def { font-size: 0.73rem; color: var(--ink-muted); line-height: 1.45; } .peripheral-panel { display: flex; flex-direction: column; gap: 12px; } .peripheral-sync-box { padding: 10px 12px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 6px; } .peripheral-sync-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; } .peripheral-sync-note { font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace; font-size: 0.68rem; color: var(--ink-muted); line-height: 1.45; } .peripheral-chip-section { display: flex; flex-direction: column; gap: 6px; } .peripheral-sub-label { font-size: 0.72rem; font-weight: 700; color: var(--ink-muted); } .peripheral-quick-chips { display: flex; flex-wrap: wrap; gap: 5px; } .peripheral-chip { padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.72rem; font-weight: 600; } .peripheral-chip:hover, .peripheral-chip.is-active { background: var(--locator); border-color: var(--locator); color: #ffffff; } .peripheral-chip.is-reset { background: var(--danger-soft); border-color: #f3a6a0; color: var(--danger); } .peripheral-filter-bar { display: flex; flex-direction: column; gap: 8px; } .peripheral-search-input { inline-size: 100%; min-block-size: 38px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 0.8rem; } .peripheral-search-input:focus { border-color: var(--locator); box-shadow: 0 0 0 2px var(--locator-soft); outline: none; } .peripheral-usage-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } .peripheral-usage-btn { min-block-size: 32px; border: 0; border-inline-end: 1px solid var(--line); background: var(--surface-muted); color: var(--ink-muted); font-size: 0.73rem; font-weight: 650; } .peripheral-usage-btn:last-child { border-inline-end: 0; } .peripheral-usage-btn.is-active { background: var(--ink); color: var(--surface); } .peripheral-category-pills { display: flex; flex-wrap: wrap; gap: 5px; } .peripheral-cat-btn { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); color: var(--ink-muted); font-size: 0.71rem; font-weight: 650; } .peripheral-cat-btn:hover, .peripheral-cat-btn.is-active { background: var(--locator-soft); border-color: var(--locator); color: #07545c; } .peripheral-result-header { display: flex; justify-content: space-between; align-items: center; padding-block: 4px; border-block-end: 1px solid var(--line); font-size: 0.72rem; color: var(--ink-muted); } .peripheral-card-list { display: flex; flex-direction: column; gap: 10px; } .peripheral-card { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); overflow: hidden; } .peripheral-card.is-selected { border-color: var(--locator); box-shadow: 0 0 0 2px var(--locator-soft); } .peripheral-card.is-spare { border-style: dashed; } .peripheral-card-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; background: var(--surface-muted); border-block-end: 1px solid var(--line); } .peripheral-card-title-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .peripheral-ref-btn { padding: 2px 7px; border: 1px solid var(--locator); border-radius: 4px; background: var(--locator-soft); color: #07545c; font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.82rem; font-weight: 700; } .peripheral-ref-btn:hover { background: var(--locator); color: #ffffff; } .peripheral-type-badge { padding: 2px 6px; border-radius: 4px; background: #e2e8f0; color: #1e293b; font-size: 0.68rem; font-weight: 700; } .peripheral-status-badge { padding: 2px 6px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; } .peripheral-status-badge.status-used { background: var(--verified-soft); color: var(--verified); } .peripheral-status-badge.status-spare { background: var(--risk-soft); color: #874500; } .peripheral-status-badge.status-board { background: #f1f5f9; color: #475569; } .peripheral-jump-btn { padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink-muted); font-size: 0.68rem; } .peripheral-jump-btn:hover { border-color: var(--locator); color: var(--locator); } .peripheral-card-summary { padding: 6px 10px; font-size: 0.74rem; color: var(--ink-muted); border-block-end: 1px solid var(--line); line-height: 1.4; } .peripheral-pin-table { display: flex; flex-direction: column; } .peripheral-pin-row { inline-size: 100%; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; align-items: start; padding: 7px 10px; border: 0; border-block-end: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; } .peripheral-pin-row:last-child { border-block-end: 0; } .peripheral-pin-row:hover, .peripheral-pin-row.is-selected { background: var(--locator-soft); } .peripheral-pin-row.is-query-match { background: #ecfdf5; border-inline-start: 3px solid #10b981; } .peripheral-pin-num { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.75rem; font-weight: 700; color: var(--ink); padding-block-start: 2px; } .peripheral-pin-body { min-inline-size: 0; display: flex; flex-direction: column; gap: 3px; } .peripheral-pin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; } .peripheral-pin-role { font-size: 0.74rem; font-weight: 700; color: var(--ink); } .peripheral-pin-def { font-size: 0.69rem; color: var(--ink-muted); line-height: 1.4; overflow-wrap: anywhere; } /* ========================================================================== High-Framerate 60/120fps Viewport & Modern Fresh Light Theme Enhancements ========================================================================== */ .app-shell.detail-wide { --detail-width: min(740px, 54vw); } .workspace { transition: grid-template-columns 200ms cubic-bezier(0.22, 1, 0.36, 1); } .topbar { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); } .board-viewport { background-color: #f8fafc; background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px); background-size: 22px 22px; border: 1px solid #cbd5e1; border-radius: 10px; box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 6px 20px rgba(15, 23, 42, 0.05); contain: layout paint; } #board-svg { will-change: contents; shape-rendering: geometricPrecision; } #board-svg.is-panning, #board-svg.is-panning #hotspot-layer, #board-svg.is-panning #pin-layer { pointer-events: none !important; } .detail-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); background: #f8fafc; } .detail-tabs button { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease; } .detail-tabs button:hover { background: #f1f5f9; color: var(--ink); } .detail-tabs button[aria-selected="true"] { background: #ffffff; color: var(--locator); border-block-end-color: var(--locator); font-weight: 700; } .cpld-top-btn { background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%); color: #0369a1; border-color: #7dd3fc; box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08); } .cpld-top-btn:hover { background: linear-gradient(135deg, #dbeafe 0%, #bae6fd 100%); color: #075985; } .wide-panel-btn { background: var(--surface-muted); color: var(--ink-muted); border-color: var(--line-strong); cursor: pointer; } .wide-panel-btn[aria-pressed="true"] { background: #eef2ff; color: #4338ca; border-color: #818cf8; } /* ========================================================================== CPLD Source Architecture & Dynamic Multi-Level Menu Styles ========================================================================== */ .cpld-arch-panel { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; } .cpld-hero-card { padding: 14px 16px; border-radius: 10px; background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 60%, #eef2ff 100%); border: 1px solid #bae6fd; box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06); display: flex; flex-direction: column; gap: 10px; } .cpld-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .cpld-hero-title-wrap { display: flex; flex-direction: column; gap: 4px; } .cpld-chip-pill { display: inline-flex; align-items: center; align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: #0284c7; color: #ffffff; font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; } .cpld-hero-title { margin: 0; font-size: 1.02rem; font-weight: 750; color: #0f172a; } .cpld-top-module-badge { padding: 3px 9px; border-radius: 6px; background: #ffffff; border: 1px solid #93c5fd; color: #1d4ed8; font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.72rem; font-weight: 700; } .cpld-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .cpld-hero-cell { padding: 7px 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.88); border: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 2px; } .cpld-hero-cell-k { font-size: 0.66rem; font-weight: 700; color: #0369a1; text-transform: uppercase; } .cpld-hero-cell-v { font-size: 0.73rem; color: #1e293b; font-family: Consolas, "Cascadia Mono", "Microsoft YaHei UI", monospace; line-height: 1.35; } /* Interactive On-Chip Topology Strip */ .cpld-topology-box { padding: 11px 13px; border-radius: 10px; background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03); display: flex; flex-direction: column; gap: 9px; } .cpld-topology-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .cpld-topology-title { font-size: 0.76rem; font-weight: 750; color: #0f172a; } .cpld-topology-sub { font-size: 0.67rem; font-family: Consolas, "Cascadia Mono", monospace; color: #64748b; } .cpld-topology-flow { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; } .cpld-topo-node { flex: 1 0 112px; padding: 7px 8px; border-radius: 7px; border: 1px solid #cbd5e1; background: #f8fafc; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; transition: transform 130ms ease, border-color 130ms ease, background-color 130ms ease, box-shadow 130ms ease; } .cpld-topo-node:hover { transform: translateY(-1px); border-color: #38bdf8; background: #f0f9ff; } .cpld-topo-node.is-active { border-color: #0284c7; background: #e0f2fe; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.16); } .cpld-topo-tag { font-size: 0.6rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #e2e8f0; color: #334155; font-family: Consolas, monospace; } .cpld-topo-node.is-active .cpld-topo-tag { background: #0284c7; color: #ffffff; } .cpld-topo-label { font-size: 0.72rem; font-weight: 700; color: #0f172a; font-family: Consolas, "Microsoft YaHei UI", monospace; } .cpld-topo-subtext { font-size: 0.65rem; color: #475569; line-height: 1.25; } .cpld-topo-arrow { display: inline-flex; align-items: center; color: #94a3b8; font-weight: 700; font-size: 0.85rem; padding-inline: 1px; } /* Search & Tree Control Row */ .cpld-menu-control-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; } .cpld-topic-search { min-block-size: 38px; padding: 6px 11px; border: 1px solid #cbd5e1; border-radius: 8px; background: #ffffff; color: var(--ink); font-size: 0.78rem; transition: border-color 140ms ease, box-shadow 140ms ease; } .cpld-topic-search:focus { border-color: var(--locator); box-shadow: 0 0 0 3px var(--locator-soft); outline: none; } .cpld-tree-toggle-btn { min-block-size: 38px; padding: 6px 11px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #334155; font-size: 0.74rem; font-weight: 700; white-space: nowrap; transition: all 140ms ease; } .cpld-tree-toggle-btn:hover, .cpld-tree-toggle-btn.is-active { background: #0284c7; border-color: #0284c7; color: #ffffff; } /* Search Hits Box */ .cpld-search-hits { padding: 10px 12px; border-radius: 9px; background: #f0fdf4; border: 1px solid #86efac; display: flex; flex-direction: column; gap: 8px; } .cpld-search-hits-head { font-size: 0.74rem; font-weight: 700; color: #166534; } .cpld-search-hits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; } .cpld-hit-btn { padding: 7px 9px; border-radius: 6px; border: 1px solid #bbf7d0; background: #ffffff; display: flex; flex-direction: column; gap: 2px; text-align: start; } .cpld-hit-btn:hover, .cpld-hit-btn.is-active { border-color: #059669; background: #ecfdf5; } .cpld-hit-path { font-size: 0.65rem; color: #64748b; } .cpld-hit-title { font-size: 0.75rem; color: #0f172a; } .cpld-hit-mod { font-size: 0.66rem; font-family: Consolas, monospace; color: #0284c7; } /* Multi-Level Cascading Navigation */ .cpld-multilevel-nav { display: flex; flex-direction: column; gap: 9px; } .cpld-l1-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .cpld-l1-card { padding: 10px 12px; border-radius: 9px; border: 1px solid #e2e8f0; background: #ffffff; display: flex; flex-direction: column; gap: 4px; text-align: start; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease, background-color 130ms ease; } .cpld-l1-card:hover { transform: translateY(-1px); border-color: #7dd3fc; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08); } .cpld-l1-card.is-active { border-color: #0284c7; background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%); box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.16); } .cpld-l1-head { display: flex; align-items: center; justify-content: space-between; width: 100%; } .cpld-l1-icon { font-size: 1rem; } .cpld-l1-badge { padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; font-family: Consolas, monospace; font-size: 0.64rem; font-weight: 700; } .cpld-l1-card.is-active .cpld-l1-badge { background: #0284c7; color: #ffffff; } .cpld-l1-title { font-size: 0.82rem; font-weight: 750; color: #0f172a; } .cpld-l1-desc { font-size: 0.69rem; color: #64748b; line-height: 1.35; } /* L2 & L3 Cascading Bars */ .cpld-l2-bar, .cpld-l3-bar { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; } .cpld-level-tag { flex: 0 0 auto; margin-top: 3px; padding: 2px 6px; border-radius: 4px; background: #e2e8f0; color: #334155; font-size: 0.64rem; font-weight: 750; } .cpld-level-tag.is-l3 { background: #dbeafe; color: #1e40af; } .cpld-l2-pills, .cpld-l3-pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; } .cpld-l2-btn { padding: 4px 10px; border-radius: 999px; border: 1px solid #cbd5e1; background: #ffffff; color: #334155; font-size: 0.74rem; font-weight: 650; transition: all 120ms ease; } .cpld-l2-btn:hover { border-color: #0284c7; color: #0284c7; } .cpld-l2-btn.is-active { background: #0f172a; border-color: #0f172a; color: #ffffff; } .cpld-l3-btn { padding: 5px 10px; border-radius: 7px; border: 1px solid #cbd5e1; background: #ffffff; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: start; transition: all 120ms ease; } .cpld-l3-btn:hover { border-color: #38bdf8; background: #f0f9ff; } .cpld-l3-btn.is-active { background: #0284c7; border-color: #0284c7; color: #ffffff; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22); } .cpld-l3-btn-label { font-size: 0.74rem; font-weight: 700; } .cpld-l3-btn-mod { font-size: 0.63rem; font-family: Consolas, monospace; color: #64748b; } .cpld-l3-btn.is-active .cpld-l3-btn-mod { color: #e0f2fe; } /* Full Expanded 3-Level Directory Tree */ .cpld-full-tree { padding: 10px 12px; border-radius: 9px; background: #f8fafc; border: 1px solid #cbd5e1; display: flex; flex-direction: column; gap: 10px; } .cpld-tree-domain { display: flex; flex-direction: column; gap: 6px; } .cpld-tree-domain-title { font-size: 0.78rem; font-weight: 750; color: #0f172a; padding-bottom: 3px; border-bottom: 1px solid #e2e8f0; } .cpld-tree-group { padding-left: 10px; display: flex; flex-direction: column; gap: 4px; } .cpld-tree-group-title { font-size: 0.72rem; font-weight: 700; color: #475569; } .cpld-tree-topics { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 10px; } .cpld-tree-topic-btn { padding: 4px 8px; border-radius: 6px; border: 1px solid #cbd5e1; background: #ffffff; font-size: 0.71rem; display: inline-flex; align-items: center; gap: 6px; } .cpld-tree-topic-btn.is-active { background: #0284c7; border-color: #0284c7; color: #ffffff; } .cpld-tree-mod { font-size: 0.64rem; padding: 1px 4px; border-radius: 3px; background: #f1f5f9; color: #0369a1; } /* Deep-Dive Topic Article Card */ .cpld-topic-article { padding: 15px 16px; border-radius: 10px; background: #ffffff; border: 1px solid #cbd5e1; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04); display: flex; flex-direction: column; gap: 14px; } .cpld-breadcrumb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; } .cpld-breadcrumb { font-size: 0.71rem; font-weight: 650; color: #64748b; } .cpld-file-badge { padding: 2px 8px; border-radius: 5px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.69rem; font-weight: 700; } .cpld-article-title { margin: 0; font-size: 1rem; font-weight: 750; color: #0f172a; line-height: 1.35; } .cpld-article-summary { margin: -6px 0 0; font-size: 0.79rem; color: #334155; line-height: 1.55; } /* One-Click PCB Jump Bar */ .cpld-jump-bar { padding: 9px 11px; border-radius: 8px; background: #f0f9ff; border: 1px solid #bae6fd; display: flex; flex-direction: column; gap: 6px; } .cpld-jump-label { font-size: 0.7rem; font-weight: 750; color: #0369a1; } .cpld-jump-list { display: flex; flex-wrap: wrap; gap: 6px; } .cpld-jump-pill { padding: 4px 9px; border-radius: 999px; border: 1px solid #38bdf8; background: #ffffff; color: #0369a1; font-size: 0.72rem; font-weight: 650; transition: all 120ms ease; } .cpld-jump-pill:hover { background: #0284c7; border-color: #0284c7; color: #ffffff; transform: translateY(-1px); } /* Section Blocks (kvTable, matrixTable, pipelineFlow, codeBlock) */ .cpld-sec-block { display: flex; flex-direction: column; gap: 8px; } .cpld-sec-heading { margin: 0; font-size: 0.78rem; font-weight: 750; color: #0f172a; display: flex; align-items: center; gap: 6px; } .cpld-sec-heading::before { content: ""; display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: #0284c7; } .cpld-kv-list { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; } .cpld-kv-row { display: grid; grid-template-columns: 155px minmax(0, 1fr); border-bottom: 1px solid #e2e8f0; font-size: 0.75rem; line-height: 1.5; } .cpld-kv-row:last-child { border-bottom: 0; } .cpld-kv-key { padding: 8px 10px; background: #f8fafc; border-right: 1px solid #e2e8f0; font-weight: 700; color: #1e293b; font-family: Consolas, "Microsoft YaHei UI", monospace; } .cpld-kv-val { padding: 8px 11px; background: #ffffff; color: #334155; overflow-wrap: anywhere; } /* Matrix Table */ .cpld-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; } .cpld-matrix-table { width: 100%; border-collapse: collapse; font-size: 0.73rem; text-align: left; } .cpld-matrix-table th { padding: 8px 10px; background: #f1f5f9; color: #0f172a; font-weight: 750; border-bottom: 1px solid #cbd5e1; white-space: nowrap; } .cpld-matrix-table td { padding: 7px 10px; border-bottom: 1px solid #e2e8f0; color: #334155; line-height: 1.45; } .cpld-matrix-table tr:last-child td { border-bottom: 0; } .cpld-matrix-table tr.is-current-board-row td { background: #f0f9ff; font-weight: 650; color: #0c4a6e; } /* Pipeline Steps */ .cpld-pipeline-list { display: flex; flex-direction: column; gap: 8px; } .cpld-pipeline-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 11px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; } .cpld-step-num { width: 24px; height: 24px; border-radius: 999px; background: #0284c7; color: #ffffff; font-family: Consolas, monospace; font-size: 0.74rem; font-weight: 700; display: inline-grid; place-items: center; margin-top: 1px; } .cpld-step-body { display: flex; flex-direction: column; gap: 3px; } .cpld-step-title { font-size: 0.77rem; font-weight: 750; color: #0f172a; } .cpld-step-detail { margin: 0; font-size: 0.73rem; color: #475569; line-height: 1.5; } /* Verilog Code Block */ .cpld-code-box { border-radius: 8px; border: 1px solid #cbd5e1; background: #0f172a; overflow: hidden; } .cpld-code-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 11px; background: #1e293b; border-bottom: 1px solid #334155; } .cpld-code-lang { font-size: 0.68rem; font-weight: 700; color: #93c5fd; font-family: Consolas, monospace; } .cpld-code-copy-btn { padding: 2px 8px; border-radius: 4px; border: 1px solid #475569; background: #334155; color: #f8fafc; font-size: 0.67rem; font-weight: 600; } .cpld-code-copy-btn:hover { background: #0284c7; border-color: #38bdf8; } .cpld-code-pre { margin: 0; padding: 11px 13px; overflow-x: auto; color: #e2e8f0; font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.72rem; line-height: 1.5; } /* Pager Footer */ .cpld-topic-pager { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #e2e8f0; flex-wrap: wrap; } .cpld-pager-btn { padding: 6px 11px; border-radius: 7px; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; font-size: 0.73rem; font-weight: 650; transition: all 120ms ease; } .cpld-pager-btn:hover { background: #e0f2fe; border-color: #0284c7; color: #0369a1; } @media (max-width: 640px) { .cpld-hero-grid, .cpld-l1-grid { grid-template-columns: 1fr; } .cpld-kv-row { grid-template-columns: 1fr; } .cpld-kv-key { border-right: 0; border-bottom: 1px solid #e2e8f0; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; } }