@charset "UTF-8";
/* Public portal design tokens. */
:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF0F4;
  --text: #14171F;
  --text-2: #4B5262;
  /* Also readable on surface-2, where the proposed #667085 yields 4.36:1. */
  --text-3: #626C80;
  --line: #E3E6EC;
  --line-strong: #CDD2DC;
  --accent: #3A47D5;
  --accent-bg: #EEF0FD;
  --accent-text: #2A35A8;
  --ok: #167A4A;
  --ok-bg: #E4F4EB;
  --vendor: #9A5B00;
  --vendor-bg: #FCEFD6;
  --authored: #0E7490;
  --authored-bg: #E1F3F7;
  --pending: #5B6475;
  --pending-bg: #ECEEF2;
  --expired: #B42318;
  --expired-bg: #FDE9E7;
  --ink: var(--text);
  --ink-2: var(--text-2);
  --ink-3: var(--text-3);
  --paper: var(--bg);
  --accent-soft: var(--surface-2);
  --canvas: var(--bg);
  --canvas-deep: var(--surface-2);
  --surface-hover: var(--bg);
  --ink-body: var(--text-2);
  --night: var(--text);
  --muted: var(--text-3);
  --subtle: var(--text-3);
  --soft: var(--surface-2);
  --soft-2: var(--line);
  --pale: var(--surface-2);
  --accent-wash: var(--surface-2);
  --blue-hover: var(--text-2);
  --line-hover: var(--line-strong);
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-display: var(--font-body);
  --h-display: var(--font-body);
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --text-2xs: .8125rem;
  --text-xs: .8125rem;
  --text-sm: .9375rem;
  --text-base: 1.0625rem;
  --wrap-max: 1200px;
  --article-max: 680px;
  --h-wrap: var(--wrap-max);
  --h-bg: var(--paper);
  --h-ink: var(--ink);
  --h-body: var(--ink-body);
  --h-muted: var(--muted);
  --h-faint: var(--subtle);
  --h-line: var(--line);
  --h-line-strong: var(--line-strong);
  --h-soft: var(--soft);
  --h-accent: var(--text);
  --h-link: var(--accent);
  --h-ok: var(--ok);
  --h-warn: var(--text-2);
  --h-gutter: 16px;
}

@view-transition { navigation: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.num, time { font-variant-numeric: tabular-nums; }

.h-wrap {
  max-width: var(--h-wrap);
  margin-inline: auto;
  padding-inline: var(--h-gutter);
}
@media (min-width: 768px) { :root { --h-gutter: 24px; } }

/* ---------- 3. 页脚 ---------- */
.h-footer {
  margin-top: 64px;
  border-top: 1px solid var(--h-line-strong);
  padding-block: 28px 40px;
  font-size: 0.9375rem;
  color: var(--h-muted);
}
.h-footer-line, .h-footer-line nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}
.h-footer-line { justify-content: space-between; }
.h-footer-brand { color: var(--ink); font-weight: 700; }
.h-footer a { text-decoration: none; }
.h-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer { display: none; }

/* ---------- 4. 通用：区块标题、列表、标签 ---------- */
.h-section { margin-top: 40px; }
.h-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}
.h-section-head h2 { font-size: 1.25rem; font-weight: 600; }
.h-section-head a { font-size: 0.9375rem; color: var(--h-muted); text-decoration: none; white-space: nowrap; }
.h-section-head a:hover { color: var(--h-ink); text-decoration: underline; }
.h-section-note { margin: 8px 0 0; font-size: 0.9375rem; color: var(--h-muted); }

.h-list { list-style: none; margin: 0; padding: 0; }
.h-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--h-line);
}
.h-row-date {
  grid-row: span 2;
  font-size: 0.9375rem;
  color: var(--h-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  padding-top: 1px;
}
.h-row-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--h-ink);
  text-decoration: none;
}
.h-row-title:hover { color: var(--h-link); text-decoration: underline; text-underline-offset: 3px; }
.h-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.8125rem;
  color: var(--h-muted);
}
.h-row-date small { font-size: 0.8125rem; color: var(--h-faint); }
.h-row--plain { grid-template-columns: 1fr; }
.h-row--plain .h-row-date { display: none; }
.h-row-summary { grid-column: 2; margin: 2px 0 0; font-size: 0.9375rem; color: var(--h-body); }
.h-row--plain .h-row-summary { grid-column: 1; }

