/* 首页视觉稿。字体、颜色、文字规格与版心尺寸集中在此调整。 */
:root {
  --canvas: #ececee;
  --navigation: #f9f9f9;
  --navigation-glass: rgba(249, 249, 249, .80);
  --paper: #fdfdfd;
  --ink: #2e3339;
  --body-ink: #737b84;
  --quiet-ink: #88909a;
  --rule: #e9edf0;
  --hover-ink: #637b8d;
  --seal-red: #a55e52;
  --page-width: 900px;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: Arial, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { margin: 0; background: var(--canvas); scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3, button { font-weight: 400; font-synthesis: none; }
a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
::selection { background: #eaf0f4; color: var(--ink); }

.page-shell { width: min(var(--page-width), calc(100% - 48px)); margin: 24px auto 40px; }
.content-frame { border: 1px solid #e3e7eb; border-radius: 18px; padding: 0 44px; background: var(--paper); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: var(--navigation);
  border-bottom: 1px solid #e3e7eb;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--navigation-glass);
    -webkit-backdrop-filter: blur(14px) saturate(105%);
    backdrop-filter: blur(14px) saturate(105%);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(var(--page-width) - 90px), calc(100% - 138px));
  margin: 0 auto;
  min-height: 68px;
}
.home-mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  color: #303438;
  line-height: 1;
}
.brand-cat { display: block; width: 28px; height: 44px; object-fit: contain; }
.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.5;
  letter-spacing: .035em;
}
.brand-seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 17px;
  height: 27px;
  margin-left: -3px;
  border-radius: 2px;
  background: var(--seal-red);
  color: #f9efea;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}
.brand-seal::before {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(249, 239, 234, .64);
  border-radius: 1px;
  content: "";
}
.site-nav { display: flex; gap: 30px; align-items: center; }
.nav-item { font-family: var(--serif); font-size: 14px; line-height: 1.6; color: #777f89; font-weight: 400; }
.nav-item.is-current { color: var(--ink); }
a.nav-item:hover { color: var(--hover-ink); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--hover-ink); outline-offset: 6px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 20px; top: 10px; padding: 10px; background: var(--paper); z-index: 30; }

