:root{--blue:#3673fe;--orange:#ff641a;--ink:#202d40;--muted:#7d8796;--line:#e5e9ef;--bg:#f5f7fa;--green:#16a66a}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px}button,input{font:inherit}button,a{transition:.18s ease}a{color:inherit;text-decoration:none}
.repo-topbar{height:64px;display:flex;align-items:center;padding:0 28px;background:var(--blue);color:#fff;box-shadow:0 2px 14px rgba(22,73,190,.18);position:sticky;top:0;z-index:20}.repo-brand{display:flex;align-items:center;gap:9px;white-space:nowrap}.repo-brand-mark{display:grid;place-items:center;width:32px;height:32px;border:2px solid #fff;border-radius:9px;font-weight:800}.repo-brand i{width:1px;height:18px;background:rgba(255,255,255,.45)}.repo-brand strong{font-size:15px}.repo-search{width:min(480px,36vw);height:38px;margin-left:55px;display:flex;align-items:center;gap:9px;padding:0 13px;border-radius:7px;background:rgba(255,255,255,.96);color:#8b94a2}.repo-search input{width:100%;border:0;outline:0;background:transparent}.repo-top-actions{margin-left:auto;display:flex;align-items:center;gap:22px;font-size:13px}.repo-top-actions a:hover{opacity:.75}.repo-prototype-link{padding:9px 14px;border-radius:6px;background:var(--orange);font-weight:650;box-shadow:0 5px 15px rgba(209,67,0,.25)}.repo-avatar{width:34px;height:34px;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:#fff;color:var(--blue);font-weight:800}
.repo-shell{display:grid;grid-template-columns:258px minmax(0,1fr);min-height:calc(100vh - 64px)}.repo-sidebar{position:sticky;top:64px;height:calc(100vh - 64px);padding:22px 16px;border-right:1px solid var(--line);background:#fff;display:flex;flex-direction:column}.repo-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:0 7px;font-weight:650}.repo-sidebar-head button{width:28px;height:28px;border:1px solid #dfe4eb;border-radius:6px;background:#fff;color:var(--blue);cursor:pointer}.repo-project-filter{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:15px 0;padding:4px;border-radius:7px;background:#f1f4f8}.repo-project-filter button{padding:6px;border:0;border-radius:5px;background:transparent;color:#7d8795;font-size:11px;cursor:pointer}.repo-project-filter button.is-active{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(32,45,64,.08)}.repo-project-list{display:grid;gap:6px;overflow:auto}.repo-project{width:100%;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 9px;border:1px solid transparent;border-radius:8px;background:transparent;text-align:left;cursor:pointer}.repo-project:hover{background:#f7f9fc}.repo-project.is-active{border-color:#b9cdfd;background:#eef4ff}.repo-project-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#edf2fa;color:#5c6e88;font-weight:700}.repo-project strong,.repo-project small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repo-project strong{font-size:12px}.repo-project small{margin-top:3px;color:#98a0ac;font-size:10px}.repo-project em{font-style:normal;color:#8a94a2;font-size:10px}.repo-project[data-privacy=private] em{color:#e76422}.repo-storage{margin-top:auto;padding:13px;border:1px solid var(--line);border-radius:9px;background:#fafbfd}.repo-storage div{display:flex;justify-content:space-between;font-size:10px}.repo-storage i{display:block;height:5px;margin:9px 0;border-radius:4px;background:#e7ebf1;overflow:hidden}.repo-storage b{display:block;width:12%;height:100%;background:var(--blue)}.repo-storage small{color:#9099a6;font-size:9px;line-height:1.5}
.repo-main{padding:24px 30px 110px;min-width:0}.repo-breadcrumb{display:flex;gap:8px;color:#8a94a2;font-size:12px}.repo-breadcrumb a{color:var(--blue)}.repo-project-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-top:13px}.repo-title-line{display:flex;align-items:center;gap:12px}.repo-title-line h1{margin:0;font-size:25px;letter-spacing:-.02em}.repo-privacy{padding:4px 8px;border-radius:12px;font-size:10px;font-weight:650}.repo-privacy.is-private{background:#fff0e8;color:#df5a18}.repo-privacy.is-public{background:#e8f8f1;color:#11895b}.repo-project-head p{margin:8px 0 0;color:#7c8796;font-size:12px}.repo-head-actions{display:flex;gap:8px}.repo-head-actions button{height:36px;padding:0 14px;border-radius:6px;cursor:pointer}.repo-secondary{border:1px solid #dfe4eb;background:#fff;color:#5d6878}.repo-primary{border:1px solid var(--blue);background:var(--blue);color:#fff;font-weight:650}.repo-star-button{border:1px solid #efcf68;background:#fff9df;color:#8a6500;font-weight:650}.repo-star-button.is-starred{background:#ffefaa;color:#624700}.repo-star-button b{margin-left:4px}.repo-stats{display:grid;grid-template-columns:repeat(6,minmax(105px,1fr));gap:10px;margin:22px 0 12px}.repo-stats div{padding:13px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}.repo-stats div.is-reward{border-color:#ffd2b9;background:linear-gradient(145deg,#fff7f0,#fff)}.repo-stats span,.repo-stats strong{display:block}.repo-stats span{color:#9099a5;font-size:10px}.repo-stats strong{margin-top:5px;font-size:14px}.repo-stats .is-reward strong{color:#ef5d14}.repo-incentive{display:grid;grid-template-columns:42px minmax(0,1fr) 220px auto;align-items:center;gap:14px;margin-bottom:16px;padding:13px 15px;border:1px solid #ffd5bc;border-radius:10px;background:linear-gradient(95deg,#fff7ef,#fff 62%);box-shadow:0 7px 20px rgba(242,101,27,.07)}.incentive-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#ff641a;color:#fff;font-size:22px;font-weight:800;box-shadow:0 8px 17px rgba(255,100,26,.22)}.repo-incentive>div:nth-child(2)>span{color:#ef5e16;font-size:9px;letter-spacing:.08em;font-weight:700}.repo-incentive h3{margin:3px 0;font-size:13px}.repo-incentive p{margin:0;color:#7f8996;font-size:9px}.incentive-progress span{display:block;height:6px;border-radius:5px;background:#f0e8e2;overflow:hidden}.incentive-progress b{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#ff8c4d,#ff5e16)}.incentive-progress small{display:block;margin-top:5px;color:#9a8173;font-size:9px}.repo-incentive button{height:32px;padding:0 11px;border:1px solid #ffc39f;border-radius:6px;background:#fff;color:#e65b17;font-size:10px;cursor:pointer}.is-private-view .repo-incentive{display:none}
.repo-files-card{border:1px solid #dfe4eb;border-radius:10px;background:#fff;overflow:hidden}.repo-toolbar{display:flex;align-items:center;gap:9px;padding:11px 13px;border-bottom:1px solid var(--line)}.repo-branch,.repo-version-select{min-width:105px;padding:8px 10px;border:1px solid #dfe4eb;border-radius:6px;font-size:11px}.repo-branch span,.repo-version-select span{float:right}.repo-version-select{min-width:120px;background:#fbfcfe}.repo-category-tabs{display:flex;gap:4px;overflow:auto}.repo-category-tabs button{padding:7px 10px;border:0;border-radius:5px;background:transparent;color:#6e7988;font-size:11px;white-space:nowrap;cursor:pointer}.repo-category-tabs button:hover{background:#f3f6fa}.repo-category-tabs button.is-active{background:#edf3ff;color:var(--blue);font-weight:650}.repo-history-toggle{margin-left:auto;white-space:nowrap;padding:7px 10px;border:1px solid #dfe4eb;border-radius:6px;background:#fff;color:#687587;font-size:10px;cursor:pointer}.repo-history-toggle.is-active{border-color:#b9cdfd;background:#f0f5ff;color:#3673fe}.repo-history-toggle b{display:inline-grid;place-items:center;min-width:16px;height:16px;margin-left:3px;border-radius:8px;background:#e6edfb;font-size:8px}.repo-commit-line{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#f7f9fc;color:#7c8795;font-size:10px}.repo-commit-line a{margin-left:auto;color:var(--blue)}.repo-avatar-mini{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--blue);color:#fff;font-weight:700}.repo-version-history{border-top:1px solid #e7ebf0;border-bottom:1px solid #e7ebf0;background:#fcfdff}.repo-version-history.is-collapsed{display:none}.version-history-head{display:flex;align-items:center;justify-content:space-between;padding:12px 15px}.version-history-head strong,.version-history-head span{display:block}.version-history-head strong{font-size:12px}.version-history-head span{margin-top:3px;color:#919aa7;font-size:9px}.version-history-head button{height:30px;padding:0 10px;border:1px solid #b9cdfd;border-radius:6px;background:#f2f6ff;color:#3673fe;font-size:10px;cursor:pointer}.version-timeline{padding:0 15px 12px}.version-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 105px 115px;gap:15px;margin-left:7px;padding:11px 8px 11px 23px;border-left:2px solid #dce3ec;border-radius:0 8px 8px 0;transition:.18s}.version-item:hover{background:#f6f9ff}.version-item.is-current{border-left-color:#3673fe;background:#f5f8ff}.version-item>i{position:absolute;left:-7px;top:18px;width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:#aeb8c6;box-shadow:0 0 0 1px #c9d1dc}.version-item.is-current>i{background:#3673fe;box-shadow:0 0 0 2px #b8ccfd}.version-main>div{display:flex;align-items:center;gap:6px}.version-main strong{font-size:12px}.version-main h4{margin:4px 0 2px;font-size:11px}.version-main p{margin:0;color:#7c8795;font-size:9px;line-height:1.45}.version-main small{display:block;margin-top:4px;color:#9aa3af;font-size:8px}.version-badge{padding:2px 5px;border-radius:8px;font-size:7px;font-weight:700}.version-badge.latest{background:#e8f8f0;color:#168655}.version-badge.stable{background:#edf2ff;color:#4c6bda}.version-badge.archived{background:#f0f2f5;color:#7f8996}.version-assets{align-self:center;color:#87919e;font-size:9px}.version-assets span,.version-assets b{display:block}.version-assets b{margin-top:3px;color:#596575}.version-actions{align-self:center;display:flex;justify-content:flex-end;gap:5px}.version-actions button{padding:5px 7px;border:1px solid #dce2ea;border-radius:5px;background:#fff;color:#687587;font-size:8px;cursor:pointer}.version-actions button:hover{border-color:#3673fe;color:#3673fe}
.repo-file-row{display:grid;grid-template-columns:32px minmax(220px,1.35fr) 95px minmax(180px,1fr) 90px 78px;align-items:center;min-height:55px;padding:0 14px;border-top:1px solid #eef1f5;font-size:11px}.repo-file-row:hover:not(.repo-file-header){background:#fbfcfe}.repo-file-row.is-hidden{display:none}.repo-file-header{min-height:40px;border-top:0;color:#929ba7;font-size:10px}.repo-file-row input{accent-color:var(--orange)}.repo-file-name{display:flex;align-items:center;gap:10px;min-width:0}.repo-file-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.file-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;font-style:normal;font-size:9px;font-weight:800}.file-icon.pcb{background:#e8f6ee;color:#11875a}.file-icon.sch{background:#edf2ff;color:#4c6bdc}.file-icon.model{background:#fff0e8;color:#e65f1b}.file-icon.cnc{background:#eff1f4;color:#525f70}.file-icon.sheet{background:#f2edff;color:#7252c9}.file-icon.fa{background:#fff5db;color:#a06a00}.type-chip{padding:4px 7px;border-radius:10px;font-size:9px}.type-chip.pcb{background:#e7f7ef;color:#12885b}.type-chip.sch{background:#edf2ff;color:#4b69d8}.type-chip.model{background:#fff0e8;color:#e65f1b}.type-chip.cnc{background:#edf0f4;color:#515e6e}.type-chip.sheet{background:#f2edff;color:#7252c9}.type-chip.fa{background:#fff5da;color:#946300}.row-price{font-weight:650;color:#ef5c0b}.repo-file-row>button{padding:5px 7px;border:1px solid #dfe4eb;border-radius:5px;background:#fff;color:#687587;font-size:10px;cursor:pointer}.repo-file-row>button:hover{border-color:var(--blue);color:var(--blue)}
.repo-order-bar{position:fixed;left:278px;right:20px;bottom:18px;z-index:15;display:flex;align-items:center;justify-content:space-between;padding:11px 13px 11px 18px;border:1px solid #dfe4eb;border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 16px 40px rgba(32,45,64,.16);backdrop-filter:blur(12px);transform:translateY(120px);opacity:0;pointer-events:none;transition:.25s}.repo-order-bar.is-visible{transform:none;opacity:1;pointer-events:auto}.repo-order-bar>div{display:flex;align-items:center;gap:9px}.repo-order-bar>div:first-child strong{color:var(--orange);font-size:20px}.repo-order-bar span{color:#7d8794;font-size:11px}.repo-order-bar button{border:0;background:transparent;color:var(--blue);font-size:11px;cursor:pointer}.repo-order-bar>div:last-child>strong{margin:0 8px;color:var(--orange);font-size:18px}.repo-order-bar #createOrder{height:38px;padding:0 17px;border-radius:7px;background:var(--orange);color:#fff;font-weight:650;box-shadow:0 7px 18px rgba(255,100,26,.22)}
.repo-modal{position:fixed;inset:0;z-index:50;display:none;place-items:center;padding:24px;background:rgba(20,29,43,.58);backdrop-filter:blur(4px)}.repo-modal.is-open{display:grid}.repo-modal-card{width:min(850px,92vw);overflow:hidden;border-radius:13px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.28)}.repo-modal-head,.repo-modal-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 18px}.repo-modal-head span{color:var(--orange);font-size:9px;letter-spacing:.12em;font-weight:700}.repo-modal-head h3{margin:3px 0 0;font-size:16px}.repo-modal-head button{width:30px;height:30px;border:0;border-radius:50%;background:#f0f3f7;color:#687484;font-size:20px;cursor:pointer}.repository-model-viewer{position:relative;height:min(58vh,520px);overflow:hidden;background:radial-gradient(circle at 50% 38%,#fff 0,#f1f4f8 53%,#e5eaf1 100%);cursor:grab}.repository-model-viewer.is-dragging{cursor:grabbing}.repository-model-viewer canvas{display:block;width:100%;height:100%}.viewer-loader{position:absolute;inset:0;display:grid;place-items:center;color:#8b95a3;font-size:12px;pointer-events:none}.is-loaded>.viewer-loader{display:none}.viewer-help{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);padding:6px 10px;border-radius:14px;background:rgba(32,45,64,.72);color:#fff;font-size:9px;pointer-events:none}.repo-modal-footer{color:#7c8794;font-size:11px}.repo-modal-footer a{color:var(--blue);font-weight:650}.repo-toast{position:fixed;left:50%;bottom:25px;z-index:80;transform:translate(-50%,20px);padding:10px 15px;border-radius:7px;background:#202d40;color:#fff;font-size:11px;opacity:0;pointer-events:none;transition:.22s}.repo-toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.repo-shell{grid-template-columns:210px}.repo-sidebar{padding:18px 10px}.repo-main{padding:22px 18px 100px}.repo-file-row{grid-template-columns:28px minmax(190px,1.3fr) 85px minmax(140px,1fr) 75px 65px}.repo-order-bar{left:225px}.repo-search{margin-left:25px}.repo-stats{grid-template-columns:repeat(3,1fr)}.repo-incentive{grid-template-columns:42px minmax(0,1fr) auto}.incentive-progress{display:none}.repo-category-tabs{max-width:380px}}
@media(max-width:760px){.repo-topbar{padding:0 14px}.repo-search,.repo-top-actions>a:first-child,.repo-brand i,.repo-brand strong{display:none}.repo-top-actions{gap:10px}.repo-shell{display:block}.repo-sidebar{position:static;width:100%;height:auto;border-right:0;border-bottom:1px solid var(--line)}.repo-project-list{grid-template-columns:1fr 1fr}.repo-storage{display:none}.repo-main{padding:18px 12px 100px}.repo-project-head{display:block}.repo-head-actions{margin-top:14px;flex-wrap:wrap}.repo-stats{grid-template-columns:1fr 1fr}.repo-incentive{grid-template-columns:38px minmax(0,1fr)}.repo-incentive button{grid-column:2}.repo-toolbar{display:flex;flex-wrap:wrap}.repo-category-tabs{order:3;width:100%;max-width:none;margin-top:4px}.repo-history-toggle{margin-left:0}.version-item{grid-template-columns:1fr}.version-assets{display:none}.version-actions{justify-content:flex-start}.repo-file-table{overflow:auto}.repo-file-row{min-width:850px}.repo-order-bar{left:10px;right:10px}.repo-order-bar span{display:none}.repo-project-head p{line-height:1.6}}