.h-grid {
  display: grid;
  gap: 0 40px;
}
@media (min-width: 900px) {
  .h-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.h-term { padding: 12px 0; border-bottom: 1px solid var(--h-line); }
.h-term a { font-weight: 600; color: var(--h-ink); text-decoration: none; }
.h-term a:hover { color: var(--h-link); text-decoration: underline; }
.h-term p { margin: 2px 0 0; font-size: 0.9375rem; color: var(--h-body); }

.h-empty { padding: 14px 0; font-size: 0.9375rem; color: var(--h-muted); border-bottom: 1px solid var(--h-line); }

.h-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) { .h-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h-tools li { padding: 10px 0; border-bottom: 1px solid var(--h-line); min-width: 0; }
.h-tools a { font-weight: 600; color: var(--h-ink); text-decoration: none; }
.h-tools a:hover { color: var(--h-link); text-decoration: underline; }
.h-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-block: 18px;
  color: var(--muted);
  font-size: .9375rem;
}

.library, .case-page { padding-bottom: 32px; }
.library { max-width: 960px; }
.library--cases { max-width: 1040px; }
.library-heading { padding-block: 30px 24px; }
.library-heading h1, .case-heading h1 {
  font-size: 2rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.case-heading h1 { font-family: var(--h-display); font-weight: 600; }
.library-heading p, .case-heading > p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.library-form { position: relative; }
.library-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  margin-right: 86px;
}
.library-search input, .library-filter-fields select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font: inherit;
}
.library-search input { border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.library-search input:focus { position: relative; }
.library-search button, .library-filter-fields button {
  min-height: 44px;
  padding-inline: 14px;
  color: var(--surface);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius-xs);
  font: 600 .9375rem var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}
.library-search button { border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }
.library-search button:hover, .library-filter-fields button:hover { background: var(--blue-hover); }

.library-more summary {
  position: absolute;
  inset: 0 0 auto auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 76px;
  min-height: 44px;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font-size: .9375rem;
  cursor: pointer;
}
.library-more summary::-webkit-details-marker { display: none; }
.library-more summary:hover, .library-more[open] summary { border-color: var(--accent); background: var(--accent-wash); }
.library-chevron { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.library-more[open] .library-chevron { transform: rotate(225deg); }
.library-filter-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.library-filter-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  align-items: end;
  gap: 12px;
  padding-top: 14px;
}
.library-filter-fields label { display: grid; gap: 3px; min-width: 0; color: var(--muted); font-size: .9375rem; }

.library-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-top: 8px;
}
.library-quick-filters a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-inline: 3px;
  border-bottom: 2px solid transparent;
  color: var(--ink-body);
  font-size: .9375rem;
  text-decoration: none;
}
.library-quick-filters a:hover, .library-quick-filters a[aria-current="true"] { color: var(--accent); }
.library-quick-filters a[aria-current="true"] { border-color: var(--accent); font-weight: 600; }

.library-result { margin-top: 20px; }
.library-result-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.library-result-head h2 { font-size: 1.125rem; }
.library-result-head span, .library-reset { font-size: .9375rem; color: var(--muted); }
.library-reset { margin-left: auto; color: var(--accent); }
.library-active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; list-style: none; }
.library-active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  background: var(--accent-wash);
  color: var(--accent);
  font-size: .9375rem;
  text-decoration: none;
}

