app.css 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264
  1. :root {
  2. color-scheme: light;
  3. --workbench: #f1f5f9;
  4. --surface: #ffffff;
  5. --surface-muted: #f8fafc;
  6. --ink: #0f172a;
  7. --ink-muted: #475569;
  8. --line: #e2e8f0;
  9. --line-strong: #94a3b8;
  10. --locator: #0284c7;
  11. --locator-soft: #e0f2fe;
  12. --verified: #059669;
  13. --verified-soft: #d1fae5;
  14. --risk: #d97706;
  15. --risk-soft: #fef3c7;
  16. --danger: #dc2626;
  17. --danger-soft: #fee2e2;
  18. --detail-width: 470px;
  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-columns: minmax(0, 1fr);
  71. grid-template-rows: auto minmax(0, 1fr);
  72. min-block-size: 100dvh;
  73. block-size: 100dvh;
  74. }
  75. .topbar {
  76. position: relative;
  77. z-index: 60;
  78. min-block-size: var(--topbar-height);
  79. display: grid;
  80. grid-template-columns: minmax(200px, 280px) minmax(260px, 1fr) auto;
  81. align-items: center;
  82. gap: 14px;
  83. padding: 10px 16px;
  84. background: var(--surface);
  85. border-block-end: 1px solid var(--line);
  86. }
  87. .product-block {
  88. min-inline-size: 0;
  89. max-inline-size: 280px;
  90. display: flex;
  91. align-items: center;
  92. gap: 11px;
  93. overflow: hidden;
  94. }
  95. .product-block > div {
  96. min-inline-size: 0;
  97. overflow: hidden;
  98. }
  99. .product-mark {
  100. flex: 0 0 auto;
  101. inline-size: 10px;
  102. block-size: 36px;
  103. background: var(--locator);
  104. border-radius: 2px;
  105. box-shadow: inset 0 -11px 0 var(--verified);
  106. }
  107. .product-title {
  108. overflow: hidden;
  109. color: var(--ink);
  110. font-family: Bahnschrift, "Segoe UI Variable", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  111. font-size: 1rem;
  112. font-weight: 650;
  113. text-overflow: ellipsis;
  114. white-space: nowrap;
  115. }
  116. .product-meta {
  117. margin-block-start: 3px;
  118. overflow: hidden;
  119. color: var(--ink-muted);
  120. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  121. font-size: 0.72rem;
  122. text-overflow: ellipsis;
  123. white-space: nowrap;
  124. }
  125. .search-block {
  126. position: relative;
  127. min-inline-size: 0;
  128. }
  129. .search-field {
  130. min-block-size: 44px;
  131. display: grid;
  132. grid-template-columns: 24px minmax(0, 1fr);
  133. align-items: center;
  134. gap: 7px;
  135. padding-inline: 12px;
  136. background: var(--surface-muted);
  137. border: 1px solid var(--line);
  138. border-radius: 6px;
  139. color: var(--ink-muted);
  140. }
  141. .search-field:focus-within {
  142. background: var(--surface);
  143. border-color: var(--locator);
  144. box-shadow: 0 0 0 3px var(--locator-soft);
  145. }
  146. .search-field input {
  147. min-inline-size: 0;
  148. inline-size: 100%;
  149. block-size: 40px;
  150. padding: 0;
  151. border: 0;
  152. outline: 0;
  153. background: transparent;
  154. color: var(--ink);
  155. font-size: 0.9rem;
  156. }
  157. .search-results {
  158. position: absolute;
  159. z-index: 50;
  160. inset-block-start: calc(100% + 6px);
  161. inset-inline: 0;
  162. max-block-size: min(420px, 60vh);
  163. overflow: auto;
  164. background: var(--surface);
  165. border: 1px solid var(--line-strong);
  166. border-radius: 6px;
  167. box-shadow: 0 16px 36px rgba(24, 32, 29, 0.18);
  168. }
  169. .search-result {
  170. inline-size: 100%;
  171. min-block-size: 52px;
  172. display: grid;
  173. grid-template-columns: 86px minmax(0, 1fr);
  174. gap: 10px;
  175. align-items: center;
  176. padding: 8px 12px;
  177. border: 0;
  178. border-block-end: 1px solid var(--line);
  179. background: var(--surface);
  180. color: var(--ink);
  181. text-align: start;
  182. }
  183. .search-result:hover,
  184. .search-result[aria-selected="true"] {
  185. background: var(--locator-soft);
  186. }
  187. .result-key,
  188. .mono {
  189. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  190. }
  191. .result-detail {
  192. min-inline-size: 0;
  193. overflow: hidden;
  194. color: var(--ink-muted);
  195. font-size: 0.78rem;
  196. text-overflow: ellipsis;
  197. white-space: nowrap;
  198. }
  199. .empty-search {
  200. padding: 18px;
  201. color: var(--ink-muted);
  202. font-size: 0.84rem;
  203. text-align: center;
  204. }
  205. .status-cluster {
  206. display: flex;
  207. align-items: center;
  208. gap: 8px;
  209. }
  210. .status-badge {
  211. min-block-size: 30px;
  212. display: inline-flex;
  213. align-items: center;
  214. padding-inline: 10px;
  215. border: 1px solid transparent;
  216. border-radius: 999px;
  217. font-size: 0.76rem;
  218. font-weight: 650;
  219. white-space: nowrap;
  220. }
  221. .status-loading {
  222. background: var(--surface-muted);
  223. border-color: var(--line);
  224. color: var(--ink-muted);
  225. }
  226. .status-pass {
  227. background: var(--verified-soft);
  228. border-color: #9ac6ad;
  229. color: var(--verified);
  230. }
  231. .status-stale {
  232. background: var(--risk-soft);
  233. border-color: #e7b768;
  234. color: #874500;
  235. }
  236. .status-error {
  237. background: var(--danger-soft);
  238. border-color: #f3a6a0;
  239. color: var(--danger);
  240. }
  241. .workspace {
  242. min-block-size: 0;
  243. display: grid;
  244. grid-template-columns: minmax(0, 1fr) var(--detail-width);
  245. }
  246. .board-pane {
  247. min-inline-size: 0;
  248. min-block-size: 0;
  249. display: grid;
  250. grid-template-rows: auto auto minmax(0, 1fr) 32px;
  251. grid-template-areas:
  252. "status"
  253. "toolbar"
  254. "board"
  255. "footer";
  256. background: var(--workbench);
  257. }
  258. .stale-banner {
  259. grid-area: status;
  260. padding: 8px 14px;
  261. background: var(--risk-soft);
  262. border-block-end: 1px solid #e7b768;
  263. color: #704000;
  264. font-size: 0.8rem;
  265. }
  266. .board-toolbar {
  267. grid-area: toolbar;
  268. min-block-size: 54px;
  269. display: flex;
  270. align-items: center;
  271. gap: 18px;
  272. padding: 6px 12px;
  273. background: var(--surface);
  274. border-block-end: 1px solid var(--line);
  275. overflow-x: auto;
  276. scrollbar-width: thin;
  277. }
  278. fieldset {
  279. margin: 0;
  280. padding: 0;
  281. border: 0;
  282. }
  283. .segmented {
  284. display: inline-flex;
  285. flex: 0 0 auto;
  286. border: 1px solid var(--line);
  287. border-radius: 6px;
  288. overflow: hidden;
  289. }
  290. .segmented label {
  291. position: relative;
  292. min-block-size: 36px;
  293. display: inline-flex;
  294. align-items: center;
  295. justify-content: center;
  296. border-inline-end: 1px solid var(--line);
  297. }
  298. .segmented label:last-child {
  299. border-inline-end: 0;
  300. }
  301. .segmented input {
  302. position: absolute;
  303. opacity: 0;
  304. }
  305. .segmented span {
  306. min-inline-size: 46px;
  307. block-size: 36px;
  308. display: inline-flex;
  309. align-items: center;
  310. justify-content: center;
  311. padding-inline: 9px;
  312. color: var(--ink-muted);
  313. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  314. font-size: 0.76rem;
  315. font-weight: 650;
  316. }
  317. .segmented input:checked + span {
  318. background: var(--ink);
  319. color: var(--surface);
  320. }
  321. .side-controls {
  322. flex: 0 0 auto;
  323. }
  324. .side-controls label span {
  325. min-inline-size: 2.6em;
  326. }
  327. .layer-controls {
  328. flex: 1 0 auto;
  329. display: flex;
  330. align-items: center;
  331. gap: 14px;
  332. }
  333. .layer-controls label {
  334. min-block-size: 36px;
  335. display: inline-flex;
  336. align-items: center;
  337. gap: 6px;
  338. color: var(--ink-muted);
  339. font-size: 0.76rem;
  340. white-space: nowrap;
  341. }
  342. .layer-controls input {
  343. inline-size: 16px;
  344. block-size: 16px;
  345. margin: 0;
  346. accent-color: var(--locator);
  347. }
  348. .swatch {
  349. inline-size: 10px;
  350. block-size: 10px;
  351. border: 1px solid rgba(24, 32, 29, 0.28);
  352. border-radius: 2px;
  353. }
  354. .swatch-mask { background: #eef7f2; border: 1px solid #64748b; }
  355. .swatch-silk { background: #0f172a; }
  356. .swatch-copper { background: #fbbf24; }
  357. .swatch-photo { background: #87938d; }
  358. .disabled-control {
  359. cursor: not-allowed;
  360. opacity: 0.52;
  361. }
  362. .view-tools {
  363. display: flex;
  364. flex: 0 0 auto;
  365. align-items: center;
  366. gap: 4px;
  367. }
  368. .icon-button {
  369. min-inline-size: 44px;
  370. min-block-size: 44px;
  371. display: inline-grid;
  372. place-items: center;
  373. padding: 0;
  374. border: 1px solid var(--line);
  375. border-radius: 6px;
  376. background: var(--surface);
  377. color: var(--ink);
  378. 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;
  379. font-size: 1.2rem;
  380. line-height: 1;
  381. }
  382. .icon-button:hover {
  383. background: var(--surface-muted);
  384. border-color: var(--line-strong);
  385. }
  386. .tool-pill-btn {
  387. min-block-size: 44px;
  388. display: inline-flex;
  389. align-items: center;
  390. gap: 5px;
  391. padding-inline: 11px;
  392. border: 1px solid var(--line);
  393. border-radius: 6px;
  394. background: var(--surface);
  395. color: var(--ink);
  396. font-size: 0.78rem;
  397. font-weight: 650;
  398. white-space: nowrap;
  399. cursor: pointer;
  400. }
  401. .tool-pill-btn:hover {
  402. background: var(--surface-muted);
  403. border-color: var(--line-strong);
  404. }
  405. .tool-pill-btn[aria-pressed="true"] {
  406. border-color: #0284c7;
  407. background: #e0f2fe;
  408. color: #0369a1;
  409. box-shadow: inset 0 0 0 1px #38bdf8;
  410. }
  411. .drawer-toggle {
  412. display: none;
  413. }
  414. .board-viewport {
  415. grid-area: board;
  416. position: relative;
  417. min-block-size: 0;
  418. margin: 12px;
  419. overflow: hidden;
  420. background-color: #f4f6f8;
  421. background-image:
  422. radial-gradient(circle, #cbd5e1 0.9px, transparent 0.9px);
  423. background-size: 20px 20px;
  424. border: 1px solid #cbd5e1;
  425. border-radius: 8px;
  426. box-shadow: inset 0 0 0 1px #ffffff, 0 4px 16px rgba(15, 23, 42, 0.05);
  427. }
  428. .board-layer-canvas,
  429. .board-fast-canvas {
  430. position: absolute;
  431. inset: 0;
  432. inline-size: 100%;
  433. block-size: 100%;
  434. display: block;
  435. pointer-events: none;
  436. }
  437. .board-layer-canvas {
  438. z-index: 0;
  439. }
  440. .board-fast-canvas {
  441. z-index: 2;
  442. }
  443. #board-svg {
  444. position: relative;
  445. z-index: 1;
  446. inline-size: 100%;
  447. block-size: 100%;
  448. display: block;
  449. cursor: grab;
  450. touch-action: none;
  451. user-select: none;
  452. contain: layout style paint;
  453. }
  454. #board-svg.perf-ultra #pin-layer,
  455. #board-svg.perf-ultra #hotspot-layer .hotspot-resistor {
  456. display: none;
  457. }
  458. #board-svg.is-panning {
  459. cursor: grabbing;
  460. }
  461. #board-svg.is-box-zoom {
  462. cursor: crosshair;
  463. }
  464. .box-zoom-marquee {
  465. position: absolute;
  466. z-index: 12;
  467. border: 2px dashed #0284c7;
  468. border-radius: 4px;
  469. background: rgba(14, 165, 233, 0.16);
  470. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
  471. pointer-events: none;
  472. }
  473. .board-minimap-wrap {
  474. position: absolute;
  475. inset-block-end: 12px;
  476. inset-inline-start: 12px;
  477. z-index: 10;
  478. display: grid;
  479. gap: 4px;
  480. padding: 6px 8px;
  481. border: 1px solid #cbd5e1;
  482. border-radius: 8px;
  483. background: rgba(255, 255, 255, 0.95);
  484. box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  485. }
  486. .minimap-header {
  487. display: flex;
  488. align-items: center;
  489. justify-content: space-between;
  490. gap: 8px;
  491. color: #475569;
  492. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  493. font-size: 0.65rem;
  494. font-weight: 700;
  495. }
  496. #minimap-zoom-badge {
  497. color: #0284c7;
  498. }
  499. .board-minimap {
  500. display: block;
  501. inline-size: 220px;
  502. block-size: 44px;
  503. border: 1px solid #cbd5e1;
  504. border-radius: 4px;
  505. background: #f1f5f9;
  506. cursor: crosshair;
  507. touch-action: none;
  508. }
  509. .zoom-hud-dock {
  510. position: absolute;
  511. inset-block-end: 12px;
  512. inset-inline-end: 12px;
  513. z-index: 10;
  514. display: flex;
  515. flex-wrap: wrap;
  516. align-items: center;
  517. gap: 6px;
  518. padding: 6px 10px;
  519. border: 1px solid #cbd5e1;
  520. border-radius: 999px;
  521. background: rgba(255, 255, 255, 0.96);
  522. box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  523. }
  524. .hud-btn {
  525. min-inline-size: 28px;
  526. block-size: 28px;
  527. display: inline-flex;
  528. align-items: center;
  529. justify-content: center;
  530. padding-inline: 7px;
  531. border: 1px solid #cbd5e1;
  532. border-radius: 999px;
  533. background: #f8fafc;
  534. color: #0f172a;
  535. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  536. font-size: 0.76rem;
  537. font-weight: 700;
  538. cursor: pointer;
  539. user-select: none;
  540. }
  541. .hud-btn:hover {
  542. border-color: #94a3b8;
  543. background: #f1f5f9;
  544. }
  545. .hud-btn:active {
  546. background: #e2e8f0;
  547. }
  548. .hud-box-btn[aria-pressed="true"] {
  549. border-color: #0284c7;
  550. background: #e0f2fe;
  551. color: #0369a1;
  552. }
  553. .hud-step-btn {
  554. font-size: 1rem;
  555. line-height: 1;
  556. }
  557. .zoom-slider {
  558. inline-size: 115px;
  559. block-size: 6px;
  560. margin: 0 2px;
  561. accent-color: #0284c7;
  562. cursor: pointer;
  563. }
  564. .hud-zoom-value {
  565. min-inline-size: 46px;
  566. text-align: center;
  567. color: #0f172a;
  568. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  569. font-size: 0.74rem;
  570. font-weight: 700;
  571. }
  572. .hud-presets {
  573. display: inline-flex;
  574. align-items: center;
  575. gap: 3px;
  576. padding-inline-start: 6px;
  577. border-inline-start: 1px solid #e2e8f0;
  578. }
  579. .hud-preset-btn {
  580. block-size: 24px;
  581. padding-inline: 7px;
  582. border: 1px solid transparent;
  583. border-radius: 999px;
  584. background: transparent;
  585. color: #475569;
  586. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  587. font-size: 0.68rem;
  588. font-weight: 700;
  589. cursor: pointer;
  590. }
  591. .hud-preset-btn:hover {
  592. background: #f1f5f9;
  593. color: #0f172a;
  594. }
  595. .hud-preset-btn.is-active {
  596. border-color: #bae6fd;
  597. background: #e0f2fe;
  598. color: #0369a1;
  599. }
  600. .hud-preset-btn.is-fit {
  601. border-color: #cbd5e1;
  602. background: #f8fafc;
  603. color: #0f172a;
  604. }
  605. .hud-preset-btn.is-fit:hover {
  606. border-color: #94a3b8;
  607. background: #e2e8f0;
  608. }
  609. #layer-mask { opacity: 1.0; }
  610. #layer-silk { opacity: 1.0; }
  611. #layer-copper { opacity: 1.0; mix-blend-mode: normal; }
  612. #layer-photo { opacity: 0.72; }
  613. .hotspot {
  614. fill: transparent;
  615. stroke: none;
  616. pointer-events: none;
  617. }
  618. .hotspot.is-selected {
  619. fill: rgba(8, 126, 139, 0.08);
  620. stroke: var(--locator);
  621. stroke-width: 0.28;
  622. stroke-dasharray: 0.8 0.4;
  623. }
  624. .hotspot-resistor {
  625. fill: rgba(99, 102, 241, 0.08);
  626. stroke: rgba(99, 102, 241, 0.55);
  627. cursor: pointer;
  628. pointer-events: all;
  629. stroke-width: 0.15;
  630. vector-effect: non-scaling-stroke;
  631. }
  632. .hotspot-resistor.is-selected,
  633. .hotspot-resistor:hover,
  634. .hotspot-resistor:focus {
  635. fill: rgba(99, 102, 241, 0.22);
  636. stroke: #4f46e5;
  637. }
  638. .resistor-pad-marker {
  639. fill: rgba(99, 102, 241, 0.16);
  640. stroke: #6366f1;
  641. stroke-width: 0.12;
  642. pointer-events: none;
  643. }
  644. .resistor-pad-halo {
  645. fill: none;
  646. stroke: rgba(99, 102, 241, 0.65);
  647. stroke-width: 0.18;
  648. stroke-dasharray: 0.35 0.25;
  649. pointer-events: none;
  650. }
  651. .back-view-tip {
  652. margin: 0.35rem 0 0;
  653. padding: 0.45rem 0.6rem;
  654. border-left: 3px solid var(--risk);
  655. background: var(--risk-soft);
  656. color: var(--ink);
  657. font-size: 0.92rem;
  658. line-height: 1.35;
  659. }
  660. .coverage-hint {
  661. margin: 0.35rem 0 0;
  662. padding: 0.4rem 0.55rem;
  663. background: var(--surface-muted);
  664. border: 1px solid var(--line);
  665. font-size: 0.9rem;
  666. color: var(--ink-muted);
  667. }
  668. .assembly-badge {
  669. display: inline-block;
  670. margin-left: 0.35rem;
  671. padding: 0.05rem 0.35rem;
  672. border-radius: 0.2rem;
  673. background: var(--danger-soft);
  674. color: var(--danger);
  675. font-size: 0.8rem;
  676. }
  677. .pin-hit {
  678. fill: transparent;
  679. stroke: none;
  680. cursor: pointer;
  681. pointer-events: all;
  682. }
  683. #board-svg.pins-interactive .pin-hit {
  684. pointer-events: all;
  685. }
  686. .pin-dot {
  687. fill: rgba(251, 191, 36, 0.28);
  688. stroke: #b45309;
  689. stroke-width: 1.15;
  690. vector-effect: non-scaling-stroke;
  691. pointer-events: none;
  692. transition: stroke 0.15s ease, fill 0.15s ease;
  693. }
  694. .pin-group.resistor-pad .pin-dot {
  695. fill: rgba(99, 102, 241, 0.16);
  696. stroke: #4f46e5;
  697. stroke-width: 1;
  698. }
  699. .pin-group.role-shield .pin-dot {
  700. fill: rgba(182, 95, 5, 0.15);
  701. stroke: var(--risk);
  702. stroke-width: 1;
  703. stroke-dasharray: 2 1;
  704. }
  705. .pin-group.role-mechanical .pin-dot {
  706. fill: transparent;
  707. stroke: none;
  708. }
  709. .pin-group.role-unknown .pin-dot {
  710. fill: rgba(180, 35, 24, 0.12);
  711. stroke: var(--danger);
  712. stroke-dasharray: 1.5 1.5;
  713. }
  714. .pin-group:hover .pin-dot,
  715. .pin-group:focus .pin-dot {
  716. fill: rgba(14, 165, 233, 0.35);
  717. stroke: #0284c7;
  718. stroke-width: 2.2;
  719. }
  720. .pin-group.is-selected .pin-dot {
  721. fill: rgba(245, 158, 11, 0.45);
  722. stroke: #d97706;
  723. stroke-width: 2.6;
  724. }
  725. .net-highlight {
  726. fill: rgba(99, 102, 241, 0.28);
  727. stroke: #4f46e5;
  728. stroke-width: 1.8;
  729. vector-effect: non-scaling-stroke;
  730. pointer-events: none;
  731. }
  732. .selected-pin-marker {
  733. fill: rgba(16, 185, 129, 0.36);
  734. stroke: #059669;
  735. stroke-width: 2.2;
  736. vector-effect: non-scaling-stroke;
  737. pointer-events: none;
  738. }
  739. .net-highlight-note {
  740. display: flex;
  741. flex-wrap: wrap;
  742. align-items: center;
  743. justify-content: space-between;
  744. gap: 8px;
  745. }
  746. .net-highlight-toggle-btn {
  747. padding: 3px 9px;
  748. border-radius: 999px;
  749. border: 1px solid #cbd5e1;
  750. background: #ffffff;
  751. color: #334155;
  752. font-size: 0.75rem;
  753. font-weight: 600;
  754. cursor: pointer;
  755. transition: all 0.15s ease;
  756. }
  757. .net-highlight-toggle-btn:hover {
  758. border-color: #6366f1;
  759. color: #4f46e5;
  760. background: #eef2ff;
  761. }
  762. .net-highlight-toggle-btn.is-active {
  763. border-color: #4f46e5;
  764. background: #4f46e5;
  765. color: #ffffff;
  766. }
  767. .selection-reticle {
  768. fill: rgba(2, 132, 199, 0.06);
  769. stroke: #0284c7;
  770. stroke-width: 2.2;
  771. vector-effect: non-scaling-stroke;
  772. pointer-events: none;
  773. }
  774. .selection-cross {
  775. stroke: #0284c7;
  776. stroke-width: 1.8;
  777. vector-effect: non-scaling-stroke;
  778. }
  779. .board-loading {
  780. position: absolute;
  781. inset: 0;
  782. display: grid;
  783. place-items: center;
  784. color: var(--ink-muted);
  785. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  786. font-size: 0.82rem;
  787. pointer-events: none;
  788. }
  789. .board-tooltip {
  790. position: absolute;
  791. z-index: 15;
  792. max-inline-size: min(300px, calc(100% - 24px));
  793. padding: 9px 11px;
  794. background: rgba(24, 32, 29, 0.96);
  795. border: 1px solid rgba(255, 255, 255, 0.16);
  796. border-radius: 5px;
  797. color: #ffffff;
  798. box-shadow: 0 8px 22px rgba(24, 32, 29, 0.25);
  799. font-size: 0.76rem;
  800. line-height: 1.45;
  801. pointer-events: none;
  802. }
  803. .tooltip-key {
  804. color: #99e1e6;
  805. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  806. font-weight: 700;
  807. }
  808. .tooltip-role {
  809. color: #ffd08a;
  810. font-size: 0.68rem;
  811. font-weight: 700;
  812. }
  813. .coordinate-rail {
  814. position: absolute;
  815. inset-block-start: 7px;
  816. inset-inline: 12px;
  817. display: flex;
  818. justify-content: space-between;
  819. color: rgba(24, 32, 29, 0.55);
  820. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  821. font-size: 0.62rem;
  822. pointer-events: none;
  823. }
  824. .board-footer {
  825. grid-area: footer;
  826. display: grid;
  827. grid-template-columns: 1fr auto 1fr;
  828. align-items: center;
  829. gap: 12px;
  830. padding-inline: 14px;
  831. color: var(--ink-muted);
  832. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  833. font-size: 0.7rem;
  834. }
  835. .board-footer > span:last-child {
  836. overflow: hidden;
  837. text-align: end;
  838. text-overflow: ellipsis;
  839. white-space: nowrap;
  840. }
  841. .footer-center-cluster {
  842. display: inline-flex;
  843. align-items: center;
  844. gap: 8px;
  845. }
  846. .perf-badge {
  847. display: inline-flex;
  848. align-items: center;
  849. gap: 4px;
  850. padding: 2px 9px;
  851. border: 1px solid #a7f3d0;
  852. border-radius: 999px;
  853. background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  854. color: #047857;
  855. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  856. font-size: 0.66rem;
  857. font-weight: 700;
  858. cursor: pointer;
  859. transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  860. }
  861. .perf-badge:hover {
  862. border-color: #34d399;
  863. background: #d1fae5;
  864. }
  865. .perf-badge.is-svg-mode {
  866. border-color: #cbd5e1;
  867. background: #f8fafc;
  868. color: #475569;
  869. }
  870. .detail-panel {
  871. min-inline-size: 0;
  872. min-block-size: 0;
  873. display: grid;
  874. grid-template-rows: auto minmax(0, 1fr);
  875. background: var(--surface);
  876. border-inline-start: 1px solid var(--line);
  877. overflow: hidden;
  878. }
  879. .drawer-handle {
  880. display: none;
  881. }
  882. .detail-tabs {
  883. display: grid;
  884. grid-template-columns: repeat(4, minmax(0, 1fr));
  885. border-block-end: 1px solid var(--line);
  886. }
  887. .detail-tabs button {
  888. min-block-size: 46px;
  889. padding-inline: 4px;
  890. border: 0;
  891. border-block-end: 3px solid transparent;
  892. background: var(--surface);
  893. color: var(--ink-muted);
  894. font-size: 0.78rem;
  895. font-weight: 650;
  896. white-space: nowrap;
  897. overflow: hidden;
  898. text-overflow: ellipsis;
  899. }
  900. .detail-tabs button[aria-selected="true"] {
  901. border-block-end-color: var(--locator);
  902. color: var(--ink);
  903. }
  904. .panel-content {
  905. min-block-size: 0;
  906. overflow: auto;
  907. padding: 18px;
  908. scrollbar-width: thin;
  909. }
  910. .empty-panel {
  911. min-block-size: 100%;
  912. display: grid;
  913. place-content: center;
  914. gap: 8px;
  915. color: var(--ink-muted);
  916. text-align: center;
  917. }
  918. .empty-panel strong {
  919. color: var(--ink);
  920. font-size: 0.98rem;
  921. }
  922. .empty-stats {
  923. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  924. font-size: 0.76rem;
  925. }
  926. .detail-heading {
  927. display: flex;
  928. align-items: flex-start;
  929. justify-content: space-between;
  930. gap: 12px;
  931. padding-block-end: 14px;
  932. border-block-end: 1px solid var(--line);
  933. }
  934. .detail-reference {
  935. margin: 0;
  936. 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;
  937. font-size: 1.35rem;
  938. font-weight: 700;
  939. }
  940. .detail-summary {
  941. margin: 5px 0 0;
  942. color: var(--ink-muted);
  943. font-size: 0.82rem;
  944. line-height: 1.45;
  945. }
  946. .category-tag,
  947. .evidence-tag {
  948. min-block-size: 26px;
  949. display: inline-flex;
  950. align-items: center;
  951. padding-inline: 8px;
  952. border: 1px solid var(--line);
  953. border-radius: 999px;
  954. background: var(--surface-muted);
  955. color: var(--ink-muted);
  956. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  957. font-size: 0.68rem;
  958. white-space: nowrap;
  959. }
  960. .evidence-tag.verified {
  961. background: var(--verified-soft);
  962. border-color: #9ac6ad;
  963. color: var(--verified);
  964. }
  965. .side-tag {
  966. min-block-size: 26px;
  967. display: inline-flex;
  968. align-items: center;
  969. padding-inline: 8px;
  970. border: 1px solid #c9a227;
  971. border-radius: 999px;
  972. background: #fff8df;
  973. color: #7a5b00;
  974. font-size: 0.68rem;
  975. white-space: nowrap;
  976. }
  977. .evidence-conflict {
  978. margin-top: 12px;
  979. padding: 10px;
  980. border: 1px solid #d9a09a;
  981. border-radius: 8px;
  982. background: #fff5f3;
  983. }
  984. .evidence-conflict-note {
  985. margin-bottom: 8px;
  986. }
  987. .search-help {
  988. margin-top: 4px;
  989. font-size: 0.72rem;
  990. color: var(--ink-muted);
  991. }
  992. .search-help summary {
  993. cursor: pointer;
  994. user-select: none;
  995. }
  996. .search-help-body {
  997. display: flex;
  998. flex-wrap: wrap;
  999. gap: 6px;
  1000. margin-top: 6px;
  1001. align-items: center;
  1002. }
  1003. .help-chip,
  1004. .term {
  1005. border: 1px solid var(--line);
  1006. border-radius: 999px;
  1007. background: var(--surface-muted);
  1008. padding: 2px 8px;
  1009. font: inherit;
  1010. cursor: pointer;
  1011. }
  1012. .help-chip:hover,
  1013. .term:hover {
  1014. border-color: var(--accent, #3a6ea5);
  1015. }
  1016. .help-glossary {
  1017. flex-basis: 100%;
  1018. margin: 4px 0 0;
  1019. line-height: 1.5;
  1020. }
  1021. .pin-row.is-conflict {
  1022. opacity: 0.7;
  1023. cursor: not-allowed;
  1024. }
  1025. .net-highlight.net-resistor {
  1026. fill: rgba(196, 120, 40, 0.28);
  1027. stroke: #c47828;
  1028. }
  1029. .detail-facts {
  1030. display: grid;
  1031. grid-template-columns: 1fr 1fr;
  1032. gap: 0;
  1033. margin: 14px 0;
  1034. border-block: 1px solid var(--line);
  1035. }
  1036. .fact {
  1037. min-inline-size: 0;
  1038. padding: 10px 8px;
  1039. border-block-end: 1px solid var(--line);
  1040. }
  1041. .fact:nth-child(odd) {
  1042. border-inline-end: 1px solid var(--line);
  1043. }
  1044. .fact:nth-last-child(-n + 2) {
  1045. border-block-end: 0;
  1046. }
  1047. .fact-label {
  1048. display: block;
  1049. margin-block-end: 4px;
  1050. color: var(--ink-muted);
  1051. font-size: 0.68rem;
  1052. }
  1053. .fact-value {
  1054. display: block;
  1055. overflow-wrap: anywhere;
  1056. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1057. font-size: 0.76rem;
  1058. }
  1059. .section-title {
  1060. margin: 18px 0 8px;
  1061. color: var(--ink-muted);
  1062. font-size: 0.72rem;
  1063. font-weight: 700;
  1064. text-transform: uppercase;
  1065. }
  1066. .connector-layout {
  1067. margin-block-start: 16px;
  1068. padding: 10px;
  1069. border: 1px solid var(--line);
  1070. border-radius: 6px;
  1071. background: var(--surface-muted);
  1072. }
  1073. .connector-layout-header {
  1074. display: flex;
  1075. align-items: center;
  1076. justify-content: space-between;
  1077. gap: 8px;
  1078. }
  1079. .connector-layout-title {
  1080. margin: 0;
  1081. }
  1082. .connector-orientation {
  1083. display: grid;
  1084. justify-items: center;
  1085. gap: 4px;
  1086. margin-block-start: 10px;
  1087. }
  1088. .connector-axis-row {
  1089. inline-size: 100%;
  1090. display: grid;
  1091. grid-template-columns: 18px minmax(0, 1fr) 18px;
  1092. align-items: center;
  1093. gap: 4px;
  1094. }
  1095. .connector-axis {
  1096. color: var(--ink-muted);
  1097. font-size: 0.66rem;
  1098. font-weight: 700;
  1099. text-align: center;
  1100. }
  1101. .connector-grid {
  1102. min-inline-size: 0;
  1103. display: grid;
  1104. gap: 5px;
  1105. }
  1106. .connector-grid-row {
  1107. min-inline-size: 0;
  1108. display: grid;
  1109. grid-template-columns: repeat(var(--connector-columns), minmax(0, 1fr));
  1110. gap: 5px;
  1111. }
  1112. .connector-contact {
  1113. min-inline-size: 0;
  1114. min-block-size: 42px;
  1115. border: 1px solid var(--line-strong);
  1116. border-radius: 4px;
  1117. background: var(--surface);
  1118. color: var(--ink);
  1119. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1120. font-size: 0.78rem;
  1121. font-weight: 700;
  1122. }
  1123. .connector-contact:hover,
  1124. .connector-contact.is-selected {
  1125. border-color: var(--locator);
  1126. background: var(--locator-soft);
  1127. color: #07545c;
  1128. }
  1129. .connector-layout-meta {
  1130. margin-block-start: 9px;
  1131. overflow-wrap: anywhere;
  1132. color: var(--ink-muted);
  1133. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1134. font-size: 0.66rem;
  1135. line-height: 1.4;
  1136. }
  1137. .connector-perspective-note {
  1138. margin-block-start: 8px;
  1139. padding-block-start: 8px;
  1140. border-block-start: 1px solid var(--line);
  1141. color: #07545c;
  1142. font-size: 0.7rem;
  1143. font-weight: 650;
  1144. line-height: 1.45;
  1145. }
  1146. .pin-list {
  1147. border-block-start: 1px solid var(--line);
  1148. }
  1149. .pin-row {
  1150. inline-size: 100%;
  1151. min-block-size: 54px;
  1152. display: grid;
  1153. grid-template-columns: 42px minmax(0, 1fr) auto;
  1154. align-items: center;
  1155. gap: 9px;
  1156. padding: 7px 5px;
  1157. border: 0;
  1158. border-block-end: 1px solid var(--line);
  1159. background: var(--surface);
  1160. color: var(--ink);
  1161. text-align: start;
  1162. }
  1163. .pin-row:hover,
  1164. .pin-row.is-selected {
  1165. background: var(--locator-soft);
  1166. }
  1167. .pin-number {
  1168. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1169. font-weight: 700;
  1170. }
  1171. .pin-primary {
  1172. min-inline-size: 0;
  1173. }
  1174. .pin-net {
  1175. display: block;
  1176. margin-block-start: 3px;
  1177. overflow: hidden;
  1178. color: var(--ink-muted);
  1179. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1180. font-size: 0.77rem;
  1181. text-overflow: ellipsis;
  1182. white-space: nowrap;
  1183. }
  1184. .pin-summary {
  1185. display: block;
  1186. overflow: hidden;
  1187. color: var(--ink);
  1188. font-weight: 650;
  1189. line-height: 1.35;
  1190. font-size: 0.7rem;
  1191. text-overflow: ellipsis;
  1192. white-space: nowrap;
  1193. }
  1194. .pin-direction {
  1195. color: var(--ink-muted);
  1196. font-size: 0.68rem;
  1197. white-space: nowrap;
  1198. }
  1199. .pin-detail {
  1200. margin-block-start: 16px;
  1201. padding-block-start: 15px;
  1202. border-block-start: 2px solid var(--locator);
  1203. }
  1204. .pin-detail-header {
  1205. display: flex;
  1206. align-items: center;
  1207. justify-content: space-between;
  1208. gap: 10px;
  1209. }
  1210. .pin-detail-header h3 {
  1211. margin: 0;
  1212. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1213. font-size: 1rem;
  1214. }
  1215. .programming-guide {
  1216. margin-block-start: 14px;
  1217. padding: 2px 0 2px 14px;
  1218. border-inline-start: 4px solid var(--line-strong);
  1219. }
  1220. .programming-guide.status-verified_fpga,
  1221. .programming-guide.status-verified_mcu {
  1222. border-inline-start-color: var(--verified);
  1223. }
  1224. .programming-guide.status-board_only {
  1225. border-inline-start-color: var(--risk);
  1226. }
  1227. .programming-guide.status-not_programmable,
  1228. .programming-guide.status-unknown {
  1229. border-inline-start-color: var(--danger);
  1230. }
  1231. .programming-guide-heading {
  1232. display: flex;
  1233. align-items: center;
  1234. justify-content: space-between;
  1235. gap: 10px;
  1236. }
  1237. .programming-title {
  1238. margin-block-start: 0;
  1239. color: var(--ink);
  1240. font-size: 0.78rem;
  1241. text-transform: none;
  1242. }
  1243. .programming-conclusion {
  1244. margin: 7px 0 0;
  1245. color: var(--ink);
  1246. font-size: 0.84rem;
  1247. font-weight: 700;
  1248. line-height: 1.55;
  1249. }
  1250. .programming-copy {
  1251. margin: 0;
  1252. color: var(--ink-muted);
  1253. font-size: 0.74rem;
  1254. line-height: 1.55;
  1255. }
  1256. .guidance-list,
  1257. .component-list {
  1258. margin: 0;
  1259. padding: 0;
  1260. list-style: none;
  1261. }
  1262. .guidance-list li,
  1263. .component-list li {
  1264. position: relative;
  1265. padding: 5px 0 5px 15px;
  1266. color: var(--ink);
  1267. font-size: 0.72rem;
  1268. line-height: 1.5;
  1269. overflow-wrap: anywhere;
  1270. }
  1271. .guidance-list li::before,
  1272. .component-list li::before {
  1273. content: "";
  1274. position: absolute;
  1275. inset-inline-start: 1px;
  1276. inset-block-start: 11px;
  1277. inline-size: 6px;
  1278. block-size: 6px;
  1279. border-radius: 50%;
  1280. background: var(--locator);
  1281. }
  1282. .constraint-list li {
  1283. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1284. }
  1285. .risk-list li::before {
  1286. background: var(--risk);
  1287. }
  1288. .component-list {
  1289. display: grid;
  1290. grid-template-columns: 1fr 1fr;
  1291. gap: 0 10px;
  1292. }
  1293. .component-list li {
  1294. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1295. }
  1296. .path-list,
  1297. .source-list {
  1298. margin: 0;
  1299. padding: 0;
  1300. list-style: none;
  1301. }
  1302. .path-list li {
  1303. position: relative;
  1304. padding: 8px 8px 8px 18px;
  1305. border-inline-start: 2px solid var(--line);
  1306. color: var(--ink);
  1307. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1308. font-size: 0.73rem;
  1309. overflow-wrap: anywhere;
  1310. }
  1311. .path-list li::before {
  1312. content: "";
  1313. position: absolute;
  1314. inset-inline-start: -5px;
  1315. inset-block-start: 13px;
  1316. inline-size: 8px;
  1317. block-size: 8px;
  1318. background: var(--locator);
  1319. border-radius: 50%;
  1320. }
  1321. .source-list li {
  1322. padding: 6px 0;
  1323. border-block-end: 1px solid var(--line);
  1324. color: var(--ink-muted);
  1325. font-size: 0.7rem;
  1326. line-height: 1.45;
  1327. overflow-wrap: anywhere;
  1328. }
  1329. .risk-note,
  1330. .info-note {
  1331. margin-block-start: 12px;
  1332. padding: 9px 10px;
  1333. border-inline-start: 3px solid var(--risk);
  1334. background: var(--risk-soft);
  1335. color: #704000;
  1336. font-size: 0.72rem;
  1337. line-height: 1.5;
  1338. }
  1339. .info-note {
  1340. border-inline-start-color: var(--locator);
  1341. background: var(--locator-soft);
  1342. color: #07545c;
  1343. }
  1344. .adc-controls {
  1345. display: grid;
  1346. grid-template-columns: minmax(0, 1fr) 44px;
  1347. gap: 6px;
  1348. margin-block-start: 8px;
  1349. }
  1350. .adc-controls input,
  1351. .candidate-controls select {
  1352. min-inline-size: 0;
  1353. min-block-size: 44px;
  1354. padding-inline: 10px;
  1355. border: 1px solid var(--line-strong);
  1356. border-radius: 5px;
  1357. background: var(--surface);
  1358. color: var(--ink);
  1359. }
  1360. .copy-button {
  1361. min-inline-size: 44px;
  1362. min-block-size: 44px;
  1363. border: 1px solid var(--line-strong);
  1364. border-radius: 5px;
  1365. background: var(--surface);
  1366. color: var(--ink);
  1367. font-size: 1.05rem;
  1368. }
  1369. .copy-button:disabled,
  1370. .adc-controls input:disabled {
  1371. cursor: not-allowed;
  1372. opacity: 0.5;
  1373. }
  1374. .copy-status {
  1375. min-block-size: 20px;
  1376. margin-block-start: 5px;
  1377. color: var(--ink-muted);
  1378. font-size: 0.68rem;
  1379. }
  1380. .candidate-controls {
  1381. display: grid;
  1382. gap: 7px;
  1383. padding-block-end: 15px;
  1384. border-block-end: 1px solid var(--line);
  1385. }
  1386. .candidate-controls label {
  1387. color: var(--ink-muted);
  1388. font-size: 0.72rem;
  1389. font-weight: 700;
  1390. }
  1391. .candidate-list {
  1392. margin-block-start: 12px;
  1393. }
  1394. .candidate-row {
  1395. inline-size: 100%;
  1396. display: grid;
  1397. gap: 6px;
  1398. padding: 12px 4px;
  1399. border: 0;
  1400. border-block-end: 1px solid var(--line);
  1401. background: var(--surface);
  1402. color: var(--ink);
  1403. text-align: start;
  1404. }
  1405. .candidate-row:hover {
  1406. background: var(--locator-soft);
  1407. }
  1408. .candidate-key {
  1409. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1410. font-size: 0.82rem;
  1411. font-weight: 700;
  1412. }
  1413. .candidate-reason,
  1414. .candidate-warning {
  1415. color: var(--ink-muted);
  1416. font-size: 0.7rem;
  1417. line-height: 1.45;
  1418. }
  1419. .candidate-warning {
  1420. color: #704000;
  1421. }
  1422. @media (max-width: 1180px) {
  1423. :root { --detail-width: 350px; }
  1424. .topbar { grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.4fr) auto; gap: 10px; }
  1425. .layer-controls { gap: 9px; }
  1426. }
  1427. @media (max-width: 860px) {
  1428. :root { --topbar-height: 116px; }
  1429. .topbar {
  1430. grid-template-columns: minmax(0, 1fr);
  1431. gap: 8px 10px;
  1432. padding: 8px 10px;
  1433. }
  1434. .product-title { font-size: 0.92rem; }
  1435. .product-meta { font-size: 0.66rem; }
  1436. .search-block { grid-column: 1; grid-row: 3; }
  1437. .status-cluster {
  1438. grid-column: 1;
  1439. grid-row: 2;
  1440. min-inline-size: 0;
  1441. flex-wrap: wrap;
  1442. }
  1443. .version-select-cluster,
  1444. .version-select { min-inline-size: 0; max-inline-size: 100%; }
  1445. .status-badge { max-inline-size: 98px; overflow: hidden; text-overflow: ellipsis; }
  1446. .workspace {
  1447. display: block;
  1448. min-block-size: 0;
  1449. }
  1450. .board-pane {
  1451. block-size: 100%;
  1452. padding-block-end: 48px;
  1453. }
  1454. .board-toolbar {
  1455. gap: 12px;
  1456. padding-inline: 8px;
  1457. }
  1458. .layer-controls label { font-size: 0.7rem; }
  1459. .board-viewport { margin: 8px; }
  1460. .board-footer { padding-inline: 10px; }
  1461. .drawer-toggle {
  1462. display: inline-grid;
  1463. }
  1464. .detail-panel {
  1465. position: fixed;
  1466. z-index: 40;
  1467. inset-inline: 0;
  1468. inset-block-end: 0;
  1469. block-size: min(62dvh, 560px);
  1470. display: grid;
  1471. grid-template-rows: 16px auto minmax(0, 1fr);
  1472. border: 1px solid var(--line-strong);
  1473. border-block-end: 0;
  1474. border-radius: 8px 8px 0 0;
  1475. box-shadow: 0 -12px 32px rgba(24, 32, 29, 0.2);
  1476. transform: translateY(0);
  1477. transition: transform 180ms ease;
  1478. }
  1479. .app-shell.detail-collapsed .detail-panel {
  1480. transform: translateY(calc(100% - 50px));
  1481. }
  1482. .app-shell.detail-collapsed .drawer-toggle span {
  1483. display: inline-block;
  1484. transform: rotate(180deg);
  1485. }
  1486. .drawer-handle {
  1487. display: block;
  1488. inline-size: 42px;
  1489. block-size: 4px;
  1490. align-self: center;
  1491. justify-self: center;
  1492. background: var(--line-strong);
  1493. border-radius: 3px;
  1494. }
  1495. .detail-tabs button { min-block-size: 34px; }
  1496. .panel-content { padding: 14px; }
  1497. }
  1498. @media (max-width: 460px) {
  1499. .product-mark { block-size: 30px; }
  1500. .product-title { max-inline-size: 205px; }
  1501. .status-badge { display: none; }
  1502. .search-field input { font-size: 0.82rem; }
  1503. .board-toolbar { min-block-size: 50px; }
  1504. .layer-controls { display: none; }
  1505. .segmented span { min-inline-size: 42px; padding-inline: 6px; }
  1506. .board-footer { grid-template-columns: 1fr auto; }
  1507. .board-footer span:last-child { display: none; }
  1508. .coordinate-rail { font-size: 0.56rem; }
  1509. .component-list { grid-template-columns: 1fr; }
  1510. }
  1511. .version-select-cluster {
  1512. display: flex;
  1513. align-items: center;
  1514. }
  1515. .version-select {
  1516. padding: 5px 10px;
  1517. font-size: 0.84rem;
  1518. font-weight: 600;
  1519. color: var(--ink);
  1520. background: var(--surface-muted);
  1521. border: 1px solid var(--line-strong);
  1522. border-radius: 6px;
  1523. outline: none;
  1524. cursor: pointer;
  1525. transition: border-color 0.15s ease, box-shadow 0.15s ease;
  1526. }
  1527. .version-select:hover,
  1528. .version-select:focus {
  1529. border-color: var(--locator);
  1530. box-shadow: 0 0 0 2px var(--locator-soft);
  1531. }
  1532. .schematic-top-link {
  1533. display: inline-flex;
  1534. align-items: center;
  1535. gap: 4px;
  1536. padding: 5px 12px;
  1537. font-size: 0.84rem;
  1538. font-weight: 600;
  1539. text-decoration: none;
  1540. color: var(--locator);
  1541. background: var(--locator-soft);
  1542. border: 1px solid color-mix(in srgb, var(--locator) 35%, transparent);
  1543. border-radius: 6px;
  1544. white-space: nowrap;
  1545. transition: background 0.15s ease, transform 0.15s ease;
  1546. }
  1547. .schematic-top-link:hover {
  1548. background: color-mix(in srgb, var(--locator) 20%, white);
  1549. transform: translateY(-1px);
  1550. }
  1551. .schematic-panel-body {
  1552. display: flex;
  1553. flex-direction: column;
  1554. gap: 14px;
  1555. }
  1556. .schematic-header-row {
  1557. display: flex;
  1558. justify-content: space-between;
  1559. align-items: center;
  1560. flex-wrap: wrap;
  1561. gap: 8px;
  1562. padding-bottom: 8px;
  1563. border-bottom: 1px solid var(--line);
  1564. }
  1565. .schematic-title {
  1566. font-size: 0.95rem;
  1567. font-weight: 700;
  1568. color: var(--ink);
  1569. }
  1570. .schematic-ext-link {
  1571. font-size: 0.8rem;
  1572. color: var(--locator);
  1573. text-decoration: underline;
  1574. }
  1575. .schematic-meta-box {
  1576. display: flex;
  1577. flex-direction: column;
  1578. gap: 12px;
  1579. }
  1580. .schematic-block {
  1581. padding: 10px 12px;
  1582. background: var(--surface-muted);
  1583. border: 1px solid var(--line);
  1584. border-radius: 6px;
  1585. font-size: 0.82rem;
  1586. line-height: 1.5;
  1587. }
  1588. .schematic-block strong {
  1589. display: block;
  1590. margin-bottom: 6px;
  1591. color: var(--ink);
  1592. }
  1593. .schematic-list {
  1594. margin: 0;
  1595. padding-left: 18px;
  1596. color: var(--ink-muted);
  1597. }
  1598. .schematic-list li {
  1599. margin-bottom: 3px;
  1600. }
  1601. .schematic-embed-frame {
  1602. margin-top: 8px;
  1603. width: 100%;
  1604. height: 480px;
  1605. border: 1px solid var(--line);
  1606. border-radius: 6px;
  1607. overflow: hidden;
  1608. }
  1609. .pdf-viewer-frame {
  1610. width: 100%;
  1611. height: 100%;
  1612. border: none;
  1613. }
  1614. .peripheral-top-btn {
  1615. cursor: pointer;
  1616. }
  1617. .hotspot.is-peripheral-match {
  1618. fill: rgba(16, 185, 129, 0.14);
  1619. stroke: #059669;
  1620. stroke-width: 0.35;
  1621. stroke-dasharray: 0.7 0.35;
  1622. }
  1623. .detail-badge-cluster {
  1624. display: flex;
  1625. flex-direction: column;
  1626. align-items: flex-end;
  1627. gap: 4px;
  1628. }
  1629. .category-tag.is-used-tag {
  1630. background: var(--verified-soft);
  1631. border-color: #9ac6ad;
  1632. color: var(--verified);
  1633. }
  1634. .category-tag.is-spare-tag {
  1635. background: var(--risk-soft);
  1636. border-color: #e7b768;
  1637. color: #874500;
  1638. }
  1639. .logical-pin-badge {
  1640. display: inline-flex;
  1641. align-items: center;
  1642. margin-block-start: 3px;
  1643. padding: 2px 7px;
  1644. border-radius: 4px;
  1645. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1646. font-size: 0.72rem;
  1647. font-weight: 700;
  1648. line-height: 1.35;
  1649. overflow-wrap: anywhere;
  1650. }
  1651. .logical-pin-badge.is-fpga {
  1652. background: #e0f2fe;
  1653. border: 1px solid #7dd3fc;
  1654. color: #0369a1;
  1655. }
  1656. .logical-pin-badge.is-mcu {
  1657. background: #f3e8ff;
  1658. border: 1px solid #d8b4fe;
  1659. color: #6b21a8;
  1660. }
  1661. .logical-pin-badge.is-gnd {
  1662. background: #f1f5f9;
  1663. border: 1px solid #cbd5e1;
  1664. color: #475569;
  1665. }
  1666. .logical-pin-badge.is-power {
  1667. background: #fef3c7;
  1668. border: 1px solid #fcd34d;
  1669. color: #92400e;
  1670. }
  1671. .logical-pin-summary-box {
  1672. margin-block-start: 12px;
  1673. padding: 10px 12px;
  1674. background: #f8fafc;
  1675. border: 1px solid #bae6fd;
  1676. border-inline-start: 4px solid var(--locator);
  1677. border-radius: 6px;
  1678. display: flex;
  1679. flex-direction: column;
  1680. gap: 5px;
  1681. }
  1682. .logical-pin-box-title {
  1683. font-size: 0.72rem;
  1684. font-weight: 700;
  1685. color: var(--locator);
  1686. }
  1687. .logical-pin-role {
  1688. font-size: 0.78rem;
  1689. font-weight: 650;
  1690. color: var(--ink);
  1691. }
  1692. .logical-pin-def {
  1693. font-size: 0.73rem;
  1694. color: var(--ink-muted);
  1695. line-height: 1.45;
  1696. }
  1697. .peripheral-panel {
  1698. display: flex;
  1699. flex-direction: column;
  1700. gap: 12px;
  1701. }
  1702. .peripheral-sync-box {
  1703. padding: 10px 12px;
  1704. background: var(--surface-muted);
  1705. border: 1px solid var(--line);
  1706. border-radius: 6px;
  1707. display: flex;
  1708. flex-direction: column;
  1709. gap: 6px;
  1710. }
  1711. .peripheral-sync-header {
  1712. display: flex;
  1713. align-items: center;
  1714. justify-content: space-between;
  1715. gap: 8px;
  1716. flex-wrap: wrap;
  1717. font-size: 0.82rem;
  1718. }
  1719. .peripheral-sync-note {
  1720. font-family: Consolas, "Cascadia Mono", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", monospace;
  1721. font-size: 0.68rem;
  1722. color: var(--ink-muted);
  1723. line-height: 1.45;
  1724. }
  1725. .peripheral-chip-section {
  1726. display: flex;
  1727. flex-direction: column;
  1728. gap: 6px;
  1729. }
  1730. .peripheral-sub-label {
  1731. font-size: 0.72rem;
  1732. font-weight: 700;
  1733. color: var(--ink-muted);
  1734. }
  1735. .peripheral-quick-chips {
  1736. display: flex;
  1737. flex-wrap: wrap;
  1738. gap: 5px;
  1739. }
  1740. .peripheral-chip {
  1741. padding: 4px 9px;
  1742. border: 1px solid var(--line-strong);
  1743. border-radius: 999px;
  1744. background: var(--surface);
  1745. color: var(--ink);
  1746. font-size: 0.72rem;
  1747. font-weight: 600;
  1748. }
  1749. .peripheral-chip:hover,
  1750. .peripheral-chip.is-active {
  1751. background: var(--locator);
  1752. border-color: var(--locator);
  1753. color: #ffffff;
  1754. }
  1755. .peripheral-chip.is-reset {
  1756. background: var(--danger-soft);
  1757. border-color: #f3a6a0;
  1758. color: var(--danger);
  1759. }
  1760. .peripheral-filter-bar {
  1761. display: flex;
  1762. flex-direction: column;
  1763. gap: 8px;
  1764. }
  1765. .peripheral-search-input {
  1766. inline-size: 100%;
  1767. min-block-size: 38px;
  1768. padding: 6px 10px;
  1769. border: 1px solid var(--line-strong);
  1770. border-radius: 6px;
  1771. background: var(--surface);
  1772. color: var(--ink);
  1773. font-size: 0.8rem;
  1774. }
  1775. .peripheral-search-input:focus {
  1776. border-color: var(--locator);
  1777. box-shadow: 0 0 0 2px var(--locator-soft);
  1778. outline: none;
  1779. }
  1780. .peripheral-usage-tabs {
  1781. display: grid;
  1782. grid-template-columns: repeat(3, minmax(0, 1fr));
  1783. border: 1px solid var(--line);
  1784. border-radius: 6px;
  1785. overflow: hidden;
  1786. }
  1787. .peripheral-usage-btn {
  1788. min-block-size: 32px;
  1789. border: 0;
  1790. border-inline-end: 1px solid var(--line);
  1791. background: var(--surface-muted);
  1792. color: var(--ink-muted);
  1793. font-size: 0.73rem;
  1794. font-weight: 650;
  1795. }
  1796. .peripheral-usage-btn:last-child {
  1797. border-inline-end: 0;
  1798. }
  1799. .peripheral-usage-btn.is-active {
  1800. background: var(--ink);
  1801. color: var(--surface);
  1802. }
  1803. .peripheral-category-pills {
  1804. display: flex;
  1805. flex-wrap: wrap;
  1806. gap: 5px;
  1807. }
  1808. .peripheral-cat-btn {
  1809. padding: 4px 8px;
  1810. border: 1px solid var(--line);
  1811. border-radius: 5px;
  1812. background: var(--surface-muted);
  1813. color: var(--ink-muted);
  1814. font-size: 0.71rem;
  1815. font-weight: 650;
  1816. }
  1817. .peripheral-cat-btn:hover,
  1818. .peripheral-cat-btn.is-active {
  1819. background: var(--locator-soft);
  1820. border-color: var(--locator);
  1821. color: #07545c;
  1822. }
  1823. .peripheral-result-header {
  1824. display: flex;
  1825. justify-content: space-between;
  1826. align-items: center;
  1827. padding-block: 4px;
  1828. border-block-end: 1px solid var(--line);
  1829. font-size: 0.72rem;
  1830. color: var(--ink-muted);
  1831. }
  1832. .peripheral-card-list {
  1833. display: flex;
  1834. flex-direction: column;
  1835. gap: 10px;
  1836. }
  1837. .peripheral-card {
  1838. border: 1px solid var(--line);
  1839. border-radius: 7px;
  1840. background: var(--surface);
  1841. overflow: hidden;
  1842. }
  1843. .peripheral-card.is-selected {
  1844. border-color: var(--locator);
  1845. box-shadow: 0 0 0 2px var(--locator-soft);
  1846. }
  1847. .peripheral-card.is-spare {
  1848. border-style: dashed;
  1849. }
  1850. .peripheral-card-head {
  1851. display: flex;
  1852. justify-content: space-between;
  1853. align-items: center;
  1854. gap: 6px;
  1855. padding: 8px 10px;
  1856. background: var(--surface-muted);
  1857. border-block-end: 1px solid var(--line);
  1858. }
  1859. .peripheral-card-title-group {
  1860. display: flex;
  1861. align-items: center;
  1862. gap: 6px;
  1863. flex-wrap: wrap;
  1864. }
  1865. .peripheral-ref-btn {
  1866. padding: 2px 7px;
  1867. border: 1px solid var(--locator);
  1868. border-radius: 4px;
  1869. background: var(--locator-soft);
  1870. color: #07545c;
  1871. font-family: Consolas, "Cascadia Mono", monospace;
  1872. font-size: 0.82rem;
  1873. font-weight: 700;
  1874. }
  1875. .peripheral-ref-btn:hover {
  1876. background: var(--locator);
  1877. color: #ffffff;
  1878. }
  1879. .peripheral-type-badge {
  1880. padding: 2px 6px;
  1881. border-radius: 4px;
  1882. background: #e2e8f0;
  1883. color: #1e293b;
  1884. font-size: 0.68rem;
  1885. font-weight: 700;
  1886. }
  1887. .peripheral-status-badge {
  1888. padding: 2px 6px;
  1889. border-radius: 999px;
  1890. font-size: 0.66rem;
  1891. font-weight: 700;
  1892. }
  1893. .peripheral-status-badge.status-used {
  1894. background: var(--verified-soft);
  1895. color: var(--verified);
  1896. }
  1897. .peripheral-status-badge.status-spare {
  1898. background: var(--risk-soft);
  1899. color: #874500;
  1900. }
  1901. .peripheral-status-badge.status-board {
  1902. background: #f1f5f9;
  1903. color: #475569;
  1904. }
  1905. .peripheral-jump-btn {
  1906. padding: 2px 7px;
  1907. border: 1px solid var(--line-strong);
  1908. border-radius: 4px;
  1909. background: var(--surface);
  1910. color: var(--ink-muted);
  1911. font-size: 0.68rem;
  1912. }
  1913. .peripheral-jump-btn:hover {
  1914. border-color: var(--locator);
  1915. color: var(--locator);
  1916. }
  1917. .peripheral-card-summary {
  1918. padding: 6px 10px;
  1919. font-size: 0.74rem;
  1920. color: var(--ink-muted);
  1921. border-block-end: 1px solid var(--line);
  1922. line-height: 1.4;
  1923. }
  1924. .peripheral-pin-table {
  1925. display: flex;
  1926. flex-direction: column;
  1927. }
  1928. .peripheral-pin-row {
  1929. inline-size: 100%;
  1930. display: grid;
  1931. grid-template-columns: 54px minmax(0, 1fr);
  1932. gap: 8px;
  1933. align-items: start;
  1934. padding: 7px 10px;
  1935. border: 0;
  1936. border-block-end: 1px solid var(--line);
  1937. background: var(--surface);
  1938. color: var(--ink);
  1939. text-align: start;
  1940. }
  1941. .peripheral-pin-row:last-child {
  1942. border-block-end: 0;
  1943. }
  1944. .peripheral-pin-row:hover,
  1945. .peripheral-pin-row.is-selected {
  1946. background: var(--locator-soft);
  1947. }
  1948. .peripheral-pin-row.is-query-match {
  1949. background: #ecfdf5;
  1950. border-inline-start: 3px solid #10b981;
  1951. }
  1952. .peripheral-pin-num {
  1953. font-family: Consolas, "Cascadia Mono", monospace;
  1954. font-size: 0.75rem;
  1955. font-weight: 700;
  1956. color: var(--ink);
  1957. padding-block-start: 2px;
  1958. }
  1959. .peripheral-pin-body {
  1960. min-inline-size: 0;
  1961. display: flex;
  1962. flex-direction: column;
  1963. gap: 3px;
  1964. }
  1965. .peripheral-pin-top {
  1966. display: flex;
  1967. flex-wrap: wrap;
  1968. align-items: center;
  1969. justify-content: space-between;
  1970. gap: 4px;
  1971. }
  1972. .peripheral-pin-role {
  1973. font-size: 0.74rem;
  1974. font-weight: 700;
  1975. color: var(--ink);
  1976. }
  1977. .peripheral-pin-def {
  1978. font-size: 0.69rem;
  1979. color: var(--ink-muted);
  1980. line-height: 1.4;
  1981. overflow-wrap: anywhere;
  1982. }
  1983. /* ==========================================================================
  1984. High-Framerate 60/120fps Viewport & Modern Fresh Light Theme Enhancements
  1985. ========================================================================== */
  1986. .app-shell.detail-wide {
  1987. --detail-width: min(740px, 54vw);
  1988. }
  1989. .workspace {
  1990. transition: grid-template-columns 200ms cubic-bezier(0.22, 1, 0.36, 1);
  1991. }
  1992. .topbar {
  1993. background: rgba(255, 255, 255, 0.94);
  1994. backdrop-filter: blur(10px);
  1995. box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  1996. }
  1997. .board-viewport {
  1998. background-color: #f8fafc;
  1999. background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  2000. background-size: 22px 22px;
  2001. border: 1px solid #cbd5e1;
  2002. border-radius: 10px;
  2003. box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 6px 20px rgba(15, 23, 42, 0.05);
  2004. contain: layout paint;
  2005. }
  2006. #board-svg {
  2007. will-change: contents;
  2008. shape-rendering: geometricPrecision;
  2009. }
  2010. #board-svg.is-panning,
  2011. #board-svg.is-panning #hotspot-layer,
  2012. #board-svg.is-panning #pin-layer {
  2013. pointer-events: none !important;
  2014. }
  2015. .detail-tabs {
  2016. grid-template-columns: repeat(5, minmax(0, 1fr));
  2017. background: #f8fafc;
  2018. }
  2019. .detail-tabs button {
  2020. transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
  2021. }
  2022. .detail-tabs button:hover {
  2023. background: #f1f5f9;
  2024. color: var(--ink);
  2025. }
  2026. .detail-tabs button[aria-selected="true"] {
  2027. background: #ffffff;
  2028. color: var(--locator);
  2029. border-block-end-color: var(--locator);
  2030. font-weight: 700;
  2031. }
  2032. .cpld-top-btn {
  2033. background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  2034. color: #0369a1;
  2035. border-color: #7dd3fc;
  2036. box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08);
  2037. }
  2038. .cpld-top-btn:hover {
  2039. background: linear-gradient(135deg, #dbeafe 0%, #bae6fd 100%);
  2040. color: #075985;
  2041. }
  2042. .wide-panel-btn {
  2043. background: var(--surface-muted);
  2044. color: var(--ink-muted);
  2045. border-color: var(--line-strong);
  2046. cursor: pointer;
  2047. }
  2048. .wide-panel-btn[aria-pressed="true"] {
  2049. background: #eef2ff;
  2050. color: #4338ca;
  2051. border-color: #818cf8;
  2052. }
  2053. /* ==========================================================================
  2054. CPLD Source Architecture & Dynamic Multi-Level Menu Styles
  2055. ========================================================================== */
  2056. .cpld-arch-panel {
  2057. display: flex;
  2058. flex-direction: column;
  2059. gap: 14px;
  2060. padding-bottom: 18px;
  2061. }
  2062. .cpld-hero-card {
  2063. padding: 14px 16px;
  2064. border-radius: 10px;
  2065. background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 60%, #eef2ff 100%);
  2066. border: 1px solid #bae6fd;
  2067. box-shadow: 0 2px 10px rgba(2, 132, 199, 0.06);
  2068. display: flex;
  2069. flex-direction: column;
  2070. gap: 10px;
  2071. }
  2072. .cpld-hero-top {
  2073. display: flex;
  2074. align-items: flex-start;
  2075. justify-content: space-between;
  2076. gap: 10px;
  2077. flex-wrap: wrap;
  2078. }
  2079. .cpld-hero-title-wrap {
  2080. display: flex;
  2081. flex-direction: column;
  2082. gap: 4px;
  2083. }
  2084. .cpld-chip-pill {
  2085. display: inline-flex;
  2086. align-items: center;
  2087. align-self: flex-start;
  2088. padding: 2px 8px;
  2089. border-radius: 999px;
  2090. background: #0284c7;
  2091. color: #ffffff;
  2092. font-family: Consolas, "Cascadia Mono", monospace;
  2093. font-size: 0.68rem;
  2094. font-weight: 700;
  2095. letter-spacing: 0.02em;
  2096. }
  2097. .cpld-hero-title {
  2098. margin: 0;
  2099. font-size: 1.02rem;
  2100. font-weight: 750;
  2101. color: #0f172a;
  2102. }
  2103. .cpld-top-module-badge {
  2104. padding: 3px 9px;
  2105. border-radius: 6px;
  2106. background: #ffffff;
  2107. border: 1px solid #93c5fd;
  2108. color: #1d4ed8;
  2109. font-family: Consolas, "Cascadia Mono", monospace;
  2110. font-size: 0.72rem;
  2111. font-weight: 700;
  2112. }
  2113. .cpld-hero-grid {
  2114. display: grid;
  2115. grid-template-columns: repeat(2, minmax(0, 1fr));
  2116. gap: 8px;
  2117. }
  2118. .cpld-hero-cell {
  2119. padding: 7px 10px;
  2120. border-radius: 7px;
  2121. background: rgba(255, 255, 255, 0.88);
  2122. border: 1px solid #e2e8f0;
  2123. display: flex;
  2124. flex-direction: column;
  2125. gap: 2px;
  2126. }
  2127. .cpld-hero-cell-k {
  2128. font-size: 0.66rem;
  2129. font-weight: 700;
  2130. color: #0369a1;
  2131. text-transform: uppercase;
  2132. }
  2133. .cpld-hero-cell-v {
  2134. font-size: 0.73rem;
  2135. color: #1e293b;
  2136. font-family: Consolas, "Cascadia Mono", "Microsoft YaHei UI", monospace;
  2137. line-height: 1.35;
  2138. }
  2139. /* Interactive On-Chip Topology Strip */
  2140. .cpld-topology-box {
  2141. padding: 11px 13px;
  2142. border-radius: 10px;
  2143. background: #ffffff;
  2144. border: 1px solid #e2e8f0;
  2145. box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  2146. display: flex;
  2147. flex-direction: column;
  2148. gap: 9px;
  2149. }
  2150. .cpld-topology-head {
  2151. display: flex;
  2152. align-items: center;
  2153. justify-content: space-between;
  2154. gap: 8px;
  2155. flex-wrap: wrap;
  2156. }
  2157. .cpld-topology-title {
  2158. font-size: 0.76rem;
  2159. font-weight: 750;
  2160. color: #0f172a;
  2161. }
  2162. .cpld-topology-sub {
  2163. font-size: 0.67rem;
  2164. font-family: Consolas, "Cascadia Mono", monospace;
  2165. color: #64748b;
  2166. }
  2167. .cpld-topology-flow {
  2168. display: flex;
  2169. align-items: stretch;
  2170. gap: 4px;
  2171. overflow-x: auto;
  2172. padding-bottom: 3px;
  2173. scrollbar-width: thin;
  2174. }
  2175. .cpld-topo-node {
  2176. flex: 1 0 112px;
  2177. padding: 7px 8px;
  2178. border-radius: 7px;
  2179. border: 1px solid #cbd5e1;
  2180. background: #f8fafc;
  2181. display: flex;
  2182. flex-direction: column;
  2183. align-items: flex-start;
  2184. gap: 2px;
  2185. text-align: start;
  2186. transition: transform 130ms ease, border-color 130ms ease, background-color 130ms ease, box-shadow 130ms ease;
  2187. }
  2188. .cpld-topo-node:hover {
  2189. transform: translateY(-1px);
  2190. border-color: #38bdf8;
  2191. background: #f0f9ff;
  2192. }
  2193. .cpld-topo-node.is-active {
  2194. border-color: #0284c7;
  2195. background: #e0f2fe;
  2196. box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.16);
  2197. }
  2198. .cpld-topo-tag {
  2199. font-size: 0.6rem;
  2200. font-weight: 700;
  2201. padding: 1px 5px;
  2202. border-radius: 4px;
  2203. background: #e2e8f0;
  2204. color: #334155;
  2205. font-family: Consolas, monospace;
  2206. }
  2207. .cpld-topo-node.is-active .cpld-topo-tag {
  2208. background: #0284c7;
  2209. color: #ffffff;
  2210. }
  2211. .cpld-topo-label {
  2212. font-size: 0.72rem;
  2213. font-weight: 700;
  2214. color: #0f172a;
  2215. font-family: Consolas, "Microsoft YaHei UI", monospace;
  2216. }
  2217. .cpld-topo-subtext {
  2218. font-size: 0.65rem;
  2219. color: #475569;
  2220. line-height: 1.25;
  2221. }
  2222. .cpld-topo-arrow {
  2223. display: inline-flex;
  2224. align-items: center;
  2225. color: #94a3b8;
  2226. font-weight: 700;
  2227. font-size: 0.85rem;
  2228. padding-inline: 1px;
  2229. }
  2230. /* Search & Tree Control Row */
  2231. .cpld-menu-control-row {
  2232. display: grid;
  2233. grid-template-columns: minmax(0, 1fr) auto;
  2234. gap: 8px;
  2235. align-items: center;
  2236. }
  2237. .cpld-topic-search {
  2238. min-block-size: 38px;
  2239. padding: 6px 11px;
  2240. border: 1px solid #cbd5e1;
  2241. border-radius: 8px;
  2242. background: #ffffff;
  2243. color: var(--ink);
  2244. font-size: 0.78rem;
  2245. transition: border-color 140ms ease, box-shadow 140ms ease;
  2246. }
  2247. .cpld-topic-search:focus {
  2248. border-color: var(--locator);
  2249. box-shadow: 0 0 0 3px var(--locator-soft);
  2250. outline: none;
  2251. }
  2252. .cpld-tree-toggle-btn {
  2253. min-block-size: 38px;
  2254. padding: 6px 11px;
  2255. border: 1px solid #cbd5e1;
  2256. border-radius: 8px;
  2257. background: #f8fafc;
  2258. color: #334155;
  2259. font-size: 0.74rem;
  2260. font-weight: 700;
  2261. white-space: nowrap;
  2262. transition: all 140ms ease;
  2263. }
  2264. .cpld-tree-toggle-btn:hover,
  2265. .cpld-tree-toggle-btn.is-active {
  2266. background: #0284c7;
  2267. border-color: #0284c7;
  2268. color: #ffffff;
  2269. }
  2270. /* Search Hits Box */
  2271. .cpld-search-hits {
  2272. padding: 10px 12px;
  2273. border-radius: 9px;
  2274. background: #f0fdf4;
  2275. border: 1px solid #86efac;
  2276. display: flex;
  2277. flex-direction: column;
  2278. gap: 8px;
  2279. }
  2280. .cpld-search-hits-head {
  2281. font-size: 0.74rem;
  2282. font-weight: 700;
  2283. color: #166534;
  2284. }
  2285. .cpld-search-hits-grid {
  2286. display: grid;
  2287. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  2288. gap: 6px;
  2289. }
  2290. .cpld-hit-btn {
  2291. padding: 7px 9px;
  2292. border-radius: 6px;
  2293. border: 1px solid #bbf7d0;
  2294. background: #ffffff;
  2295. display: flex;
  2296. flex-direction: column;
  2297. gap: 2px;
  2298. text-align: start;
  2299. }
  2300. .cpld-hit-btn:hover,
  2301. .cpld-hit-btn.is-active {
  2302. border-color: #059669;
  2303. background: #ecfdf5;
  2304. }
  2305. .cpld-hit-path {
  2306. font-size: 0.65rem;
  2307. color: #64748b;
  2308. }
  2309. .cpld-hit-title {
  2310. font-size: 0.75rem;
  2311. color: #0f172a;
  2312. }
  2313. .cpld-hit-mod {
  2314. font-size: 0.66rem;
  2315. font-family: Consolas, monospace;
  2316. color: #0284c7;
  2317. }
  2318. /* Multi-Level Cascading Navigation */
  2319. .cpld-multilevel-nav {
  2320. display: flex;
  2321. flex-direction: column;
  2322. gap: 9px;
  2323. }
  2324. .cpld-l1-grid {
  2325. display: grid;
  2326. grid-template-columns: repeat(2, minmax(0, 1fr));
  2327. gap: 8px;
  2328. }
  2329. .cpld-l1-card {
  2330. padding: 10px 12px;
  2331. border-radius: 9px;
  2332. border: 1px solid #e2e8f0;
  2333. background: #ffffff;
  2334. display: flex;
  2335. flex-direction: column;
  2336. gap: 4px;
  2337. text-align: start;
  2338. box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  2339. transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease, background-color 130ms ease;
  2340. }
  2341. .cpld-l1-card:hover {
  2342. transform: translateY(-1px);
  2343. border-color: #7dd3fc;
  2344. box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  2345. }
  2346. .cpld-l1-card.is-active {
  2347. border-color: #0284c7;
  2348. background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  2349. box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.16);
  2350. }
  2351. .cpld-l1-head {
  2352. display: flex;
  2353. align-items: center;
  2354. justify-content: space-between;
  2355. width: 100%;
  2356. }
  2357. .cpld-l1-icon {
  2358. font-size: 1rem;
  2359. }
  2360. .cpld-l1-badge {
  2361. padding: 1px 7px;
  2362. border-radius: 999px;
  2363. background: #f1f5f9;
  2364. color: #475569;
  2365. font-family: Consolas, monospace;
  2366. font-size: 0.64rem;
  2367. font-weight: 700;
  2368. }
  2369. .cpld-l1-card.is-active .cpld-l1-badge {
  2370. background: #0284c7;
  2371. color: #ffffff;
  2372. }
  2373. .cpld-l1-title {
  2374. font-size: 0.82rem;
  2375. font-weight: 750;
  2376. color: #0f172a;
  2377. }
  2378. .cpld-l1-desc {
  2379. font-size: 0.69rem;
  2380. color: #64748b;
  2381. line-height: 1.35;
  2382. }
  2383. /* L2 & L3 Cascading Bars */
  2384. .cpld-l2-bar,
  2385. .cpld-l3-bar {
  2386. display: flex;
  2387. align-items: flex-start;
  2388. gap: 8px;
  2389. padding: 8px 10px;
  2390. border-radius: 8px;
  2391. background: #f8fafc;
  2392. border: 1px solid #e2e8f0;
  2393. }
  2394. .cpld-level-tag {
  2395. flex: 0 0 auto;
  2396. margin-top: 3px;
  2397. padding: 2px 6px;
  2398. border-radius: 4px;
  2399. background: #e2e8f0;
  2400. color: #334155;
  2401. font-size: 0.64rem;
  2402. font-weight: 750;
  2403. }
  2404. .cpld-level-tag.is-l3 {
  2405. background: #dbeafe;
  2406. color: #1e40af;
  2407. }
  2408. .cpld-l2-pills,
  2409. .cpld-l3-pills {
  2410. display: flex;
  2411. flex-wrap: wrap;
  2412. gap: 6px;
  2413. flex: 1 1 auto;
  2414. }
  2415. .cpld-l2-btn {
  2416. padding: 4px 10px;
  2417. border-radius: 999px;
  2418. border: 1px solid #cbd5e1;
  2419. background: #ffffff;
  2420. color: #334155;
  2421. font-size: 0.74rem;
  2422. font-weight: 650;
  2423. transition: all 120ms ease;
  2424. }
  2425. .cpld-l2-btn:hover {
  2426. border-color: #0284c7;
  2427. color: #0284c7;
  2428. }
  2429. .cpld-l2-btn.is-active {
  2430. background: #0f172a;
  2431. border-color: #0f172a;
  2432. color: #ffffff;
  2433. }
  2434. .cpld-l3-btn {
  2435. padding: 5px 10px;
  2436. border-radius: 7px;
  2437. border: 1px solid #cbd5e1;
  2438. background: #ffffff;
  2439. display: inline-flex;
  2440. flex-direction: column;
  2441. align-items: flex-start;
  2442. gap: 1px;
  2443. text-align: start;
  2444. transition: all 120ms ease;
  2445. }
  2446. .cpld-l3-btn:hover {
  2447. border-color: #38bdf8;
  2448. background: #f0f9ff;
  2449. }
  2450. .cpld-l3-btn.is-active {
  2451. background: #0284c7;
  2452. border-color: #0284c7;
  2453. color: #ffffff;
  2454. box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22);
  2455. }
  2456. .cpld-l3-btn-label {
  2457. font-size: 0.74rem;
  2458. font-weight: 700;
  2459. }
  2460. .cpld-l3-btn-mod {
  2461. font-size: 0.63rem;
  2462. font-family: Consolas, monospace;
  2463. color: #64748b;
  2464. }
  2465. .cpld-l3-btn.is-active .cpld-l3-btn-mod {
  2466. color: #e0f2fe;
  2467. }
  2468. /* Full Expanded 3-Level Directory Tree */
  2469. .cpld-full-tree {
  2470. padding: 10px 12px;
  2471. border-radius: 9px;
  2472. background: #f8fafc;
  2473. border: 1px solid #cbd5e1;
  2474. display: flex;
  2475. flex-direction: column;
  2476. gap: 10px;
  2477. }
  2478. .cpld-tree-domain {
  2479. display: flex;
  2480. flex-direction: column;
  2481. gap: 6px;
  2482. }
  2483. .cpld-tree-domain-title {
  2484. font-size: 0.78rem;
  2485. font-weight: 750;
  2486. color: #0f172a;
  2487. padding-bottom: 3px;
  2488. border-bottom: 1px solid #e2e8f0;
  2489. }
  2490. .cpld-tree-group {
  2491. padding-left: 10px;
  2492. display: flex;
  2493. flex-direction: column;
  2494. gap: 4px;
  2495. }
  2496. .cpld-tree-group-title {
  2497. font-size: 0.72rem;
  2498. font-weight: 700;
  2499. color: #475569;
  2500. }
  2501. .cpld-tree-topics {
  2502. display: flex;
  2503. flex-wrap: wrap;
  2504. gap: 5px;
  2505. padding-left: 10px;
  2506. }
  2507. .cpld-tree-topic-btn {
  2508. padding: 4px 8px;
  2509. border-radius: 6px;
  2510. border: 1px solid #cbd5e1;
  2511. background: #ffffff;
  2512. font-size: 0.71rem;
  2513. display: inline-flex;
  2514. align-items: center;
  2515. gap: 6px;
  2516. }
  2517. .cpld-tree-topic-btn.is-active {
  2518. background: #0284c7;
  2519. border-color: #0284c7;
  2520. color: #ffffff;
  2521. }
  2522. .cpld-tree-mod {
  2523. font-size: 0.64rem;
  2524. padding: 1px 4px;
  2525. border-radius: 3px;
  2526. background: #f1f5f9;
  2527. color: #0369a1;
  2528. }
  2529. /* Deep-Dive Topic Article Card */
  2530. .cpld-topic-article {
  2531. padding: 15px 16px;
  2532. border-radius: 10px;
  2533. background: #ffffff;
  2534. border: 1px solid #cbd5e1;
  2535. box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  2536. display: flex;
  2537. flex-direction: column;
  2538. gap: 14px;
  2539. }
  2540. .cpld-breadcrumb-row {
  2541. display: flex;
  2542. align-items: center;
  2543. justify-content: space-between;
  2544. gap: 8px;
  2545. flex-wrap: wrap;
  2546. padding-bottom: 8px;
  2547. border-bottom: 1px solid #f1f5f9;
  2548. }
  2549. .cpld-breadcrumb {
  2550. font-size: 0.71rem;
  2551. font-weight: 650;
  2552. color: #64748b;
  2553. }
  2554. .cpld-file-badge {
  2555. padding: 2px 8px;
  2556. border-radius: 5px;
  2557. background: #f0fdf4;
  2558. border: 1px solid #bbf7d0;
  2559. color: #15803d;
  2560. font-family: Consolas, "Cascadia Mono", monospace;
  2561. font-size: 0.69rem;
  2562. font-weight: 700;
  2563. }
  2564. .cpld-article-title {
  2565. margin: 0;
  2566. font-size: 1rem;
  2567. font-weight: 750;
  2568. color: #0f172a;
  2569. line-height: 1.35;
  2570. }
  2571. .cpld-article-summary {
  2572. margin: -6px 0 0;
  2573. font-size: 0.79rem;
  2574. color: #334155;
  2575. line-height: 1.55;
  2576. }
  2577. /* One-Click PCB Jump Bar */
  2578. .cpld-jump-bar {
  2579. padding: 9px 11px;
  2580. border-radius: 8px;
  2581. background: #f0f9ff;
  2582. border: 1px solid #bae6fd;
  2583. display: flex;
  2584. flex-direction: column;
  2585. gap: 6px;
  2586. }
  2587. .cpld-jump-label {
  2588. font-size: 0.7rem;
  2589. font-weight: 750;
  2590. color: #0369a1;
  2591. }
  2592. .cpld-jump-list {
  2593. display: flex;
  2594. flex-wrap: wrap;
  2595. gap: 6px;
  2596. }
  2597. .cpld-jump-pill {
  2598. padding: 4px 9px;
  2599. border-radius: 999px;
  2600. border: 1px solid #38bdf8;
  2601. background: #ffffff;
  2602. color: #0369a1;
  2603. font-size: 0.72rem;
  2604. font-weight: 650;
  2605. transition: all 120ms ease;
  2606. }
  2607. .cpld-jump-pill:hover {
  2608. background: #0284c7;
  2609. border-color: #0284c7;
  2610. color: #ffffff;
  2611. transform: translateY(-1px);
  2612. }
  2613. /* Section Blocks (kvTable, matrixTable, pipelineFlow, codeBlock) */
  2614. .cpld-sec-block {
  2615. display: flex;
  2616. flex-direction: column;
  2617. gap: 8px;
  2618. }
  2619. .cpld-sec-heading {
  2620. margin: 0;
  2621. font-size: 0.78rem;
  2622. font-weight: 750;
  2623. color: #0f172a;
  2624. display: flex;
  2625. align-items: center;
  2626. gap: 6px;
  2627. }
  2628. .cpld-sec-heading::before {
  2629. content: "";
  2630. display: inline-block;
  2631. width: 4px;
  2632. height: 14px;
  2633. border-radius: 2px;
  2634. background: #0284c7;
  2635. }
  2636. .cpld-kv-list {
  2637. border: 1px solid #e2e8f0;
  2638. border-radius: 8px;
  2639. overflow: hidden;
  2640. }
  2641. .cpld-kv-row {
  2642. display: grid;
  2643. grid-template-columns: 155px minmax(0, 1fr);
  2644. border-bottom: 1px solid #e2e8f0;
  2645. font-size: 0.75rem;
  2646. line-height: 1.5;
  2647. }
  2648. .cpld-kv-row:last-child {
  2649. border-bottom: 0;
  2650. }
  2651. .cpld-kv-key {
  2652. padding: 8px 10px;
  2653. background: #f8fafc;
  2654. border-right: 1px solid #e2e8f0;
  2655. font-weight: 700;
  2656. color: #1e293b;
  2657. font-family: Consolas, "Microsoft YaHei UI", monospace;
  2658. }
  2659. .cpld-kv-val {
  2660. padding: 8px 11px;
  2661. background: #ffffff;
  2662. color: #334155;
  2663. overflow-wrap: anywhere;
  2664. }
  2665. /* Matrix Table */
  2666. .cpld-table-wrap {
  2667. width: 100%;
  2668. overflow-x: auto;
  2669. border: 1px solid #e2e8f0;
  2670. border-radius: 8px;
  2671. }
  2672. .cpld-matrix-table {
  2673. width: 100%;
  2674. border-collapse: collapse;
  2675. font-size: 0.73rem;
  2676. text-align: left;
  2677. }
  2678. .cpld-matrix-table th {
  2679. padding: 8px 10px;
  2680. background: #f1f5f9;
  2681. color: #0f172a;
  2682. font-weight: 750;
  2683. border-bottom: 1px solid #cbd5e1;
  2684. white-space: nowrap;
  2685. }
  2686. .cpld-matrix-table td {
  2687. padding: 7px 10px;
  2688. border-bottom: 1px solid #e2e8f0;
  2689. color: #334155;
  2690. line-height: 1.45;
  2691. }
  2692. .cpld-matrix-table tr:last-child td {
  2693. border-bottom: 0;
  2694. }
  2695. .cpld-matrix-table tr.is-current-board-row td {
  2696. background: #f0f9ff;
  2697. font-weight: 650;
  2698. color: #0c4a6e;
  2699. }
  2700. /* Pipeline Steps */
  2701. .cpld-pipeline-list {
  2702. display: flex;
  2703. flex-direction: column;
  2704. gap: 8px;
  2705. }
  2706. .cpld-pipeline-step {
  2707. display: grid;
  2708. grid-template-columns: 28px minmax(0, 1fr);
  2709. gap: 10px;
  2710. align-items: start;
  2711. padding: 9px 11px;
  2712. border-radius: 8px;
  2713. background: #f8fafc;
  2714. border: 1px solid #e2e8f0;
  2715. }
  2716. .cpld-step-num {
  2717. width: 24px;
  2718. height: 24px;
  2719. border-radius: 999px;
  2720. background: #0284c7;
  2721. color: #ffffff;
  2722. font-family: Consolas, monospace;
  2723. font-size: 0.74rem;
  2724. font-weight: 700;
  2725. display: inline-grid;
  2726. place-items: center;
  2727. margin-top: 1px;
  2728. }
  2729. .cpld-step-body {
  2730. display: flex;
  2731. flex-direction: column;
  2732. gap: 3px;
  2733. }
  2734. .cpld-step-title {
  2735. font-size: 0.77rem;
  2736. font-weight: 750;
  2737. color: #0f172a;
  2738. }
  2739. .cpld-step-detail {
  2740. margin: 0;
  2741. font-size: 0.73rem;
  2742. color: #475569;
  2743. line-height: 1.5;
  2744. }
  2745. /* Verilog Code Block */
  2746. .cpld-code-box {
  2747. border-radius: 8px;
  2748. border: 1px solid #cbd5e1;
  2749. background: #0f172a;
  2750. overflow: hidden;
  2751. }
  2752. .cpld-code-head {
  2753. display: flex;
  2754. align-items: center;
  2755. justify-content: space-between;
  2756. padding: 6px 11px;
  2757. background: #1e293b;
  2758. border-bottom: 1px solid #334155;
  2759. }
  2760. .cpld-code-lang {
  2761. font-size: 0.68rem;
  2762. font-weight: 700;
  2763. color: #93c5fd;
  2764. font-family: Consolas, monospace;
  2765. }
  2766. .cpld-code-copy-btn {
  2767. padding: 2px 8px;
  2768. border-radius: 4px;
  2769. border: 1px solid #475569;
  2770. background: #334155;
  2771. color: #f8fafc;
  2772. font-size: 0.67rem;
  2773. font-weight: 600;
  2774. }
  2775. .cpld-code-copy-btn:hover {
  2776. background: #0284c7;
  2777. border-color: #38bdf8;
  2778. }
  2779. .cpld-code-pre {
  2780. margin: 0;
  2781. padding: 11px 13px;
  2782. overflow-x: auto;
  2783. color: #e2e8f0;
  2784. font-family: Consolas, "Cascadia Mono", monospace;
  2785. font-size: 0.72rem;
  2786. line-height: 1.5;
  2787. }
  2788. /* Pager Footer */
  2789. .cpld-topic-pager {
  2790. display: flex;
  2791. justify-content: space-between;
  2792. gap: 8px;
  2793. padding-top: 10px;
  2794. border-top: 1px solid #e2e8f0;
  2795. flex-wrap: wrap;
  2796. }
  2797. .cpld-pager-btn {
  2798. padding: 6px 11px;
  2799. border-radius: 7px;
  2800. border: 1px solid #cbd5e1;
  2801. background: #f8fafc;
  2802. color: #334155;
  2803. font-size: 0.73rem;
  2804. font-weight: 650;
  2805. transition: all 120ms ease;
  2806. }
  2807. .cpld-pager-btn:hover {
  2808. background: #e0f2fe;
  2809. border-color: #0284c7;
  2810. color: #0369a1;
  2811. }
  2812. @media (max-width: 640px) {
  2813. .cpld-hero-grid,
  2814. .cpld-l1-grid {
  2815. grid-template-columns: 1fr;
  2816. }
  2817. .cpld-kv-row {
  2818. grid-template-columns: 1fr;
  2819. }
  2820. .cpld-kv-key {
  2821. border-right: 0;
  2822. border-bottom: 1px solid #e2e8f0;
  2823. }
  2824. }
  2825. @media (prefers-reduced-motion: reduce) {
  2826. *,
  2827. *::before,
  2828. *::after {
  2829. scroll-behavior: auto !important;
  2830. transition-duration: 0.001ms !important;
  2831. animation-duration: 0.001ms !important;
  2832. }
  2833. }