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

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

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

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: #000;
  background-color: #fff;
  background-image:
    radial-gradient(120% 78% at 100% 0%, #e8e8e8 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 58%, #ececec 100%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; }
a { color: #000; }

:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -90px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: #000;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: top .18s ease;
}
.skip:focus { top: 10px; }

/* ---------- 顶部 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'brand find' 'jump jump';
  align-items: center;
  gap: 4px 12px;
  padding: 8px clamp(14px, 4vw, 40px);
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 2px solid #000;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  font-size: clamp(16px, 4.2vw, 21px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
  text-decoration: none;
  color: #000;
}
.brand .bt { overflow-wrap: anywhere; }
.mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 2px solid #000;
  display: block;
}

.jump {
  grid-area: jump;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(0, 0, 0, .18);
}
.jump::-webkit-scrollbar { display: none; }

.jump-a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}
.jump-a:hover,
.jump-a:focus-visible { border-color: #000; }

.dot {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #000;
}

.find {
  grid-area: find;
  display: flex;
  width: clamp(126px, 34vw, 236px);
  border: 2px solid #000;
  background: rgba(255, 255, 255, .92);
}
.find .q {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: #000;
}
.find .q::placeholder { color: rgba(0, 0, 0, .5); }
.find .go {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-left: 2px solid #000;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.find .go:hover { background: #262626; }

/* ---------- 舞台 ---------- */
.stage {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(16px, 4vw, 44px) clamp(14px, 4vw, 40px) 0;
  max-width: 1400px;
  margin: 0 auto;
}

.doc { flex: 1 1 auto; min-width: 0; }

/* ---------- 左栏 ---------- */
.rail {
  border-top: 4px solid #000;
  padding-top: 12px;
}
.rail-h {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
}
.rail-h > span { display: inline-block; }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 5px 0;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, .16);
}
.rail-list .n {
  flex: 0 0 auto;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: rgba(0, 0, 0, .5);
}
.rail-list .x {
  font-size: 16px;
  font-weight: 500;
  transition: transform .2s ease;
}
.rail-list a:hover .x { transform: translateX(4px); }

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  display: grid;
  gap: clamp(18px, 4vw, 34px);
  align-content: center;
  min-height: 45vh;
  padding: clamp(18px, 5vw, 48px) 0 clamp(38px, 7vw, 70px);
  text-align: left;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: #000;
  clip-path: polygon(0 0, 100% 0, 100% 26%, 0 100%);
}

.hero-txt { min-width: 0; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 9.4vw, 6rem);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.lede {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.62;
  font-weight: 400;
  color: rgba(0, 0, 0, .72);
}

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  max-width: 620px;
}
.shot {
  display: block;
  width: 100%;
  border: 2px solid #000;
  background: #e3e3e3;
  object-fit: cover;
}
.shot-a { margin-top: -14px; }
.shot-b { margin-bottom: -14px; }

/* ---------- 正文 ---------- */
.prose {
  display: grid;
  gap: clamp(26px, 4.6vw, 60px);
  padding-bottom: clamp(40px, 8vw, 90px);
  max-width: 80ch;
}

.prose > article {
  position: relative;
  padding: clamp(22px, 4vw, 54px);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  border: 2px solid #000;
}

#home,
#about,
#jie-ci,
#liang-wen,
#hao-chu,
#fen-bu,
#jie-guo { scroll-margin-top: clamp(120px, 17vh, 165px); }

.prose h2 {
  margin: 0 0 .72em;
  font-size: clamp(1.65rem, 5.2vw, 3rem);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.prose h2 > span { display: inline; }

.prose h3 {
  margin: 1.6em 0 .5em;
  font-size: clamp(1.18rem, 3.1vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.prose h3 > span { display: inline; }

.prose p,
.prose li {
  font-size: clamp(16px, 1.75vw, 18px);
  line-height: 1.78;
}
.prose p { margin: 0 0 1.05em; max-width: 68ch; }
.prose ul,
.prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin: 0 0 .45em; }

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

.prose strong { font-weight: 700; }

.prose blockquote {
  margin: 1.4em 0;
  padding: .2em 0 .2em 1.1em;
  border-left: 6px solid #000;
  font-size: clamp(16px, 1.9vw, 19px);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose img {
  display: block;
  max-width: 100%;
  border: 2px solid #000;
  margin: 1.3em 0;
}

.prose hr {
  border: 0;
  border-top: 2px solid #000;
  margin: 2em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.3em;
  font-size: 16px;
}
.prose th,
.prose td {
  border: 1px solid #000;
  padding: .55em .7em;
  text-align: left;
}
.prose th { background: #000; color: #fff; font-weight: 600; }

.prose code,
.prose pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}
.prose pre {
  overflow-x: auto;
  padding: 14px;
  border: 2px solid #000;
  background: #fff;
}

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

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(36px, 7vw, 80px);
  padding: 26px clamp(14px, 4vw, 40px) 44px;
  border-top: 2px solid #000;
  background: #fff;
}

.frow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  max-width: 1400px;
  margin: 0 auto;
}

.fbrand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
  color: #000;
}

.fjump dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  margin: 0;
  padding: 0;
}
.fjump dt,
.fjump dd { margin: 0; }
.fjump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  color: #000;
  border-bottom: 2px solid transparent;
}
.fjump a:hover { border-color: #000; }
.fjump dd a {
  color: rgba(0, 0, 0, .48);
  font-variant-numeric: tabular-nums;
}

.fmeta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: auto;
  text-align: right;
}
.fcopy {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.fdesc {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(0, 0, 0, .6);
}

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  background: #000;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid #000;
}
.totop:hover { background: #262626; }

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: 'brand jump find';
    gap: 24px;
    padding: 12px clamp(20px, 4vw, 48px);
  }
  .jump { justify-content: center; border-top: 0; }
  .hero--media {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
  }
  .hero--media .collage { justify-self: end; }
}

@media (min-width: 1000px) {
  .stage {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(30px, 3.6vw, 60px);
    padding-top: clamp(30px, 4.6vw, 66px);
  }
  .rail {
    order: -1;
    flex: 0 0 208px;
    width: 208px;
    position: sticky;
    top: 92px;
  }
  .fmeta { text-align: right; }
}

@media (max-width: 999px) {
  .rail { order: 2; }
  .fmeta {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .find .go { padding: 0 10px; font-size: 16px; }
  .foot { padding-bottom: 76px; }
}

/* ---------- 动效 ---------- */
.anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.anim .reveal.in {
  opacity: 1;
  transform: none;
}

.anim .stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}
.anim .stagger.in > * {
  opacity: 1;
  transform: none;
}
.anim .stagger > *:nth-child(2) { transition-delay: .05s; }
.anim .stagger > *:nth-child(3) { transition-delay: .1s; }
.anim .stagger > *:nth-child(4) { transition-delay: .15s; }
.anim .stagger > *:nth-child(5) { transition-delay: .2s; }
.anim .stagger > *:nth-child(6) { transition-delay: .25s; }
.anim .stagger > *:nth-child(7) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal,
  .anim .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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