app.css 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539
  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. .version-select-cluster {
  1225. display: flex;
  1226. align-items: center;
  1227. }
  1228. .version-select {
  1229. padding: 5px 10px;
  1230. font-size: 0.84rem;
  1231. font-weight: 600;
  1232. color: var(--ink);
  1233. background: var(--surface-muted);
  1234. border: 1px solid var(--line-strong);
  1235. border-radius: 6px;
  1236. outline: none;
  1237. cursor: pointer;
  1238. transition: border-color 0.15s ease, box-shadow 0.15s ease;
  1239. }
  1240. .version-select:hover,
  1241. .version-select:focus {
  1242. border-color: var(--locator);
  1243. box-shadow: 0 0 0 2px var(--locator-soft);
  1244. }
  1245. .schematic-top-link {
  1246. display: inline-flex;
  1247. align-items: center;
  1248. gap: 4px;
  1249. padding: 5px 12px;
  1250. font-size: 0.84rem;
  1251. font-weight: 600;
  1252. text-decoration: none;
  1253. color: var(--locator);
  1254. background: var(--locator-soft);
  1255. border: 1px solid color-mix(in srgb, var(--locator) 35%, transparent);
  1256. border-radius: 6px;
  1257. white-space: nowrap;
  1258. transition: background 0.15s ease, transform 0.15s ease;
  1259. }
  1260. .schematic-top-link:hover {
  1261. background: color-mix(in srgb, var(--locator) 20%, white);
  1262. transform: translateY(-1px);
  1263. }
  1264. .schematic-panel-body {
  1265. display: flex;
  1266. flex-direction: column;
  1267. gap: 14px;
  1268. }
  1269. .schematic-header-row {
  1270. display: flex;
  1271. justify-content: space-between;
  1272. align-items: center;
  1273. flex-wrap: wrap;
  1274. gap: 8px;
  1275. padding-bottom: 8px;
  1276. border-bottom: 1px solid var(--line);
  1277. }
  1278. .schematic-title {
  1279. font-size: 0.95rem;
  1280. font-weight: 700;
  1281. color: var(--ink);
  1282. }
  1283. .schematic-ext-link {
  1284. font-size: 0.8rem;
  1285. color: var(--locator);
  1286. text-decoration: underline;
  1287. }
  1288. .schematic-meta-box {
  1289. display: flex;
  1290. flex-direction: column;
  1291. gap: 12px;
  1292. }
  1293. .schematic-block {
  1294. padding: 10px 12px;
  1295. background: var(--surface-muted);
  1296. border: 1px solid var(--line);
  1297. border-radius: 6px;
  1298. font-size: 0.82rem;
  1299. line-height: 1.5;
  1300. }
  1301. .schematic-block strong {
  1302. display: block;
  1303. margin-bottom: 6px;
  1304. color: var(--ink);
  1305. }
  1306. .schematic-list {
  1307. margin: 0;
  1308. padding-left: 18px;
  1309. color: var(--ink-muted);
  1310. }
  1311. .schematic-list li {
  1312. margin-bottom: 3px;
  1313. }
  1314. .schematic-embed-frame {
  1315. margin-top: 8px;
  1316. width: 100%;
  1317. height: 480px;
  1318. border: 1px solid var(--line);
  1319. border-radius: 6px;
  1320. overflow: hidden;
  1321. }
  1322. .pdf-viewer-frame {
  1323. width: 100%;
  1324. height: 100%;
  1325. border: none;
  1326. }
  1327. @media (prefers-reduced-motion: reduce) {
  1328. *,
  1329. *::before,
  1330. *::after {
  1331. scroll-behavior: auto !important;
  1332. transition-duration: 0.001ms !important;
  1333. animation-duration: 0.001ms !important;
  1334. }
  1335. }