/* 颜色、字体和页面基础 */
:root {
  --background: #f5f3ee;
  --surface: #fffefa;
  --text: #27323a;
  --muted: #636b69;
  --accent: #436b69;
  --accent-hover: #315654;
  --copper: #b98d67;
  --line: #d9dcd4;
  --tint: #eaece5;
  --serif: Georgia, "Times New Roman", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

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

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2,
h3 {
  font-weight: 600;
}

.container {
  width: min(1100px, calc(100% - 80px));
  margin-inline: auto;
}

/* 页眉：字标与导航 */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 26px;
  flex-shrink: 0;
}

.brand-mark span {
  margin-top: 10px;
  font-size: 19px;
  font-style: italic;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 13px;
}

.main-nav a {
  padding-block: 8px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  border-color: var(--accent);
}

/* 首屏：编辑式大标题与有实际内容的馆藏索引 */
.intro {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: center;
  gap: 72px;
  padding-block: 58px 54px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}

.section-label > span {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
}

.intro h1 {
  margin-block: 16px 20px;
  font-family: var(--serif);
  font-size: clamp(42px, 4.7vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -2px;
}

.title-dot {
  color: var(--accent);
}

.intro-description {
  color: var(--muted);
  font-size: 15px;
}

.archive-note {
  padding: 22px 0 0 28px;
  border-top: 2px solid var(--accent);
  border-left: 1px solid var(--line);
}

.note-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.index-number {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.archive-note dl {
  margin: 20px 0;
  font-size: 12px;
}

.archive-note dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
}

.archive-note dt {
  color: var(--muted);
}

.archive-note dd {
  margin: 0;
  text-align: right;
}

.text-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 4px;
  color: var(--accent-hover);
  font-size: 12px;
}

/* 通用栏目标题 */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.section-heading h2::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--copper);
}

.section-caption {
  color: var(--muted);
  font-size: 11px;
}

/* 精选研究：出版物封面与正文使用独立层次 */
.report-card {
  display: grid;
  grid-template-columns: 34% 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
}

.report-card + .report-card {
  margin-top: 24px;
}

.report-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 420px;
  margin: 16px;
  padding: 25px 25px 20px;
  background: var(--accent-hover);
  color: #f7f5ee;
}

.cover-top,
.cover-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 1px;
}

.cover-top {
  padding-bottom: 14px;
  border-bottom: 1px solid #78938a;
}

.cover-title {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.6;
  letter-spacing: 2px;
}

.cover-title em {
  color: #e3c2a0;
  font-style: normal;
}

.cover-architecture {
  width: calc(100% + 20px);
  height: auto;
  margin: auto -10px 14px;
  padding-top: 16px;
  stroke: #9eb5a8;
  stroke-width: 0.8;
}

.cover-bottom {
  padding-top: 10px;
  border-top: 1px solid #78938a;
}

.report-content {
  align-self: center;
  min-width: 0;
  padding: 34px 38px 34px 24px;
}

.report-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 11px;
}

.tag {
  padding: 3px 10px;
  border: 1px solid #d6e0d8;
  border-radius: 2px;
  background: #edf1ea;
  color: var(--accent-hover);
}

.report-number {
  color: var(--muted);
  font-family: var(--serif);
  letter-spacing: 0.5px;
}

.report-content h3 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 600;
  line-height: 1.6;
}

.title-period {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.report-summary {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.report-details {
  display: grid;
  gap: 5px;
  margin: 0 0 24px;
  font-size: 12px;
}

.report-details > div {
  display: flex;
  gap: 18px;
}

.report-details dt {
  flex-shrink: 0;
  color: var(--muted);
}

.report-details dd {
  margin: 0;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--tint);
  color: var(--accent-hover);
}

/* 紧凑的分类目录，空分类不使用虚构报告 */
.directory {
  padding-top: 36px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--tint);
}

.category-item {
  padding: 20px 24px 22px;
}

