:root {
  --ink: #211f1c;
  --muted: #6f6860;
  --paper: #f7f4ef;
  --paper-deep: #efe9e1;
  --surface: #fffdf8;
  --green: #bd161d;
  --green-soft: #f3e5e3;
  --gold: #8b847b;
  --line: #d8d0c3;
  --warning: #8b5a24;
  --warning-bg: #fbf2e5;
  --radius: 3px;
  --shell: 1240px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #8f171e; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(189, 22, 29, .26); outline-offset: 3px; }
[hidden] { display: none !important; }
svg { display: block; flex: 0 0 auto; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; background: var(--surface); color: var(--green); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; white-space: normal; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(247, 244, 239, .94); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--green); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 0; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.35; }
.brand-copy strong { font-family: var(--serif); font-size: 19px; letter-spacing: .04em; }
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
.header-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--green); border-radius: var(--radius); color: var(--green); font-size: 13px; text-decoration: none; }
.header-contact:hover { background: var(--green); color: #fff; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 1px solid var(--green); border-radius: var(--radius); background: var(--green); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.button:hover { border-color: #8f171e; background: #8f171e; color: #fff; }
.button-small { min-height: 44px; padding: 9px 15px; font-size: 13px; }

.research-hero { padding: 64px 0 42px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.research-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 56px; }
.research-hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.eyebrow::before { width: 24px; height: 1px; background: currentColor; content: ""; }
.research-hero h1 { max-width: 820px; margin: 0; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.18; letter-spacing: -.035em; }
.hero-intro { max-width: 780px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 120px); margin: 0; border-top: 1px solid var(--ink); }
.hero-stats div { padding: 16px 0 0 20px; border-left: 1px solid var(--line); }
.hero-stats dt { color: var(--muted); font-size: 12px; }
.hero-stats dd { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 38px; line-height: 1.25; }

