@font-face { font-family: "Inter Site"; src: url("assets/fonts/InterVariable.woff2?v=20261016.8") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans SC Site"; src: url("assets/fonts/NotoSansSC-subset.woff2?v=20261016.8") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Sans JP Site"; src: url("assets/fonts/NotoSansJP-subset.woff2?v=20261016.8") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --canvas: #fbfbfd;
  --surface: #ffffff;
  --surface-subtle: #f4f4f8;
  --ink: #202334;
  --ink-soft: #666b7e;
  --muted: #8a8e9d;
  --line: #e5e5ed;
  --forest: #655be7;
  --forest-deep: #4f45cf;
  --forest-soft: #efeeff;
  --coral: #655be7;
  --coral-hover: #5147ce;
  --coral-soft: #e9e7ff;
  --link: #5046cf;
  --link-hover: #4037b8;
  --verified-bg: #f0f0f5;
  --verified-ink: #676b79;
  --tested-bg: #e8f7f0;
  --tested-ink: #16714f;
  --paper: var(--canvas);
  --white: var(--surface);
  --sans: "Inter Site", "Noto Sans SC Site", sans-serif;
  --display: var(--sans);
  --shell: 1184px;
}

html[lang="ja"] { --sans: "Inter Site", "Noto Sans JP Site", sans-serif; }
html[lang="en"] { --sans: "Inter Site", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; text-size-adjust: 100%; }
html[lang="ja"] body { line-break: strict; word-break: normal; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--coral-soft); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 99; top: -60px; left: 20px; padding: 10px 15px; background: var(--coral); color: var(--white); border-radius: 10px; font-weight: 750; }
.skip-link:focus { top: 20px; }

