app.css 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420
  1. :root {
  2. color-scheme: light;
  3. --workbench: #edf0ed;
  4. --surface: #ffffff;
  5. --surface-muted: #f5f7f5;
  6. --ink: #18201d;
  7. --ink-muted: #5d6963;
  8. --line: #cbd2cd;
  9. --line-strong: #929e97;
  10. --locator: #087e8b;
  11. --locator-soft: #d9f0f1;
  12. --verified: #2f6f4e;
  13. --verified-soft: #e0efe6;
  14. --risk: #b65f05;
  15. --risk-soft: #fff0d8;
  16. --danger: #b42318;
  17. --danger-soft: #fee4e2;
  18. --detail-width: 390px;
  19. --topbar-height: 68px;
  20. 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;
  21. font-size: 16px;
  22. letter-spacing: 0;
  23. }
  24. * {
  25. box-sizing: border-box;
  26. letter-spacing: 0;
  27. }
  28. [hidden] {
  29. display: none !important;
  30. }
  31. html,
  32. body {
  33. inline-size: 100%;
  34. block-size: 100%;
  35. margin: 0;
  36. overflow: hidden;
  37. background: var(--workbench);
  38. color: var(--ink);
  39. }
  40. button,
  41. input,
  42. select {
  43. font: inherit;
  44. }
  45. button,
  46. select,
  47. input[type="checkbox"] {
  48. cursor: pointer;
  49. }
  50. button:focus-visible,
  51. input:focus-visible,
  52. select:focus-visible,
  53. [tabindex]:focus-visible {
  54. outline: 3px solid color-mix(in srgb, var(--locator) 42%, transparent);
  55. outline-offset: 2px;
  56. }
  57. .sr-only {
  58. position: absolute;
  59. inline-size: 1px;
  60. block-size: 1px;
  61. padding: 0;
  62. margin: -1px;
  63. overflow: hidden;
  64. clip: rect(0, 0, 0, 0);
  65. white-space: nowrap;
  66. border: 0;
  67. }
  68. .app-shell {
  69. display: grid;
  70. grid-template-rows: auto minmax(0, 1fr);
  71. min-block-size: 100dvh;
  72. block-size: 100dvh;
  73. }
  74. .topbar {
  75. position: relative;
  76. z-index: 20;
  77. min-block-size: var(--topbar-height);
  78. display: grid;
  79. grid-template-columns: minmax(250px, 0.8fr) minmax(360px, 1.6fr) auto;
  80. align-items: center;
  81. gap: 18px;
  82. padding: 10px 16px;
  83. background: var(--surface);
  84. border-block-end: 1px solid var(--line);
  85. }
  86. .product-block {
  87. min-inline-size: 0;
  88. display: flex;
  89. align-items: center;
  90. gap: 11px;
  91. }
  92. .product-mark {
  93. flex: 0 0 auto;
  94. inline-size: 10px;
  95. block-size: 36px;
  96. background: var(--locator);
  97. border-radius: 2px;
  98. box-shadow: inset 0 -11px 0 var(--verified);
  99. }
  100. .product-title {
  101. overflow: hidden;
  102. color: var(--ink);
  103. font-family: Bahnschrift, "Segoe UI Variable", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  104. font-size: 1rem;
  105. font-weight: 650;
  106. text-overflow: ellipsis;
  107. white-space: nowrap;
  108. }
  109. .product-meta {
  110. margin-block-start: 3px;
  111. overflow: hidden;
  112. color: var(--ink-muted);
  113. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  114. font-size: 0.72rem;
  115. text-overflow: ellipsis;
  116. white-space: nowrap;
  117. }
  118. .search-block {
  119. position: relative;
  120. min-inline-size: 0;
  121. }
  122. .search-field {
  123. min-block-size: 44px;
  124. display: grid;
  125. grid-template-columns: 24px minmax(0, 1fr);
  126. align-items: center;
  127. gap: 7px;
  128. padding-inline: 12px;
  129. background: var(--surface-muted);
  130. border: 1px solid var(--line);
  131. border-radius: 6px;
  132. color: var(--ink-muted);
  133. }
  134. .search-field:focus-within {
  135. background: var(--surface);
  136. border-color: var(--locator);
  137. box-shadow: 0 0 0 3px var(--locator-soft);
  138. }
  139. .search-field input {
  140. min-inline-size: 0;
  141. inline-size: 100%;
  142. block-size: 40px;
  143. padding: 0;
  144. border: 0;
  145. outline: 0;
  146. background: transparent;
  147. color: var(--ink);
  148. font-size: 0.9rem;
  149. }
  150. .search-results {
  151. position: absolute;
  152. z-index: 50;
  153. inset-block-start: calc(100% + 6px);
  154. inset-inline: 0;
  155. max-block-size: min(420px, 60vh);
  156. overflow: auto;
  157. background: var(--surface);
  158. border: 1px solid var(--line-strong);
  159. border-radius: 6px;
  160. box-shadow: 0 16px 36px rgba(24, 32, 29, 0.18);
  161. }
  162. .search-result {
  163. inline-size: 100%;
  164. min-block-size: 52px;
  165. display: grid;
  166. grid-template-columns: 86px minmax(0, 1fr);
  167. gap: 10px;
  168. align-items: center;
  169. padding: 8px 12px;
  170. border: 0;
  171. border-block-end: 1px solid var(--line);
  172. background: var(--surface);
  173. color: var(--ink);
  174. text-align: start;
  175. }
  176. .search-result:hover,
  177. .search-result[aria-selected="true"] {
  178. background: var(--locator-soft);
  179. }
  180. .result-key,
  181. .mono {
  182. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  183. }
  184. .result-detail {
  185. min-inline-size: 0;
  186. overflow: hidden;
  187. color: var(--ink-muted);
  188. font-size: 0.78rem;
  189. text-overflow: ellipsis;
  190. white-space: nowrap;
  191. }
  192. .empty-search {
  193. padding: 18px;
  194. color: var(--ink-muted);
  195. font-size: 0.84rem;
  196. text-align: center;
  197. }
  198. .status-cluster {
  199. display: flex;
  200. align-items: center;
  201. gap: 8px;
  202. }
  203. .status-badge {
  204. min-block-size: 30px;
  205. display: inline-flex;
  206. align-items: center;
  207. padding-inline: 10px;
  208. border: 1px solid transparent;
  209. border-radius: 999px;
  210. font-size: 0.76rem;
  211. font-weight: 650;
  212. white-space: nowrap;
  213. }
  214. .status-loading {
  215. background: var(--surface-muted);
  216. border-color: var(--line);
  217. color: var(--ink-muted);
  218. }
  219. .status-pass {
  220. background: var(--verified-soft);
  221. border-color: #9ac6ad;
  222. color: var(--verified);
  223. }
  224. .status-stale {
  225. background: var(--risk-soft);
  226. border-color: #e7b768;
  227. color: #874500;
  228. }
  229. .status-error {
  230. background: var(--danger-soft);
  231. border-color: #f3a6a0;
  232. color: var(--danger);
  233. }
  234. .workspace {
  235. min-block-size: 0;
  236. display: grid;
  237. grid-template-columns: minmax(0, 1fr) var(--detail-width);
  238. }
  239. .board-pane {
  240. min-inline-size: 0;
  241. min-block-size: 0;
  242. display: grid;
  243. grid-template-rows: auto auto minmax(0, 1fr) 32px;
  244. grid-template-areas:
  245. "status"
  246. "toolbar"
  247. "board"
  248. "footer";
  249. background: var(--workbench);
  250. }
  251. .stale-banner {
  252. grid-area: status;
  253. padding: 8px 14px;
  254. background: var(--risk-soft);
  255. border-block-end: 1px solid #e7b768;
  256. color: #704000;
  257. font-size: 0.8rem;
  258. }
  259. .board-toolbar {
  260. grid-area: toolbar;
  261. min-block-size: 54px;
  262. display: flex;
  263. align-items: center;
  264. gap: 18px;
  265. padding: 6px 12px;
  266. background: var(--surface);
  267. border-block-end: 1px solid var(--line);
  268. overflow-x: auto;
  269. scrollbar-width: thin;
  270. }
  271. fieldset {
  272. margin: 0;
  273. padding: 0;
  274. border: 0;
  275. }
  276. .segmented {
  277. display: inline-flex;
  278. flex: 0 0 auto;
  279. border: 1px solid var(--line);
  280. border-radius: 6px;
  281. overflow: hidden;
  282. }
  283. .segmented label {
  284. position: relative;
  285. min-block-size: 36px;
  286. display: inline-flex;
  287. align-items: center;
  288. justify-content: center;
  289. border-inline-end: 1px solid var(--line);
  290. }
  291. .segmented label:last-child {
  292. border-inline-end: 0;
  293. }
  294. .segmented input {
  295. position: absolute;
  296. opacity: 0;
  297. }
  298. .segmented span {
  299. min-inline-size: 46px;
  300. block-size: 36px;
  301. display: inline-flex;
  302. align-items: center;
  303. justify-content: center;
  304. padding-inline: 9px;
  305. color: var(--ink-muted);
  306. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  307. font-size: 0.76rem;
  308. font-weight: 650;
  309. }
  310. .segmented input:checked + span {
  311. background: var(--ink);
  312. color: var(--surface);
  313. }
  314. .side-controls {
  315. flex: 0 0 auto;
  316. }
  317. .side-controls label span {
  318. min-inline-size: 2.6em;
  319. }
  320. .layer-controls {
  321. flex: 1 0 auto;
  322. display: flex;
  323. align-items: center;
  324. gap: 14px;
  325. }
  326. .layer-controls label {
  327. min-block-size: 36px;
  328. display: inline-flex;
  329. align-items: center;
  330. gap: 6px;
  331. color: var(--ink-muted);
  332. font-size: 0.76rem;
  333. white-space: nowrap;
  334. }
  335. .layer-controls input {
  336. inline-size: 16px;
  337. block-size: 16px;
  338. margin: 0;
  339. accent-color: var(--locator);
  340. }
  341. .swatch {
  342. inline-size: 10px;
  343. block-size: 10px;
  344. border: 1px solid rgba(24, 32, 29, 0.28);
  345. border-radius: 2px;
  346. }
  347. .swatch-mask { background: #d864ff; }
  348. .swatch-silk { background: #f2eda1; }
  349. .swatch-copper { background: #c94646; }
  350. .swatch-photo { background: #87938d; }
  351. .disabled-control {
  352. cursor: not-allowed;
  353. opacity: 0.52;
  354. }
  355. .view-tools {
  356. display: flex;
  357. flex: 0 0 auto;
  358. align-items: center;
  359. gap: 4px;
  360. }
  361. .icon-button {
  362. min-inline-size: 44px;
  363. min-block-size: 44px;
  364. display: inline-grid;
  365. place-items: center;
  366. padding: 0;
  367. border: 1px solid var(--line);
  368. border-radius: 6px;
  369. background: var(--surface);
  370. color: var(--ink);
  371. 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;
  372. font-size: 1.2rem;
  373. line-height: 1;
  374. }
  375. .icon-button:hover {
  376. background: var(--surface-muted);
  377. border-color: var(--line-strong);
  378. }
  379. .drawer-toggle {
  380. display: none;
  381. }
  382. .board-viewport {
  383. grid-area: board;
  384. position: relative;
  385. min-block-size: 0;
  386. margin: 12px;
  387. overflow: hidden;
  388. background: #dfe4e0;
  389. border: 1px solid var(--line-strong);
  390. border-radius: 6px;
  391. box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.34);
  392. }
  393. #board-svg {
  394. inline-size: 100%;
  395. block-size: 100%;
  396. display: block;
  397. cursor: grab;
  398. touch-action: none;
  399. user-select: none;
  400. }
  401. #board-svg.is-panning {
  402. cursor: grabbing;
  403. }
  404. #layer-mask { opacity: 0.68; }
  405. #layer-silk { opacity: 0.94; }
  406. #layer-copper { opacity: 0.43; mix-blend-mode: multiply; }
  407. #layer-photo { opacity: 0.72; }
  408. .hotspot {
  409. fill: rgba(8, 126, 139, 0.025);
  410. stroke: rgba(8, 126, 139, 0.48);
  411. stroke-width: 0.18;
  412. vector-effect: non-scaling-stroke;
  413. cursor: pointer;
  414. }
  415. .hotspot:hover,
  416. .hotspot:focus {
  417. fill: rgba(8, 126, 139, 0.18);
  418. stroke: var(--locator);
  419. stroke-width: 1.5;
  420. }
  421. .hotspot.is-selected {
  422. fill: rgba(8, 126, 139, 0.14);
  423. stroke: var(--locator);
  424. stroke-width: 2;
  425. }
  426. .hotspot-resistor {
  427. fill: rgba(156, 102, 8, 0.05);
  428. stroke: rgba(156, 102, 8, 0.55);
  429. }
  430. .hotspot-resistor.is-selected,
  431. .hotspot-resistor:hover,
  432. .hotspot-resistor:focus {
  433. fill: rgba(156, 102, 8, 0.18);
  434. stroke: rgb(156, 102, 8);
  435. }
  436. .resistor-pad-marker {
  437. fill: rgba(156, 102, 8, 0.12);
  438. stroke: rgb(156, 102, 8);
  439. stroke-width: 0.12;
  440. pointer-events: none;
  441. }
  442. .resistor-pad-halo {
  443. fill: none;
  444. stroke: rgba(156, 102, 8, 0.55);
  445. stroke-width: 0.18;
  446. stroke-dasharray: 0.35 0.25;
  447. pointer-events: none;
  448. }
  449. .back-view-tip {
  450. margin: 0.35rem 0 0;
  451. padding: 0.45rem 0.6rem;
  452. border-left: 3px solid var(--risk);
  453. background: var(--risk-soft);
  454. color: var(--ink);
  455. font-size: 0.92rem;
  456. line-height: 1.35;
  457. }
  458. .coverage-hint {
  459. margin: 0.35rem 0 0;
  460. padding: 0.4rem 0.55rem;
  461. background: var(--surface-muted);
  462. border: 1px solid var(--line);
  463. font-size: 0.9rem;
  464. color: var(--ink-muted);
  465. }
  466. .assembly-badge {
  467. display: inline-block;
  468. margin-left: 0.35rem;
  469. padding: 0.05rem 0.35rem;
  470. border-radius: 0.2rem;
  471. background: var(--danger-soft);
  472. color: var(--danger);
  473. font-size: 0.8rem;
  474. }
  475. .pin-hit {
  476. fill: transparent;
  477. stroke: none;
  478. cursor: crosshair;
  479. pointer-events: none;
  480. }
  481. #board-svg.pins-interactive .pin-hit {
  482. pointer-events: all;
  483. }
  484. .pin-dot {
  485. fill: rgba(255, 255, 255, 0.55);
  486. stroke: rgba(24, 32, 29, 0.72);
  487. stroke-width: 0.16;
  488. vector-effect: non-scaling-stroke;
  489. pointer-events: none;
  490. }
  491. .pin-group.role-shield .pin-dot {
  492. fill: rgba(182, 95, 5, 0.22);
  493. stroke: var(--risk);
  494. stroke-dasharray: 2 1;
  495. }
  496. .pin-group.role-mechanical .pin-dot {
  497. fill: transparent;
  498. stroke: var(--line-strong);
  499. stroke-width: 0.28;
  500. }
  501. .pin-group.role-unknown .pin-dot {
  502. fill: rgba(180, 35, 24, 0.12);
  503. stroke: var(--danger);
  504. stroke-dasharray: 1.5 1.5;
  505. }
  506. .pin-group:hover .pin-dot,
  507. .pin-group:focus .pin-dot,
  508. .pin-group.is-selected .pin-dot {
  509. fill: #ffffff;
  510. stroke: var(--locator);
  511. stroke-width: 1.8;
  512. }
  513. .net-highlight {
  514. fill: rgba(182, 95, 5, 0.28);
  515. stroke: var(--risk);
  516. stroke-width: 2;
  517. vector-effect: non-scaling-stroke;
  518. }
  519. .selection-reticle {
  520. fill: none;
  521. stroke: var(--locator);
  522. stroke-width: 2;
  523. stroke-dasharray: 7 4;
  524. vector-effect: non-scaling-stroke;
  525. pointer-events: none;
  526. }
  527. .selection-cross {
  528. stroke: var(--locator);
  529. stroke-width: 2;
  530. vector-effect: non-scaling-stroke;
  531. }
  532. .board-loading {
  533. position: absolute;
  534. inset: 0;
  535. display: grid;
  536. place-items: center;
  537. color: var(--ink-muted);
  538. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  539. font-size: 0.82rem;
  540. pointer-events: none;
  541. }
  542. .board-tooltip {
  543. position: absolute;
  544. z-index: 15;
  545. max-inline-size: min(300px, calc(100% - 24px));
  546. padding: 9px 11px;
  547. background: rgba(24, 32, 29, 0.96);
  548. border: 1px solid rgba(255, 255, 255, 0.16);
  549. border-radius: 5px;
  550. color: #ffffff;
  551. box-shadow: 0 8px 22px rgba(24, 32, 29, 0.25);
  552. font-size: 0.76rem;
  553. line-height: 1.45;
  554. pointer-events: none;
  555. }
  556. .tooltip-key {
  557. color: #99e1e6;
  558. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  559. font-weight: 700;
  560. }
  561. .tooltip-role {
  562. color: #ffd08a;
  563. font-size: 0.68rem;
  564. font-weight: 700;
  565. }
  566. .coordinate-rail {
  567. position: absolute;
  568. inset-block-start: 7px;
  569. inset-inline: 12px;
  570. display: flex;
  571. justify-content: space-between;
  572. color: rgba(24, 32, 29, 0.55);
  573. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  574. font-size: 0.62rem;
  575. pointer-events: none;
  576. }
  577. .board-footer {
  578. grid-area: footer;
  579. display: grid;
  580. grid-template-columns: 1fr auto 1fr;
  581. align-items: center;
  582. gap: 12px;
  583. padding-inline: 14px;
  584. color: var(--ink-muted);
  585. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  586. font-size: 0.7rem;
  587. }
  588. .board-footer span:last-child {
  589. overflow: hidden;
  590. text-align: end;
  591. text-overflow: ellipsis;
  592. white-space: nowrap;
  593. }
  594. .detail-panel {
  595. min-inline-size: 0;
  596. min-block-size: 0;
  597. display: grid;
  598. grid-template-rows: auto minmax(0, 1fr);
  599. background: var(--surface);
  600. border-inline-start: 1px solid var(--line);
  601. overflow: hidden;
  602. }
  603. .drawer-handle {
  604. display: none;
  605. }
  606. .detail-tabs {
  607. display: grid;
  608. grid-template-columns: 1fr 1fr;
  609. border-block-end: 1px solid var(--line);
  610. }
  611. .detail-tabs button {
  612. min-block-size: 48px;
  613. border: 0;
  614. border-block-end: 3px solid transparent;
  615. background: var(--surface);
  616. color: var(--ink-muted);
  617. font-size: 0.84rem;
  618. font-weight: 650;
  619. }
  620. .detail-tabs button[aria-selected="true"] {
  621. border-block-end-color: var(--locator);
  622. color: var(--ink);
  623. }
  624. .panel-content {
  625. min-block-size: 0;
  626. overflow: auto;
  627. padding: 18px;
  628. scrollbar-width: thin;
  629. }
  630. .empty-panel {
  631. min-block-size: 100%;
  632. display: grid;
  633. place-content: center;
  634. gap: 8px;
  635. color: var(--ink-muted);
  636. text-align: center;
  637. }
  638. .empty-panel strong {
  639. color: var(--ink);
  640. font-size: 0.98rem;
  641. }
  642. .empty-stats {
  643. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  644. font-size: 0.76rem;
  645. }
  646. .detail-heading {
  647. display: flex;
  648. align-items: flex-start;
  649. justify-content: space-between;
  650. gap: 12px;
  651. padding-block-end: 14px;
  652. border-block-end: 1px solid var(--line);
  653. }
  654. .detail-reference {
  655. margin: 0;
  656. 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;
  657. font-size: 1.35rem;
  658. font-weight: 700;
  659. }
  660. .detail-summary {
  661. margin: 5px 0 0;
  662. color: var(--ink-muted);
  663. font-size: 0.82rem;
  664. line-height: 1.45;
  665. }
  666. .category-tag,
  667. .evidence-tag {
  668. min-block-size: 26px;
  669. display: inline-flex;
  670. align-items: center;
  671. padding-inline: 8px;
  672. border: 1px solid var(--line);
  673. border-radius: 999px;
  674. background: var(--surface-muted);
  675. color: var(--ink-muted);
  676. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  677. font-size: 0.68rem;
  678. white-space: nowrap;
  679. }
  680. .evidence-tag.verified {
  681. background: var(--verified-soft);
  682. border-color: #9ac6ad;
  683. color: var(--verified);
  684. }
  685. .side-tag {
  686. min-block-size: 26px;
  687. display: inline-flex;
  688. align-items: center;
  689. padding-inline: 8px;
  690. border: 1px solid #c9a227;
  691. border-radius: 999px;
  692. background: #fff8df;
  693. color: #7a5b00;
  694. font-size: 0.68rem;
  695. white-space: nowrap;
  696. }
  697. .evidence-conflict {
  698. margin-top: 12px;
  699. padding: 10px;
  700. border: 1px solid #d9a09a;
  701. border-radius: 8px;
  702. background: #fff5f3;
  703. }
  704. .evidence-conflict-note {
  705. margin-bottom: 8px;
  706. }
  707. .search-help {
  708. margin-top: 4px;
  709. font-size: 0.72rem;
  710. color: var(--ink-muted);
  711. }
  712. .search-help summary {
  713. cursor: pointer;
  714. user-select: none;
  715. }
  716. .search-help-body {
  717. display: flex;
  718. flex-wrap: wrap;
  719. gap: 6px;
  720. margin-top: 6px;
  721. align-items: center;
  722. }
  723. .help-chip,
  724. .term {
  725. border: 1px solid var(--line);
  726. border-radius: 999px;
  727. background: var(--surface-muted);
  728. padding: 2px 8px;
  729. font: inherit;
  730. cursor: pointer;
  731. }
  732. .help-chip:hover,
  733. .term:hover {
  734. border-color: var(--accent, #3a6ea5);
  735. }
  736. .help-glossary {
  737. flex-basis: 100%;
  738. margin: 4px 0 0;
  739. line-height: 1.5;
  740. }
  741. .pin-row.is-conflict {
  742. opacity: 0.7;
  743. cursor: not-allowed;
  744. }
  745. .net-highlight.net-resistor {
  746. fill: rgba(196, 120, 40, 0.28);
  747. stroke: #c47828;
  748. }
  749. .detail-facts {
  750. display: grid;
  751. grid-template-columns: 1fr 1fr;
  752. gap: 0;
  753. margin: 14px 0;
  754. border-block: 1px solid var(--line);
  755. }
  756. .fact {
  757. min-inline-size: 0;
  758. padding: 10px 8px;
  759. border-block-end: 1px solid var(--line);
  760. }
  761. .fact:nth-child(odd) {
  762. border-inline-end: 1px solid var(--line);
  763. }
  764. .fact:nth-last-child(-n + 2) {
  765. border-block-end: 0;
  766. }
  767. .fact-label {
  768. display: block;
  769. margin-block-end: 4px;
  770. color: var(--ink-muted);
  771. font-size: 0.68rem;
  772. }
  773. .fact-value {
  774. display: block;
  775. overflow-wrap: anywhere;
  776. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  777. font-size: 0.76rem;
  778. }
  779. .section-title {
  780. margin: 18px 0 8px;
  781. color: var(--ink-muted);
  782. font-size: 0.72rem;
  783. font-weight: 700;
  784. text-transform: uppercase;
  785. }
  786. .connector-layout {
  787. margin-block-start: 16px;
  788. padding: 10px;
  789. border: 1px solid var(--line);
  790. border-radius: 6px;
  791. background: var(--surface-muted);
  792. }
  793. .connector-layout-header {
  794. display: flex;
  795. align-items: center;
  796. justify-content: space-between;
  797. gap: 8px;
  798. }
  799. .connector-layout-title {
  800. margin: 0;
  801. }
  802. .connector-orientation {
  803. display: grid;
  804. justify-items: center;
  805. gap: 4px;
  806. margin-block-start: 10px;
  807. }
  808. .connector-axis-row {
  809. inline-size: 100%;
  810. display: grid;
  811. grid-template-columns: 18px minmax(0, 1fr) 18px;
  812. align-items: center;
  813. gap: 4px;
  814. }
  815. .connector-axis {
  816. color: var(--ink-muted);
  817. font-size: 0.66rem;
  818. font-weight: 700;
  819. text-align: center;
  820. }
  821. .connector-grid {
  822. min-inline-size: 0;
  823. display: grid;
  824. gap: 5px;
  825. }
  826. .connector-grid-row {
  827. min-inline-size: 0;
  828. display: grid;
  829. grid-template-columns: repeat(var(--connector-columns), minmax(0, 1fr));
  830. gap: 5px;
  831. }
  832. .connector-contact {
  833. min-inline-size: 0;
  834. min-block-size: 42px;
  835. border: 1px solid var(--line-strong);
  836. border-radius: 4px;
  837. background: var(--surface);
  838. color: var(--ink);
  839. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  840. font-size: 0.78rem;
  841. font-weight: 700;
  842. }
  843. .connector-contact:hover,
  844. .connector-contact.is-selected {
  845. border-color: var(--locator);
  846. background: var(--locator-soft);
  847. color: #07545c;
  848. }
  849. .connector-layout-meta {
  850. margin-block-start: 9px;
  851. overflow-wrap: anywhere;
  852. color: var(--ink-muted);
  853. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  854. font-size: 0.66rem;
  855. line-height: 1.4;
  856. }
  857. .connector-perspective-note {
  858. margin-block-start: 8px;
  859. padding-block-start: 8px;
  860. border-block-start: 1px solid var(--line);
  861. color: #07545c;
  862. font-size: 0.7rem;
  863. font-weight: 650;
  864. line-height: 1.45;
  865. }
  866. .pin-list {
  867. border-block-start: 1px solid var(--line);
  868. }
  869. .pin-row {
  870. inline-size: 100%;
  871. min-block-size: 54px;
  872. display: grid;
  873. grid-template-columns: 42px minmax(0, 1fr) auto;
  874. align-items: center;
  875. gap: 9px;
  876. padding: 7px 5px;
  877. border: 0;
  878. border-block-end: 1px solid var(--line);
  879. background: var(--surface);
  880. color: var(--ink);
  881. text-align: start;
  882. }
  883. .pin-row:hover,
  884. .pin-row.is-selected {
  885. background: var(--locator-soft);
  886. }
  887. .pin-number {
  888. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  889. font-weight: 700;
  890. }
  891. .pin-primary {
  892. min-inline-size: 0;
  893. }
  894. .pin-net {
  895. display: block;
  896. margin-block-start: 3px;
  897. overflow: hidden;
  898. color: var(--ink-muted);
  899. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  900. font-size: 0.77rem;
  901. text-overflow: ellipsis;
  902. white-space: nowrap;
  903. }
  904. .pin-summary {
  905. display: block;
  906. overflow: hidden;
  907. color: var(--ink);
  908. font-weight: 650;
  909. line-height: 1.35;
  910. font-size: 0.7rem;
  911. text-overflow: ellipsis;
  912. white-space: nowrap;
  913. }
  914. .pin-direction {
  915. color: var(--ink-muted);
  916. font-size: 0.68rem;
  917. white-space: nowrap;
  918. }
  919. .pin-detail {
  920. margin-block-start: 16px;
  921. padding-block-start: 15px;
  922. border-block-start: 2px solid var(--locator);
  923. }
  924. .pin-detail-header {
  925. display: flex;
  926. align-items: center;
  927. justify-content: space-between;
  928. gap: 10px;
  929. }
  930. .pin-detail-header h3 {
  931. margin: 0;
  932. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  933. font-size: 1rem;
  934. }
  935. .programming-guide {
  936. margin-block-start: 14px;
  937. padding: 2px 0 2px 14px;
  938. border-inline-start: 4px solid var(--line-strong);
  939. }
  940. .programming-guide.status-verified_fpga,
  941. .programming-guide.status-verified_mcu {
  942. border-inline-start-color: var(--verified);
  943. }
  944. .programming-guide.status-board_only {
  945. border-inline-start-color: var(--risk);
  946. }
  947. .programming-guide.status-not_programmable,
  948. .programming-guide.status-unknown {
  949. border-inline-start-color: var(--danger);
  950. }
  951. .programming-guide-heading {
  952. display: flex;
  953. align-items: center;
  954. justify-content: space-between;
  955. gap: 10px;
  956. }
  957. .programming-title {
  958. margin-block-start: 0;
  959. color: var(--ink);
  960. font-size: 0.78rem;
  961. text-transform: none;
  962. }
  963. .programming-conclusion {
  964. margin: 7px 0 0;
  965. color: var(--ink);
  966. font-size: 0.84rem;
  967. font-weight: 700;
  968. line-height: 1.55;
  969. }
  970. .programming-copy {
  971. margin: 0;
  972. color: var(--ink-muted);
  973. font-size: 0.74rem;
  974. line-height: 1.55;
  975. }
  976. .guidance-list,
  977. .component-list {
  978. margin: 0;
  979. padding: 0;
  980. list-style: none;
  981. }
  982. .guidance-list li,
  983. .component-list li {
  984. position: relative;
  985. padding: 5px 0 5px 15px;
  986. color: var(--ink);
  987. font-size: 0.72rem;
  988. line-height: 1.5;
  989. overflow-wrap: anywhere;
  990. }
  991. .guidance-list li::before,
  992. .component-list li::before {
  993. content: "";
  994. position: absolute;
  995. inset-inline-start: 1px;
  996. inset-block-start: 11px;
  997. inline-size: 6px;
  998. block-size: 6px;
  999. border-radius: 50%;
  1000. background: var(--locator);
  1001. }
  1002. .constraint-list li {
  1003. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1004. }
  1005. .risk-list li::before {
  1006. background: var(--risk);
  1007. }
  1008. .component-list {
  1009. display: grid;
  1010. grid-template-columns: 1fr 1fr;
  1011. gap: 0 10px;
  1012. }
  1013. .component-list li {
  1014. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1015. }
  1016. .path-list,
  1017. .source-list {
  1018. margin: 0;
  1019. padding: 0;
  1020. list-style: none;
  1021. }
  1022. .path-list li {
  1023. position: relative;
  1024. padding: 8px 8px 8px 18px;
  1025. border-inline-start: 2px solid var(--line);
  1026. color: var(--ink);
  1027. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1028. font-size: 0.73rem;
  1029. overflow-wrap: anywhere;
  1030. }
  1031. .path-list li::before {
  1032. content: "";
  1033. position: absolute;
  1034. inset-inline-start: -5px;
  1035. inset-block-start: 13px;
  1036. inline-size: 8px;
  1037. block-size: 8px;
  1038. background: var(--locator);
  1039. border-radius: 50%;
  1040. }
  1041. .source-list li {
  1042. padding: 6px 0;
  1043. border-block-end: 1px solid var(--line);
  1044. color: var(--ink-muted);
  1045. font-size: 0.7rem;
  1046. line-height: 1.45;
  1047. overflow-wrap: anywhere;
  1048. }
  1049. .risk-note,
  1050. .info-note {
  1051. margin-block-start: 12px;
  1052. padding: 9px 10px;
  1053. border-inline-start: 3px solid var(--risk);
  1054. background: var(--risk-soft);
  1055. color: #704000;
  1056. font-size: 0.72rem;
  1057. line-height: 1.5;
  1058. }
  1059. .info-note {
  1060. border-inline-start-color: var(--locator);
  1061. background: var(--locator-soft);
  1062. color: #07545c;
  1063. }
  1064. .adc-controls {
  1065. display: grid;
  1066. grid-template-columns: minmax(0, 1fr) 44px;
  1067. gap: 6px;
  1068. margin-block-start: 8px;
  1069. }
  1070. .adc-controls input,
  1071. .candidate-controls select {
  1072. min-inline-size: 0;
  1073. min-block-size: 44px;
  1074. padding-inline: 10px;
  1075. border: 1px solid var(--line-strong);
  1076. border-radius: 5px;
  1077. background: var(--surface);
  1078. color: var(--ink);
  1079. }
  1080. .copy-button {
  1081. min-inline-size: 44px;
  1082. min-block-size: 44px;
  1083. border: 1px solid var(--line-strong);
  1084. border-radius: 5px;
  1085. background: var(--surface);
  1086. color: var(--ink);
  1087. font-size: 1.05rem;
  1088. }
  1089. .copy-button:disabled,
  1090. .adc-controls input:disabled {
  1091. cursor: not-allowed;
  1092. opacity: 0.5;
  1093. }
  1094. .copy-status {
  1095. min-block-size: 20px;
  1096. margin-block-start: 5px;
  1097. color: var(--ink-muted);
  1098. font-size: 0.68rem;
  1099. }
  1100. .candidate-controls {
  1101. display: grid;
  1102. gap: 7px;
  1103. padding-block-end: 15px;
  1104. border-block-end: 1px solid var(--line);
  1105. }
  1106. .candidate-controls label {
  1107. color: var(--ink-muted);
  1108. font-size: 0.72rem;
  1109. font-weight: 700;
  1110. }
  1111. .candidate-list {
  1112. margin-block-start: 12px;
  1113. }
  1114. .candidate-row {
  1115. inline-size: 100%;
  1116. display: grid;
  1117. gap: 6px;
  1118. padding: 12px 4px;
  1119. border: 0;
  1120. border-block-end: 1px solid var(--line);
  1121. background: var(--surface);
  1122. color: var(--ink);
  1123. text-align: start;
  1124. }
  1125. .candidate-row:hover {
  1126. background: var(--locator-soft);
  1127. }
  1128. .candidate-key {
  1129. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1130. font-size: 0.82rem;
  1131. font-weight: 700;
  1132. }
  1133. .candidate-reason,
  1134. .candidate-warning {
  1135. color: var(--ink-muted);
  1136. font-size: 0.7rem;
  1137. line-height: 1.45;
  1138. }
  1139. .candidate-warning {
  1140. color: #704000;
  1141. }
  1142. @media (max-width: 1180px) {
  1143. :root { --detail-width: 350px; }
  1144. .topbar { grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.4fr) auto; gap: 10px; }
  1145. .layer-controls { gap: 9px; }
  1146. }
  1147. @media (max-width: 860px) {
  1148. :root { --topbar-height: 116px; }
  1149. .topbar {
  1150. grid-template-columns: minmax(0, 1fr) auto;
  1151. gap: 8px 10px;
  1152. padding: 8px 10px;
  1153. }
  1154. .product-title { font-size: 0.92rem; }
  1155. .product-meta { font-size: 0.66rem; }
  1156. .search-block { grid-column: 1 / -1; grid-row: 2; }
  1157. .status-cluster { grid-column: 2; grid-row: 1; }
  1158. .status-badge { max-inline-size: 98px; overflow: hidden; text-overflow: ellipsis; }
  1159. .workspace {
  1160. display: block;
  1161. min-block-size: 0;
  1162. }
  1163. .board-pane {
  1164. block-size: 100%;
  1165. padding-block-end: 48px;
  1166. }
  1167. .board-toolbar {
  1168. gap: 12px;
  1169. padding-inline: 8px;
  1170. }
  1171. .layer-controls label { font-size: 0.7rem; }
  1172. .board-viewport { margin: 8px; }
  1173. .board-footer { padding-inline: 10px; }
  1174. .drawer-toggle {
  1175. display: inline-grid;
  1176. }
  1177. .detail-panel {
  1178. position: fixed;
  1179. z-index: 40;
  1180. inset-inline: 0;
  1181. inset-block-end: 0;
  1182. block-size: min(62dvh, 560px);
  1183. display: grid;
  1184. grid-template-rows: 16px auto minmax(0, 1fr);
  1185. border: 1px solid var(--line-strong);
  1186. border-block-end: 0;
  1187. border-radius: 8px 8px 0 0;
  1188. box-shadow: 0 -12px 32px rgba(24, 32, 29, 0.2);
  1189. transform: translateY(0);
  1190. transition: transform 180ms ease;
  1191. }
  1192. .app-shell.detail-collapsed .detail-panel {
  1193. transform: translateY(calc(100% - 50px));
  1194. }
  1195. .app-shell.detail-collapsed .drawer-toggle span {
  1196. display: inline-block;
  1197. transform: rotate(180deg);
  1198. }
  1199. .drawer-handle {
  1200. display: block;
  1201. inline-size: 42px;
  1202. block-size: 4px;
  1203. align-self: center;
  1204. justify-self: center;
  1205. background: var(--line-strong);
  1206. border-radius: 3px;
  1207. }
  1208. .detail-tabs button { min-block-size: 34px; }
  1209. .panel-content { padding: 14px; }
  1210. }
  1211. @media (max-width: 460px) {
  1212. .product-mark { block-size: 30px; }
  1213. .product-title { max-inline-size: 205px; }
  1214. .status-badge { display: none; }
  1215. .search-field input { font-size: 0.82rem; }
  1216. .board-toolbar { min-block-size: 50px; }
  1217. .layer-controls { display: none; }
  1218. .segmented span { min-inline-size: 42px; padding-inline: 6px; }
  1219. .board-footer { grid-template-columns: 1fr auto; }
  1220. .board-footer span:last-child { display: none; }
  1221. .coordinate-rail { font-size: 0.56rem; }
  1222. .component-list { grid-template-columns: 1fr; }
  1223. }
  1224. @media (prefers-reduced-motion: reduce) {
  1225. *,
  1226. *::before,
  1227. *::after {
  1228. scroll-behavior: auto !important;
  1229. transition-duration: 0.001ms !important;
  1230. animation-duration: 0.001ms !important;
  1231. }
  1232. }