.research-main { padding-top: 34px; padding-bottom: 72px; }
.research-toolbar { margin-bottom: 28px; }
.search-box { display: flex; align-items: center; gap: 11px; max-width: 780px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(189, 22, 29, .08); }
.search-box svg { color: var(--muted); }
.search-box input { width: 100%; min-height: 54px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search-box input::placeholder { color: #918a81; }
.search-clear { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--paper-deep); color: var(--muted); cursor: pointer; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.filter { min-height: 36px; padding: 4px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.filter:hover { border-bottom-color: var(--line); color: var(--ink); }
.filter[aria-pressed="true"] { border-bottom-color: var(--green); background: transparent; color: var(--green); font-weight: 700; }
.result-line { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 30px 0 14px; }
.result-line h2 { margin: 0; font-size: 22px; }
.result-count { margin: 0; color: var(--muted); font-size: 12px; }
.article-list { display: grid; border-top: 1px solid var(--ink); }
.article-card { min-width: 0; border: 0; border-radius: 0; background: transparent; }
.article-card > a { display: grid; grid-template-columns: 140px minmax(0, 1fr) 108px 30px; gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.article-category { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 4px; color: var(--green); font-size: 13px; font-weight: 700; }
.category-tag { color: var(--green); font-weight: 700; letter-spacing: .02em; }
.history-tag { color: var(--warning); font-size: 11px; font-weight: 500; }
.article-main { display: grid; min-width: 0; gap: 8px; }
.article-card h3 { margin: 0; font-size: 21px; line-height: 1.55; }
.article-summary { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-date { padding-top: 5px; color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.article-arrow { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-top: 1px; border: 0; border-radius: 0; background: transparent; color: var(--muted); transition: color .16s, transform .16s; }
.article-card > a:hover h3 { color: var(--green); }
.article-card > a:hover .article-arrow { border: 0; background: transparent; color: var(--green); transform: translateX(3px); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ink); scroll-margin-top: 96px; }
.pagination__button { min-width: 96px; min-height: 44px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.pagination__button:hover:not(:disabled) { border-color: var(--green); background: var(--green); color: #fff; }
.pagination__button:disabled { cursor: default; opacity: .36; }
.pagination__status { margin: 0; color: var(--muted); font-size: 13px; }
mark { padding: 0 2px; background: #efe0b8; color: inherit; }
.empty-state { margin-top: 0; padding: 52px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.empty-state h3 { margin: 14px 0 6px; font-size: 24px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 0; background: transparent; color: var(--red); }
.text-button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--green); border-radius: var(--radius); background: transparent; color: var(--green); font-size: 13px; cursor: pointer; }
.text-button:hover { background: var(--green); color: #fff; }
.loading-note { display: block; margin: 14px 0 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.js .loading-note { display: none; }
.policy-note { display: flex; align-items: flex-start; gap: 10px; margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.75; }
.policy-note svg { margin-top: 3px; color: var(--muted); }
.policy-note strong { color: var(--ink); }

.article-hero { padding: 52px 0 34px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.article-hero .breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.article-hero .breadcrumb a { color: var(--muted); text-decoration: none; }
.article-hero .breadcrumb a:hover { color: var(--green); }
.article-hero .eyebrow { margin-bottom: 14px; }
.article-title-row { display: block; }
.article-hero h1 { max-width: 1040px; margin: 0; color: var(--ink); font-size: clamp(32px, 3.8vw, 46px); line-height: 1.38; letter-spacing: -.025em; }
.article-hero .article-deck { max-width: 820px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.article-meta-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.history-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px 0; border-left: 2px solid var(--warning); color: var(--warning); font-size: 13px; line-height: 1.75; }
.history-notice svg { margin-top: 4px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; padding-top: 48px; padding-bottom: 72px; }
.article-document { min-width: 0; }
.article-prose { max-width: 760px; color: var(--ink); font-size: 17px; line-height: 1.95; overflow-wrap: break-word; }
.article-prose h2 { margin: 46px 0 16px; padding-top: 8px; font-size: 28px; line-height: 1.45; }
.article-prose h3 { margin: 32px 0 12px; color: var(--ink); font-size: 22px; line-height: 1.5; }
.article-prose h4 { margin: 26px 0 10px; font-size: 17px; }
.article-prose p { margin: 16px 0; color: var(--ink); }
.article-prose ul, .article-prose ol { margin: 16px 0; padding-left: 1.65em; }
.article-prose li { margin: 8px 0; padding-left: .2em; }
.article-prose li::marker { color: var(--green); }
.article-prose strong { color: var(--ink); font-weight: 700; }
.article-prose blockquote { margin: 26px 0; padding: 18px 22px; border-left: 2px solid var(--green); background: var(--paper-deep); color: var(--ink); font-size: 16px; }
.article-prose blockquote p { margin: 0; }
.table-scroll { max-width: 100%; margin: 26px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 0; }
.article-prose table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
.article-prose th { padding: 12px 14px; background: var(--paper-deep); color: var(--ink); text-align: left; font-weight: 700; vertical-align: top; }
.article-prose td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.article-prose tbody tr:nth-child(even) { background: rgba(255, 253, 248, .45); }
.article-prose hr { margin: 34px 0; border: 0; border-top: 1px solid var(--line); }
.editor-note { margin: 24px 0; padding: 14px 0 14px 18px; border-left: 2px solid var(--warning); color: var(--muted); font-size: 13px; line-height: 1.8; }
.editor-note strong { color: var(--warning); }
.source-box { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--ink); }
.source-box h2 { margin: 0 0 12px; padding: 0; font-size: 24px; }
.source-box p { margin: 8px 0; color: var(--muted); font-size: 13px; }
.source-box ol { margin: 14px 0 0; padding-left: 1.5em; font-size: 13px; }
.source-box li { margin: 9px 0; overflow-wrap: anywhere; }
.source-box a { color: var(--green); }
.article-end { margin-top: 38px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.article-end strong { color: var(--ink); }
.article-end ul { margin: 8px 0 14px; padding-left: 1.4em; }
.article-end a { color: var(--green); }
.article-aside { position: sticky; top: 104px; display: grid; }
.aside-panel { padding: 20px 0; border-top: 1px solid var(--ink); }
.aside-panel h2 { margin: 0 0 14px; font-size: 19px; }
.aside-panel p { margin: 7px 0; color: var(--muted); font-size: 13px; }
.aside-panel .aside-label { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.aside-panel .aside-value { margin: 0 0 12px; color: var(--ink); font-size: 13px; }
.toc-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.toc-list a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; text-decoration: none; }
.toc-list a:hover, .toc-list a:focus-visible { border-left-color: var(--green); color: var(--green); }
.aside-actions { display: grid; gap: 8px; }
.aside-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 13px; text-decoration: none; }
.aside-actions a:first-child, .aside-actions a:last-child { border-color: var(--green); background: var(--green); color: #fff; }
.aside-actions a:hover { border-color: #8f171e; background: #8f171e; color: #fff; }

.site-footer { padding: 38px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer-inner p { margin: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-links a { color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }

@media (min-width: 1024px) {
  .shell { width: min(var(--shell), calc(100% - 96px)); }
  .site-nav { display: none; }
}

@media (max-width: 1000px) {
  .research-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-stats { max-width: 320px; }
  .article-card > a { grid-template-columns: 120px minmax(0, 1fr) 30px; gap: 18px; }
  .article-date { grid-column: 2; grid-row: 2; padding-top: 0; text-align: left; }
  .article-arrow { grid-column: 3; grid-row: 1 / 3; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .article-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; order: -1; }
  .toc-panel { display: none; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { display: none; }
  .site-nav, .header-contact { display: none; }
  .research-hero { padding: 40px 0 30px; }
  .research-hero h1 { font-size: 36px; }
  .hero-intro { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .hero-stats div { padding-left: 16px; }
  .hero-stats dd { font-size: 32px; }
  .research-main { padding-top: 16px; padding-bottom: 36px; }
  .research-toolbar { position: static; margin-inline: 0; padding: 0; border-bottom: 0; background: transparent; backdrop-filter: none; }
  .search-box { min-height: 50px; border-radius: 10px; }
  .filter-row { flex-wrap: nowrap; gap: 7px; margin-top: 10px; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: thin; }
  .filter { flex: 0 0 auto; min-height: 36px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
  .filter[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); }
  .result-line { align-items: flex-start; flex-direction: column; gap: 2px; margin-top: 20px; scroll-margin-top: 96px; }
  .article-list { gap: 9px; border-top: 0; }
  .article-card > a { grid-template-columns: minmax(0, 1fr) 30px; gap: 9px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .article-category { grid-column: 1; grid-row: 1; padding-top: 0; }
  .article-main { grid-column: 1 / -1; grid-row: 2; }
  .article-card h3 { font-size: 18px; }
  .article-summary { font-size: 13px; }
  .article-date { grid-column: 1; grid-row: 3; }
  .article-arrow { grid-column: 2; grid-row: 1; }
  .policy-note { margin-top: 26px; }
  .article-hero { padding: 30px 0 24px; }
  .article-hero h1 { font-size: 28px; line-height: 1.45; }
  .article-hero .article-deck { font-size: 14px; }
  .article-layout { padding-top: 16px; padding-bottom: 36px; }
  .article-document { padding: 20px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .article-aside { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .aside-panel { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .article-prose { font-size: 16px; line-height: 1.9; }
  .article-prose h2 { font-size: 24px; }
  .article-prose h3 { font-size: 20px; }
  .table-scroll { min-width: 0; overflow: visible; border: 0; border-top: 1px solid var(--ink); }
  .article-prose table, .article-prose tbody { display: block; width: 100%; min-width: 0; }
  .article-prose tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .article-prose tbody tr:first-child { display: none; }
  .article-prose tbody td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 7px 0; border: 0; background: transparent !important; }
  .article-prose tbody td::before { color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1.75; content: attr(data-label); }
  .pagination { gap: 10px; }
  .pagination__button { min-width: 84px; padding-inline: 12px; }
  .footer-inner { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  :root { --paper: #fff; --surface: #fff; }
  body { color: #000; font-size: 11pt; }
  .shell { width: 100%; }
  .site-header, .hero-stats, .article-aside, .site-footer, .skip-link, .research-toolbar, .filter-row, .result-line, .article-arrow, .pagination, .policy-note { display: none !important; }
  .research-hero, .article-hero { padding: 18px 0; background: #fff; border-bottom: 2px solid var(--green); }
  .research-hero h1, .article-hero h1, .eyebrow { color: var(--green); }
  .hero-intro, .article-hero .article-deck, .article-hero .breadcrumb, .article-hero .breadcrumb a, .article-meta-bar { color: #444; }
  .article-layout { display: block; padding-top: 18px; }
  .article-document { padding: 0; }
  .article-prose { font-size: 10.5pt; }
  .article-prose h2, .article-prose h3 { break-after: avoid; color: var(--green); }
  .article-prose p, .article-prose li { orphans: 3; widows: 3; }
  .article-prose blockquote, .table-scroll, .source-box, .article-end { break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .article-prose table { min-width: 0; font-size: 9pt; }
  a { color: #000; text-decoration: none; }
  .source-box a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; font-weight: 400; overflow-wrap: anywhere; }
}
