:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --blue: #0066cc;
  --muted: #6e6e73;
  --sidebar-width: 248px;
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
button, input, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }
button, a, input { outline-offset: 4px; }
:focus-visible { outline: 3px solid #0071e3; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; z-index: 30; border-radius: 8px; background: white; color: var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: var(--sidebar-width); padding: 26px 20px 24px; border-right: 1px solid #d9d9dc; background: #efeff1; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 4px 29px; width: fit-content; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; color: white; background: #0071e3; display: grid; place-items: center; font-size: 23px; font-weight: 650; line-height: 1; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.brand-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .2px; }
.search { display: flex; align-items: center; gap: 7px; padding: 0 10px; height: 35px; background: #fff; border: 1px solid #d4d4d8; border-radius: 6px; margin: 0 4px 22px; }
.search:focus-within { outline: 3px solid #0071e32e; border-color: #0071e3; }
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.search .icon { width: 15px; height: 15px; color: #0071e3; }
.search input { border: 0; padding: 0; min-width: 0; width: 100%; background: transparent; font-size: 12px; height: 100%; outline: none; color: #1d1d1f; }
.search input::placeholder { color: #76767b; }
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-item { border: 0; background: transparent; border-radius: 7px; min-height: 38px; padding: 8px 11px; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 14px; color: #303034; }
.nav-item .icon { width: 20px; height: 20px; color: #0071e3; }
.nav-item[aria-pressed="true"] { color: #005cbf; background: #dde7f5; font-weight: 600; }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 500; color: #5f738f; }
.nav-heading { margin: 28px 11px 8px; color: #737379; font-size: 11px; font-weight: 500; }
.sidebar-bottom { margin-top: auto; padding: 60px 9px 0; font-size: 11px; color: var(--muted); }
.small-mark { display: inline-block; width: 5px; height: 5px; margin: 0 5px 2px 0; background: #0071e3; border-radius: 50%; }
.sidebar-bottom a { display: block; margin-top: 10px; color: #606066; }
.page { margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100svh; }
main { padding: 36px 40px 72px; flex: 1; width: 100%; max-width: 1712px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.3; font-weight: 650; letter-spacing: .8px; }
.developer-caption { font-size: 12px; margin-top: 9px; color: var(--muted); }
.platform-badge { display: flex; align-items: center; gap: 7px; border: 1px solid #dfdfe3; color: #636368; border-radius: 20px; padding: 7px 11px; font-size: 11px; letter-spacing: .3px; white-space: nowrap; }
.platform-badge > span { height: 5px; width: 5px; border-radius: 50%; background: #0071e3; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
h2 { font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: .1px; }
.featured-section { margin-bottom: 61px; }
.featured-app { max-width: 430px; }
.app-card { display: flex; align-items: center; min-width: 0; gap: 16px; }
.app-image-link { display: block; width: 82px; height: 82px; flex-shrink: 0; border-radius: 19px; position: relative; background: #e6e9ef; box-shadow: 0 0 0 1px #1d1d1f0d; overflow: hidden; }
.app-image-link img { width: 100%; height: 100%; display: block; object-fit: cover; position: relative; z-index: 1; }
.icon-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 25px; font-weight: 600; color: #617089; }
.app-info { flex: 1; min-width: 0; }
.app-name { display: block; width: fit-content; max-width: 100%; font-size: 14px; font-weight: 400; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-description { margin-top: 1px; font-size: 12px; line-height: 1.5; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-button { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 29px; margin-top: 8px; padding: 5px 16px; border-radius: 20px; background: #e6edf7; color: var(--blue); font-size: 12px; line-height: 1.5; font-weight: 600; transition: background 150ms, color 150ms; }
.featured-app .app-image-link { width: 88px; height: 88px; border-radius: 21px; }
.apps-heading-row { margin-bottom: 23px; }
.app-count { font-size: 12px; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; row-gap: 28px; }
.empty-state { text-align: center; padding: 65px 20px 90px; color: var(--muted); }
.empty-state > svg { width: 36px; height: 36px; margin-bottom: 18px; fill: none; stroke: #93939b; stroke-width: 1.3; stroke-linecap: round; }
.empty-state h3 { font-size: 16px; font-weight: 500; color: #35353a; }
.empty-state p { margin-top: 9px; font-size: 13px; line-height: 1.6; }
.reset-button { padding: 9px 17px; margin-top: 21px; font-size: 13px; color: var(--blue); border: 0; border-radius: 20px; background: #e6edf7; }
footer { padding: 23px 40px 28px; background: #f0f0f2; color: #717178; font-size: 11px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 6px; }
.footer-links a { color: #414147; }
.footer-divider { height: 10px; width: 1px; background: #d0d0d5; }
button:active, .download-button:active { background: #d0e0f5; }
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover { background: #e4e4e9; }
  .nav-item[aria-pressed="true"]:hover { background: #d6e3f4; }
  .download-button:hover, .reset-button:hover { background: #d3e3f7; color: #0056b3; }
  .app-name:hover, .footer-links a:hover, .sidebar-bottom a:hover { color: var(--blue); }
  .app-image-link:hover { box-shadow: 0 0 0 1px #1d1d1f16, 0 4px 16px #1d1d1f0a; }
}
@media (max-width: 1399px) { .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; } }
@media (max-width: 1099px) { :root { --sidebar-width: 224px; } main { padding-left: 32px; padding-right: 32px; } .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: calc(18px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); border-right: 0; border-bottom: 1px solid #dedee3; overflow: visible; }
  .brand { margin: 0 0 19px; } .brand-name { font-size: 17px; } .brand-subtitle { font-size: 10px; }
  .search { margin: 0 0 14px; height: 42px; } .search input { font-size: 16px; }
  nav { display: flex; gap: 7px; overflow-x: auto; padding: 3px 0 6px; scrollbar-width: none; } nav::-webkit-scrollbar { display: none; }
  .nav-group { flex-direction: row; flex-shrink: 0; gap: 7px; } .nav-heading, .nav-count, .sidebar-bottom, #primary-nav .nav-item[data-filter="featured"] { display: none; }
  .nav-item { padding: 8px 12px; min-height: 38px; font-size: 12px; white-space: nowrap; background: #e5e5e9; border-radius: 20px; gap: 6px; }
  .nav-item .icon { width: 15px; height: 15px; } .nav-item[aria-pressed="true"] { background: #dce8f8; }
  .page { margin-left: 0; min-height: calc(100svh - 225px); }
  main { padding: 27px max(24px, env(safe-area-inset-right, 0px)) 60px max(24px, env(safe-area-inset-left, 0px)); }
  .page-header { margin-bottom: 30px; } h1 { font-size: 26px; } .developer-caption { font-size: 11px; }
  .platform-badge { font-size: 10px; padding: 6px 9px; } .featured-section { margin-bottom: 43px; }
  .app-grid { column-gap: 24px; row-gap: 25px; } .app-card { gap: 12px; }
  .app-image-link { width: 70px; height: 70px; border-radius: 16px; }
  footer { padding: 22px max(24px, env(safe-area-inset-right, 0px)) calc(25px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); }
}
@media (max-width: 540px) {
  .app-grid { grid-template-columns: 1fr; row-gap: 23px; }
  .app-image-link { width: 78px; height: 78px; border-radius: 18px; } .app-card { gap: 16px; }
  .app-name { font-size: 15px; } .app-description { font-size: 12px; }
  .download-button { min-width: 62px; min-height: 32px; margin-top: 7px; }
  .app-image-link, .app-name { touch-action: manipulation; }
}
@media (pointer: coarse) {
  .download-button { min-height: 44px; padding-block: 10px; }
  .search input { font-size: 16px; }
  .nav-item, .reset-button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
