:root {
  color-scheme: light;
  --ink: #18362f;
  --muted: #71807b;
  --line: #e4e9e6;
  --paper: #ffffff;
  --wash: #f6f8f6;
  --accent: #174b3e;
  --accent-soft: #e8f0ed;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1380px, calc(100% - 48px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-cluster {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  border: 1px solid #dce5e1;
  border-radius: 12px;
  background: #eef4ec;
  object-fit: cover;
  object-position: center 38%;
  box-shadow: 0 4px 12px rgb(31 59 51 / 8%);
}

.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 17px; letter-spacing: .015em; }
.brand small { color: var(--muted); font-size: 12px; }

.official-channels {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid #dfe5e2;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px 3px 3px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgb(31 59 51 / 5%);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}

.channel-chip b { font-weight: 650; }

.channel-platform {
  padding: 5px 7px;
  border-radius: 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .01em;
}

.channel-chip.xiaohongshu { color: #9d4138; border-color: #edd6d1; }
.channel-chip.xiaohongshu .channel-platform { background: #e45448; }
.channel-chip.douyin { color: #343d41; border-color: #d9e0e2; }
.channel-chip.douyin .channel-platform { background: #202529; }
.channel-chip.miniprogram { color: #2f6e56; border-color: #d1e3da; }
.channel-chip.miniprogram .channel-platform { background: #40a074; }

.quiet-button,
.text-button,
.icon-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.text-button {
  padding: 9px 10px;
  border-color: transparent;
  background: transparent;
}
.text-button:hover { color: var(--accent); background: var(--accent-soft); border-radius: 999px; }

.quiet-button {
  padding: 8px 14px;
  border-radius: 999px;
}
.join-button {
  padding: 8px 14px;
  border-color: #b9d1c9;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
}
.join-button:hover { background: #216052; }

main {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto 72px;
}

.hero-carousel {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 5px 0 12px;
}
.carousel-viewport {
  position: relative;
  overflow: hidden;
  height: clamp(210px, 16vw, 240px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #dce8e3;
  box-shadow: 0 10px 30px rgb(31 59 51 / 6%);
}
.carousel-track { height: 100%; display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.carousel-slide { flex: 0 0 100%; height: 100%; display: block; }
.carousel-slide-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.carousel-slide-image.fit-contain img { object-fit: contain; }
.carousel-slide-composed {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 34%);
  color: #f8fbfa;
  background: #174f43;
}
.carousel-slide-composed::before,
.carousel-slide-composed::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}
.carousel-slide-composed::before {
  width: min(38vw, 520px);
  height: min(38vw, 520px);
  right: 18%;
  top: -90%;
  background: rgb(255 255 255 / 8%);
}
.carousel-slide-composed::after {
  width: min(26vw, 350px);
  height: min(26vw, 350px);
  right: 29%;
  bottom: -90%;
  border: 1px solid rgb(255 255 255 / 14%);
}
.carousel-slide-composed.theme-sakura-pink { color: #513c3c; background: #efd8d2; }
.carousel-slide-composed.theme-lake-blue { background: #315f77; }
.carousel-slide-composed.theme-warm-gold { color: #4a3c2f; background: #ead9b4; }
.carousel-slide-composed.theme-coral-orange { color: #512f27; background: #e8aa91; }
.carousel-slide-composed.theme-titanium-gray { color: #fbfbfc; background: #50545b; }
.carousel-slide-composed.theme-jade-green { color: #173e35; background: #bad2c6; }
.carousel-slide-composed.theme-night-purple { color: #fbf9ff; background: #514467; }
.carousel-slide-composed.theme-sky-blue { color: #17384b; background: #b8d8e8; }
.carousel-slide-composed.theme-ivory-white { color: #493e34; background: #efe8dc; }
.carousel-slide-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
  padding: clamp(20px, 2.2vw, 30px) clamp(34px, 5.4vw, 76px);
  display: grid;
  align-content: center;
  gap: clamp(6px, .7vw, 10px);
}
.carousel-slide-copy small {
  font-size: clamp(9px, .85vw, 12px);
  font-weight: 800;
  letter-spacing: .24em;
  opacity: .8;
}
.carousel-slide-copy strong {
  overflow: hidden;
  display: -webkit-box;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.17;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.carousel-slide-copy span {
  overflow: hidden;
  display: -webkit-box;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.35;
  opacity: .84;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.carousel-slide-media {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  padding: 18px 22px 18px 0;
  display: grid;
  place-items: center;
}
.carousel-slide-media::before {
  position: absolute;
  inset: 12px 16px 12px -25%;
  z-index: -1;
  content: "";
  border-radius: 26px;
  background: rgb(255 255 255 / 7%);
}
.carousel-slide-media img {
  width: 100%;
  height: 100%;
  max-height: calc(100% - 8px);
  display: block;
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  transform: translateY(-6px);
}
.carousel-slide-composed .carousel-slide-media img { object-fit: contain; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 8px;
  margin-top: 9px;
}
.carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c3ceca;
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}
.carousel-dots button.active { width: 20px; background: var(--accent); }

.directory {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 14px 44px rgb(31 59 51 / 6%);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcfb);
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 15px;
  border: 1px solid #dfe6e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(31 59 51 / 4%), inset 0 1px 0 rgb(255 255 255 / 80%);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.search-box:focus-within {
  border-color: #8eaea3;
  box-shadow: 0 0 0 3px rgb(72 112 99 / 11%), 0 6px 18px rgb(31 59 51 / 7%);
}

.search-mascot {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid #5f8175;
  border-radius: 50%;
  background: #edf4ee;
  box-shadow: 0 2px 6px rgb(31 59 51 / 10%);
}

.search-mascot img {
  width: 23px;
  height: 23px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
}

.search-mascot::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: #5f8175;
  transform: rotate(45deg);
  transform-origin: center;
}

.search-box input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15.5px;
}

.search-box input::placeholder { color: #99a6a1; }
.result-count {
  flex: none;
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #597269;
  background: var(--accent-soft);
  font-size: 12px;
  text-align: center;
}

.classification-panel {
  width: max-content;
  max-width: calc(100% - 36px);
  margin: 12px 18px;
  border: 1px solid #e2e7e4;
  border-radius: 12px;
  background: #f1f4f2;
  overflow: hidden;
  transition: box-shadow .18s ease;
}

.classification-panel.expanded {
  width: auto;
  max-width: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 82%);
}

.category-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button {
  --main-tab-bg: #fff;
  --main-tab-ink: var(--muted);
  --main-tab-border: #d6ddda;
  flex: none;
  position: relative;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 47px;
  padding: 6px 27px 6px 9px;
  border: 0;
  border-radius: 9px;
  color: var(--main-tab-ink);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 560;
  line-height: 1;
  outline: none;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.category-tab-icon {
  width: 29px;
  height: 29px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--main-tab-ink);
  background: color-mix(in srgb, var(--main-tab-bg) 74%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--main-tab-border) 62%, white);
}

.category-tab-icon svg {
  width: 25px;
  height: 25px;
  overflow: visible;
}

.category-tab-icon svg :is(path, rect, circle) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-tab-icon svg .fill-soft {
  fill: color-mix(in srgb, var(--main-tab-bg) 78%, white);
}

.category-tab-icon svg .fill-accent {
  fill: color-mix(in srgb, var(--main-tab-ink) 20%, white);
  stroke-width: 1.2;
}

.category-tab-icon svg .spark {
  fill: #f3cc72;
  stroke: #c18e28;
  stroke-width: 1;
}

.category-tab-copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 2px;
  white-space: nowrap;
}

.category-tab-copy strong {
  font: inherit;
  font-weight: inherit;
}

.category-tab-copy em {
  color: color-mix(in srgb, var(--main-tab-ink) 72%, white);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 560;
  letter-spacing: .02em;
}

.category-tabs button:hover {
  color: var(--main-tab-ink);
  background: color-mix(in srgb, var(--main-tab-bg) 58%, white);
}

.category-tabs button.active {
  color: var(--main-tab-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--main-tab-bg) 76%, white), var(--main-tab-bg));
  box-shadow: 0 2px 7px rgb(31 59 51 / 11%), 0 0 0 1px var(--main-tab-border);
}

.category-tabs button:nth-child(1) { --main-tab-bg: #e8ecea; --main-tab-ink: #505c57; --main-tab-border: #cfd7d3; }
.category-tabs button:nth-child(2) { --main-tab-bg: #dce8e3; --main-tab-ink: #115740; --main-tab-border: #b7ccc3; }
.category-tabs button:nth-child(3) { --main-tab-bg: #f5e0d6; --main-tab-ink: #9a4829; --main-tab-border: #e6beab; }
.category-tabs button:nth-child(4) { --main-tab-bg: #dce4ef; --main-tab-ink: #002554; --main-tab-border: #b7c5d8; }
.category-tabs button:nth-child(5) { --main-tab-bg: #e8e1ee; --main-tab-ink: #665374; --main-tab-border: #cfc1d9; }
.category-tabs button:nth-child(6) { --main-tab-bg: #e5ecdc; --main-tab-ink: #49672e; --main-tab-border: #c5d5b5; }
.category-tabs button:nth-child(7) { --main-tab-bg: #dcebf0; --main-tab-ink: #27677e; --main-tab-border: #b6d2dc; }

.category-tabs button + button::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 1px;
  height: 16px;
  border-radius: 999px;
  background: #cfd7d3;
  transform: translateY(-50%);
  opacity: .8;
}

.category-tabs button.active { font-weight: 650; }
.category-tabs button:focus-visible {
  box-shadow: 0 0 0 2px #a9c0b8;
}
.category-tabs .category-tab-count {
  position: absolute;
  top: 3px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--main-tab-ink);
  background: color-mix(in srgb, var(--main-tab-bg) 72%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--main-tab-border) 72%, white);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  opacity: 1;
}

.resource-list.download-explorer-list {
  padding: 0;
  border-top: 1px solid var(--line);
}

.download-explorer {
  padding: 14px 18px 20px;
}

.download-breadcrumb {
  min-height: 34px;
  padding: 0 4px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #71817b;
  font-size: 11px;
}

.download-breadcrumb button {
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  color: #176a55;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.download-breadcrumb button:hover { background: #edf4f1; }
.download-breadcrumb strong { color: var(--ink); font-weight: 650; }

.download-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.download-folder-grid button {
  min-width: 0;
  min-height: 62px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e1e6e3;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.download-folder-grid button:hover,
.download-folder-grid button.active {
  border-color: #d6bd79;
  background: #fffdf6;
}

.download-folder-grid button:hover { transform: translateY(-1px); }

.download-folder-icon {
  position: relative;
  width: 38px;
  height: 28px;
  flex: none;
  border-radius: 4px 5px 5px 5px;
  background: linear-gradient(180deg, #f4d273, #e8bc4e);
  box-shadow: inset 0 -3px 0 rgb(166 112 21 / 10%), 0 3px 8px rgb(80 59 17 / 10%);
}

.download-folder-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -5px;
  width: 17px;
  height: 7px;
  border-radius: 4px 4px 0 0;
  background: #e4b247;
}

.download-folder-grid button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.download-folder-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-folder-grid small,
.download-files-heading small {
  color: var(--muted);
  font-size: 10px;
}

.download-files-heading {
  margin-top: 16px;
  padding: 0 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.download-files-heading strong { font-size: 13px; font-weight: 650; }

.download-file-grid {
  padding-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px;
}

.download-file-card {
  min-width: 0;
  min-height: 58px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}

.download-file-card:hover {
  border-color: #dbe4e0;
  background: #f7faf8;
}

.download-file-card.unavailable { opacity: .58; }

.download-file-card > span:first-child {
  width: 30px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 5px 5px 7px 5px;
  color: #fff;
  background: #ba5845;
  box-shadow: 0 3px 7px rgb(105 47 36 / 13%);
  font-size: 8px;
  font-weight: 800;
}

.download-file-card > span:first-child.document { background: #4773a8; }
.download-file-card > span:first-child.presentation { background: #d2713d; }
.download-file-card > span:first-child.link { background: #3f8872; }

.download-file-card > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.download-file-card strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.3;
}

.download-file-card small {
  color: var(--muted);
  font-size: 9px;
}

.download-folder-empty {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.download-type-groups {
  display: grid;
  gap: 6px;
}

.download-type-section {
  padding: 7px 4px 9px;
  border-bottom: 1px solid #edf0ee;
}

.download-type-section:last-child { border-bottom: 0; }

.download-type-heading {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.download-type-heading strong {
  color: #4c5e57;
  font-size: 11px;
  font-weight: 680;
}

.download-type-heading small {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #75847f;
  background: #edf2ef;
  font-size: 8px;
}

.download-type-section .download-file-grid { padding-top: 3px; }

.subcategory-bar {
  min-width: 0;
  padding: 8px 9px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #dce3df;
  background: linear-gradient(180deg, #f8faf9 0%, #f3f6f4 100%);
}

.subcategory-bar[hidden] { display: none; }

.classification-panel.expanded .category-tabs {
  padding-bottom: 10px;
  background: #f1f4f2;
}

.classification-panel.expanded
  .category-tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--main-tab-ink);
  border-bottom: 2px solid var(--main-tab-ink);
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
  opacity: .72;
  z-index: 2;
}

.subcategory-label {
  flex: none;
  padding: 5px 10px 5px 7px;
  border-right: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

.subcategory-label::before {
  content: "↳";
  display: inline-block;
  margin-right: 7px;
  color: #7e9c91;
  font-size: 22px;
  font-weight: 700;
  line-height: .65;
  transform: translateY(3px);
}

.subcategory-scroll {
  min-width: 0;
  display: flex;
  flex: 1;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subcategory-scroll::-webkit-scrollbar { display: none; }
.subcategory-scroll button {
  --tag-bg: #e7e8e6;
  --tag-ink: #505452;
  --tag-border: #868b88;
  flex: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 20px 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--tag-ink);
  background: var(--tag-bg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.subcategory-scroll button:nth-child(1) { --tag-bg: #f5e2df; --tag-ink: #875b55; --tag-border: #b9877f; }
.subcategory-scroll button:nth-child(2) { --tag-bg: #eee9df; --tag-ink: #675f52; --tag-border: #978c7c; }
.subcategory-scroll button:nth-child(3) { --tag-bg: #dce7f3; --tag-ink: #46647c; --tag-border: #7692aa; }
.subcategory-scroll button:nth-child(4) { --tag-bg: #dceadf; --tag-ink: #45634d; --tag-border: #73937a; }
.subcategory-scroll button:nth-child(5) { --tag-bg: #e8e1f0; --tag-ink: #665676; --tag-border: #9382a5; }
.subcategory-scroll button:nth-child(6) { --tag-bg: #f6efcf; --tag-ink: #76682f; --tag-border: #aa984e; }
.subcategory-scroll button:nth-child(7) { --tag-bg: #f2e4c9; --tag-ink: #7b6333; --tag-border: #ad9054; }
.subcategory-scroll button:nth-child(8) { --tag-bg: #e1e3e3; --tag-ink: #565d5d; --tag-border: #858c8c; }
.subcategory-scroll button:nth-child(9) { --tag-bg: #dcebee; --tag-ink: #3d6970; --tag-border: #6e969d; }
.subcategory-scroll button:nth-child(10) { --tag-bg: #f3dddb; --tag-ink: #8b4c48; --tag-border: #bd7771; }
.subcategory-scroll button:nth-child(11) { --tag-bg: #e7e8e6; --tag-ink: #565b58; --tag-border: #878c89; }
.subcategory-scroll button:nth-child(12) { --tag-bg: #e3e7e4; --tag-ink: #536059; --tag-border: #7f8b84; }
.subcategory-scroll button:nth-child(13) { --tag-bg: #e7e8e6; --tag-ink: #565b58; --tag-border: #878c89; }

.subcategory-scroll button:hover { transform: translateY(-1px); }
.subcategory-scroll button.active {
  border-color: var(--tag-border);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tag-border) 18%, transparent);
}

.subcategory-scroll small {
  position: absolute;
  top: 2px;
  right: 3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: inherit;
  background: rgb(255 255 255 / 52%);
  font-size: 8.5px;
  font-weight: 650;
  opacity: .78;
}

.subcategory-reset {
  flex: none;
  padding: 5px 3px;
  border: 0;
  color: #a94834;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.category-downloads {
  min-width: 0;
  min-height: 46px;
  padding: 6px 9px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border-top: 1px solid #dce3df;
  background: #fff;
}

.category-downloads[hidden] { display: none; }

.category-downloads-label {
  padding: 4px 10px 4px 7px;
  border-right: 1px solid var(--line);
  color: #a94834;
  font-size: 12px;
  line-height: 1.2;
}

.category-downloads-label::before {
  content: "↓";
  margin-right: 7px;
  color: #c1624d;
  font-size: 15px;
}

.category-downloads-list {
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-downloads-list::-webkit-scrollbar { display: none; }

.category-download-card {
  flex: 0 0 184px;
  min-width: 0;
  min-height: 46px;
  padding: 5px 25px 5px 35px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e0e6e3;
  border-radius: 8px;
  color: inherit;
  background: #fafcfb;
  text-decoration: none;
}

.category-download-card:hover {
  border-color: #bfd0c9;
  background: #f4f8f6;
}

.category-download-card > span {
  position: absolute;
  left: 7px;
  width: 22px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: #bb5946;
  font-size: 7px;
  font-weight: 800;
}

.category-download-card > strong {
  display: -webkit-box;
  overflow: hidden;
  color: #31564c;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.category-download-card > small {
  position: absolute;
  right: 7px;
  color: #83948e;
  font-size: 8px;
}

.category-downloads-empty {
  color: #8a9893;
  font-size: 11px;
}

.pdf-showcase {
  margin: 0 18px 8px;
  padding: 4px 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid #e5ebe8;
  border-radius: 0;
  background: transparent;
}

.pdf-showcase[hidden] { display: none; }
.pdf-showcase-heading {
  padding: 0 8px 0 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #dbe3df;
}

.pdf-showcase-heading strong {
  color: #244a40;
  font-size: 12px;
  line-height: 1.2;
}

.pdf-showcase-list {
  min-width: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 1px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.pdf-showcase-list::-webkit-scrollbar { display: none; }

.pdf-card {
  --pdf-card-ink: #31594d;
  position: relative;
  flex: 0 0 108px;
  min-width: 0;
  min-height: 70px;
  padding: 33px 7px 5px;
  display: block;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #e2e8e5;
  border-radius: 0;
  color: var(--pdf-card-ink);
  background: transparent;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .16s ease, box-shadow .16s ease;
}

.pdf-card[href]:hover { background: #f1f6f4; }

.pdf-card-icon {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 18px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 3px 3px 5px 5px;
  color: #fff;
  background: #ba5845;
  box-shadow: 0 2px 5px rgb(117 57 45 / 16%);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: .03em;
}

.pdf-card-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  border-style: solid;
  border-width: 0 0 5px 5px;
  border-color: transparent transparent rgb(255 255 255 / 62%) transparent;
}

.pdf-card strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.pdf-card small {
  position: absolute;
  top: 7px;
  right: 7px;
  color: #8b9994;
  font-size: 8px;
  line-height: 1;
}

.pdf-card.demo::before { content: none; }

.resource-list {
  padding: 0 22px;
  border-top: 1px solid var(--line);
}

.resource-list.website-grid {
  padding: 14px 22px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.website-card {
  position: relative;
  min-width: 0;
  min-height: 62px;
  padding: 10px 30px 10px 48px;
  display: flex;
  align-items: center;
  border: 1px solid #e1e7e4;
  border-radius: 10px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.website-card[href]:hover {
  border-color: #b9ccc4;
  background: #f8fbfa;
  transform: translateY(-1px);
}

.website-card.unavailable { background: #fafbfa; }

.website-icon {
  position: absolute;
  left: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #275a4c;
  background: #e4efeb;
  font-size: 13px;
  font-weight: 750;
}

.website-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.website-copy strong,
.website-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-copy strong {
  color: #294b42;
  font-size: 14px;
  font-weight: 650;
}

.website-copy small {
  color: var(--muted);
  font-size: 10.5px;
}

.website-copy mark {
  padding: 0 .1em;
  border-radius: 3px;
  color: #8e442f;
  background: #f7e4dc;
}

.website-arrow {
  position: absolute;
  right: 10px;
  color: #7e938b;
  font-size: 14px;
}

.resource-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease;
}

.resource-row:last-child { border-bottom: 0; }
.resource-row[href]:hover { background: #fbfcfb; transform: translateX(3px); }
.resource-row.unavailable .resource-action { color: #9aa7a3; }

.file-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 15px;
  font-weight: 700;
}

.resource-copy { min-width: 0; display: grid; gap: 8px; }
.resource-copy strong {
  overflow: hidden;
  color: #284a41;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-copy mark {
  padding: 0 .1em;
  border-radius: 3px;
  color: #8e442f;
  background: #f7e4dc;
}

.resource-meta { display: flex; gap: 6px; overflow: hidden; }
.resource-meta i {
  flex: none;
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
}

.resource-meta i:not(:last-child)::after { content: " ·"; }
.resource-action { color: var(--accent); font-size: 13px; font-weight: 650; }

.empty-state {
  padding: 38px 20px 42px;
  text-align: center;
}

.empty-state strong,
.empty-state span { display: block; }
.empty-state span { margin-top: 8px; color: var(--muted); }

dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 30px 100px rgb(20 40 34 / 25%);
}

dialog::backdrop { background: rgb(20 35 31 / 35%); backdrop-filter: blur(3px); }
dialog form { padding: 28px; }
.about-panel,
.join-panel { padding: 28px; }
.about-panel > p { color: var(--muted); line-height: 1.8; }
.join-lead { margin: 22px 0 16px; color: var(--ink); font-size: 15px; line-height: 1.85; }
.join-contact {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #efd5cf;
  border-radius: 14px;
  background: #fff8f6;
}
.join-contact-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #cf5849;
  font-size: 15px;
  font-weight: 800;
}
.join-contact > div { display: grid; gap: 3px; }
.join-contact small { color: #9b695f; font-size: 11px; }
.join-contact strong { color: #8f342a; font-size: 17px; }
.join-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-heading small { color: #a94834; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.dialog-heading h2 { margin: 5px 0 0; font-size: 26px; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; font-size: 20px; }
dialog form > p { color: var(--muted); line-height: 1.7; }
dialog label { display: grid; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 650; }
dialog label span { color: var(--muted); font-weight: 400; }
dialog textarea,
dialog input {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  resize: vertical;
}

dialog textarea:focus,
dialog input:focus { border-color: var(--accent); }
.dialog-footer { min-height: 44px; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-footer span { color: var(--muted); font-size: 13px; }
.primary-button {
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--accent);
  cursor: pointer;
}

.primary-button:disabled { opacity: .5; cursor: wait; }

footer {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

footer a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .official-channels { display: none; }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 28px, 960px); }
  .site-header { height: 76px; }
  .hero-carousel { padding: 6px 0 12px; }
  .carousel-viewport { height: 170px; border-radius: 12px; }
  .carousel-slide-composed { grid-template-columns: minmax(0, 1fr) 42%; }
  .carousel-slide-copy { padding: 18px 10px 18px 20px; gap: 6px; }
  .carousel-slide-copy small { font-size: 7px; letter-spacing: .14em; }
  .carousel-slide-copy strong { font-size: clamp(20px, 6vw, 27px); }
  .carousel-slide-copy span { font-size: 11px; line-height: 1.35; -webkit-line-clamp: 2; }
  .carousel-slide-media { padding: 11px 11px 11px 0; }
  .carousel-slide-media::before { inset: 8px 7px 8px -20%; border-radius: 16px; }
  .carousel-slide-media img { border-radius: 9px; }
  .directory { border-radius: 15px; }
  .search-row { padding: 15px; }
  .result-count { display: none; }
  .classification-panel { max-width: calc(100% - 24px); margin: 10px 12px; }
  .classification-panel.expanded { max-width: calc(100% - 24px); }
  .category-tabs { padding: 3px; }
  .category-tabs button { min-height: 43px; padding: 5px 23px 5px 7px; font-size: 14px; }
  .category-tab-icon { width: 27px; height: 27px; }
  .category-tab-icon svg { width: 23px; height: 23px; }
  .subcategory-bar { padding: 7px 8px 9px; gap: 7px; }
  .subcategory-label { display: none; }
  .subcategory-scroll button { min-height: 31px; padding: 7px 18px 7px 8px; font-size: 12.5px; }
  .category-downloads { grid-template-columns: 72px minmax(0, 1fr); padding: 6px 8px; }
  .category-downloads-label { padding-left: 2px; font-size: 11px; }
  .category-download-card { flex-basis: 164px; }
  .download-explorer { padding: 10px 12px 16px; }
  .download-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-folder-grid button { min-height: 56px; padding: 8px 9px; gap: 9px; }
  .download-file-grid { grid-template-columns: 1fr; }
  .pdf-showcase { margin: 0 12px 10px; grid-template-columns: 64px minmax(0, 1fr); }
  .pdf-showcase-heading strong { font-size: 12px; }
  .pdf-card { flex-basis: 108px; }
  .resource-list { padding: 0 15px; }
  .resource-list.website-grid {
    padding: 10px 12px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .website-card { min-height: 58px; padding-left: 44px; }
  .website-icon { left: 8px; }
  .resource-row { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; min-height: 78px; }
  .resource-action { display: none; }
  footer { flex-direction: column; }
}
