@font-face {
  font-family: Bricolage;
  src: url("/assets/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f5f7fc;
  --white: #fff;
  --ink: #14223a;
  --muted: #52627a;
  --line: #dce4f0;
  --control-border: #7e90a9;

  --brand-blue: #064ccd;
  --brand-blue-hover: #003aa4;
  --brand-blue-ink: #164382;
  --blue-wash: #eaf2ff;
  --blue-border: #c3d5f3;

  --brand-orange: #ff8b29;
  --orange-wash: #fff1e1;
  --orange-ink: #89410e;
  --focus: #1b60df;

  --hero: #071730;
  --hero-heading: #b1d6ff;
  --hero-copy: #d7e5fb;
  --hero-line: #647895;

  --display: Bricolage, Inter, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    15px/1.55 Inter,
    system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
img,
svg {
  vertical-align: middle;
  flex: none;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.container {
  max-width: 1224px;
  margin-inline: auto;
  padding-inline: 28px;
}
.skip {
  position: absolute;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  z-index: 3;
  background: white;
  padding: 8px 13px;
}
.skip:focus {
  transform: none;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 73px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(154px, 16vw, 207px);
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2.4vw, 34px);
}
.main-nav a,
.locale {
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav [aria-current],
.locale:hover {
  color: var(--brand-blue);
}
.main-nav [aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.locale {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
}
.homepage {
  padding-top: 32px;
  padding-bottom: 68px;
}
.hero {
  isolation: isolate;
  position: relative;
  min-height: 448px;
  overflow: hidden;
  border-radius: 25px;
  background: var(--hero);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 49px 54px;
}
.hero-art {
  position: absolute;
  z-index: -2;
  top: 50%;
  right: 0;
  width: 68%;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 27%);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    var(--hero) 14%,
    rgb(7 23 48 / 79%) 36%,
    transparent 64%
  );
  pointer-events: none;
}
.hero-content {
  max-width: 570px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--hero-copy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--brand-orange);
  box-shadow: 0 0 12px rgb(255 139 41 / 55%);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
}
.hero h1 {
  font-size: clamp(45px, 6vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.055em;
  margin: 20px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--hero-heading);
}
.hero p {
  max-width: 420px;
  color: var(--hero-copy);
  font-size: 16px;
  line-height: 1.65;
}
html[lang="zh-Hans"] .hero h1 {
  letter-spacing: -0.035em;
  line-height: 1.18;
  font-size: clamp(37px, 5vw, 62px);
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  min-height: 55px;
  border-radius: 12px;
  max-width: 511px;
  background: var(--white);
  color: var(--muted);
  padding: 5px 5px 5px 15px;
}
.hero-search input,
.directory-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
}
.hero-search button,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--brand-blue);
  color: var(--white);
  border: 0;
  border-radius: 9px;
  font-weight: 750;
  white-space: nowrap;
  padding: 11px 14px;
}
.hero-search button:hover,
.primary:hover {
  background: var(--brand-blue-hover);
}
.quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.quick-links a {
  font-size: 12px;
  font-weight: 620;
  color: var(--hero-copy);
  border: 1px solid var(--hero-line);
  border-radius: 6px;
  padding: 4px 8px;
  background: rgb(8 25 53 / 55%);
}
.quick-links a:hover {
  background: #19345c;
  border-color: #91a8cd;
}
.home-section {
  margin-top: 38px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.section-heading h2,
.panel h2,
#guide-results h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
  font-weight: 740;
}
.section-heading p,
.page-heading p {
  margin-top: 7px;
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 740;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.project-card,
.panel,
.category-card,
.guide-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 15px;
}
.project-grid .project-card,
.project-grid .card-link {
  height: 100%;
}
.project-card,
.category-card,
.guide-card {
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.project-card:hover,
.category-card:hover,
.guide-card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 6px 20px rgb(23 49 86 / 8%);
  transform: translateY(-2px);
}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 17px 18px 15px;
  border-radius: inherit;
}
.project-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-top h3,
.comparison .project-top h2 {
  font-size: 19px;
  font-weight: 740;
  letter-spacing: -0.018em;
  line-height: 1.18;
}
.project-category {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.card-arrow {
  margin-left: auto;
  align-self: start;
  color: var(--muted);
}
.project-icon,
.category-card > span {
  background: var(--blue-wash);
  color: var(--brand-blue-ink);
}
.project-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font: 760 17px/1 var(--display);
  letter-spacing: -0.035em;
}
.project-icon img {
  object-fit: contain;
}
.project-icon.large {
  width: 76px;
  height: 76px;
  border-radius: 19px;
  box-shadow: inset 0 0 0 1px var(--blue-border);
  font-size: 24px;
}
.project-icon.large img {
  width: 40px;
  height: 40px;
}
.peach {
  color: var(--orange-ink);
}
.lavender {
  color: #664d8b;
}
.slate {
  color: #354b69;
}
.mint {
  color: #1d5b79;
}
.card-link p,
.comparison p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: auto;
}
.project-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  background: #edf1f7;
  color: #415571;
  font-size: 12px;
  font-weight: 680;
  padding: 4px 8px;
  line-height: 1.35;
}
.badge.open {
  background: var(--blue-wash);
  color: var(--brand-blue-ink);
}
.badge.free,
.badge.tier,
.badge.personal {
  background: var(--orange-wash);
  color: var(--orange-ink);
}
a.badge:hover {
  background: var(--blue-wash);
}
.metric {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.category-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.category-card,
.guide-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 13px;
}
.category-card > span {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}
.category-card > svg,
.guide-card > svg {
  margin-left: auto;
  color: var(--muted);
}
.category-card strong,
.guide-card strong {
  font-weight: 730;
  line-height: 1.3;
}
.guide-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 25px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner .brand {
  width: 157px;
}
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
.footer-links a:hover {
  text-decoration: underline;
}
.inner-page {
  padding-top: 38px;
  padding-bottom: 65px;
  min-height: calc(100vh - 156px);
}
.back {
  margin-bottom: 16px;
}
.page-heading {
  margin: 4px 0 25px;
  max-width: 820px;
}
.page-heading h1,
.detail-heading h1 {
  font-size: clamp(34px, 5.5vw, 61px);
  letter-spacing: -0.05em;
  font-weight: 790;
}
.page-heading p,
.detail-heading p {
  font-size: 17px;
  line-height: 1.6;
}
.filter-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 17px;
}
.directory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
  padding: 6px 6px 6px 11px;
  border: 1px solid var(--control-border);
  border-radius: 10px;
}
.filter-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 11px;
  margin-top: 12px;
}
.filter-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 670;
}
.filter-fields select {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--control-border);
  color: var(--ink);
  background: var(--bg);
}
.filter-fields .text-link {
  padding: 8px 3px;
}
#guide-results {
  margin-block: 22px;
}
#guide-results h2 {
  margin-bottom: 12px;
}
.result-count {
  margin: 14px 0;
  color: var(--muted);
  scroll-margin-top: 20px;
}
.empty-state {
  margin: 19px 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.pager button,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: var(--brand-blue-ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 680;
}
.pager button:disabled {
  opacity: 0.46;
  cursor: default;
}
.secondary:hover,
.pager button:enabled:hover {
  border-color: var(--blue-border);
  background: var(--blue-wash);
}
.collection-actions {
  display: flex;
  justify-content: end;
  margin-bottom: 13px;
}
.detail-heading {
  display: flex;
  align-items: flex-start;
  gap: 19px;
  background: var(--blue-wash);
  border: 1px solid var(--blue-border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 17px;
}
.detail-heading h1 {
  margin: 8px 0;
}
.detail-heading p {
  color: var(--muted);
}
.detail-badges,
.tags,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.detail-badges .badge.open {
  background: #d9e7ff;
  box-shadow: inset 0 0 0 1px var(--blue-border);
}
.detail-actions {
  margin-top: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 13px;
}
.panel {
  padding: 20px 23px;
  min-width: 0;
}
.panel h2 {
  font-size: 25px;
  margin-bottom: 11px;
}
.panel h3 {
  font-size: 17px;
  margin: 16px 0 5px;
}
.panel p,
.supporting {
  color: var(--muted);
}
.supporting {
  font-size: 13px;
  margin-top: 12px;
}
.panel p a,
.panel li a,
.facts dd a {
  color: var(--brand-blue);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0 0 13px;
  font-size: 14px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.panel .text-link {
  margin-top: 14px;
}
.prose {
  max-width: 850px;
}
.prose h2:not(:first-child) {
  margin-top: 24px;
}
.comparison p {
  margin: 12px 0;
}
.comparison .project-top a:hover {
  text-decoration: underline;
}
@media (max-width: 980px) {
  .header-inner {
    gap: 13px;
  }
  .hero {
    min-height: 415px;
    padding: 40px;
  }
  .hero-art {
    right: -6%;
    width: 80%;
  }
  .category-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .container {
    padding-inline: 18px;
  }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    min-height: 0;
    padding-top: 11px;
  }
  .locale {
    grid-column: 2;
    grid-row: 1;
  }
  .main-nav {
    grid-column: 1/-1;
    justify-content: start;
    overflow: auto;
    gap: 20px;
    margin: 3px -18px 0;
    padding: 10px 18px;
    scrollbar-width: thin;
  }
  .main-nav a {
    font-size: 13px;
  }
  .homepage {
    padding-top: 19px;
  }
  .hero {
    padding: 31px 25px;
    border-radius: 18px;
    min-height: 385px;
  }
  .hero-art {
    right: -25%;
    width: 110%;
    opacity: 0.6;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      var(--hero) 14%,
      rgb(7 23 48 / 91%) 59%,
      rgb(7 23 48 / 65%) 82%,
      rgb(7 23 48 / 40%)
    );
  }
  .hero-content {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(42px, 8.5vw, 61px);
  }
  .hero p {
    font-size: 15px;
    max-width: 375px;
  }
  .project-grid,
  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 490px) {
  .hero-art {
    height: 100%;
    width: auto;
    right: -190px;
    opacity: 0.48;
  }
  .hero {
    padding-inline: 18px;
  }
  .hero-search {
    gap: 7px;
    padding-left: 9px;
  }
  .hero-search input {
    font-size: 13px;
  }
  .hero-search button {
    padding-inline: 9px;
    font-size: 13px;
  }
  .hero-search button svg {
    display: none;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .home-section {
    margin-top: 30px;
  }
  .project-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .category-card,
  .guide-card {
    padding: 9px;
    gap: 7px;
  }
  .category-card strong,
  .guide-card strong {
    font-size: 13px;
  }
  .category-card > svg,
  .guide-card > svg {
    display: none;
  }
  .category-card > span {
    width: 33px;
    height: 33px;
  }
  .guide-card .project-icon {
    width: 33px;
    height: 33px;
    border-radius: 9px;
  }
  .guide-card small {
    font-size: 11px;
  }
  .detail-heading {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }
  .footer-links {
    width: 100%;
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.rating-facts {
  margin-top: 14px;
}
