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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --glass: rgba(0, 0, 0, .045);
  --hair: rgba(0, 0, 0, .14);
  --r: 10px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*,
*::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: Inter, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[id] { scroll-margin-top: 2rem; }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- 页头：品牌独行 / 菜单独行 ---------- */

.masthead {
  display: grid;
  gap: clamp(.6rem, 1.6vw, 1.4rem);
  padding: clamp(1.4rem, 4vw, 3.2rem) var(--gutter) clamp(.9rem, 2.4vw, 1.8rem);
  border-bottom: 1px solid var(--ink);
}

.masthead-brand {
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.masthead-brand a {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  min-height: 40px;
  padding: .35rem 0;
  text-decoration: none;
}

.mark {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--ink);
  flex: 0 0 auto;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}

.masthead-brand a:hover .mark { transform: rotate(45deg); }

.masthead-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(.5rem, 1.8vw, 1.5rem);
}

.masthead-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: .72rem .1rem;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
}

.masthead-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}

.masthead-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
}

.masthead-nav a:hover::before,
.masthead-nav a:focus-visible::before { transform: scale(2.1); }

.masthead-nav a:hover::after,
.masthead-nav a:focus-visible::after { transform: scaleX(1); }

.masthead-nav a:focus-visible,
.masthead-brand a:focus-visible,
.rail-list a:focus-visible,
.colophon-links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  min-height: 100svh;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter);
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.1rem, 3vw, 2.2rem);
  min-width: 0;
}

.hero-chip {
  align-self: flex-start;
  padding: .48rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.4;
  background: var(--paper);
  animation: chip-in .7s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes chip-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(3rem, 9.4vw, 8.6rem);
  font-weight: 800;
  letter-spacing: -.058em;
  line-height: .9;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-fig {
  position: relative;
  margin: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--glass);
}

.hero-fig .hero-img {
  width: 100%;
  height: clamp(300px, 62vh, 660px);
  object-fit: cover;
  will-change: transform;
  transform: scale(1.05);
}

/* ---------- 主体：左侧栏 + 正文 ---------- */

.stage {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter);
}

.rail {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  display: grid;
  gap: .45rem;
  padding: 1.15rem 1.25rem 1.35rem;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.rail small {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1;
  color: var(--ink);
}

.rail-title {
  font-size: 1.2rem;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.rail-list {
  list-style: none;
  margin: .7rem 0 0;
  padding: 0;
  display: grid;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: .5rem 0;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: padding-left .22s ease, opacity .22s ease;
}

.rail-list li:last-child a { border-bottom: 0; }
.rail-list a:hover { padding-left: .4rem; }

/* ---------- 正文排版 ---------- */

.prose {
  max-width: 70ch;
  min-width: 0;
}

.prose section + section {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: clamp(1.4rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--ink);
}

.prose small {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.4;
  margin-bottom: .5rem;
}

.prose h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  letter-spacing: -.03em;
  margin: 1.9rem 0 .55rem;
}

.prose p { margin: 0 0 1.15rem; }

.prose ul,
.prose ol {
  margin: 0 0 1.3rem;
  padding-left: 1.25rem;
}

.prose li { margin: .35rem 0; }

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

.prose figure {
  margin: 1.6rem 0;
  overflow: hidden;
  border-radius: var(--r);
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

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

.prose strong { font-weight: 800; }

.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2, .7, .3, 1);
}

.will-reveal.in {
  opacity: 1;
  transform: none;
}

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

.colophon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(.9rem, 3vw, 2rem);
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(1.6rem, 4vw, 2.6rem);
  border-top: 1px solid var(--ink);
}

.colophon-brand {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  justify-content: flex-end;
}

.colophon-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .5rem 0;
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .24s ease;
}

.colophon-links a:hover { border-bottom-color: var(--ink); }

.colophon-base {
  grid-column: 1 / -1;
  margin-top: .9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hair);
}

.colophon-base small {
  font-size: .8rem;
  letter-spacing: .05em;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: clamp(1.5rem, 5vw, 2.4rem);
    padding-top: clamp(1.6rem, 5vw, 2.6rem);
  }

  .hero h1 { font-size: clamp(2.6rem, 12vw, 5rem); }
  .hero-fig .hero-img { height: clamp(240px, 46vh, 420px); }

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

  .rail {
    position: static;
    order: -1;
  }

  .rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .9rem;
  }

  .prose { max-width: none; }
}

@media (max-width: 680px) {
  .colophon { grid-template-columns: minmax(0, 1fr); }
  .colophon-links { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .rail-list { grid-template-columns: minmax(0, 1fr); }
  .hero-chip { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

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