:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --ink: #24233c;
  --muted: #5a576a;
  --rule: #d9d3c8;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #5b43a0; outline-offset: 5px; }
.wrap { width: min(54rem, 100% - 2.5rem); margin-inline: auto; }
.masthead { display: flex; align-items: center; min-height: 4.75rem; border-bottom: 1px solid var(--rule); }
.masthead a { display: inline-flex; align-items: center; gap: .75rem; padding: .65rem .15rem; text-underline-offset: .25em; }
.masthead a::before { content: ""; width: .57rem; aspect-ratio: 1; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
main { padding-bottom: 3.5rem; }
.intro { padding-block: clamp(2.8rem, 8vw, 5rem) clamp(1.7rem, 4vw, 2.75rem); }
h1 { margin: 0; font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-size: clamp(2.3rem, 6vw, 4.7rem); line-height: 1.12; letter-spacing: -.045em; }
.intro-note { margin: 0 0 .95rem; color: var(--muted); line-height: 1.6; }

.student-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem; }
.exhibit-link {
  display: flex;
  min-height: 3.9rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--ink);
  border-radius: .75rem;
  background: #fffdf8;
  text-decoration: none;
  font-size: 1.07rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.exhibit-link:hover { background: #eee9fc; }
.grade-link { padding: 1.15rem 1.3rem; background: #eee9fc; font-size: clamp(1.15rem, 3.5vw, 1.55rem); }
.grade-link:hover { background: #e4dbfb; }
.link-label { display: inline-flex; align-items: center; gap: .6rem; flex: none; font-size: .86rem; font-weight: 500; }
.link-label::after { content: ""; width: .51rem; aspect-ratio: 1; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.empty-state { margin: 0; padding: 1.25rem; color: var(--muted); border: 1px dashed var(--rule); border-radius: .75rem; }
.related-links { margin: 0; }
.previous-works, .related-links a { display: inline-block; margin-top: 1.55rem; padding: .35rem 0; text-underline-offset: .27em; }
