:root {
  --ink: #17231f;
  --ink-soft: #53605b;
  --forest: #1f5a47;
  --forest-dark: #153f33;
  --sage: #e7eee8;
  --sage-light: #f3f6f3;
  --blue: #315f73;
  --line: #dce4df;
  --paper: #ffffff;
  --canvas: #f7f9f7;
  --warning: #8a641f;
  --focus: #8a3f2f;
  --focus-dark: #633126;
  --focus-soft: #f6ece7;
  --shadow: 0 16px 38px rgba(27, 54, 44, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shell: 1280px;
}

* {
  box-sizing: border-box;
}

/* 隐藏状态优先于卡片/grid/flex 样式，避免空提示与实际结果同时出现。 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--forest-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper);
  background: var(--forest);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  color: #43504b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--forest-dark);
  background: var(--sage-light);
}

.nav-link--disabled {
  cursor: not-allowed;
  color: #8a9691;
}

.nav-link--disabled small {
  padding: 1px 5px;
  background: #edf0ee;
  border-radius: 999px;
  font-size: 9px;
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  color: var(--forest-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.intro-section {
  padding: 76px 0 68px;
  background: var(--sage-light);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(50px, 8vw, 120px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.intro-section h1,
.page-heading h1,
.detail-heading h1,
.not-found h1 {
  margin: 0;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.intro-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: #45524d;
  font-size: 18px;
  line-height: 1.85;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button--primary {
  color: var(--paper);
  background: var(--forest);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--forest-dark);
}

.button--secondary {
  color: var(--forest-dark);
  background: var(--paper);
  border-color: #acc0b7;
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--sage-light);
  border-color: var(--forest);
}

.button--full {
  width: 100%;
}

.text-link,
.detail-link {
  color: var(--forest);
  font-weight: 750;
}

.text-link:hover,
.detail-link:hover {
  color: var(--forest-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.scope-note {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.scope-note__label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.scope-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.scope-note p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section--compact {
  padding-top: 56px;
  padding-bottom: 58px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.classification-status h2,
.content-panel h2,
.info-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.25;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card {
  min-height: 154px;
  padding: 24px 26px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin: 9px 0 2px;
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.journal-card {
  min-height: 190px;
  padding: 24px;
  background: var(--canvas);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.journal-card:hover,
.journal-card:focus-visible {
  background: var(--paper);
  border-color: #abc0b7;
}

.journal-index {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
}

.journal-card h3 {
  margin: 28px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.3;
}

.journal-card p {
  margin: 0;
  color: var(--ink-soft);
}

.journal-card p strong {
  color: var(--ink);
}

.classification-status {
  padding: 56px 0;
  color: var(--paper);
  background: var(--forest-dark);
}

.classification-status .section-kicker {
  color: #a8cfbb;
}

.classification-status__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 72px;
}

.classification-status h2 {
  color: var(--paper);
}

.classification-status p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #cbd8d2;
}

.classification-dimensions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.classification-dimensions span {
  padding: 12px 14px;
  color: #d7e5de;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.paper-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.paper-card,
.paper-row,
.content-panel,
.info-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.paper-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.paper-card__meta,
.paper-row__meta,
.detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.paper-card__meta span,
.paper-row__meta span,
.detail-meta span {
  color: var(--forest);
}

.paper-card h3 {
  margin: 15px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.paper-card h3 a:hover,
.paper-row h2 a:hover {
  color: var(--forest);
}

.paper-authors {
  margin: 0 0 13px;
  color: var(--ink-soft);
  font-size: 13px;
}

.paper-authors strong {
  color: var(--ink);
  font-weight: 700;
}

.paper-abstract {
  margin: 0;
  color: #46534e;
  font-size: 14px;
}

.paper-abstract--missing {
  color: #7a8580;
  font-style: italic;
}

.paper-card__footer,
.paper-row__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--ink-soft);
  font-size: 12px;
}

.paper-card__footer > span,
.doi {
  max-width: 72%;
  overflow-wrap: anywhere;
}

.paper-card__footer a {
  color: var(--forest);
  font-weight: 750;
  white-space: nowrap;
}

.page-heading,
.detail-heading {
  padding: 54px 0 48px;
  background: var(--sage-light);
  border-bottom: 1px solid var(--line);
}

.page-heading__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.page-heading h1 {
  font-size: clamp(40px, 5vw, 60px);
}

.page-heading p:last-child {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.result-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-soft);
}

.result-count strong {
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
}

.papers-section {
  padding-top: 44px;
  background: var(--canvas);
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 30px;
}

.search-bar input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9c8c1;
  border-radius: 9px;
  outline: none;
}

.search-bar input[type="search"]:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 90, 71, 0.12);
}

.papers-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}

.filter-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.filter-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.filter-panel__heading h2 {
  margin: 0;
  font-size: 19px;
}

.filter-panel__heading a {
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}

.filter-panel fieldset {
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.filter-panel fieldset:last-of-type {
  margin-bottom: 18px;
}

.filter-panel legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}

.check-row,
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 9px;
  color: #44514c;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
}

.check-row input,
.radio-row input {
  margin: 3px 0 0;
  accent-color: var(--forest);
}

.filter-disabled {
  opacity: 0.58;
}

.filter-disabled label {
  display: block;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 12px;
}

.filter-disabled select {
  width: 100%;
  margin-top: 5px;
  padding: 7px 9px;
  color: var(--ink-soft);
  background: #eef2ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}

.paper-results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.paper-results__header p {
  margin: 0;
}

.paper-results__header strong {
  color: var(--ink);
}

.paper-list {
  display: grid;
  gap: 12px;
}

.paper-row {
  padding: 24px 26px;
}

.paper-row h2 {
  margin: 13px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
}

.paper-row__footer {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #edf1ee;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 6px 10px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
}

.pagination a:hover,
.pagination a.is-current {
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
}

.pagination .is-disabled {
  color: #a4aca8;
  background: #f0f3f1;
}

.empty-state {
  padding: 74px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 28px;
}

.empty-state p {
  color: var(--ink-soft);
}

.detail-heading__inner {
  max-width: 1040px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--forest);
  font-weight: 700;
}

.detail-heading h1 {
  margin-top: 16px;
  font-size: clamp(34px, 4.7vw, 58px);
  overflow-wrap: anywhere;
}

.detail-authors {
  max-width: 1000px;
  margin: 22px 0 10px;
  color: #46534e;
  font-size: 15px;
}

.doi-link {
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.detail-section {
  background: var(--canvas);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 30px;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.content-panel,
.info-panel {
  padding: 28px 30px;
}

.content-panel h2,
.info-panel h2 {
  font-size: 29px;
}

.abstract-full {
  margin: 22px 0 0;
  color: #36433e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.9;
}

.missing-message {
  margin: 20px 0 0;
  padding: 18px;
  color: #69756f;
  background: var(--sage-light);
  border-radius: 8px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.status-badge,
.metadata-badge {
  display: inline-flex;
  padding: 4px 9px;
  color: var(--warning);
  background: #f6f0df;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.metadata-badge {
  color: var(--blue);
  background: #e8f0f3;
}

.panel-note {
  margin: 16px 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.classification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
}

.classification-grid > div {
  min-width: 0;
  padding: 0;
}

.classification-grid dt,
.metadata-list dt,
.info-panel dt {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.classification-grid dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 0;
}

.pending-value,
.classification-value {
  display: inline-flex;
  padding: 3px 8px;
  color: #69756f;
  background: #eef2ef;
  border-radius: 5px;
  font-size: 12px;
}

.classification-value {
  color: var(--forest-dark);
  background: var(--sage);
}

.source-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.openalex-panel {
  border-top: 3px solid #8aa9b7;
}

.metadata-list {
  margin: 20px 0 0;
}

.metadata-list > div,
.info-panel dl > div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.metadata-list dd,
.info-panel dd {
  margin: 5px 0 0;
  color: #3e4b46;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.detail-sidebar {
  position: sticky;
  top: 98px;
}

.info-panel h2 {
  margin-bottom: 16px;
}

.info-panel dl {
  margin: 0;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 17px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
}

.not-found {
  min-height: 65vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  background: var(--sage-light);
}

.not-found__inner {
  max-width: 720px;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.not-found p:not(.eyebrow) {
  margin: 20px 0 28px;
  color: var(--ink-soft);
}

.site-footer {
  padding: 36px 0;
  color: #d9e4df;
  background: #102d25;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  color: var(--paper);
}

.footer-inner p {
  margin: 5px 0 0;
  font-size: 12px;
}

.footer-note {
  color: #9bb0a8;
  text-align: right;
}

.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;
}

:focus-visible {
  outline: 3px solid rgba(49, 95, 115, 0.35);
  outline-offset: 3px;
}

.paper-title-zh {
  color: var(--ink);
  font-family: "Songti SC", "STSong", Georgia, serif !important;
  font-weight: 650 !important;
}

.paper-title-en {
  margin: -2px 0 13px;
  color: #65716c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.5;
}

.paper-card__meta,
.paper-row__meta {
  margin-bottom: 11px;
}

.paper-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.paper-links a {
  color: var(--forest);
  font-weight: 750;
}

.topic-home {
  padding-top: 60px;
  background: var(--canvas);
}

.topic-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.topic-link-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.topic-link-grid a:hover {
  border-color: #9fb8ad;
}

.topic-link-grid span {
  color: var(--forest);
  font-size: 12px;
}

.topic-disclaimer {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.attention-section {
  padding: 36px 0;
  background: var(--sage);
  border-block: 1px solid var(--line);
}

.attention-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 36px;
}

.attention-inner h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
}

.attention-inner p:last-child {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.attention-stats {
  display: flex;
  gap: 8px;
}

.attention-stats a {
  min-width: 88px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  text-align: center;
}

.attention-stats strong,
.attention-stats span {
  display: block;
}

.attention-stats strong {
  color: var(--forest-dark);
  font-family: Georgia, serif;
  font-size: 24px;
}

.attention-stats span {
  color: var(--ink-soft);
  font-size: 11px;
}

.active-topic {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 20px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #e8f0ec;
  border: 1px solid #cbdcd3;
  border-radius: 10px;
}

.active-topic div span,
.active-topic div strong {
  display: block;
}

.active-topic div span {
  color: var(--ink-soft);
  font-size: 11px;
}

.active-topic a {
  color: var(--forest);
  font-size: 12px;
  font-weight: 750;
}

.active-topic p {
  grid-column: 1 / -1;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #edf1ee;
}

.favorite-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--forest-dark);
  background: var(--paper);
  border: 1px solid #b8c9c1;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
}

.favorite-button[aria-pressed="true"] {
  color: #7b5a1c;
  background: #fbf4df;
  border-color: #dfca91;
}

.card-actions select,
.user-mark-grid select {
  min-height: 36px;
  padding: 6px 30px 6px 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b8c9c1;
  border-radius: 7px;
}

.card-actions .paper-links {
  margin-left: auto;
  font-size: 12px;
}

.save-feedback {
  min-width: 38px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
}

.detail-original-title {
  max-width: 940px;
  margin: 12px 0 18px;
  color: #5b6963;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.45;
}

.detail-heading .detail-meta {
  justify-content: flex-start;
  margin-top: 18px;
}

.original-button {
  margin-top: 15px;
}

.user-mark-panel {
  border-top: 3px solid var(--forest);
}

.user-mark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.note-field textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid #b8c9c1;
  border-radius: 8px;
  line-height: 1.65;
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.note-footer > span {
  color: var(--ink-soft);
  font-size: 11px;
}

.topic-notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  color: #40504a;
  background: var(--sage-light);
  border-left: 4px solid var(--forest);
  border-radius: 8px;
}

.topic-notice p {
  margin: 4px 0 0;
  font-size: 13px;
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  min-height: 180px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.topic-card:hover {
  border-color: #98b2a6;
  box-shadow: var(--shadow);
}

.topic-card__index {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 13px;
}

.topic-card h2 {
  margin: 24px 0 4px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
}

.topic-card p,
.topic-card > span:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.topic-card > span:last-child {
  display: block;
  margin-top: 14px;
  color: var(--forest);
  font-weight: 750;
}

.saved-section {
  background: var(--canvas);
}

.saved-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.saved-tabs a {
  padding: 8px 14px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.saved-tabs a.is-active {
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
}

.saved-list {
  display: grid;
  gap: 12px;
}

.saved-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: #45534d;
  background: var(--sage-light);
  border-radius: 8px;
  white-space: pre-wrap;
}

.saved-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.focus-home {
  padding: 54px 0 50px;
  background: linear-gradient(135deg, #f8f1ec 0%, #f3ebe4 100%);
  border-block: 1px solid #ead8ce;
}

.focus-home .section-heading {
  margin-bottom: 20px;
}

.focus-home .section-kicker,
.focus-card__label {
  color: var(--focus);
}

.focus-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.focus-chip {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 19px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dfc3b7;
  border-left: 4px solid var(--focus);
  border-radius: 10px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.focus-chip:hover,
.focus-chip:focus-visible {
  border-color: #bd8875;
  box-shadow: 0 10px 24px rgba(99, 49, 38, 0.1);
  transform: translateY(-2px);
}

.focus-chip span {
  color: var(--focus);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.focus-chip strong {
  margin-top: 5px;
  color: var(--focus-dark);
  font-size: 17px;
}

.focus-disclaimer {
  margin: 17px 0 0;
  color: #76594f;
  font-size: 12px;
}

.focus-disclaimer--panel {
  margin: 0 0 24px;
  padding: 15px 18px;
  background: var(--focus-soft);
  border-left: 3px solid var(--focus);
  border-radius: 8px;
  font-size: 13px;
}

.formal-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.formal-focus-tags span {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--focus-dark);
  background: var(--focus-soft);
  border: 1px solid #dfbfb2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.formal-focus-tags--detail {
  margin-bottom: 18px;
}

.active-focus {
  border-left-color: var(--focus);
}

.active-focus div span,
.active-focus div strong,
.active-focus a {
  color: var(--focus-dark);
}

.journals-page,
.focus-page {
  background: var(--canvas);
}

.registry-stat-grid {
  margin-bottom: 28px;
  background: var(--paper);
}

.registry-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 46px;
}

.registry-search input[type="search"] {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 11px 15px;
  background: var(--paper);
  border: 1px solid #b9c8c1;
  border-radius: 9px;
  outline: none;
}

.registry-search input[type="search"]:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 90, 71, 0.12);
}

.registry-section + .registry-section {
  margin-top: 58px;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.registry-card {
  min-height: 170px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.registry-card:hover,
.registry-card:focus-visible {
  border-color: #a9bfb5;
  box-shadow: var(--shadow);
}

.registry-card--high {
  border-top: 3px solid var(--focus);
}

.registry-card__badges,
.registry-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.registry-card h3 {
  margin: 26px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.35;
}

.registry-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.priority-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: var(--focus-dark);
  background: var(--focus-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.priority-badge--normal {
  color: var(--ink-soft);
  background: #edf1ee;
}

.status-pill {
  color: var(--forest-dark);
  background: var(--sage);
}

.status-pill--pending {
  color: #725c2d;
  background: #f5eedc;
}

.registry-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.registry-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.registry-row:last-child {
  border-bottom: 0;
}

.registry-row:hover,
.registry-row:focus-visible {
  background: var(--sage-light);
}

.registry-row strong {
  line-height: 1.35;
}

.journal-status-heading .intro-copy {
  margin-bottom: 24px;
}

.focus-page-heading {
  background: linear-gradient(135deg, #faf5f1, #f3ebe4);
}

.focus-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.focus-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--paper);
  border: 1px solid #e4d2c9;
  border-top: 4px solid var(--focus);
  border-radius: 12px;
}

.focus-card__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.focus-card h2 {
  margin: 12px 0 10px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 27px;
}

.focus-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.focus-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink-soft);
  font-size: 12px;
}

.focus-card__footer strong {
  color: var(--focus-dark);
  font-size: 18px;
}

.home-hero {
  padding: 68px 0 60px;
  background: var(--paper);
}

.home-hero__inner {
  max-width: 980px;
  text-align: center;
}

.home-hero h1 {
  max-width: none;
  font-size: clamp(40px, 5.2vw, 66px);
}

.home-hero .intro-copy {
  max-width: none;
  margin-top: 15px;
  font-size: 17px;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 820px);
  margin: 32px auto 0;
}

.hero-search input {
  min-width: 0;
  min-height: 58px;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #afc1b8;
  border-radius: 11px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 8px 24px rgba(27, 54, 44, 0.06);
}

.hero-search input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(31, 90, 71, 0.12);
}

.hero-search .button {
  min-height: 58px;
  padding-inline: 24px;
}

.hero-activity {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-activity strong {
  color: var(--forest-dark);
  font-size: 16px;
}

.focus-home {
  padding: 48px 0 44px;
  background: #fbf8f5;
}

.focus-chip {
  min-height: 76px;
  padding: 14px 17px;
  border: 1px solid #e2d5cf;
  border-left: 3px solid #b77360;
  box-shadow: none;
}

.focus-chip strong {
  margin: 0;
  font-size: 16px;
}

.focus-chip span {
  margin-top: 3px;
  color: #765f56;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.favorite-journals-home {
  background: var(--sage-light);
}

.empty-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.registry-stat-grid--neutral {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.registry-stat-grid--neutral .stat-card:nth-child(3) {
  border-right: 0;
}

.journal-favorites {
  margin-bottom: 48px;
}

.journal-favorite-actions,
.journal-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.journal-detail-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

.journal-favorite-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: var(--forest-dark);
  background: var(--paper);
  border: 1px solid #b7c7bf;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.journal-favorite-button[aria-pressed="true"] {
  color: #72551b;
  background: #fbf4df;
  border-color: #dfca91;
}

.registry-row__link {
  min-width: 0;
  flex: 1;
}

.focus-card__summary {
  color: var(--focus-dark) !important;
  font-weight: 750;
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: space-between;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .topic-link-grid,
  .topic-card-grid,
  .focus-chip-grid,
  .registry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attention-inner {
    grid-template-columns: 1fr auto;
  }

  .attention-inner > .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 800px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .intro-grid,
  .classification-status__inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    align-items: start;
    gap: 34px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .focus-card-grid {
    grid-template-columns: 1fr;
  }

  .journal-card {
    min-height: 0;
  }

  .paper-card-grid {
    grid-template-columns: 1fr;
  }

  .papers-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .detail-sidebar {
    position: static;
  }

  .filter-panel form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
  }

  .filter-panel__heading,
  .filter-panel .button--full {
    grid-column: 1 / -1;
  }

  .filter-panel fieldset {
    min-width: 0;
  }

  .filter-disabled {
    grid-column: 1 / -1;
  }

  .page-heading__inner {
    align-items: start;
  }

  .detail-sidebar {
    order: -1;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .intro-section,
  .section,
  .classification-status,
  .focus-home {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .intro-section h1,
  .page-heading h1 {
    font-size: 40px;
  }

  .intro-copy {
    font-size: 16px;
  }

  .home-hero {
    padding-top: 48px;
    padding-bottom: 42px;
  }

  .home-hero h1 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search input,
  .hero-search .button {
    min-height: 52px;
  }

  .hero-activity {
    flex-wrap: wrap;
  }

  .intro-actions,
  .section-heading,
  .page-heading__inner,
  .paper-results__header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    display: flex;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .classification-dimensions,
  .classification-grid,
  .topic-link-grid,
  .topic-card-grid,
  .registry-grid,
  .user-mark-grid {
    grid-template-columns: 1fr;
  }

  .focus-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .focus-chip {
    min-height: 82px;
    padding: 12px;
  }

  .focus-chip strong {
    font-size: 14px;
  }

  .attention-inner {
    grid-template-columns: 1fr;
  }

  .attention-stats {
    width: 100%;
  }

  .attention-stats a {
    flex: 1;
    min-width: 0;
  }

  .attention-inner > .button {
    grid-column: auto;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .registry-search,
  .registry-row,
  .focus-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .registry-row__badges {
    align-self: flex-start;
  }

  .empty-inline,
  .journal-detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-panel form {
    grid-template-columns: 1fr;
  }

  .filter-disabled {
    grid-column: auto;
  }

  .paper-card,
  .paper-row,
  .content-panel,
  .info-panel {
    padding: 20px;
  }

  .paper-row h2,
  .paper-card h3 {
    font-size: 20px;
  }

  .paper-card__meta,
  .paper-row__meta,
  .paper-card__footer,
  .paper-row__footer,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .paper-card__footer > span,
  .doi {
    max-width: 100%;
  }

  .pagination a,
  .pagination span {
    min-width: 34px;
    padding-inline: 7px;
  }

  .footer-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
[hidden] { display: none !important; }
.classification-grid.classification-core { display: flex; flex-direction: column; gap: 16px; }
.classification-grid.classification-core > div { display: grid; grid-template-columns: 100px 1fr; align-items: baseline; padding: 0; border: 0; background: transparent; }
.classification-core dd { margin: 0; }
.sort-control { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; }
.sort-control select { min-height: 40px; border: 1px solid #d8e2dc; border-radius: 6px; padding: 0 12px; background: white; }
.fulltext-control { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.fulltext-control input { width: auto; }
.static-filter-options { max-height: 14rem; overflow-y: auto; padding-right: 4px; }
.recent-routine { margin-bottom: 28px; }
@media (max-width: 600px) { .classification-grid.classification-core > div { grid-template-columns: 1fr; gap: 8px; } .sort-control, .fulltext-control { width: 100%; } }
