:root {
  --canvas: #f5f7f8;
  --surface: #ffffff;
  --sidebar: #fafbfc;
  --ink: #23313a;
  --muted: #697780;
  --line: #e6eaed;
  --accent: #246458;
  --accent-hover: #1b5147;
  --selected: #e7efed;
  --green: #36745d;
  --green-bg: #edf5f0;
  --radius: 10px;
  --ease: cubic-bezier(.2, 0, 0, 1);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.5 "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button, a, input, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
button, a.button { transition: background 120ms, color 120ms, transform 120ms var(--ease); }
button:active, a.button:active { transform: translateY(1px); }
a { color: inherit; }
[hidden] { display: none !important; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon.small { width: 15px; height: 15px; }
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--sidebar); padding: 28px 16px 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 19px; font-weight: 650; margin: 0 12px 37px; line-height: 1.3; }
.brand-mark { width: 35px; height: 37px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 9px; }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-caption { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: .08em; }
.nav-item { display: flex; align-items: center; width: 100%; height: 47px; gap: 11px; padding: 0 13px; background: transparent; border: 0; border-radius: 7px; text-align: left; font-size: 14px; margin: 4px 0; }
.nav-item:hover { background: #eff2f3; }
.nav-item.active { color: var(--accent); background: var(--selected); font-weight: 600; }
.nav-item > img { width: 25px; height: 25px; object-fit: contain; }
.nav-item > .icon { margin: 0 3px; }
.nav-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.nav-item.active .nav-count { color: var(--accent); }
.nav-label { color: var(--muted); font-size: 12px; margin: 29px 14px 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.entry-note { display: flex; gap: 9px; padding: 15px 10px; color: var(--muted); align-items: flex-start; }
.entry-note > .icon { width: 16px; height: 16px; margin-top: 3px; }
.entry-note strong { font-size: 12px; color: #52666b; font-weight: 500; }
.entry-note p { font-size: 12px; line-height: 1.65; margin: 5px 0 0; max-width: 140px; }
.help-button { display: flex; width: 100%; align-items: center; gap: 8px; background: transparent; border: 0; padding: 12px 10px; color: #63727a; font-size: 12px; border-radius: 7px; }
.help-button .icon:last-child { margin-left: auto; }
.help-button:hover { background: #eff2f3; }
.personal { border-top: 1px solid var(--line); margin-top: 15px; padding: 19px 10px 0; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { display: grid; place-items: center; height: 31px; width: 31px; background: #e7eaec; color: #5c6a72; border: 1px solid #dbe0e3; border-radius: 50%; font-size: 12px; }
.personal div > span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.workspace { min-width: 0; }
.topbar { height: 64px; display: flex; align-items: center; gap: 22px; padding: 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 13px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.breadcrumb > span { color: #a1aab0; }
.breadcrumb strong { font-weight: 500; color: #46575f; }
.search-wrap { display: flex; align-items: center; gap: 10px; height: 36px; width: 378px; margin-left: auto; padding: 0 10px 0 12px; background: #f5f7f8; border: 1px solid #e9edef; border-radius: 7px; color: var(--muted); }
.search-wrap:focus-within { background: white; border-color: var(--accent); box-shadow: 0 0 0 3px #2464580d; }
.search-wrap .icon { width: 16px; height: 16px; }
#search { min-width: 0; width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 12px; }
#search::-webkit-search-cancel-button { display: none; }
#search::placeholder { color: #75838c; opacity: 1; }
kbd { width: 19px; height: 21px; border: 1px solid #dce2e6; border-radius: 4px; text-align: center; font: 12px/18px "Segoe UI", sans-serif; color: #76858e; background: #fff; }
main { max-width: 1540px; padding: 24px 36px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; gap: 22px; align-items: center; margin-bottom: 20px; min-height: 52px; }
h1 { font-size: 25px; line-height: 1.35; letter-spacing: -.04em; margin: 0; font-weight: 650; }
.page-heading p { margin: 7px 0 0; font-size: 12px; color: var(--muted); }
.availability-filter { display: flex; align-items: center; gap: 8px; color: #60727a; font-size: 13px; cursor: pointer; padding: 8px 0 8px 12px; }
.availability-filter input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.software-list { display: grid; gap: 14px; }
.load-status { display: flex; align-items: center; justify-content: space-between; padding: 20px; margin-bottom: 14px; background: white; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; }
.software-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.software-panel.enter { animation: arrive 240ms var(--ease) both; }
.software-panel:nth-child(2) { animation-delay: 45ms; }
.software-panel:nth-child(3) { animation-delay: 90ms; }
.software-heading { display: flex; align-items: center; gap: 11px; min-height: 56px; padding: 10px 20px; }
.software-heading > img { width: 33px; height: 33px; object-fit: contain; }
.software-heading h2 { font-weight: 650; margin: 0; font-size: 17px; line-height: 1.3; }
.software-heading .english-name { font-size: 12px; color: var(--muted); display: inline; margin-left: 9px; font-weight: 400; }
.software-heading .type-count { font-size: 12px; color: var(--muted); margin-left: auto; }
.platform-label { font-size: 12px; color: #677780; padding-left: 13px; margin-left: 2px; border-left: 1px solid var(--line); }
.version-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.version-table col:nth-child(1) { width: 32%; }
.version-table col:nth-child(2) { width: 20%; }
.version-table col:nth-child(3) { width: 18%; }
.version-table col:nth-child(4) { width: 30%; }
.version-table th { background: #fafbfc; color: #6c7a83; font-size: 12px; font-weight: 400; text-align: left; height: 28px; padding: 3px 20px; border-top: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; }
.version-table th:last-child, .version-table td:last-child { text-align: right; }
.version-table td { height: 64px; padding: 9px 20px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
.version-table tr:last-child td { border-bottom: 0; }
.version-table tbody tr:hover { background: #fcfdfd; }
.edition-name { font-size: 14px; font-weight: 600; text-align: left; background: transparent; padding: 0; border: 0; display: inline-flex; align-items: center; gap: 7px; }
.edition-name:hover { color: var(--accent); }
.edition-name .icon { opacity: 0; color: var(--muted); width: 13px; height: 13px; transition: opacity 120ms; }
.edition-name:hover .icon, .edition-name:focus-visible .icon { opacity: 1; }
.subline { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.version { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: .01em; }
.release-meta { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 2px; }
.published-dot { height: 5px; width: 5px; background: var(--green); border-radius: 50%; }
.release-date { color: #667780; font-size: 13px; font-variant-numeric: tabular-nums; }
.date-empty { color: #8b989f; font-size: 13px; }
.unpublished-status { display: inline-block; color: #78868e; background: #f1f3f5; border-radius: 4px; font-size: 12px; padding: 2px 7px; }
.download-unavailable { display: inline-block; font-size: 12px; color: #8a969e; }
.download-actions { display: flex; justify-content: flex-end; gap: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 6px; height: 34px; padding: 0 12px; background: var(--accent); color: white; font-size: 13px; white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.button:hover { background: var(--accent-hover); }
.button .icon { width: 14px; height: 14px; }
.button.secondary { color: #536970; background: white; border-color: #dce4e6; }
.button.secondary:hover { border-color: #9db8b0; background: #f5f9f7; }
.download-actions .button { min-width: 100px; }
.button.secondary.copied { color: var(--accent); border-color: #b4cfc3; background: var(--green-bg); }
.button.text { background: transparent; color: var(--muted); }
.button.text:hover { background: #f0f3f4; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 4px; border: 0; background: transparent; color: var(--muted); border-radius: 5px; width: 28px; height: 28px; flex-shrink: 0; }
.icon-button:hover { background: #edf1f3; color: var(--ink); }
.library-footer { display: flex; justify-content: space-between; align-items: center; color: #7c8991; font-size: 12px; margin-top: 18px; }
.library-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #7a9c8e; }
.empty-state { text-align: center; background: white; border: 1px solid var(--line); padding: 68px 24px; border-radius: var(--radius); }
.empty-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; background: #f0f4f3; border-radius: 14px; color: #80958f; }
.empty-state h2 { font-size: 17px; font-weight: 600; margin: 17px 0 7px; }
.empty-state p { color: var(--muted); margin: 0 0 24px; font-size: 13px; }
dialog { width: 604px; max-width: calc(100vw - 80px); border: 1px solid #dce4e6; border-radius: 14px; color: var(--ink); padding: 26px 28px 22px; box-shadow: 0 24px 80px #182b3b2a; }
dialog[open] { animation: dialog-in 240ms var(--ease); }
dialog::backdrop { background: #1d2d3a46; backdrop-filter: blur(2px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.dialog-heading h2 { margin: 3px 0 0; font-size: 22px; line-height: 1.35; font-weight: 650; }
.eyebrow { margin: 0; color: var(--muted); font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-actions .button { height: 36px; padding: 0 15px; }
.detail-status { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 7px; background: var(--green-bg); color: var(--green); margin-bottom: 20px; }
.detail-status strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.detail-status span { font-size: 12px; margin-left: auto; }
.detail-label { display: block; font-size: 12px; font-weight: 500; color: #52666e; margin: 17px 0 8px; }
.path-field { width: 100%; border: 1px solid #dfe5e8; border-radius: 6px; background: #f7f9fa; padding: 11px 12px; color: #49616c; font: 12px/1.7 Consolas, "Microsoft YaHei UI", monospace; resize: none; outline-offset: 3px; overflow-wrap: anywhere; }
.detail-description { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }
.release-notes { padding-left: 18px; margin: 8px 0 20px; color: #5d7078; font-size: 13px; line-height: 1.9; }
.not-published-note { color: var(--muted); font-size: 14px; line-height: 1.9; padding: 15px 17px; background: #f5f7f8; border-radius: 7px; }
.help-section + .help-section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.help-section h3 { font-size: 14px; margin: 0 0 6px; }
.help-section p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.copy-buffer { position: fixed; top: 0; left: -10000px; width: 1px; height: 1px; padding: 0; border: 0; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1250px) {
  .topbar { padding-right: 26px; padding-left: 26px; gap: 15px; }
  main { padding-left: 26px; padding-right: 26px; }
  .software-heading .english-name { display: block; margin-left: 0; font-size: 11px; margin-top: 2px; }
  .version-table th, .version-table td { padding-right: 14px; padding-left: 14px; }
  .search-wrap { width: 330px; }
  .button { padding-right: 8px; padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
