:root {
  --ink: #000000;
  --paper: #ffffff;
  --soft: #d9d9d9;
  --radius: 18px;
}

*,
*::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: "Atkinson Hyperlegible", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* ---------- 顶栏：品牌行 + 菜单行 ---------- */

.top {
  background: var(--paper);
}

.brand-row {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  text-decoration: none;
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.brand-mark {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--ink);
  border-radius: 2px;
}

.menu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.nav-list,
.rail-list,
.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  border-color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem 1.5rem 10rem;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  background-color: var(--paper);
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.3;
  mix-blend-mode: multiply;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: right;
}

.hero-kicker {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.36em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-desc {
  max-width: 44ch;
  margin: 0 0 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- 主体网格：左栏目录 + 右栏正文 ---------- */

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.rail {
  position: sticky;
  top: 1.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
}

.rail-kicker {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
}

.rail-title {
  margin: 0.35rem 0 1rem;
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.rail-list {
  display: grid;
  gap: 0.1rem;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.25rem 0;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--soft);
  transition: border-color 0.2s ease, padding-left 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  border-color: var(--ink);
  padding-left: 0.3rem;
}

.body-col {
  min-width: 0;
}

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

.prose {
  max-width: 70ch;
}

.prose > div {
  margin: 0 0 2rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  scroll-margin-top: 1.5rem;
}

.prose > div:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 0 0 0.85rem;
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.prose p {
  margin: 0 0 1rem;
  line-height: 1.78;
}

.prose p:last-child,
.prose ul:last-child,
.prose ol:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li {
  margin: 0.3rem 0;
  line-height: 1.7;
}

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

.prose blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--ink);
}

.prose img {
  margin: 1.25rem 0;
  border-radius: 12px;
}

.prose small {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.26em;
  margin-bottom: 0.5rem;
}

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

.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--ink);
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ink);
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.foot-note {
  margin: 0.4rem 0 0;
  font-size: 1rem;
}

.foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.foot-list a:hover,
.foot-list a:focus-visible {
  border-color: var(--ink);
}

.foot-mega {
  margin: 2rem 0 1.5rem;
  overflow: hidden;
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-size: clamp(2.5rem, 11vw, 7.5rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.foot-base {
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
  text-align: center;
}

.foot-base p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- 进场动效 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .prose > div {
    animation: rise 0.5s ease both;
  }

  .prose > div:nth-child(2) {
    animation-delay: 0.06s;
  }

  .prose > div:nth-child(3) {
    animation-delay: 0.12s;
  }

  .prose > div:nth-child(4) {
    animation-delay: 0.18s;
  }

  .prose > div:nth-child(5) {
    animation-delay: 0.24s;
  }

  .prose > div:nth-child(6) {
    animation-delay: 0.3s;
  }

  .prose > div:nth-child(7) {
    animation-delay: 0.36s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- 断点 ---------- */

@media (max-width: 880px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .rail {
    position: static;
  }

  .prose {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .menu-row {
    padding-bottom: 0.75rem;
  }

  .nav-list,
  .foot-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
    width: 100%;
  }

  .nav-list a,
  .foot-list a,
  .rail-list a {
    min-height: 44px;
    font-size: 1rem;
  }

  .hero {
    padding: 5rem 1.25rem 8rem;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .hero-kicker {
    letter-spacing: 0.28em;
  }

  .wrap {
    padding: 2rem 1.25rem 3.5rem;
  }

  .prose > div {
    padding: 1.35rem 1.1rem;
    border-radius: 14px;
  }

  .foot {
    padding: 2.5rem 1.25rem 1.75rem;
  }

  .foot-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .foot-mega {
    font-size: clamp(2rem, 12vw, 3rem);
    white-space: normal;
  }
}

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