.content-index {
  display: grid;
  row-gap: 17px;
  padding: 38px 0 46px;
}
.index-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  column-gap: 26px;
  align-items: baseline;
}
.index-label {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.9;
  color: var(--quiet-ink);
}
.index-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.index-list li { white-space: nowrap; }
.term-count {
  position: relative;
  top: -.55em;
  margin-left: 2px;
  color: #929aa3;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 0;
  letter-spacing: 0;
  vertical-align: baseline;
}
.index-list.tags .term-count { font-size: 9px; }
.index-more {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  color: var(--quiet-ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.9;
  white-space: nowrap;
  cursor: pointer;
}
.index-more span { font-family: Arial, sans-serif; }
.index-more:hover, .taxonomy-close:hover { color: var(--hover-ink); }
.index-list.categories {
  gap: 10px 34px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .025em;
  color: #525c68;
}
.index-list.tags {
  gap: 8px 25px;
  font-size: 12px;
  line-height: 1.9;
  color: #7b838d;
}
.taxonomy-dialog {
  width: min(520px, calc(100% - 40px));
  max-height: min(80dvh, 520px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  border: 1px solid #e3e7eb;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.taxonomy-dialog::backdrop { background: rgba(46, 51, 57, .18); }
.taxonomy-dialog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.taxonomy-dialog-heading h2 { font-family: var(--serif); font-size: 20px; line-height: 1.6; font-weight: 400; }
.taxonomy-close { color: var(--quiet-ink); font-size: 12px; line-height: 1.9; cursor: pointer; }
.taxonomy-dialog-list.categories { gap: 16px 30px; }
.taxonomy-dialog-list.tags { gap: 14px 24px; }

.articles { scroll-margin-top: 92px; padding-bottom: 30px; }
.section-title { margin-bottom: 21px; font-family: var(--serif); font-size: 22px; line-height: 1.6; letter-spacing: .04em; }
.post-list { border-top: 1px solid var(--rule); }
.post {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.post-copy { min-width: 0; }
.post-title { font-family: var(--serif); font-size: 18px; line-height: 1.7; letter-spacing: .025em; overflow-wrap: anywhere; }
.post-excerpt { margin-top: 9px; font-size: 13px; line-height: 1.95; letter-spacing: .016em; color: var(--body-ink); }
.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin-top: 12px; text-align: left; }
.post-meta time {
  color: #7c8590;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  white-space: nowrap;
}
.post-category { color: var(--quiet-ink); font-size: 12px; line-height: 1.6; }
.post-media { min-width: 0; margin: 0; }
.post-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 7px; }

.pagination { display: flex; justify-content: center; margin-top: 28px; scroll-margin-top: 92px; }
.pagination-list {
  display: inline-flex;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  background: var(--paper);
}
.pagination-list li { display: flex; }
.page-control, .page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 42px;
  color: #636c76;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.page-ellipsis { width: 24px; color: #89919a; }
.page-control:hover { background: #f6efed; color: var(--seal-red); }
.page-control:focus-visible { outline: 1px solid var(--seal-red); outline-offset: -5px; }
.page-current, .page-current:hover { background: var(--seal-red); color: #fff; }
.page-arrow svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site-footer { padding: 28px 0 4px; color: #929aa3; font-size: 11px; line-height: 1.8; text-align: center; }
.site-footer span { font-family: Arial, sans-serif; margin-right: 5px; }

@media (max-width: 700px) {
  .page-shell { width: calc(100% - 32px); margin-top: 20px; margin-bottom: 28px; }
  .content-frame { padding: 0 26px; border-radius: 16px; }
  .header-inner { width: calc(100% - 86px); min-height: 64px; }
  .content-index { padding: 32px 0 40px; }
  .index-row { column-gap: 20px; }
  .index-list.categories { column-gap: 28px; }
  .index-list.tags { column-gap: 20px; }
  .post { column-gap: 24px; grid-template-columns: 132px minmax(0,1fr); }
}

@media (max-width: 480px) {
  .page-shell { width: calc(100% - 24px); margin-top: 16px; margin-bottom: 24px; }
  .content-frame { padding: 0 20px; border-radius: 14px; }
  .header-inner { width: calc(100% - 36px); min-height: 62px; gap: 14px; }
  .site-nav { gap: 16px; }
  .nav-item { font-size: 13px; }
  .home-mark { gap: 8px; }
  .brand-cat { width: 24px; height: 38px; }
  .brand-name { font-size: 23px; }
  .brand-seal { width: 15px; height: 24px; font-size: 9px; }
  .content-index { row-gap: 15px; padding: 28px 0 34px; }
  .index-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px; }
  .index-row > .index-label { grid-column: 1; grid-row: 1; }
  .index-row > .index-more { grid-column: 2; grid-row: 1; font-size: 11px; }
  .index-row > .index-list { grid-column: 1 / -1; grid-row: 2; }
  .index-label { font-size: 11px; }
  .index-list.categories { font-size: 15px; column-gap: 23px; }
  .index-list.tags { font-size: 12px; column-gap: 19px; }
  .section-title { font-size: 20px; margin-bottom: 17px; }
  .post { grid-template-columns: 92px minmax(0, 1fr); column-gap: 18px; align-items: start; padding: 22px 0; }
  .post-title { font-size: 17px; line-height: 1.7; letter-spacing: .018em; }
  .post-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; line-height: 1.95; margin-top: 9px; }
  .post-meta { gap: 14px; margin-top: 11px; }
  .post-meta time { font-size: 11px; }
  .post-category { font-size: 11px; margin-top: 0; }
  .post-media { padding-top: 0; }
  .post-media img { height: 92px; aspect-ratio: 1; border-radius: 6px; }
  .articles { padding-bottom: 24px; }
  .pagination { margin-top: 24px; }
  .page-control, .page-ellipsis { height: 40px; font-size: 14px; }
  .page-control { width: 32px; }
  .page-ellipsis { width: 22px; }
  .site-footer { padding-top: 24px; padding-bottom: 0; }
}

@media (max-width: 360px) {
  .header-inner { width: calc(100% - 28px); gap: 10px; }
  .site-nav { gap: 12px; }
  .home-mark { gap: 7px; }
  .brand-name { font-size: 22px; }
}
