:root {
  --bg: #f8fafc;
  --paper: #fffaf0;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #5b6678;
  --line: #d8dee8;
  --primary: #1d4ed8;
  --accent: #a44912;
  --accent-2: #0f766e;
  --shadow: 0 20px 45px rgba(23, 32, 51, .08);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg) url("../img/v2/paper-texture.png");
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(216, 222, 232, .9); background: rgba(248, 250, 252, .94); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; min-height: 44px; }
.brand span { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 7px; color: var(--muted); font-weight: 650; }
.site-nav a:hover { background: #e8eef8; color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }
.hero { min-height: calc(100dvh - 72px); display: grid; align-items: center; padding: 56px 0 36px; }
.hero-grid, .split, .two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr); gap: 48px; align-items: center; }
.hero-copy h1, .page-hero h1, .article-hero h1 { margin: 10px 0 16px; line-height: 1.08; letter-spacing: 0; font-size: clamp(2.5rem, 7vw, 5.8rem); }
.article-hero h1 small { display: block; margin-top: 8px; font-size: clamp(1.2rem, 2vw, 1.8rem); color: var(--muted); font-weight: 650; }
.hero-copy p, .page-hero p, .article-hero p { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.hero-media, .article-hero > img, .feature-card, .item-card, .glossary-card, .photo-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media { padding: 18px; background: #111827 url("../img/v2/metal-detail.png") center / cover; }
.photo-panel { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-search, .page-search { margin-top: 24px; max-width: 620px; }
input[type="search"] { width: 100%; min-height: 52px; border: 1px solid #cbd5e1; border-radius: 7px; padding: 0 16px; font: inherit; background: #fff; color: var(--ink); }
.section { padding: 72px 0; }
.section.compact { padding: 38px 0; }
.band { background: #eef4f8; border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 28px; max-width: 760px; }
.section-heading h2, .prose h2, .timeline-item h2 { margin: 6px 0 8px; line-height: 1.18; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-heading p, .item-card p, .glossary-card p, .feature-card p { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.item-card { display: flex; min-height: 100%; flex-direction: column; padding: 16px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.item-card:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(23, 32, 51, .12); border-color: #b9c6d8; color: var(--ink); }
.item-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 6px; background: #f2f5f9; margin-bottom: 16px; }
.item-card h3 { margin: 6px 0 6px; font-size: 1.35rem; line-height: 1.25; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--primary); font-weight: 800; }
.page-hero { padding: 72px 0 18px; }
.article { padding-bottom: 56px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 26px; color: var(--muted); font-size: .94rem; }
.breadcrumb a { color: var(--primary); }
.article-hero { padding: 34px 0 20px; }
.article-hero > img { padding: 18px; background: #f7f9fc; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 14px 0 24px; }
.fact-grid div { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; }
.fact-grid span { display: block; color: var(--muted); font-size: .9rem; }
.fact-grid strong { display: block; margin-top: 4px; }
.prose { max-width: 780px; }
.prose p, .prose li { color: #2f3b4d; }
.check-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; list-style: none; }
.check-list li { padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.source-list { padding-left: 18px; }
.source-list a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.notice { border-left: 4px solid var(--accent); background: #fff7ed; padding: 12px 14px; border-radius: 0 7px 7px 0; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline-item { position: relative; border-left: 4px solid var(--accent-2); background: var(--surface); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.timeline-item span { color: var(--accent-2); font-weight: 800; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.glossary-card { padding: 20px; }
.glossary-card h2 { margin: 0 0 8px; }
.feature-card { display: grid; grid-template-columns: .9fr 1fr; gap: 26px; align-items: center; padding: 18px; }
.site-footer { border-top: 1px solid var(--line); padding: 38px 0; background: #111827; color: #e5e7eb; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.site-footer p, .site-footer a { color: #cbd5e1; }
.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; }
/* 新增图录、引证和检索组件，保留既有配色。 */
html { scroll-padding-top: 96px; }
[id] { scroll-margin-top: 96px; }
h1, h2, h3 { overflow-wrap: anywhere; }
.hero-copy h1 { font-size: clamp(2.35rem, 5.1vw, 4.4rem); line-height: 1.16; }
.article-hero h1 { font-size: clamp(2.35rem, 4.5vw, 4rem); line-height: 1.2; }
.site-nav a[aria-current="page"] { color: var(--primary); background: #e8eef8; }
.artifact-figure { min-width: 0; margin: 0; }
.artifact-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.artifact-figure figcaption { color: var(--muted); font-size: .88rem; line-height: 1.6; margin-top: 10px; }
.artifact-figure > a { display: block; }
.collection-stats, .review-date { font-size: .95rem !important; }
.review-date a, .prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.search-row { display: flex; gap: 8px; margin-top: 8px; }
.search-row input { min-width: 0; }
.search-row button { flex: 0 0 auto; min-width: 76px; padding: 10px 16px; border: 0; border-radius: 7px; background: var(--primary); color: white; font: inherit; cursor: pointer; }
.search-row button:hover { background: #173eac; }
.search-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; }
.search-controls .page-search { flex: 1 1 360px; max-width: none; margin-top: 12px; }
.search-controls label, .hero-search label { display: block; font-size: .95rem; font-weight: 650; margin-bottom: 6px; }
.type-filter { flex: 0 1 210px; }
.type-filter select { min-height: 52px; width: 100%; padding: 10px 32px 10px 12px; border: 1px solid #cbd5e1; border-radius: 7px; background: white; color: var(--ink); font: inherit; }
select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.search-status { flex-basis: 100%; color: var(--muted); margin: 0; font-size: .92rem; }
.empty-state { padding: 28px; border: 1px dashed var(--line); background: var(--surface); border-radius: var(--radius); }
.card-meta { margin-top: auto; padding-top: 12px; font-size: .82rem; color: var(--accent-2); }
.article-toc { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 8px; border-block: 1px solid var(--line); }
.article-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--primary); background: var(--surface); border-radius: 6px; }
.citations { font-size: .84rem; }
.citations a { display: inline; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.specimen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.specimen { padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.specimen h3 { margin-top: 0; }
.specimen dl { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; font-size: .96rem; }
.specimen dt { color: var(--muted); }
.specimen dd { margin: 0; overflow-wrap: anywhere; }
.detailed-sources li { padding-bottom: 18px; overflow-wrap: anywhere; }
.detailed-sources p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { text-align: left; padding: 16px; font-weight: 700; }
th, td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; min-width: 120px; }
thead { background: #eef4f8; }
tbody th { font-weight: 650; }
.prose { line-height: 1.85; }
[hidden] { display: none !important; }
.utility-nav { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:48px; color:var(--muted); font-size:.88rem; border-bottom:1px solid var(--line); }
.utility-nav > div { display:flex; flex-wrap:wrap; gap:8px; }
.utility-nav a { display:inline-flex; align-items:center; min-height:44px; padding:4px 10px; }
.utility-nav a[aria-current="page"] { color:var(--primary); font-weight:750; }
.editorial-hero { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.75fr); gap:48px; align-items:center; padding-bottom:36px; }
.editorial-hero h1 { font-size:clamp(2.35rem,4.8vw,4.4rem); line-height:1.16; }
.editorial-hero .artifact-figure { max-width:480px; justify-self:end; }
.image-link { cursor:zoom-in; }
.aliases { color:var(--muted); font-size:.92rem!important; }
.tag-list { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.tag-list a { min-height:36px; display:inline-flex; align-items:center; padding:5px 12px; border:1px solid var(--line); border-radius:5px; background:var(--surface); font-size:.87rem; color:var(--accent-2); }
.structure-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.structure-note { border-top:3px solid var(--accent); background:var(--surface); padding:20px; border-radius:0 0 var(--radius) var(--radius); }
.structure-note h3 { margin:8px 0; font-size:1.2rem; }
.structure-note p { margin:0; color:var(--muted); }
.note-number { color:var(--accent); font-weight:800; font-size:.9rem; }
.caption-note { font-size:.88rem; color:var(--muted); }
.comparison-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:start; margin:24px 0; }
.comparison-gallery:has(> :last-child:nth-child(2)) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.comparison-gallery .artifact-figure img { aspect-ratio:3/2; object-fit:contain; }
.comparison-notes { max-width:850px; line-height:1.85; }
.comparison-notes li { margin:12px 0; }
.comparison-notes a { color:var(--primary); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.route-list { padding-left:26px; max-width:860px; }
.route-list li { padding:10px 0 14px 10px; }
.route-list a { color:var(--primary); display:inline-flex; align-items:center; min-height:44px; font-size:1.08rem; font-weight:700; }
.route-list span { display:block; color:var(--muted); line-height:1.8; }
.reading-route { border-bottom:1px solid var(--line); padding:24px 0 48px; margin-bottom:48px; }
.reading-route h2 { font-size:clamp(1.7rem,3vw,2.5rem); margin:8px 0; }
.timeline-bands { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; }
.timeline-band > p { min-height:4em; color:var(--muted); }
.timeline-band .timeline-item { margin-bottom:20px; }
.timeline-art img { width:100%; aspect-ratio:3/2; object-fit:contain; margin-top:14px; border:1px solid var(--line); border-radius:6px; }
.timeline-art h3 { font-size:1.35rem; margin:12px 0 8px; }
.source-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.source-card { padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow-wrap:anywhere; }
.source-card h2 { font-size:1.25rem; line-height:1.5; }
.source-card h2 a, .source-used a { color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.source-used { border-top:1px solid var(--line); padding-top:14px; font-size:.9rem; }
.compare-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.compare-controls label { display:block; margin-bottom:8px; font-weight:650; }
.compare-controls select { width:100%; min-height:48px; padding:10px; font:inherit; color:var(--ink); border:1px solid var(--line); background:var(--surface); border-radius:7px; }
.compare-table { table-layout:fixed; min-width:680px; }
.compare-table th:first-child { width:120px; }
.compare-table td { overflow-wrap:anywhere; line-height:1.75; }
.compare-table a { color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.compare-table ul { padding-left:20px; }
.image-atlas { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.image-atlas img { height:auto; aspect-ratio:3/2; object-fit:contain; }
.image-dialog { width:min(1200px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:56px 20px 16px; background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:8px; }
.image-dialog::backdrop { background:rgba(17,24,39,.82); }
.image-dialog img { margin:auto; max-height:calc(100dvh - 175px); width:auto; max-width:100%; object-fit:contain; }
.image-close { position:absolute; top:8px; right:12px; min-height:40px; padding:6px 14px; border:1px solid var(--line); border-radius:5px; background:white; font:inherit; cursor:pointer; }
.lightbox-caption { font-size:.9rem; color:var(--muted); margin-bottom:0; }
@media (max-width: 900px) {
  .editorial-hero { grid-template-columns:1fr; gap:24px; }
  .editorial-hero .artifact-figure { max-width:none; width:100%; justify-self:stretch; }
  .structure-grid, .comparison-gallery, .image-atlas { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: 72px; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; }
  .hero-grid, .split, .two-col, .feature-card { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-grid, .footer-grid, .check-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .utility-nav { align-items:flex-start; font-size:.82rem; }
  .utility-nav > span { display:none; }
  .utility-nav > div { width:100%; justify-content:space-between; gap:0; }
  .structure-grid, .comparison-gallery, .comparison-gallery:has(> :last-child:nth-child(2)), .timeline-bands, .source-grid, .compare-controls, .image-atlas { grid-template-columns:1fr; }
  .timeline-band > p { min-height:0; }
  .image-dialog { padding:54px 10px 12px; }
  .specimen-grid { grid-template-columns: 1fr; }
  .search-controls .page-search, .type-filter { flex-basis: 100%; }
  .specimen { padding: 18px; }
  .article-toc a { font-size: .9rem; }
  .hero-grid, .two-col { gap: 24px; }
  .shell { width: min(100% - 24px, 1160px); }
  .hero { min-height: auto; padding-top: 36px; }
  .hero-copy h1, .page-hero h1, .article-hero h1 { font-size: 2.35rem; }
  .card-grid, .fact-grid, .footer-grid, .check-list, .glossary-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .brand span { font-size: .95rem; }
}
@media print {
  .site-header,.site-footer,.utility-nav,.hero-search,.search-controls,.article-toc,.tag-list,.compare-controls { display:none!important; }
  body { background:white; color:black; }
  .shell { width:100%; }
  .section { padding:20px 0; }
  .specimen,.source-card,.structure-note { break-inside:avoid; box-shadow:none; }
  a { text-decoration:underline; }
  .table-scroll { overflow:visible; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
