* { box-sizing: border-box; }
:root { --bg: #0d1117; --surface: #161b22; --surface-soft: #10161e; --line: #30363d; --line-soft: #21262d; --text: #e6edf3; --muted: #8b949e; --blue: #58a6ff; --green: #3fb950; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
html { height: 100%; scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-width: 1080px; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); font: 14px/1.65 var(--font); }
a { color: inherit; text-decoration: none; }
button,
input { font: inherit; }
.sr-only,
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { flex-shrink: 0; border-bottom: 1px solid var(--line); background: rgba(13, 17, 23, 0.96); }
.header-inner { display: flex; align-items: center; gap: 36px; width: calc(100% - 32px); max-width: 1400px; height: 68px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--text); border-radius: 6px; color: var(--green); font: 700 15px/1 var(--mono); }
.brand strong { display: block; font-size: 17px; line-height: 1.2; }
.brand small { display: block; color: var(--green); font: 12px/1.4 var(--mono); }
.main-nav { display: flex; gap: 24px; font-size: 14px; }
.main-nav a { padding: 23px 0 20px; border-bottom: 2px solid transparent; color: #c9d1d9; white-space: nowrap; }
.main-nav a:hover,
.main-nav a.active { border-bottom-color: var(--blue); color: var(--blue); }
.search { display: flex; align-items: center; gap: 10px; flex-shrink: 0; width: 240px; height: 36px; margin-left: auto; padding: 0 9px 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--muted); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search button { height: 28px; padding: 0 12px; border: 1px solid #1f6feb; border-radius: 4px; background: #1f6feb; color: #fff; cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 700; }
.search button:hover { background: #388bfd; }
.page { flex: 1 0 auto; width: calc(100% - 48px); max-width: 1400px; margin: 0 auto; padding: 18px 0 44px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--muted); font: 12px/1.4 var(--mono); }
.breadcrumb a:hover { color: var(--blue); }
.content-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr); gap: 16px; align-items: start; }
.home-main,
.detail-main { min-width: 0; }
.detail-main { display: grid; gap: 16px; }
.home-section { margin-bottom: 28px; }
.home-section:last-child { margin-bottom: 0; }
.repository-list { display: flex; flex-direction: column; }
.repository-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 18px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); border-radius: 4px; transition: background 0.12s; }
.repository-card:hover { background: rgba(88, 166, 255, 0.04); }
.repository-card:last-child { border-bottom: 0; }
.repo-link { display: contents; }
.repo-cover { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); object-fit: cover; }
.repo-body { min-width: 0; }
.repo-body h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.3; }
.repo-body p { display: -webkit-box; margin: 0 0 10px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.repo-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.repo-meta .tags { font-size: 0; }
.repo-meta .tags a { font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 3px 8px; border: 1px solid #1f6feb; border-radius: 4px; color: var(--blue); font: 12px/1.4 var(--mono); }
.recommendations { display: grid; gap: 16px; }
.recommend-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: rgba(22, 27, 34, 0.82); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 15px 16px 12px; border-bottom: 1px solid var(--line); }
.panel-heading span { display: block; color: var(--green); font: 10px/1.2 var(--mono); text-transform: uppercase; }
.panel-heading h3 { margin: 3px 0 0; font-size: 17px; }
.panel-heading small { color: var(--muted); font: 11px/1.4 var(--mono); }
.resource-list { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.resource-list li { display: grid; grid-template-columns: 28px 1fr; align-items: start; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); counter-increment: rank; }
.resource-list li::before { content: counter(rank, decimal-leading-zero); color: #6e7681; font: 11px/1.2 var(--mono); }
.resource-list li:hover { background: rgba(88, 166, 255, 0.06); }
.resource-list li:last-child { border-bottom: 0; }
.rl-title { display: block; color: inherit; }
.rl-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rl-title:hover strong { color: var(--blue); }
.rl-tags { grid-column: 2; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font: 11px/1.45 var(--mono); }
.rl-tags a { color: var(--muted); }
.rl-tags a:hover { color: var(--blue); }
.hot-list li::before { color: var(--green); }
.category-header { margin-bottom: 18px; padding: 0 4px; }
.category-title { margin: 0 0 10px; font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.category-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.pagination a,
.pagination span { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); font: 13px/1 var(--mono); transition:
    background 0.12s, border-color 0.12s; }
.pagination a:hover { border-color: var(--blue); background: rgba(88, 166, 255, 0.08); }
.pagination .page-active { border-color: #1f6feb; background: rgba(31, 111, 235, 0.14); color: var(--blue); font-weight: 700; }
.pagination .page-prev,
.pagination .page-next { padding: 0 14px; color: var(--muted); font-family: var(--font); font-size: 13px; }
.pagination .page-prev:hover,
.pagination .page-next:hover { color: var(--blue); }
.documentation { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: rgba(13, 17, 23, 0.82); }
.resource-intro { display: grid; grid-template-columns: 176px minmax(0, 1fr); align-items: center; gap: 26px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cover { width: 176px; height: 176px; border-radius: 6px; background: var(--surface); object-fit: cover; }
h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.2; letter-spacing: -0.7px; }
.intro-copy h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intro-copy p { display: -webkit-box; max-width: 680px; margin: 0 0 16px; overflow: hidden; color: #b1bac4; font-size: 15px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.documentation > .download-console { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; gap: 18px; margin: 0; padding: 16px 22px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.documentation > .download-console dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.documentation > .download-console dl div { display: block; margin: 0; padding-right: 10px; border-right: 1px dashed var(--line); }
.documentation > .download-console dl div:last-child { border-right: 0; }
.documentation > .download-console dt { margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.documentation > .download-console dd { margin: 0; overflow: hidden; color: var(--green); text-overflow: ellipsis; white-space: nowrap; }
.documentation > .download-console .download-button { height: 50px; }
.download-button { display: grid; place-items: center; height: 43px; border-radius: 6px; background: #1f6feb; color: #fff; font-size: 15px; font-weight: 700; }
.download-button:hover { background: #388bfd; }
.resource-content { counter-reset: section; color: #c9d1d9; }
.resource-content h2 { position: relative; margin: 0; padding: 20px 22px 0 76px; border-top: 1px solid var(--line); font-size: 19px; line-height: 1.35; counter-increment: section; }
.resource-content h2::before { content: counter(section, decimal-leading-zero); position: absolute; left: 22px; color: var(--blue); font: 700 15px/1.4 var(--mono); }
.resource-content ul { margin: 14px 22px 20px 76px; padding-left: 19px; }
.resource-content li + li { margin-top: 5px; }
.resource-content li::marker { color: var(--green); font-family: var(--mono); }
.resource-extras { padding: 22px; border-top: 1px solid var(--line); }
.resource-extras-standalone { margin-top: 0; border: 1px solid var(--line); border-radius: 6px; background: rgba(13, 17, 23, 0.82); }
.category-subnav { margin-bottom: 18px; padding: 0; border-top: 0; }
.category-subnav .extras-grid { display: block; }
.category-subnav .extra-card { padding: 16px; }
.extras-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 15px 16px 12px; }
.extras-heading span { display: block; color: var(--green); font: 10px/1.2 var(--mono); text-transform: uppercase; }
.extras-heading h2 { margin: 3px 0 0; font-size: 17px; line-height: 1.3; }
.extras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.extra-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: rgba(22, 27, 34, 0.56); }
.extra-card-wide { grid-column: 1 / -1; }
.extra-card h3 { margin: 0 0 12px; font-size: 15px; line-height: 1.3; }
.extra-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.extra-tags a { padding: 4px 8px; border: 1px solid #1f6feb; border-radius: 4px; color: var(--blue); font: 12px/1.4 var(--mono); }
.extra-tags a:hover { background: rgba(88, 166, 255, 0.08); }
.category-subnav .extra-tags a.active { border-color: var(--blue); background: rgba(31, 111, 235, 0.22); color: var(--text); }
.extra-links { margin: 0; padding: 0; list-style: none; color: #c9d1d9; }
.extra-links li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.extra-links li:last-child { padding-bottom: 0; border-bottom: 0; }
.extra-title-link { max-width: 180px; min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.extra-title-link:hover { color: var(--blue); }
.extra-link-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.extra-link-tags a { padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; font: 11px/1.4 var(--mono); }
.extra-link-tags a:hover { border-color: #1f6feb; background: rgba(88, 166, 255, 0.08); color: var(--blue); }
.not-found { padding: 60px 24px 80px; text-align: center; }
.nf-code { margin: 0 0 8px; color: var(--text); letter-spacing: -3px; font: 700 108px/1 var(--mono); }
.nf-label { margin: 0 0 12px; color: var(--blue); font: 15px/1.4 var(--mono); }
.nf-desc { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.nf-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.nf-btn { display: inline-grid; place-items: center; height: 42px; padding: 0 22px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: 14px/1 var(--font); transition:
    background 0.12s, border-color 0.12s; }
.nf-btn:hover { border-color: var(--blue); background: rgba(88, 166, 255, 0.08); color: var(--blue); }
.nf-btn-primary { border-color: #1f6feb; background: #1f6feb; color: #fff; font-weight: 700; }
.nf-btn-primary:hover { background: #388bfd; color: #fff; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; min-width: 1080px; padding: 18px max(24px, calc((100% - 1400px) / 2)); border-top: 1px solid var(--line); background: #0a0f14; color: var(--muted); font: 12px/1.4 var(--mono); }
.site-footer span { color: var(--green); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a:hover { color: var(--blue); }
@media (max-width: 1180px) { .header-inner, .page { width: calc(100% - 32px); }
.content-grid { grid-template-columns: minmax(0, 68fr) minmax(290px, 32fr); }
.search { width: 310px; }
}
