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

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

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

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: Karla, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
}

img { display: block; max-width: 100%; height: auto; }
a { color: #000; text-decoration: none; }
p { margin: 0; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  font-family: "Playfair Display SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .01em;
}

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 90;
  padding: 10px 14px;
  background: #000;
  color: #fff;
  border-radius: 4px;
  transition: top .18s ease;
}
.skip:focus { top: 8px; }

/* 顶部细条 */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  height: 44px;
  padding: 0 16px;
  background: #000;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .14em;
  overflow: hidden;
}
.tick-brand { font-weight: 700; white-space: nowrap; letter-spacing: .2em; }
.tick-line {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 13px;
  letter-spacing: .06em;
  color: #bbb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell { padding-top: 44px; }

/* 左侧竖排 */
.rail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 0;
  border-bottom: 1px solid #000;
  background: #fff;
}
.mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #000;
  border-radius: 4px;
  overflow: hidden;
}
.mark-txt {
  font-family: "Playfair Display SC", "Songti SC", Georgia, serif;
  font-size: 19px;
  line-height: 1;
}
.mark-img { width: 100%; height: 100%; object-fit: cover; }
.rail nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rail nav::-webkit-scrollbar { display: none; }

.menu { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.menu a:hover { border-bottom-color: #000; }
.menu a[aria-current] { font-weight: 700; border-bottom-color: #000; }

/* 正文区 */
.wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 0 16px 8px;
}

.hero {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 52px 0 40px;
  overflow: hidden;
  border-bottom: 3px solid #000;
}
.ghost {
  position: absolute;
  right: -.06em;
  top: -.06em;
  margin: 0;
  font-family: "Playfair Display SC", Georgia, serif;
  font-size: clamp(120px, 30vw, 300px);
  line-height: .8;
  color: #000;
  opacity: .07;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.hero-copy {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  justify-items: start;
}
.hero-mark { width: 46px; height: 46px; color: #000; }
.hero h1 { font-size: clamp(34px, 8vw, 74px); max-width: 16ch; }
.hero-img {
  width: 100%;
  max-width: 540px;
  margin-top: 6px;
  border-radius: 4px;
  border-bottom: 3px solid #000;
}

.flow { grid-column: 1 / -1; display: block; }
.flow > article {
  padding: 44px 0 40px;
  border-bottom: 2px solid #000;
  border-radius: 4px;
  scroll-margin-top: 58px;
}
.flow > article:last-child { border-bottom: 0; }
.flow h2 { font-size: clamp(24px, 4.6vw, 36px); margin: 0 0 14px; }
.flow h3 { font-size: 20px; margin: 26px 0 8px; }
.flow p { margin: 0 0 16px; max-width: 64ch; }
.flow ul, .flow ol { margin: 0 0 18px; padding-left: 22px; }
.flow li { margin: 0 0 8px; }
.flow a { border-bottom: 1px solid #000; }
.flow a:hover { background: #000; color: #fff; }
.flow strong { font-weight: 700; }
.flow blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid #000;
  font-size: 19px;
}
.flow img { margin: 20px 0; border-radius: 4px; border-bottom: 3px solid #000; }
.flow hr { border: 0; border-top: 2px solid #000; margin: 32px 0; }
.flow table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 18px; }
.flow th, .flow td { border-bottom: 1px solid #000; padding: 10px 8px; text-align: left; }

/* 右侧索引 */
.side {
  padding: 34px 16px 44px;
  border-top: 1px solid #000;
  background: #fff;
}
.side h2 { font-size: 21px; }
.subtitle {
  margin: 6px 0 16px;
  font-size: 16px;
  letter-spacing: .06em;
  color: #666;
}
.toc { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px solid #e6e6e6;
  transition: padding .16s ease, color .16s ease;
}
.toc a::before {
  content: counter(t, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: .12em;
  color: #999;
}
.toc a:hover { padding-left: 6px; }
.toc a.on { font-weight: 700; border-bottom-color: #000; }

/* 页脚 */
.foot {
  display: grid;
  gap: 26px;
  margin-top: 52px;
  padding: 40px 16px 26px;
  border-top: 3px solid #000;
}
.foot article {
  padding-bottom: 14px;
  border-bottom: 2px solid #000;
  border-radius: 4px;
}
.foot-cta h2 { font-size: clamp(26px, 5vw, 38px); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  border-bottom: 1px solid #e6e6e6;
  transition: padding .16s ease;
}
.foot ul a:hover { padding-left: 8px; }
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #000;
  border-radius: 4px;
  font-size: 16px;
  letter-spacing: .08em;
}
.cta:hover { background: #000; color: #fff; }
.copyright {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 16px;
  border-top: 1px solid #000;
  font-size: 14px;
  letter-spacing: .12em;
  color: #333;
}

@media (min-width: 560px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 26px 32px; }
  .foot-cta { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .foot { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-cta { grid-column: auto; }
}

@media (min-width: 1040px) {
  .shell {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr) 220px;
    column-gap: 44px;
    padding: 44px 24px 0 0;
  }
  .rail {
    position: sticky;
    top: 44px;
    align-self: start;
    height: calc(100vh - 44px);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px 24px 24px;
    border-bottom: 0;
    border-right: 1px solid #000;
    overflow-y: auto;
  }
  .rail nav { width: 100%; overflow: visible; }
  .menu { flex-direction: column; gap: 0; }
  .menu a {
    width: 100%;
    padding: 0;
    font-size: 17px;
    border-bottom: 1px solid #e6e6e6;
    transition: padding .18s ease;
  }
  .menu a:hover { padding-left: 10px; border-bottom-color: #000; }
  .menu a[aria-current] { border-bottom-color: #000; }

  .wrap { padding: 0; gap: 20px; }
  .hero { padding: 64px 0 56px; min-height: 70vh; align-content: center; }
  .hero-copy { grid-column: 1 / 10; }
  .flow > article { scroll-margin-top: 64px; padding: 56px 0 48px; }
  .flow p { max-width: 62ch; }

  .side {
    position: sticky;
    top: 64px;
    align-self: start;
    padding: 6px 0 40px;
    border-top: 0;
  }
  .foot { padding-left: 0; }
}

@media (min-width: 1280px) {
  .shell { grid-template-columns: 250px minmax(0, 1fr) 250px; column-gap: 56px; }
  .hero-copy { grid-column: 1 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
</style>

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