:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #223b40;
  background: #edf6f3;
  font-synthesis: none;
  --accent: #e97540;
  --ink: #223b40;
  --line: #dbe7e1;
  --muted: #526b6b;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #27655e; text-underline-offset: 4px; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #b25228; outline-offset: 4px; }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 12px; background: white; z-index: 2; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px max(24px, calc((100% - 820px) / 2)); background: #f8fcfa; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: #fff; border-radius: 50%; font-size: 28px; line-height: 1; }
.brand-detail { border-left: 1px solid #cadbd4; margin-left: 4px; padding-left: 14px; font-size: 13px; letter-spacing: .08em; }
.header-label { font-size: 12px; color: var(--muted); }
main { width: min(820px, calc(100% - 40px)); margin: 46px auto 56px; }
main:focus { outline: none; }
.intro { max-width: 630px; }
.eyebrow { margin: 0 0 10px; color: #75431f; font-size: 12px; font-weight: 650; }
h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 40px); line-height: 1.3; letter-spacing: -.6px; }
p { line-height: 1.8; }
.intro>p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.platform-switch { display: inline-flex; gap: 4px; margin: 28px 0 22px; border: 1px solid #cbdcd1; padding: 4px; border-radius: 12px; background: #e3eee8; }
.platform-switch button { min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #42615c; cursor: pointer; font-size: 14px; font-weight: 650; }
.platform-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #d1ded7; box-shadow: 0 1px 3px #203e3610; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
#catalog-status { margin: 0; color: var(--muted); font-size: 12px; }
#catalog-status[data-tone="error"] { color: #8d3c25; }
.reload { flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #cbdcd1; border-radius: 8px; color: #2c514b; background: transparent; font-size: 12px; cursor: pointer; }
.reload:hover { background: #f8fcfa; }
.reload:disabled { cursor: wait; opacity: .65; }
.app-list { display: grid; gap: 16px; }
.app-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 24px 26px; }
.app-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.app-symbol { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: #e7f0e9; color: #355f52; font-size: 14px; font-weight: 700; }
.app-card[data-app="paperless"] .app-symbol { background: #f1ecde; color: #766442; }
.app-card[data-app="guiyu"] .app-symbol { background: #fce9d9; color: #88431f; }
.app-heading h2 { margin: 0 0 4px; font-size: 21px; line-height: 1.4; overflow-wrap: anywhere; }
.app-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.app-label { display: inline-block; margin-left: 8px; vertical-align: middle; font-size: 10px; font-weight: 500; color: #6f5d34; background: #f7f0df; padding: 3px 6px; border-radius: 4px; }
.version-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; margin: 0 0 12px; font-size: 13px; }
.version-line strong { font-weight: 650; overflow-wrap: anywhere; }
.version-line span { color: var(--muted); font-size: 12px; }
.download { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #382513; font-size: 14px; line-height: 1.5; font-weight: 700; text-decoration: none; }
.download:hover { background: #ef8957; border-color: #ef8957; }
.app-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.app-note.warning { color: #8d4c2c; }
.latest { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.latest p { margin: 0; font-size: 12px; color: var(--muted); }
.latest a { display: inline-block; padding: 11px 0; min-height: 44px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.empty-state { margin: 0; padding: 14px 16px; color: var(--muted); background: #f3f7f4; border-radius: 8px; font-size: 13px; }
.connection-help { padding: 26px 4px 0; }
.connection-help h2 { margin: 0 0 7px; font-size: 16px; }
.connection-help p { margin: 0; color: var(--muted); font-size: 13px; }
.connection-help a { display: inline-block; padding: 12px 0; min-height: 44px; font-size: 13px; font-weight: 650; }
footer { padding: 22px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.9; text-align: center; }
@media (max-width: 520px) {
  .site-header { padding: 16px 20px; }
  .brand { font-size: 21px; }
  main { width: calc(100% - 32px); margin-top: 30px; margin-bottom: 36px; }
  .platform-switch { display: flex; }
  .platform-switch button { flex: 1; padding-inline: 12px; }
  .catalog-toolbar { gap: 10px; align-items: flex-start; }
  .app-card { padding: 20px; }
  .app-heading { gap: 12px; }
  .app-heading h2 { font-size: 19px; }
  .app-label { margin-left: 0; display: block; width: fit-content; margin-top: 5px; }
  .download { width: 100%; }
}
