:root {
  --ink: #000000;
  --paper: #ffffff;
  --muted: #585858;
  --rule: #d9d5cd;
  --wash: #f3f0e9;
  --max: 1200px;
  --display: "Abril Fatface", "Songti SC", "Noto Serif SC", Georgia, serif;
  --text: "Merriweather", Georgia, "Songti SC", "Noto Serif SC", serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.78;
  font-weight: 400;
}

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

a {
  color: inherit;
}

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

.strip a:focus-visible,
.site-foot a:focus-visible,
.hero a:focus-visible {
  outline-color: var(--paper);
}

/* ---------- 报头 ---------- */
.site-head {
  background: var(--paper);
}

.strip {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
}

.strip-line {
  margin: 0;
  padding: 0.55rem 1rem;
  min-height: 2.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity 0.36s ease;
}

.strip-line.is-fade {
  opacity: 0;
}

.masthead {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem 1.3rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

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

.brand-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
}

.menu {
  border-bottom: 3px solid var(--ink);
}

.menu p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.3rem;
  padding: 0.4rem 0.7rem;
}

.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.6rem;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="true"] {
  border-bottom-color: var(--ink);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  background: #000000;
  color: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 20% 10%, #2a2a2a 0%, #0a0a0a 55%, #000000 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  border-radius: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-band {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -5vw;
  height: 11vw;
  background: var(--paper);
  transform: rotate(-3.2deg);
  z-index: -1;
}

.hero-inner {
  position: relative;
  max-width: 54rem;
  padding: 5.5rem 1.3rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 8.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.hero-desc {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #ececec;
  font-weight: 300;
}

.hero-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 2.2rem;
  padding: 0.6rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

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

/* ---------- 主体：左侧栏 + 正文 ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.4rem 1.15rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.6rem;
}

article.body {
  order: 1;
  min-width: 0;
}

.side {
  order: 2;
  display: grid;
  gap: 2rem;
  align-content: start;
}

.side-block h2 {
  margin: 0 0 0.7rem;
  padding-top: 0.6rem;
  border-top: 3px solid var(--ink);
  font-family: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1.5;
}

.side-block h2 span {
  display: inline-block;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: side;
}

.side-list li {
  counter-increment: side;
  border-bottom: 1px solid var(--rule);
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
}

.side-list a::before {
  content: counter(side, decimal-leading-zero);
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--muted);
  flex: none;
}

.side-list a:hover,
.side-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.side-top {
  margin: 0;
}

.side-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ---------- 正文排版 ---------- */
article.body > div {
  scroll-margin-top: 1.5rem;
}

article.body > div + div {
  margin-top: 3.4rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--rule);
}

article.body h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.55rem, 3.8vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: 0.005em;
}

article.body h2 span {
  display: inline;
}

article.body h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

article.body h3 span {
  display: inline;
}

article.body p {
  margin: 0 0 1.4em;
  line-height: 1.85;
}

article.body ul,
article.body ol {
  margin: 0 0 1.6em;
  padding-left: 1.35rem;
}

article.body li {
  margin-bottom: 0.5em;
  line-height: 1.78;
}

article.body a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

article.body figure {
  margin: 2rem 0;
}

article.body figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.04em;
}

article.body img {
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

article.body blockquote {
  margin: 2.2rem 0;
  padding: 0.3rem 0 0.3rem 1.4rem;
  border-left: 5px solid var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.4;
}

article.body blockquote p {
  margin: 0 0 0.6em;
}

article.body blockquote p:last-child {
  margin-bottom: 0;
}

article.body > div:first-of-type > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.4rem;
  line-height: 0.78;
  padding: 0.12em 0.14em 0 0;
  color: var(--ink);
}

@media (min-width: 1080px) {
  article.body > div {
    column-count: 2;
    column-gap: 3rem;
  }

  article.body > div > h2,
  article.body > div > h3,
  article.body > div > figure,
  article.body > div > blockquote {
    column-span: all;
  }
}

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 3rem;
  padding: 3rem 1.15rem 2.2rem;
  background: var(--ink);
  color: var(--paper);
}

.foot-cols {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.foot-cols dl {
  margin: 0;
  min-width: 0;
}

.foot-cols dt {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.24em;
  color: #a8a8a8;
}

.foot-cols dd {
  margin: 0;
}

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.15rem 0;
  font-size: 0.95rem;
  line-height: 1.45;
  text-decoration: none;
}

.foot-cols a:hover,
.foot-cols a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.foot-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.copy {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: #d5d5d5;
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  color: #d5d5d5;
}

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  main {
    padding: 4.5rem 1.8rem 5rem;
  }

  .foot-cols {
    gap: 2rem;
  }
}

@media (min-width: 960px) {
  main {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3.6rem;
    padding: 5rem 2rem 6rem;
  }

  .side {
    order: 1;
  }

  article.body {
    order: 2;
  }

  .side {
    position: sticky;
    top: 2rem;
  }

  .site-foot {
    padding: 3.4rem 2rem 2.4rem;
  }
}

/* ---------- 动效 ---------- */
html.js .hero-inner,
html.js article.body > div {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.68, 0.31, 1), transform 0.7s cubic-bezier(0.22, 0.68, 0.31, 1);
}

html.js .hero-inner.is-in,
html.js article.body > div.is-in {
  opacity: 1;
  transform: none;
}

html.js article.body > div:nth-child(3n + 2) {
  transition-delay: 0.07s;
}

html.js article.body > div:nth-child(3n) {
  transition-delay: 0.14s;
}

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

  html.js .hero-inner,
  html.js article.body > div {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .strip-line {
    transition: none;
  }
}

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