:root {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  color: #1c2d44;
  background: #f6f8fc;
  font-synthesis: none;
  --blue: #2b65d9;
  --muted: #66758a;
  --line: #e3e9f2;
}
.meta-sep::before { content: " · "; white-space: pre; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #8bb3fa; outline-offset: 4px; }
button, a, input, select { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.library-shell { max-width: 1168px; padding: 0 32px 64px; margin: 0 auto; }
.library-header { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #23364f; font-size: 21px; font-weight: 650; white-space: nowrap; }
.brand-icon { width: 38px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #e9f0ff; color: var(--blue); }
.brand-icon svg { width: 26px; height: 26px; }
.collection-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0 8px 12px; border: 0; background: transparent; color: var(--muted); font-size: 16px; }
.collection-switch:hover { color: var(--blue); }
.heading-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 40px 0 24px; }
h1 { font-size: 32px; line-height: 1.4; letter-spacing: -.5px; font-weight: 650; margin: 0; }
.subtle-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--muted); font-size: 16px; }
.subtle-link:hover { color: var(--blue); }
.category-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #edf1f7; }
.category-tab { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 62px; padding: 12px 16px; border: 1px solid transparent; border-radius: 11px; color: #596b83; background: transparent; font-size: 20px; line-height: 1.4; font-weight: 500; }
.category-tab:hover { background: #f7f9fd; color: var(--blue); }
.category-tab.active { color: var(--blue); background: #fff; border-color: #dee7f6; box-shadow: 0 2px 7px #173e7c09; }
.tab-count { font-size: 16px; font-weight: 400; color: #77879e; }
.category-tab.active .tab-count { color: #6088d2; }
.tab-count:empty { display: none; }
.filter-bar { display: flex; align-items: stretch; gap: 16px; margin: 24px 0; }
.search-field { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search-field:focus-within { border-color: #8bb3fa; }
.search-field svg { flex: 0 0 20px; width: 20px; height: 20px; margin-left: 18px; color: #8190a5; }
.search-field input { width: 100%; min-width: 0; height: 54px; border: 0; border-radius: 10px; padding: 12px 16px 12px 12px; background: transparent; color: #243950; font-size: 17px; }
.search-field input:focus-visible { outline: 0; }
input::placeholder { color: #8a96a7; }
select { width: 248px; min-width: 0; min-height: 54px; padding: 12px 36px 12px 16px; border: 1px solid var(--line); border-radius: 10px; background-color: #fff; color: #54657c; font-size: 16px; text-overflow: ellipsis; }
.paper-list { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.paper-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 28px 32px; border-bottom: 1px solid #e8edf5; }
.paper-card:last-child { border-bottom: 0; }
.paper-copy { min-width: 0; }
.paper-copy h2 { font-size: inherit; margin: 0; font-weight: 600; }
.paper-title { display: block; margin: 0; padding: 0; border: 0; background: transparent; color: #23354e; text-align: left; font-size: 22px; line-height: 1.65; font-weight: 600; overflow-wrap: anywhere; }
.paper-title:hover { color: var(--blue); }
.translated-title { margin: 8px 0 0; color: #596c85; font-size: 18px; line-height: 1.65; }
.paper-meta { margin: 8px 0 0; color: #66758a; font-size: 16px; overflow-wrap: anywhere; }
.paper-context { margin: 8px 0 0; color: #7b889a; font-size: 16px; }
.paper-context span { padding: 0 4px; }
.paper-action { display: flex; align-items: center; }
.pdf-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid #d9e5fa; border-radius: 10px; background: #f1f6ff; color: var(--blue); font-size: 16px; white-space: nowrap; }
.pdf-button:hover { background: #e5eeff; border-color: #b8cff5; }
.list-message { margin: 0; padding: 56px 24px; color: var(--muted); font-size: 17px; text-align: center; }
.list-message p { margin-top: 0; overflow-wrap: anywhere; }
.load-error { color: #9e4d43; }
.paper-detail { width: min(780px, calc(100vw - 48px)); max-height: calc(100dvh - 64px); padding: 0; border: 1px solid #dce5f1; border-radius: 20px; background: #fff; color: #23354e; box-shadow: 0 24px 100px #1b2e4c24; }
.paper-detail::backdrop { background: #182a4547; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 1; padding: 16px 24px 16px 32px; border-bottom: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 16px; }
.close-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 10px; background: #f3f6fb; color: #546780; font-size: 30px; font-family: sans-serif; line-height: 1; }
.close-button:hover { background: #e9eff8; color: #21344e; }
.detail-content { padding: 32px; }
.detail-content h2 { margin: 0; font-size: 26px; line-height: 1.65; font-weight: 600; overflow-wrap: anywhere; }
.detail-title-zh { margin: 12px 0 0; font-size: 20px; color: #5e7189; }
.detail-publication { margin: 16px 0 0; font-size: 17px; color: var(--muted); }
.detail-authors { margin: 8px 0 0; font-size: 16px; color: #6c7b8f; overflow-wrap: anywhere; }
.detail-topics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 24px 0; color: #5f7798; font-size: 16px; }
.detail-topics span:first-child { color: var(--blue); }
.detail-actions { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.abstract-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.abstract-section h3 { margin: 0 0 12px; font-size: 19px; font-weight: 600; }
.abstract-section p { margin: 0; color: #43566f; font-size: 18px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-doi { display: flex; gap: 16px; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.detail-doi a { min-width: 0; }
body.detail-open { overflow: hidden; }
.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: 760px) {
  .library-shell { padding: 0 24px 48px; }
  .library-header { height: 88px; }
  .heading-row { margin-top: 32px; }
  .category-tab { font-size: 18px; padding: 12px 8px; gap: 8px; }
  .paper-card { padding: 24px; gap: 16px; }
  .filter-bar { gap: 12px; }
  select { width: 208px; }
  .paper-title { font-size: 22px; }
}
@media (max-width: 560px) {
  .library-shell { padding: 0 16px 32px; }
  .library-header { height: 80px; gap: 16px; }
  .brand { gap: 8px; font-size: 19px; }
  .brand-icon { width: 32px; height: 36px; }
  .brand-icon svg { width: 23px; height: 23px; }
  .collection-switch { gap: 4px; padding-left: 0; }
  .heading-row { margin: 24px 0; gap: 16px; }
  h1 { font-size: 28px; }
  .category-tabs { gap: 4px; padding: 4px; border-radius: 12px; }
  .category-tab { min-height: 76px; flex-direction: column; gap: 4px; padding: 10px 4px; border-radius: 8px; font-size: 17px; }
  .tab-count { font-size: 16px; }
  .filter-bar { flex-wrap: wrap; margin: 24px 0 16px; gap: 12px; }
  .search-field { flex-basis: 100%; }
  .search-field input { height: 50px; }
  select { width: 100%; min-height: 48px; }
  .paper-list { border-radius: 12px; }
  .paper-card { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 16px; }
  .paper-action { justify-content: flex-start; }
  .paper-meta { margin-top: 12px; }
  .paper-title { font-size: 22px; }
  .paper-detail { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); border-radius: 16px; }
  .detail-header { padding: 12px 16px 12px 20px; }
  .detail-content { padding: 24px 20px; }
  .detail-content h2 { font-size: 24px; }
  .detail-doi { gap: 12px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

body {
  color: #172439;
  background:
    radial-gradient(ellipse 58% 42% at 50% 18%, #fff 0%, rgba(255,255,255,0) 58%),
    radial-gradient(ellipse 80% 50% at 50% 12%, #f3b7d4 0%, rgba(243,183,212,0) 62%),
    radial-gradient(ellipse 46% 36% at 82% 28%, #9eb0ee 0%, rgba(158,176,238,0) 64%),
    radial-gradient(ellipse 40% 32% at 16% 24%, #e89bb8 0%, rgba(232,155,184,0) 66%),
    linear-gradient(180deg, #8d6bb8 0%, #d7b4d4 28%, #f4e7ef 62%, #f7f4ee 100%);
  background-attachment: fixed;
}
.library-shell { max-width: none; min-height: 100vh; padding: 120px 32px 72px; }
.library-header {
  position: fixed; z-index: 20; top: 22px; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); height: auto;
  padding: 8px 8px 8px 18px; gap: 8px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: rgba(28,24,48,.62); color: #fff;
  box-shadow: 0 16px 50px rgba(28,18,48,.28); backdrop-filter: blur(18px);
}
.brand { color: #fff; font-size: 20px; gap: 10px; }
.brand:hover { color: #fff; }
.brand-icon { width: 28px; height: 28px; border-radius: 0; background: transparent; color: #fff; }
.brand-icon svg { width: 22px; height: 22px; }
.collection-switch {
  min-height: 40px; padding: 8px 18px; border-radius: 999px;
  background: #fff; color: #172439; font-weight: 600;
}
.collection-switch:hover { background: #f7f4ee; color: #172439; }
main {
  width: min(1040px, 100%); margin: 0 auto;
  padding: 36px 40px 20px; border-radius: 28px;
  background: #f7f4ee; color: #172439;
  filter: drop-shadow(0 24px 64px rgba(0,0,0,.08));
}
.heading-row { margin: 0 0 28px; }
h1 { font-size: 40px; font-weight: 600; letter-spacing: -.03em; color: #172439; }
.subtle-link { color: #5d6b7c; }
.subtle-link:hover { color: #172439; }
.category-tabs { gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.category-tab { min-height: 52px; border-radius: 999px; color: #5d6b7c; background: transparent; }
.category-tab:hover { background: rgba(23,36,57,.06); color: #172439; }
.category-tab.active, .category-tab.active:hover { color: #f7f4ee; background: #172439; border-color: #172439; box-shadow: none; }
.tab-count, .category-tab.active .tab-count { color: inherit; opacity: .72; }
.search-field, select { border-color: #e4ddd2; background: #fff; color: #172439; }
.search-field input, select { color: #172439; }
.paper-list { border: 0; border-radius: 0; background: transparent; border-top: 1px solid #e4ddd2; }
.paper-card { padding: 28px 4px; border-bottom-color: #e4ddd2; }
.paper-title, .detail-content h2 { font-family: "Times New Roman", Times, "Microsoft YaHei", serif; color: #172439; }
.paper-title:hover { color: #172439; text-decoration: underline; text-underline-offset: 4px; }
.detail-doi a { color: #172439; border-bottom: 1px solid #cfc6b8; }
.detail-doi a:hover { color: #172439; }
.translated-title { color: #172439; }
.paper-meta, .paper-context, .detail-publication, .detail-authors { color: #5d6b7c; }
.pdf-button { border: 0; border-radius: 999px; background: #172439; color: #f7f4ee; }
.pdf-button:hover { background: #2c3c56; border-color: transparent; }
.paper-detail { border: 0; border-radius: 28px; background: #f7f4ee; color: #172439; box-shadow: none; filter: drop-shadow(0 24px 64px rgba(0,0,0,.18)); }
.paper-detail::backdrop { background: rgba(22, 16, 36, .38); }
.detail-header { background: #f7f4ee; border-bottom-color: #e4ddd2; color: #5d6b7c; }
.close-button { background: transparent; color: #5d6b7c; }
.close-button:hover { background: rgba(23,36,57,.06); color: #172439; }
.detail-topics { color: #5d6b7c; }
.detail-topics span:first-child { color: #172439; }
.abstract-section, .detail-doi { border-top-color: #e4ddd2; }
.abstract-section p { color: #172439; }
@media (max-width: 760px) {
  .library-shell { padding: 108px 16px 48px; }
  main { padding: 28px 20px 12px; border-radius: 24px; }
  .paper-card { padding: 24px 0; }
}
@media (max-width: 560px) {
  .library-header { width: calc(100vw - 20px); overflow-x: auto; }
  .library-shell { padding: 100px 12px 32px; }
  h1 { font-size: 32px; }
  .category-tab { min-height: 64px; border-radius: 16px; }
}