.site-header { position: sticky; z-index: 10; top: 0; color: var(--ink); background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.05); }
.nav-wrap { height: 64px; display: flex; align-items: center; gap: 18px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 790; letter-spacing: -.025em; white-space: nowrap; }
.wordmark-mark { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: var(--forest); color: #fff; font-size: 12px; font-weight: 850; letter-spacing: -.08em; }
nav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 13px; font-weight: 640; }
nav a { flex: 0 0 auto; color: var(--ink-soft); white-space: nowrap; transition: color .2s ease, transform .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--forest-deep); transform: translateY(-1px); }
.nav-github { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; color: var(--forest-deep); background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.nav-contribute { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; color: var(--white); background: var(--coral); border-radius: 999px; font-weight: 760; }
.nav-contribute:hover, .nav-contribute:focus-visible { color: #fff; background: var(--coral-hover); }
.language-switcher { display: inline-flex; align-items: center; padding: 3px; background: rgba(255,255,255,.64); border: 1px solid var(--line); border-radius: 9px; font-size: 10px; line-height: 1; }
.language-switcher button { min-width: 26px; height: 23px; padding: 0 4px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 6px; font-size: 10px; font-weight: 780; }
.language-switcher button[aria-pressed="true"] { color: var(--forest-deep); background: var(--forest-soft); }

.section-heading > *, .catalog-heading > * { min-width: 0; }
.eyebrow { margin: 0 0 11px; color: var(--forest); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
html[lang="en"] .eyebrow { text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); }
h1 { max-width: 660px; margin-bottom: 12px; font-size: clamp(41px, 4.2vw, 59px); font-weight: 780; letter-spacing: -.065em; line-height: 1.03; }
h2 { margin-bottom: 0; font-size: clamp(34px, 3.3vw, 48px); font-weight: 770; letter-spacing: -.055em; line-height: 1.05; }
html[lang="zh-CN"] h1, html[lang="ja"] h1 { letter-spacing: -.045em; line-height: 1.13; }
html[lang="zh-CN"] h2, html[lang="ja"] h2 { letter-spacing: -.035em; line-height: 1.15; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 760; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }

.community-callout { padding: 28px 0 46px; }
.community-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(292px, .92fr); grid-template-areas: "intro action" "steps steps"; column-gap: 80px; row-gap: 34px; padding: 38px 42px 26px; color: var(--ink); background: #f1f0ff; border: 1px solid #dfddff; border-radius: 18px; }
.community-grid > * { position: relative; z-index: 1; }
.community-grid > div:first-child { grid-area: intro; }
.community-callout .eyebrow { margin-bottom: 13px; color: var(--forest); }
.community-callout h1 { color: var(--ink); }
.community-copy { max-width: 510px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.62; }
.community-action { grid-area: action; align-self: center; justify-self: start; display: flex; flex-direction: column; align-items: flex-start; padding: 0; }
.button-community { width: auto; min-height: 42px; padding: 0 15px; color: #fff; background: var(--coral); border-radius: 10px; box-shadow: 0 5px 12px rgba(80,70,204,.16); font-size: 13px; }
.button-community:hover { background: var(--coral-hover); box-shadow: 0 8px 18px rgba(80,70,204,.2); }
.community-rules { display: inline-flex; margin: 14px 0 10px; color: var(--forest-deep); font-size: 12px; font-weight: 750; }
.community-rules:hover { color: var(--link-hover); text-decoration: underline; }
.community-action p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.58; }
.contribution-steps { grid-area: steps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid #dedcf7; }
.contribution-steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 9px; min-height: 56px; padding: 11px 12px; background: rgba(255,255,255,.7); border: 1px solid rgba(110,99,230,.13); border-radius: 10px; }
.contribution-steps span { grid-row: span 2; color: var(--forest); font: 18px var(--sans); font-weight: 720; }
.contribution-steps strong { margin-top: 1px; font-size: 12px; }
.contribution-steps small { margin-top: 4px; color: var(--ink-soft); font-size: 10px; }

.catalog-band { padding: 28px 0 68px; }
.catalog-heading { display: grid; grid-template-columns: 1fr minmax(260px, .58fr); gap: 72px; align-items: end; margin-bottom: 26px; }
.catalog-heading > p { justify-self: end; max-width: 340px; margin: 0 0 4px; color: var(--ink-soft); font-size: 13px; line-height: 1.62; }
.catalog-controls { display: flex; gap: 18px; align-items: center; margin-bottom: 15px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.search-box { flex: 1; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--ink-soft); background: var(--white); border: 1px solid transparent; border-radius: 10px; box-shadow: 0 1px 2px rgba(25,35,76,.05); }
.search-box:focus-within { border-color: rgba(70,88,216,.55); box-shadow: 0 0 0 4px var(--forest-soft); }
.search-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-box input::placeholder { color: var(--muted); }
kbd { min-width: 38px; padding: 3px 6px; color: var(--muted); background: #fafbff; border: 1px solid var(--line); border-radius: 6px; font: 10px var(--sans); text-align: center; white-space: nowrap; }
.status-filter { display: inline-flex; align-items: center; gap: 8px; padding: 0 9px; color: var(--ink-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-filter input { width: 16px; height: 16px; accent-color: var(--forest); }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 0 16px; }
.filter { flex: 0 0 auto; padding: 7px 12px; color: var(--ink-soft); background: rgba(255,255,255,.48); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 720; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.filter:hover { color: var(--forest-deep); background: #fff; border-color: #b9c1e7; transform: translateY(-1px); }
.filter[aria-pressed="true"] { color: #fff; background: var(--forest-deep); border-color: var(--forest-deep); box-shadow: 0 5px 10px rgba(32,41,93,.17); }
.result-count { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 600; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app-card { position: relative; min-width: 0; min-height: 222px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 13px; overflow: hidden; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.app-card:hover { z-index: 1; transform: translateY(-3px); border-color: #c7c2fb; box-shadow: 0 12px 24px rgba(45,39,120,.08); }
.app-card .app-icon { width: 46px; height: 46px; padding: 2px; background: #fff; border: 1px solid #eeeeF4; border-radius: 12px; box-shadow: 0 4px 12px rgba(32,35,52,.09); }
.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-card-head > div:first-child { min-width: 0; }
.app-card-meta { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; }
.app-card-meta .tag { max-width: 132px; line-height: 1.2; text-align: right; white-space: nowrap; }
.app-card h3 { margin: 1px 0 4px; font-size: 17px; font-weight: 760; letter-spacing: -.045em; overflow-wrap: anywhere; }
.license { color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.app-type { display: block; margin: 0; color: var(--forest); font-size: 9px; font-weight: 800; letter-spacing: .075em; overflow-wrap: anywhere; }
html[lang="en"] .app-type { text-transform: uppercase; }
.app-card .card-summary { grid-column: 1 / -1; display: -webkit-box; margin: 13px 0 7px; overflow: hidden; color: var(--ink-soft); font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.app-card .recommendation { grid-column: 1 / -1; margin: 0 0 8px; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 690; letter-spacing: -.012em; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.tags { grid-column: 1 / -1; min-width: 0; align-self: end; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--surface-subtle); }
.tag { padding: 4px 6px; color: var(--ink-soft); background: var(--surface-subtle); border-radius: 6px; font-size: 9px; font-weight: 700; letter-spacing: .005em; overflow-wrap: anywhere; }
.tag.status-tested { color: var(--tested-ink); background: var(--tested-bg); }
.tag.status-verified { color: var(--verified-ink); background: var(--verified-bg); }
.app-links { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.app-links a { color: var(--link); font-size: 11px; font-weight: 760; }
.app-links a:hover { color: var(--link-hover); text-decoration: underline; }
.empty-state { padding: 64px 20px; text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: 16px; }
.empty-state p { margin-bottom: 13px; color: var(--ink-soft); }
.text-button { padding: 0; color: var(--link); background: none; border: 0; font-weight: 700; }

.method { padding: 46px 0; color: var(--ink); background: #f1f0ff; border-top: 1px solid #e4e2ff; border-bottom: 1px solid #e4e2ff; }
.standards-compact { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; }
.method .eyebrow { color: var(--forest); }
.method h2 { max-width: 450px; font-size: 36px; }
.standards-copy { max-width: 280px; margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.standards-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.standards-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; min-height: 90px; padding: 14px; background: var(--white); border: 1px solid #e3e1ff; border-radius: 10px; }
.standards-list li > span { color: var(--forest); font: 14px var(--sans); font-weight: 780; }
.standards-list h3 { margin-bottom: 4px; font-size: 13px; letter-spacing: -.02em; }
.standards-list p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }

.site-footer { background: var(--white); color: var(--ink-soft); border-top: 1px solid var(--line); }
.footer-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; }
.footer-inner p { display: flex; align-items: center; gap: 8px; margin: 0; }
.footer-inner a { color: var(--link); }
.footer-inner a:hover { text-decoration: underline; }
.footer-inner .wordmark-mark { width: 22px; height: 22px; border-radius: 7px; box-shadow: none; font-size: 9px; }

@media (min-width: 1024px) {
  .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .nav-wrap { height: 62px; }
  nav { gap: 10px; font-size: 12px; }
  nav a:not(.nav-github):not(.nav-contribute) { display: none; }
  .community-grid, .catalog-heading, .standards-compact { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .community-grid { grid-template-areas: "intro" "action" "steps"; }
  .community-action { max-width: none; }
  .catalog-heading > p { justify-self: start; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .method { padding-block: 42px; }
  .standards-list { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .wordmark { font-size: 13px; }
  .wordmark-mark { width: 28px; height: 28px; }
  .nav-wrap nav { display: none; }
  .language-switcher { position: fixed; z-index: 20; top: 18px; right: 14px; margin-left: 0; background: rgba(255,255,255,.94); }
  .community-callout { padding: 16px 0 32px; }
  .community-grid { row-gap: 24px; padding: 30px 24px 22px; border-radius: 16px; }
  .community-callout h1 { font-size: 40px; }
  .community-copy { font-size: 13px; }
  .contribution-steps { grid-template-columns: 1fr; gap: 8px; padding-top: 14px; }
  .catalog-band { padding: 24px 0 52px; }
  .catalog-controls { align-items: flex-start; flex-direction: column; gap: 8px; padding: 7px; }
  .search-box { width: 100%; }
  .status-filter { min-height: 32px; }
  kbd { display: none; }
  .app-card { min-height: 0; padding: 18px; column-gap: 13px; }
  .app-card .app-icon { width: 46px; height: 46px; }
  .app-card h3 { font-size: 18px; }
  .app-card .recommendation { margin-top: 11px; }
  .app-card .card-summary { margin-top: 12px; }
  .app-card-head { grid-column: 2; }
  .tags { margin-top: 12px; }
  .method { padding-block: 36px; }
  .method h2 { font-size: 34px; }
  .footer-inner { min-height: 130px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
  .footer-inner p { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
