@font-face {
  font-family: "YS Text Home";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/text-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "YS Text Home";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/text-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font: 16px/1.55 "YS Text Home", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #000;
  background: #fff;
  --link: #0060d0;
  --accent: #fcd93d;
  --surface: #f2f2f2;
  --border: #e5e5e5;
  --muted: #000000ad;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.topbar { min-height: 64px; padding: .75rem clamp(1rem,4vw,2rem); display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #fff; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand-mark { width: 28px; height: 24px; border-radius: 7px; background: var(--accent); flex-shrink: 0; }
main { width: min(1040px, calc(100% - 2rem)); margin: 0 auto; }
.search-panel { display: grid; justify-items: center; gap: 1.25rem; padding: clamp(2.1rem, 7vw, 4.5rem) 0; }
h1 { font-size: clamp(1.6rem, 5vw, 2.65rem); margin: 0; text-align: center; }
.filter { display: flex; align-items: center; gap: .9rem; width: min(100%, 650px); padding: 0 1.15rem; background: #fff; border: 2px solid var(--accent); border-radius: 14px; box-shadow: 0 8px 22px #0000000a; }
.filter:focus-within { outline: 2px solid var(--link); outline-offset: 3px; }
.search-icon { flex: 0 0 17px; height: 17px; border: 2px solid var(--muted); border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; background: var(--muted); bottom: -3px; right: -5px; transform: rotate(45deg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input { border: 0; background: transparent; min-height: 60px; font: inherit; flex: 1; min-width: 0; }
input:focus-visible { outline: none; }
.directory-title { margin-bottom: .75rem; }
footer, tbody td:nth-child(2) { color: var(--muted); font-size: .875rem; }
.list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .75rem 1rem; }
thead { background: var(--surface); }
tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: #fafafa; }
tbody th { font-weight: 700; overflow-wrap: anywhere; }
tbody td:last-child { white-space: nowrap; }
tbody a { display: inline-flex; align-items: center; min-height: 44px; }
.folder { display: inline-block; margin-right: .6rem; width: 23px; height: 15px; background: var(--accent); border-radius: 3px; position: relative; vertical-align: middle; }
.folder::before { content: ""; position: absolute; width: 10px; height: 4px; top: -3px; left: 1px; background: #e7ba20; border-radius: 2px 2px 0 0; }
.empty { padding-inline: 1rem; }
#sources { margin-top: 2rem; }
h2 { margin-top: 0; font-size: 1.05rem; }
footer { margin-top: 2rem; }
@media (max-width: 640px) {
  th, td { padding: .55rem .7rem; }
  td:nth-child(2), thead th:nth-child(2) { display: none; }
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.related-links span { font-weight: 700; color: #000; }
footer { padding-bottom: 1rem; }

.title-badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .15rem .45rem;
  border-radius: 6px;
  background: var(--accent);
  color: #211f1f;
  font-size: .8rem;
  font-weight: 700;
  vertical-align: super;
  white-space: nowrap;
}

.topic-stories { margin-top: 2rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.story { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; }
.story img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.story-copy { padding: .85rem 1rem; }
.story h3 { margin: 0; font-size: 1rem; }
.story p { color: var(--muted); margin: .4rem 0 0; font-size: .9rem; }
@media (max-width: 640px) {
  .story-grid { grid-template-columns: 1fr; }
}
