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