@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --mute: #4a4a4a;
  --hair: #d4d4d4;
  --r: 10px;
  --pad: clamp(1rem, 4vw, 3rem);
  --max: 1200px;
  --mast-h: 112px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

/* 页头：品牌独占一行，菜单行在下方 */
.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.mast-top,
.mast-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.mast-top {
  padding-top: 0.55rem;
  padding-bottom: 0.45rem;
}

.mast-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-top: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.burger {
  display: none;
  min-height: 44px;
  padding: 0 0.85rem;
  font: inherit;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  cursor: pointer;
}

.mainnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.drop {
  position: relative;
}

.drop-btn {
  min-height: 44px;
  padding: 0 0.9rem;
  font: inherit;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.drop-btn:hover,
.drop-btn[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper);
}

.drop-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  display: none;
  min-width: 190px;
  padding: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
}

.drop:hover .drop-panel,
.drop.open .drop-panel {
  display: grid;
}

.drop-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 6px;
  text-decoration: none;
}

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

.mast-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.2rem;
  white-space: nowrap;
  letter-spacing: 0.14em;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
}

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

/* 两栏：左目录栏 + 右正文 */
.shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.rail {
  position: sticky;
  top: calc(var(--mast-h) + 1.5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.rail-label {
  margin: 0 0 0.6rem;
  padding-bottom: 0.5rem;
  letter-spacing: 0.22em;
  border-bottom: 1px solid var(--ink);
}

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

.rail-list li {
  counter-increment: rail;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.rail-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  min-width: 0;
}

main > article {
  padding: clamp(2rem, 6vw, 4rem) 0;
  scroll-margin-top: calc(var(--mast-h) + 1.5rem);
}

main > article + article {
  border-top: 1px solid var(--ink);
}

main h2 {
  margin: 0 0 0.7rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
}

main h3 {
  margin: 1.8rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

main p {
  max-width: 64ch;
  margin: 0 0 1rem;
}

main ul,
main ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

main li {
  margin: 0.35rem 0;
}

main a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

main blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--ink);
}

main img {
  height: auto;
  max-width: 100%;
  border: 1px solid var(--ink);
  border-radius: var(--r);
}

.subtitle {
  max-width: 50ch;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--mute);
}

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: calc(100svh - var(--mast-h));
  padding: clamp(2rem, 6vw, 4rem) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.hero-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3.4rem, 17vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

@supports not (-webkit-text-stroke: 1px #000000) {
  .hero-mark {
    color: #eaeaea;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.hero-eye {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.32em;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.08;
  font-weight: 600;
}

.hero-cue {
  margin: 0;
  padding-bottom: 0.2rem;
  font-size: 1rem;
  letter-spacing: 0.24em;
  border-bottom: 1px solid var(--ink);
}

.hero-fig {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  pointer-events: none;
}

.hero-fig img,
.hero-fig .geo {
  position: absolute;
  width: clamp(96px, 20vw, 210px);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
}

.hero-fig img {
  filter: grayscale(1) contrast(1.05);
}

.hero-fig .geo-a {
  left: var(--pad);
  bottom: 10%;
  background: var(--ink);
}

.hero-fig .geo-b {
  right: var(--pad);
  top: 12%;
}

.hero-fig .fig-a {
  left: var(--pad);
  bottom: 10%;
}

.hero-fig .fig-b {
  right: var(--pad);
  top: 12%;
}

/* 页脚：大 CTA 块 + 两栏 + 居中底栏 */
.site-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--max);
  margin: clamp(3rem, 8vw, 5rem) auto 0;
  padding: 0 var(--pad) 2.5rem;
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--ink);
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  grid-column: 1 / -1;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--ink);
  border-radius: var(--r);
}

.cta-word {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 1.1;
  font-weight: 600;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.4rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r);
}

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

.foot-brand p {
  max-width: 34ch;
  margin: 0 0 0.8rem;
}

.foot-mark {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.foot-line {
  color: var(--mute);
}

.foot-nav dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  margin: 0;
}

.foot-nav dt {
  margin: 1rem 0 0.2rem;
  letter-spacing: 0.2em;
  color: var(--mute);
}

.foot-nav dt:first-child {
  margin-top: 0;
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-nav a:hover {
  border-bottom-color: var(--ink);
}

.foot-legal {
  grid-column: 1 / -1;
  padding-top: 1rem;
  text-align: center;
  border-top: 1px solid var(--ink);
}

.foot-legal p {
  margin: 0;
  color: var(--mute);
}

/* 滚动出现 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mast-bar {
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
  }

  .mainnav {
    display: none;
    order: 3;
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
    padding: 0.4rem 0;
  }

  .mast.open .mainnav {
    display: flex;
  }

  .drop-btn {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--hair);
    border-radius: 0;
  }

  .drop-panel {
    position: static;
    display: grid;
    min-width: 0;
    margin: 0.2rem 0 0.4rem 0.2rem;
    padding: 0 0 0 0.6rem;
    border: 0;
    border-left: 1px solid var(--ink);
    border-radius: 0;
  }

  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  main {
    order: 1;
  }

  .rail {
    position: static;
    order: 2;
    margin-top: 2rem;
    padding: 1.75rem 0 0;
    border-top: 1px solid var(--ink);
  }

  .rail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }

  .hero {
    place-items: start center;
    min-height: auto;
    padding: 2.5rem 0 3rem;
  }

  .hero-mark {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-copy {
    order: 1;
  }

  .hero-fig {
    position: relative;
    inset: auto;
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    margin: 2rem 0 0;
  }

  .hero-fig img,
  .hero-fig .geo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .hero-fig .fig-b,
  .hero-fig .geo-b {
    transform: translateY(1.25rem);
  }

  .site-foot {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .foot-nav dl {
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }

  .foot-nav dt {
    grid-column: 1 / -1;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-fig .fig-b,
  .hero-fig .geo-b {
    transform: none;
  }
}

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