@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --hair: #000000;
  --ff-head: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --ff-body: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --rule: 3px;
  --pad: clamp(1rem, 3.5vw, 2.25rem);
  --gap: clamp(1rem, 3vw, 2.5rem);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
}

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

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--ink); color: var(--paper); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- 报头 ---------- */
.masthead {
  border-bottom: var(--rule) solid var(--ink);
  background: var(--paper);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad) 0.75rem;
  border-bottom: 1px solid var(--ink);
}

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

.brand:hover { background: transparent; color: var(--ink); }
.brand:hover .brandname { background: var(--ink); color: var(--paper); }

.mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
  object-fit: contain;
}

img.mark { background: var(--ink); padding: 3px; }

.brandname {
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 0 0.15em;
}

.mainnav ol {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.mainnav li { display: flex; }

.mainnav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-right: 1px solid var(--ink);
  white-space: nowrap;
}
.mainnav li:first-child a { border-left: 1px solid var(--ink); }
.mainnav a:hover { background: var(--ink); color: var(--paper); }
.mainnav a.is-active { background: var(--ink); color: var(--paper); }

/* ---------- 版面骨架 ---------- */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--pad) var(--pad) 3.5rem;
}

.article { min-width: 0; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 1.5rem;
  min-height: 62vh;
  padding-bottom: 2.5rem;
  border-bottom: var(--rule) solid var(--ink);
}

.hero-text {
  order: 1;
  text-align: center;
  align-self: center;
  padding: 0.5rem 0;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  hyphens: auto;
}

.lede {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.lede::before {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  background: var(--ink);
  margin: 0 auto 1rem;
}

.hero-figure {
  order: 2;
  margin: 0;
  border: var(--rule) solid var(--ink);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}

.hero-img,
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.hero-figure.empty {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: clamp(3.5rem, 14vw, 6rem);
  line-height: 1;
}

.slash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--rule));
  height: 22px;
  background: repeating-linear-gradient(105deg, var(--ink) 0 14px, var(--paper) 14px 30px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ---------- 正文区块 ---------- */
.article > article {
  scroll-margin-top: 5.5rem;
  padding: 2rem 0 2.2rem;
  border-bottom: 1px solid var(--ink);
}

.article > article:last-of-type { border-bottom: 0; }

.article h2 {
  margin: 0 0 0.35rem;
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  column-span: all;
}

.article h3 {
  margin: 1.6rem 0 0.3rem;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
  column-span: all;
}

.article h2 + hr,
.article h3 + hr { column-span: all; }

hr {
  border: 0;
  border-top: var(--rule) solid var(--ink);
  margin: 0.4rem 0 1.2rem;
  width: 100%;
}

.article p { margin: 0 0 1.05rem; }
.article ul, .article ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.article li { margin-bottom: 0.4rem; }
.article li::marker { font-weight: 700; }

.hero + article p:first-of-type::first-letter {
  float: left;
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 3.9rem;
  line-height: 0.84;
  margin: 0.18rem 0.14rem 0 0;
  padding: 0.05em 0.06em 0;
  background: var(--ink);
  color: var(--paper);
}

.article blockquote {
  margin: 1.6rem 0;
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 7px solid var(--ink);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.5;
  column-span: all;
}

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

.article figure { margin: 1.5rem 0; }
.article figcaption {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--ink);
  padding-top: 0.4rem;
  margin-top: 0.4rem;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
  column-span: all;
}
.article th, .article td {
  border: 1px solid var(--ink);
  padding: 0.5rem 0.6rem;
  text-align: left;
}
.article th { background: var(--ink); color: var(--paper); }

.article strong { font-weight: 700; }

/* ---------- 侧栏 ---------- */
.rail {
  border-top: var(--rule) solid var(--ink);
  padding-top: 1rem;
}

.rail h2 {
  margin: 0;
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
}

.rail hr { margin: 0.35rem 0 0.9rem; }

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

.raillist li { counter-increment: rail; }

.raillist a {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  min-height: 42px;
  padding: 0.45rem 0.2rem;
  text-decoration: none;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--ink);
}

.raillist a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.raillist a:hover,
.raillist a.is-active { background: var(--ink); color: var(--paper); }

/* ---------- 页脚 ---------- */
.foot {
  border-top: var(--rule) solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  padding: 1.1rem var(--pad) 1.4rem;
  background: var(--paper);
}

.fbrandlink {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--ff-head);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.fbrandlink:hover { background: transparent; color: var(--ink); }
.fbrandlink:hover span:last-child { background: var(--ink); color: var(--paper); }

.fnav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.copy {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
  flex: 1 0 100%;
}

/* ---------- 动效 ---------- */
.js .article > article:not(.hero) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .article > article:not(.hero).in {
  opacity: 1;
  transform: none;
}

.hero-figure img { transition: transform 0.6s ease; }
.hero-figure:hover img { transform: scale(1.03); }

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: var(--gap);
    min-height: 70vh;
    align-items: center;
  }
  .hero-text { order: 1; text-align: center; }
  .hero-figure { order: 2; aspect-ratio: 5 / 6; align-self: stretch; }
  .hero-figure.empty { align-self: stretch; }
  .copy { flex: 0 1 auto; text-align: center; }
}

@media (min-width: 980px) {
  .page {
    grid-template-columns: minmax(0, 1fr) 15.5rem;
    padding-top: 2rem;
  }
  .rail {
    position: sticky;
    top: 1.25rem;
    align-self: start;
    border-top: var(--rule) solid var(--ink);
    border-left: var(--rule) solid var(--ink);
    padding: 0.9rem 0 0 1.1rem;
    margin-top: 2rem;
  }
  .article > article:not(.hero) {
    column-count: 2;
    column-gap: 2.6rem;
    column-rule: 1px solid var(--ink);
  }
  .hero { column-count: initial; }
  .hero-figure { aspect-ratio: auto; }
  .foot { flex-wrap: nowrap; }
  .copy { flex: 0 1 auto; }
}

@media (min-width: 1240px) {
  .hero h1 { font-size: 3.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .article > article:not(.hero) {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-figure img { transition: none; }
  .hero-figure:hover img { transform: none; }
}

@media print {
  .masthead, .rail, .skip { display: none; }
  .page { display: block; padding: 0; }
  body { font-size: 12pt; }
}

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