@charset "UTF-8";
:root {
  --background: #fff;
  --foreground: #1c1c1e;
  --primary: #007aff;
  --muted: #8e8e93;
  --border: rgba(0, 0, 0, .08);
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--background); color: var(--foreground); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a, button, input, select { outline-offset: 4px; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--primary); }
[hidden] { display: none !important; }
svg { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 12px; background: #1c1c1e; color: #fff; }
.skip-link:focus { top: 10px; }
.page-content-container, .wrap { width: min(1280px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: fixed; z-index: 30; inset: 0 0 auto; background: rgba(255,255,255,.92); backdrop-filter: blur(20px); }
.nav-container, .header-inner { min-height: 60px; width: min(1280px, calc(100% - 32px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 16px; font-weight: 600; letter-spacing: -.6px; }
.brand img { display: block; }
.brand strong { font-weight: 650; letter-spacing: -.7px; }
.desktop-nav { display: flex; align-items: center; justify-content: center; margin-left: 50px; }
.nav-link { position: relative; display: inline-flex; justify-content: center; align-items: center; gap: 4px; padding: 0 10px; height: 40px; font-size: 14px; font-weight: 400; letter-spacing: -.01em; color: rgba(0,0,0,.62); white-space: nowrap; list-style: none; }
.nav-link::-webkit-details-marker { display: none; }
.nav-link svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.nav-link:hover, .nav-active { color: rgba(0,0,0,.94); }
.nav-active { font-weight: 500; }
.nav-active:after { content: ""; position: absolute; width: 16px; height: 1px; background: currentColor; bottom: 3px; left: 50%; transform: translateX(-50%); }
.nav-menu { position: relative; }
.nav-dropdown { position: absolute; left: -9px; top: 45px; min-width: 190px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 8px 30px #0000000d; }
.nav-dropdown > * { display: block; width: 100%; padding: 10px 12px; border-radius: 7px; text-align: left; font-size: 13px; white-space: nowrap; }
.nav-dropdown > *:hover { background: #f5f5f7; }
.nav-actions { display: flex; gap: 12px; flex-shrink: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; height: 36px; padding: 0 17px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 400; white-space: nowrap; transition: background .18s, border-color .18s; }
.button.primary { background: #1c1c1e; color: #fff; }
.button.primary:hover { background: #373739; }
.button.primary > span { font-size: 21px; font-weight: 300; line-height: 1; }
.button.outline, .button.secondary { border-color: rgba(0,0,0,.08); background: #fff; }
.button.outline:hover, .button.secondary:hover { background: #f7f7f8; border-color: rgba(0,0,0,.15); }
.directory-main { padding: 112px 0 0; flex: 1; }
.directory-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 32px; }
.directory-heading h1 { margin: 0; color: var(--foreground); font-size: 32px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; }
.directory-heading p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.625; color: rgba(0,0,0,.55); }
.heading-count { color: rgba(0,0,0,.35); font-weight: 400; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 12px; }
.order-tabs { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.order-tabs button { padding: 7px 12px; min-height: 34px; border-radius: 8px; color: rgba(0,0,0,.55); font-size: 13px; white-space: nowrap; }
.order-tabs button.active { background: #f2f2f2; color: #1c1c1e; font-weight: 500; }
.order-tabs button:hover { color: #1c1c1e; background: #f7f7f8; }
.directory-filters { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.filter-select { position: relative; display: inline-flex; align-items: center; height: 34px; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; background: #fff; }
.filter-select select { appearance: none; min-width: 95px; max-width: 180px; padding: 0 29px 0 12px; height: 32px; background: transparent; border: 0; outline-offset: 4px; border-radius: 7px; font-size: 13px; color: rgba(0,0,0,.65); cursor: pointer; }
.category-select select { min-width: 124px; }
.filter-select > svg { pointer-events: none; position: absolute; right: 9px; width: 13px; height: 13px; stroke: rgba(0,0,0,.55); stroke-width: 1.3; fill: none; }
.square-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 7px; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; background: #f5f5f5; }
.square-button svg { width: 17px; height: 17px; stroke: #5b5b60; stroke-width: 1.5; fill: none; }
.view-switch { display: flex; align-items: center; height: 34px; padding: 3px; background: #f7f7f8; border-radius: 8px; }
.view-switch button { display: grid; place-items: center; width: 29px; height: 28px; border-radius: 6px; padding: 5px; color: #969699; }
.view-switch button.active { background: #fff; color: #58585c; box-shadow: 0 1px 4px #0000000a; }
.view-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.search-box { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 14px; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; background: #fff; }
.search-box:focus-within { border-color: #007aff66; box-shadow: 0 0 0 3px #007aff0a; }
.search-box > svg { width: 17px; height: 17px; fill: none; stroke: #c7c7cc; stroke-width: 1.5; }
.search-box input { flex: 1; min-width: 0; padding: 7px 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: #1c1c1e; }
.search-box input::placeholder { color: #c7c7cc; }
.search-box kbd { font: 11px var(--mono); color: #c7c7cc; border: 1px solid #efeff1; border-radius: 4px; width: 19px; text-align: center; line-height: 21px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.skill-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px 20px; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.skill-card:hover { border-color: rgba(0,0,0,.12); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.card-heading { display: flex; align-items: flex-start; gap: 12px; min-height: 47px; }
.skill-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; background: #f1f5ff; color: #5572ff; }
.skill-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-code { background: #061b4d; color: #2dd4ff; }
.icon-git { background: #fff0e9; color: #ec7244; }
.icon-test { background: #edf9f4; color: #30a474; }
.icon-ui { background: #7044eb; color: #fff; }
.icon-memory { background: #edf3ff; color: #4b78d7; }
.card-title-group { min-width: 0; flex: 1; }
.skill-card h3 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: -.025em; color: #1c1c1e; }
.skill-card h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: fit-content; max-width: 100%; }
.skill-card h3 a:hover { color: var(--primary); }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.category-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; color: rgba(0,0,0,.4); font-size: 10px; line-height: 1; white-space: nowrap; }
.card-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 40.3px; margin: 8px 0 0; font-size: 13px; font-weight: 400; line-height: 1.55; color: rgba(0,0,0,.55); }
.card-bottom { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 12px; font-weight: 300; line-height: 1.4; color: rgba(0,0,0,.4); min-width: 0; }
.card-bottom > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.card-bottom .card-author { overflow: hidden; text-overflow: ellipsis; display: block; }
.card-bottom svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.favorite-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: inherit; font-size: 12px; font-weight: 300; white-space: nowrap; }
.favorite-button:hover, .favorite-button[aria-pressed="true"] { color: var(--primary); }
.favorite-button[aria-pressed="true"] svg { fill: #007aff20; }
.collection-end { padding: 32px 0; margin: 0; text-align: center; color: #c7c7cc; font-size: 13px; }
.skills-grid.list-view { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; overflow: hidden; }
.list-view .skill-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 26px; border: 0; border-radius: 0; padding: 24px 20px; }
.list-view .skill-card + .skill-card:before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: rgba(0,0,0,.06); }
.list-view .skill-card:hover { background: #f9f9f9; box-shadow: none; }
.list-view .card-heading { grid-column: 1; min-height: 40px; }
.list-view .card-tags { margin-top: 5px; }
.list-view .card-description { grid-column: 1; height: auto; margin: 0 0 0 52px; -webkit-line-clamp: 1; font-size: 12.5px; }
.list-view .card-bottom { grid-column: 2; grid-row: 1 / 3; margin-top: 5px; align-self: start; min-width: 224px; justify-content: flex-end; }
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state > svg { width: 66px; height: 66px; stroke: #c7c7cc; stroke-width: 1.5; fill: #fafafa; margin-bottom: 15px; }
.empty-state h2 { font-size: 18px; font-weight: 500; margin: 0 0 9px; }
.empty-state p { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.catalog-error { color: #8e8e93; font-size: 13px; text-align: center; }
.catalog-error button { color: var(--primary); margin-left: 8px; }
.site-footer { border-top: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.8); margin-top: 64px; padding: 36px 0 25px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; }
.footer-inner .brand { font-size: 14px; }
.footer-inner > div > p { margin: 10px 0 0; color: #8e8e93; font-size: 12px; }
.footer-links { display: flex; gap: 30px; align-items: flex-start; font-size: 13px; color: rgba(0,0,0,.55); padding-top: 6px; }
.footer-links button { font-size: inherit; padding: 0; color: inherit; }
.footer-links > *:hover { color: var(--primary); }
.footer-disclaimer, .copyright { grid-column: 1 / -1; font-size: 11px; color: #b1b1b5; margin: 0; }
.copyright { margin-top: -16px; }
.floating-guide { position: fixed; right: 24px; bottom: 120px; z-index: 20; width: 42px; padding: 18px 11px; border: 1px solid rgba(0,0,0,.03); border-radius: 24px; box-shadow: 0 6px 26px #0000000a; background: #fff; color: var(--primary); font-size: 14px; font-weight: 500; line-height: 1.1; writing-mode: vertical-rl; letter-spacing: 1px; }
dialog { width: min(790px,calc(100% - 32px)); max-height: 88vh; overflow: auto; padding: 28px 32px; border: 1px solid rgba(0,0,0,.08); border-radius: 18px; background: #fff; color: var(--foreground); box-shadow: 0 24px 100px #0000001f; }
dialog::backdrop { background: #0000004d; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.eyebrow { margin: 0; color: #8e8e93; font-size: 12px; font-weight: 400; }
.icon-button { font-size: 26px; line-height: 1; color: #8e8e93; padding: 0 4px; }
dialog h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.45; font-weight: 500; letter-spacing: -.025em; }
.dialog-intro, .about-copy { color: rgba(0,0,0,.55); font-size: 14px; line-height: 1.8; margin: 0 0 22px; }
.about-copy { margin-bottom: 26px; }
.detail-slug { font: 12px var(--mono); color: #8e8e93; margin: 0 0 17px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; color: #8e8e93; font-size: 11px; }
.detail-meta > span { border: 1px solid rgba(0,0,0,.08); border-radius: 20px; padding: 4px 10px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.detail-actions > a:not(.button), .text-button { font-size: 12px; color: rgba(0,0,0,.55); }
.text-button { padding: 5px 0; }
.text-button:hover, .detail-actions > a:not(.button):hover { color: var(--primary); }
.detail-requirements { margin: 20px 0; padding: 12px 14px; border-radius: 8px; background: #f7f8fa; color: #8e8e93; font-size: 12px; line-height: 1.8; }
.detail-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--border); margin-top: 24px; }
.detail-tabs button { font-size: 13px; color: rgba(0,0,0,.55); padding: 12px 0; border-bottom: 2px solid transparent; }
.detail-tabs button.active { border-bottom-color: #1c1c1e; color: #1c1c1e; font-weight: 500; }
.detail-panel { padding-top: 20px; }
.readme { font: 13px/1.9 var(--sans); color: rgba(0,0,0,.65); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.file-list { padding: 0; margin: 0; list-style: none; font: 12px/2.5 var(--mono); color: rgba(0,0,0,.55); overflow-wrap: anywhere; }
.releases-list { padding: 0; list-style: none; }
.releases-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 12px; color: #8e8e93; }
.releases-list code { font: 12px var(--mono); color: #1c1c1e; }
.releases-list a { color: var(--primary); }
.command-box { display: flex; align-items: center; gap: 15px; min-width: 0; background: #f7f7f9; border: 1px solid rgba(0,0,0,.05); border-radius: 10px; padding: 15px; margin: 16px 0; }
.command-box code { flex: 1; min-width: 0; font: 11px/1.9 var(--mono); color: #414149; white-space: pre-wrap; overflow-wrap: anywhere; }
.command-box button { padding: 5px 10px; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; background: #fff; color: #63636a; font-size: 11px; flex-shrink: 0; }
.command-box button:hover { color: var(--primary); }
.guide-os { display: flex; gap: 5px; width: fit-content; max-width: 100%; flex-wrap: wrap; padding: 4px; background: #f2f2f4; border-radius: 9px; margin: 24px 0; }
.guide-os button { padding: 7px 13px; border-radius: 6px; font-size: 12px; color: #8e8e93; }
.guide-os .active { background: #fff; color: #1c1c1e; box-shadow: 0 1px 4px #0000000a; }
.guide-step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.guide-step > span { padding-top: 4px; font: 12px var(--mono); color: #b1b1b5; }
.guide-step > div { flex: 1; min-width: 0; }
.guide-step h3 { margin: 0 0 9px; font-size: 15px; font-weight: 500; }
.guide-step p { margin: 0 0 13px; color: #8e8e93; font-size: 12px; line-height: 1.8; }
.guide-step .button { font-size: 12px; }
.guide-tip { color: #8e8e93; font-size: 11px; line-height: 1.8; }
.guide-tip code { padding: 2px 4px; background: #f2f2f4; font: 10px var(--mono); border-radius: 3px; }
.guide-reference { display: block; font-size: 11px; color: #8e8e93; text-align: right; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 11px 20px; max-width: calc(100% - 32px); border: 1px solid #e7e7ec; border-radius: 12px; background: #fff; box-shadow: 0 5px 25px #00000012; font-size: 13px; color: #1c1c1e; }
.detail-page { padding-top: 112px; padding-bottom: 40px; }
.back-link { font-size: 13px; color: #8e8e93; }
.detail-page > .eyebrow { margin-bottom: 22px; }
.detail-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.detail-page-heading h1 { margin: 0 0 12px; font-size: 32px; font-weight: 500; letter-spacing: -.025em; }
.detail-page-heading p { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.8; color: rgba(0,0,0,.55); }
.detail-page-heading > .button { flex-shrink: 0; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--border); color: #8e8e93; font-size: 12px; }
.detail-install { padding: 30px 0; }
.detail-install h2, .readme-heading h2 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.detail-install p { color: #8e8e93; font-size: 13px; }
.detail-install p > a { color: var(--primary); }
.readme-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.readme-heading span { font: 12px var(--mono); color: #b1b1b5; }
.readme-section > .readme { border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 28px; }
.detail-page + .site-footer { padding: 25px max(16px, calc((100% - 1280px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; font-size: 12px; color: #8e8e93; }
@media (min-width: 1100px) { .nav-container, .header-inner { width: min(1280px, calc(100% - 96px)); } }
@media (min-width: 1280px) { .page-content-container, .wrap { width: min(1280px, calc(100% - 160px)); } }
@media (max-width: 1279px) { .skills-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 1099px) { .desktop-nav { margin-left: 0; } .nav-link { padding-inline: 8px; font-size: 13px; } .nav-actions { gap: 8px; } .nav-actions .button { padding-inline: 12px; font-size: 12px; } .directory-toolbar { flex-wrap: wrap; gap: 16px; } .directory-filters { margin-left: auto; } }
@media (max-width: 767px) { .desktop-nav { display: none; } .nav-container, .header-inner { gap: 14px; } .directory-main, .detail-page { padding-top: 88px; } .directory-heading { gap: 8px; margin-bottom: 24px; } .directory-heading h1 { font-size: 27px; } .directory-heading p { flex-basis: 100%; font-size: 12px; line-height: 1.8; } .order-tabs { gap: 6px; } .order-tabs button { padding-inline: 10px; font-size: 12px; } .directory-filters { width: 100%; justify-content: flex-start; gap: 6px; } .filter-select { flex: 1; min-width: 0; } .filter-select select { min-width: 0; width: 100%; max-width: none; padding-left: 9px; padding-right: 23px; font-size: 11px; } .license-select { display: none; } .view-switch { flex-shrink: 0; margin-left: auto; } .search-box input { font-size: 12px; } .skills-grid { margin-top: 20px; gap: 12px; } .skill-card { padding: 22px 17px; } .card-bottom { gap: 10px; font-size: 11px; } .favorite-button { font-size: 11px; } .card-author { max-width: 100px; } .list-view .skill-card { grid-template-columns: 1fr; gap: 6px; padding: 22px 17px; } .list-view .card-bottom { grid-column: 1; grid-row: 3; min-width: 0; justify-content: flex-start; margin: 6px 0 0 52px; } .floating-guide { right: 14px; bottom: 26px; height: 36px; width: auto; padding: 0 15px; writing-mode: horizontal-tb; font-size: 12px; letter-spacing: 0; } .site-footer { margin-top: 36px; padding-top: 28px; } .footer-inner { grid-template-columns: 1fr; gap: 20px; } .footer-links { gap: 25px; font-size: 12px; } .footer-disclaimer, .copyright { grid-column: 1; } .copyright { margin-top: -8px; } dialog { padding: 23px 20px; } dialog h2 { font-size: 23px; } .guide-os button { font-size: 10px; padding-inline: 9px; } .guide-step { gap: 13px; } .detail-page-heading { flex-direction: column; align-items: flex-start; gap: 20px; } .detail-page-heading h1 { font-size: 28px; } .detail-facts { gap: 12px; } .readme-section > .readme { padding: 18px; } .detail-page + .site-footer { flex-wrap: wrap; } }
@media (max-width: 639px) { .skills-grid { grid-template-columns: 1fr; } .card-bottom { font-size: 12px; gap: 12px; } .favorite-button { font-size: 12px; } .card-author { max-width: none; } .skill-card { padding: 24px 20px; } }
@media (max-width: 767px) { .floating-guide { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition: none !important; animation: none !important; } }