.category-item + .category-item {
  border-left: 1px solid var(--line);
}

.category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.category-number {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 21px;
}

.category-status {
  color: var(--muted);
  font-size: 10px;
}

.category-item h3 {
  font-size: 16px;
}

.category-item h3 a {
  display: flex;
  justify-content: space-between;
}

.category-item p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

/* About 与页脚 */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-block: 44px;
}

.about h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
}

.about-copy > p {
  color: var(--muted);
  font-size: 13px;
}

.about-copy .research-note {
  margin-top: 7px;
  font-size: 11px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.site-footer p {
  font-family: var(--serif);
  font-size: 13px;
}

/* 无障碍及交互：只在支持悬停的设备上添加轻微反馈 */
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 10px;
  background: var(--surface);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button,
  .report-card,
  .main-nav a {
    transition: background-color 180ms ease, border-color 180ms ease,
      box-shadow 180ms ease;
  }

  .report-card:hover {
    border-color: #a5b7ac;
    box-shadow: 0 8px 24px #27323a0a;
  }
}

/* 平板 */
@media (max-width: 900px) {
  .container {
    width: calc(100% - 48px);
  }

  .intro {
    gap: 36px;
  }

  .intro h1 {
    font-size: 46px;
  }

  .report-card {
    grid-template-columns: 35% 1fr;
  }

  .report-cover {
    padding-inline: 18px;
  }

  .cover-title {
    font-size: 25px;
  }

  .report-content {
    padding: 28px 24px 28px 12px;
  }

  .category-item {
    padding-inline: 18px;
  }
}

/* 手机：封面成为横向书刊扉页，保留全部研究内容 */
@media (max-width: 640px) {
  .container {
    width: calc(100% - 40px);
  }

  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 18px 12px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 30px 32px;
  }

  .intro h1 {
    margin-block: 14px 16px;
    font-size: clamp(35px, 9.5vw, 52px);
    letter-spacing: -1px;
  }

  .intro-description {
    font-size: 13px;
  }

  .archive-note {
    padding: 14px 0 0;
    border-left: 0;
  }

  .note-heading {
    font-size: 11px;
  }

  .index-number {
    font-size: 24px;
  }

  .archive-note dl {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
    margin-block: 12px;
    font-size: 10px;
  }

  .archive-note dl > div {
    gap: 8px;
    padding: 0;
    border: 0;
  }

  .text-link {
    font-size: 11px;
  }

  .section-heading h2 {
    font-size: 17px;
  }

  .section-caption {
    font-size: 10px;
  }

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

  .report-cover {
    min-height: 248px;
    margin: 12px 12px 0;
    padding: 18px 22px;
  }

  .cover-title {
    margin-top: 16px;
    font-size: 24px;
    line-height: 1.6;
    letter-spacing: 1px;
  }

  .cover-architecture {
    position: absolute;
    right: -16px;
    bottom: 55px;
    width: 54%;
    opacity: 0.45;
  }

  .cover-bottom {
    margin-top: 18px;
  }

  .report-content {
    padding: 24px 22px;
  }

  .report-meta {
    margin-bottom: 14px;
  }

  .report-content h3 {
    font-size: 24px;
  }

  .desktop-break {
    display: none;
  }

  .report-summary {
    font-size: 13px;
  }

  .report-details {
    font-size: 11px;
  }

  .report-details > div {
    gap: 12px;
  }

  .report-actions {
    flex-direction: column;
  }

  .directory {
    padding-top: 30px;
  }

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

  .category-item {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    gap: 6px 18px;
    padding: 17px 20px;
  }

  .category-item + .category-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .category-top {
    margin: 0;
    gap: 8px;
  }

  .category-item h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
  }

  .category-item p {
    grid-column: 2;
    margin: 0;
  }

  .category-status {
    font-size: 9px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 32px;
  }

  .about h2 {
    font-size: 22px;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}
