:root {
  --paper: #fdfbf7;
  --shade: #f5f5f5;
  --ink: #1a1a1a;
  --line: #e0e0e0;
  --muted: #6c6760;
  --rail: 216px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", "Crimson Text", Georgia, "Songti SC", "SimSun", serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  transition: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  z-index: 30;
}

.skip:focus {
  left: 10px;
  top: 10px;
}

.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---- 左侧竖排导航 ---- */

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px 28px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.drawer summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.drawer summary::-webkit-details-marker {
  display: none;
}

.drawer menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.drawer menu a {
  display: block;
  min-height: 42px;
  padding: 9px 2px;
  font-size: 0.97rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.drawer menu a:hover {
  background: var(--shade);
}

.rail-contact {
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
  word-break: break-all;
}

.rail-label {
  letter-spacing: 0.3em;
  font-size: 0.72rem;
}

.page {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

main {
  flex: 1 1 auto;
}

/* ---- 主体网格：aside 在左 ---- */

.wrap {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: 44px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.wrap > article {
  grid-column: 2;
  min-width: 0;
}

.note {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: 26px;
  padding-top: 54px;
  font-size: 0.94rem;
}

.note small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.note h2 {
  margin: 6px 0 16px;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.note ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.note li a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 0.93rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dotted var(--line);
}

.note li a:hover {
  color: var(--muted);
}

/* ---- 首屏 ---- */

.lead {
  padding-top: 46px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.lead-in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 46px;
  align-items: center;
  width: 100%;
}

.lead-copy {
  min-width: 0;
}

h1 {
  margin: 0 0 0.45em;
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.lede {
  margin: 0 0 1.9em;
  max-width: 32em;
  font-size: 1.06rem;
  color: var(--muted);
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: 0.1em;
}

.btn-line {
  background: transparent;
  color: var(--ink);
}

.btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.lead-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--shade);
}

.lead-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transform-origin: center;
}

.dots {
  background-image: radial-gradient(rgba(26, 26, 26, 0.42) 1px, transparent 1px);
  background-size: 15px 15px;
  background-color: var(--shade);
}

/* ---- 正文 ---- */

.body {
  padding-top: 10px;
}

.prose {
  max-width: 46em;
  font-size: 1.02rem;
}

.prose > article {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.prose > article:first-child {
  border-top: 0;
  padding-top: 4px;
}

main article[id] {
  scroll-margin-top: 88px;
}

.prose h2,
.prose h3 {
  margin: 0.2em 0 0.75em;
  line-height: 1.32;
  font-weight: 600;
}

.prose h2 {
  font-size: 1.58rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.73rem;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1.05em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 700;
}

.prose time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.prose blockquote {
  margin: 0 0 1.2em;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--ink);
  color: var(--muted);
}

.prose img {
  display: block;
  height: auto;
  margin: 1.2em 0;
  border: 1px solid var(--line);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 0.96rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

/* ---- 页脚 ---- */

.foot {
  margin-top: 56px;
  padding: 38px 32px 26px;
  border-top: 1px solid var(--ink);
  background: var(--shade);
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.15fr;
  gap: 34px;
  max-width: 1080px;
  margin: 0 auto;
}

.foot-brand {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

address {
  font-style: normal;
  font-size: 0.94rem;
  color: var(--muted);
  word-break: break-all;
}

.foot-b ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.foot-b a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.foot-b a:hover {
  color: var(--muted);
}

.sub label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.sub-row {
  display: flex;
  min-width: 0;
}

.sub input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-right: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.sub button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.sub button:hover {
  background: var(--paper);
  color: var(--ink);
}

.copy {
  max-width: 1080px;
  margin: 30px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---- 滚动淡入 ---- */

.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- 窄屏 ---- */

@media (max-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: sticky;
    top: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0 14px;
    padding: 9px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .drawer summary {
    border: 0;
    padding: 0 4px;
    min-height: 42px;
    letter-spacing: 0.28em;
  }

  .drawer menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 4px 18px 14px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    z-index: 6;
  }

  .drawer menu a {
    min-height: 44px;
    padding: 11px 0;
  }

  .rail-contact {
    display: none;
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    padding: 0 18px 52px;
  }

  .wrap > article,
  .note {
    grid-column: 1;
  }

  .lead {
    order: 1;
    min-height: 0;
    padding-top: 28px;
  }

  .lead-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .lead-figure {
    order: 2;
  }

  .note {
    order: 2;
    position: static;
    padding-top: 26px;
    margin-top: 30px;
    border-top: 1px solid var(--line);
  }

  .note ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .note li a {
    padding: 9px 0;
  }

  .body {
    order: 3;
    margin-top: 30px;
  }

  main article[id] {
    scroll-margin-top: 74px;
  }

  .prose > article {
    padding: 28px 0;
  }

  .foot {
    padding: 30px 18px 22px;
  }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .copy {
    margin-top: 24px;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