.library-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.library-entry {
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.library-entry h2 { margin: 0 0 4px; font-size: 1.25rem; line-height: 1.5; text-wrap: wrap; }
.library-entry h2 a { color: var(--ink); text-decoration: none; }
.library-entry h2 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.library-entry h2 a, .library-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.library-description { margin: 0; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.65; }
.library-case-metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; margin: 3px 0 0; }
.library-case-metric strong { color: var(--accent); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.library-case-metric span { color: var(--ink-2); font-size: var(--text-xs); }
.library-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0 0 5px;
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.55;
}
.library-facts span + span::before { content: "·"; margin-inline-end: 8px; }
.library-list--cases { display: grid; gap: 12px; border: 0; }
.library-list--cases .library-entry {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.library-list--cases article { display: flex; flex-direction: column; height: 100%; }
.case-source-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.6;
}
.library-byline, .library-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 0;
}
.library-byline { margin-top: 8px; color: var(--ink-3); font-size: var(--text-xs); line-height: 1.6; }
.library-byline a { min-width: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.library-byline a:hover { color: var(--accent); }
.library-byline :is(span, time, strong) { white-space: nowrap; }
.library-list--cases .library-byline { flex-wrap: nowrap; margin-top: auto; padding-top: 12px; }
.library-list--cases .library-source { flex-wrap: nowrap; }
.library-list--cases .library-source a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.library-empty { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.library-empty h3 { font-size: 1.0625rem; }
.library-empty p { margin: 5px 0; color: var(--muted); }
.library-empty a { color: var(--accent); }
.library-empty-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block: 8px; }
@media (min-width: 800px) {
  .library-heading { padding-block: 40px 24px; }
  .library-list--cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-list--cases .library-entry { padding: 18px 20px; }
  .case-heading h1 { font-size: 2.75rem; }
}

.case-page { max-width: calc(var(--article-max) + var(--h-gutter) * 2); }
.case-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 24px; font-size: .9375rem; }
.case-breadcrumb a, .case-source-meta a, .case-sources a { color: var(--accent); }
.case-heading { max-width: 850px; padding-block: 22px 26px; }
.case-heading h1 { margin-top: 12px; }
.case-source-meta { margin-top: 16px; }
.case-layout { display: grid; gap: 24px; }
.case-main, .case-aside { min-width: 0; overflow-wrap: anywhere; }
.case-brief {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}
.case-brief h2, .case-sources h2, .case-aside h2 { font-size: 1.125rem; }
.case-result-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.case-result-strip dt, .case-metrics-note { color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.case-result-strip dd { margin: 3px 0 0; color: var(--ink); font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.case-result-strip small { color: var(--ink-2); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.case-metrics-note { margin: 8px 0 0; }
.case-facts { display: grid; gap: 10px; margin: 14px 0 0; }
.case-facts div { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); gap: 8px; }
.case-facts dt { color: var(--text-2); font-weight: 700; }
.case-facts dd { margin: 0; }
.case-facts { font-size: .9375rem; line-height: 1.75; }
.case-prose { font-size: 1.0625rem; line-height: 1.75; }
.case-prose :is(h2, h3, h4) { scroll-margin-top: calc(var(--site-header-height) + 12px); }
.case-prose :is(p, ul, ol) { margin-block: 0 1em; }
.case-prose h2 { margin-top: 1.4em; font-size: 1.3rem; }
.case-sources { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.case-sources ul { padding-left: 1.25em; }
.case-sources p, .case-sources small { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.case-aside { align-self: start; padding: 15px 0; border-top: 1px solid var(--line-strong); }
.case-aside a { display: flex; justify-content: space-between; gap: 8px; padding-block: 10px; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); }
.case-aside a:hover { text-decoration: underline; }
.case-aside a span { color: var(--muted); font-size: .8125rem; flex-shrink: 0; }
@media (min-width: 650px) {
  .case-aside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; }
  .case-aside h2 { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .library-heading { padding-block: 20px 14px; }
  .library-search input { padding-inline: 8px; font-size: .9375rem; }
  .case-brief { padding: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  .library-more[open] .library-filter-fields { animation: library-disclosure 150ms ease; }
}
@keyframes library-disclosure { from { opacity: 0; } to { opacity: 1; } }
