html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
[hidden] { display: none !important; }

/* A compact introduction and native section links share one banner. */
header.wrap.catalog-header { padding-top: 16px; padding-bottom: 18px; text-align: left; }
.catalog-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce9f2;
  border-radius: 14px;
  background: linear-gradient(112deg, #eef5ff 0%, #f4f9ff 48%, #eef8f5 100%);
}
.banner-copy { position: relative; z-index: 1; padding: 21px 350px 17px 26px; }
.banner-copy h1 { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: #233d5b; }
.banner-copy p { margin-top: 7px; font-size: 14px; line-height: 1.6; color: #60758b; }
.banner-art { position: absolute; right: 24px; top: 0; width: 320px; height: 116px; pointer-events: none; }
.group-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 26px;
  margin: 0;
  border-top: 1px solid #dfeaf2;
  background: rgba(255,255,255,.43);
}
.group-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid #d4e1ed;
  border-radius: 7px;
  background: rgba(255,255,255,.8);
  color: #345170;
  font-size: .85rem;
  line-height: 1.4;
  text-decoration: none;
}
.group-nav a:hover { border-color: #93b5df; color: #005bd8; background: #fff; }
.group-nav a:focus-visible,
a:focus-visible,
button:focus-visible { outline: 3px solid #90baff; outline-offset: 3px; }

/* Keep the existing grouped cards and their visual hierarchy. */
.tool-group { margin: 0 0 36px; scroll-margin-top: 0; }
.group-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 4px; }
.group-heading h2 { font-size: 1.2rem; line-height: 1.4; }
.group-heading p { font-size: .85rem; color: #64748b; margin-top: 3px; }
.group-count { color: #7a879a; font-size: .78rem; white-space: nowrap; }
.grid { padding: 12px 0 0; gap: 16px; }
.card { padding: 24px 22px 20px; }
.card h3 { font-size: 1.09rem; margin-bottom: 9px; line-height: 1.55; }
.card p { font-size: .87rem; line-height: 1.85; }
.card .ico { margin-bottom: 10px; }
.card .tags { margin: 12px 0 16px; gap: 5px; }
.card .tags span { font-size: .68rem; padding: 2px 8px; }
.card .tags span:first-child { color: #345170; background: #eef4fc; }
.card .tags span:nth-child(2) { color: #0f766e; background: #f0fdfa; }
.card .yq-weapp-badge { top: 20px; right: 16px; }
.featured { border-color: #aacaff; background: linear-gradient(150deg, #f6faff, #fff 65%); }
.start-here { display: block; font-size: .72rem; color: #0062ff; font-weight: 600; margin-bottom: 7px; }
.featured .ico { margin-bottom: 7px; }
.about { border-top: 1px solid #e2e8f0; padding-top: 22px; }
.about > h2 { font-size: 1.07rem; color: #1e293b; margin-bottom: 8px; }


/* The purpose stays brief; contact details open only when requested. */
.catalog-purpose { padding: 24px 0 30px; }
.catalog-purpose .purpose-copy { max-width: 870px; font-size: 14px; line-height: 1.9; }
.tool-feedback { margin-top: 20px; border: 1px solid #e1e8f0; border-radius: 10px; }
.tool-feedback summary {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 20px; padding: 14px 17px;
  color: #345170; font-size: 14px; list-style: none; cursor: pointer;
}
.tool-feedback summary::-webkit-details-marker { display: none; }
.tool-feedback summary:hover { background: #f7faff; border-radius: 10px; }
.tool-feedback summary:focus-visible { outline: 3px solid #90baff; outline-offset: 3px; border-radius: 10px; }
.feedback-action { display: inline-flex; align-items: center; gap: 7px; color: #0062ff; font-weight: 600; white-space: nowrap; }
.feedback-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; pointer-events: none; }
.tool-feedback[open] .feedback-icon { transform: rotate(90deg); }
.feedback-content { display: flex; align-items: center; gap: 22px; padding: 18px; border-top: 1px solid #e1e8f0; }
.feedback-qr { flex: none; width: 150px; height: 150px; padding: 5px; background: #fff; border: 1px solid #e1e8f0; border-radius: 8px; }
.feedback-copy { min-width: 0; font-size: 13px; line-height: 1.9; color: #64748b; }
.feedback-copy .feedback-contact { margin-bottom: 5px; font-size: 14px; color: #345170; }

@media (min-width: 621px) and (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .banner-copy { padding-right: 260px; }
  .banner-art { right: 12px; width: 240px; opacity: .8; }
}
@media (max-width: 620px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  header.wrap.catalog-header { padding-top: 14px; padding-bottom: 16px; }
  .banner-copy { padding: 18px 18px 15px; }
  .banner-copy h1 { font-size: 26px; line-height: 1.3; }
  .banner-copy p { margin-top: 6px; font-size: 13px; line-height: 1.65; }
  .banner-art { display: none; }
  .group-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; padding: 10px 15px 12px; }
  .group-nav a { min-height: 40px; padding: 7px 8px; font-size: .8rem; }
  .group-heading { align-items: flex-start; gap: 10px; }
  .group-heading h2 { font-size: 1.14rem; }
  .group-heading p { font-size: .8rem; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 22px 20px; }
  .tool-group { margin-bottom: 27px; }
  .group-count { padding-top: 5px; }
  .about { font-size: .86rem; }
  .catalog-purpose .purpose-copy { font-size: 13px; }
  .tool-feedback summary { padding: 13px 14px; font-size: 13px; gap: 8px 12px; }
  .feedback-content { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
