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

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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --u: 8px;
  --max: 1200px;
  --font: Outfit, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

body {
  margin: 0;
  padding-bottom: 56px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1.05em;
  max-width: 68ch;
}

h1,
h2,
h3 {
  margin: 0 0 .5em;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.015em;
  word-break: break-word;
}

h2 {
  font-size: clamp(24px, 3.6vw, 40px);
}

h3 {
  font-size: 20px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 底部固定条与品牌角标 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .13em;
  text-decoration: none;
  border-right: 2px solid var(--paper);
}

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

.menu {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}

.find {
  display: none;
  flex: 0 0 auto;
}

.find input {
  width: 132px;
  height: 38px;
  padding: 0 10px;
  background: transparent;
  color: var(--paper);
  border: 2px solid var(--paper);
  font: inherit;
  font-size: 16px;
}

.find input::placeholder {
  color: #b9b9b9;
}

.find input:focus {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.menu ol {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu ol::-webkit-scrollbar {
  display: none;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 12px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

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

.burger {
  flex: 0 0 auto;
  min-width: 66px;
  min-height: 54px;
  padding: 0 8px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-left: 2px solid var(--paper);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

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

/* 全屏遮罩菜单 */
body.menu-open .dock {
  top: 0;
  bottom: 0;
  flex-direction: column;
  align-items: stretch;
}

body.menu-open .brand {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  min-width: 72px;
  background: transparent;
  border-right: 0;
}

body.menu-open .menu {
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 84px 20px 20px;
  overflow-y: auto;
}

body.menu-open .find {
  display: flex;
  margin-bottom: 24px;
}

body.menu-open .find input {
  width: 100%;
  height: 56px;
  font-size: 17px;
}

body.menu-open .menu ol {
  flex-direction: column;
  width: 100%;
  overflow: visible;
}

body.menu-open .menu a {
  min-height: 64px;
  padding: 0 4px;
  font-size: clamp(20px, 5vw, 34px);
  font-weight: 900;
  letter-spacing: -.01em;
  border-bottom: 1px solid #3a3a3a;
}

body.menu-open .burger {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 90;
  min-width: 66px;
  min-height: 52px;
  border: 2px solid var(--paper);
  background: var(--ink);
  color: var(--paper);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.menu-open .menu li {
  animation: rise .36s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

/* 版心栅格 */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 56px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.doc {
  min-width: 0;
  counter-reset: sec;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 88px 0 48px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7.2vw, 84px);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.hero .lead {
  max-width: 36ch;
  margin: 24px 0 0;
  font-size: 18px;
  color: #141414;
}

.doc > div:not(.hero) {
  counter-increment: sec;
  padding: 48px 0;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 88px;
}

.doc > div:not(.hero) h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .28em;
}

.doc > div h2 + p {
  margin-top: -.1em;
  font-weight: 500;
  color: #1c1c1c;
}

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

.doc a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.doc ul,
.doc ol {
  padding-left: 1.2em;
  max-width: 68ch;
}

.doc li {
  margin-bottom: .5em;
}

.doc img {
  margin: 24px 0;
}

.doc blockquote {
  margin: 24px 0;
  padding: 8px 0 8px 20px;
  border-left: 6px solid var(--ink);
  font-weight: 500;
}

/* 右侧栏 */
.rail {
  position: sticky;
  top: 24px;
  padding-left: 24px;
  border-left: 2px solid var(--ink);
}

.rail h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .02em;
}

.rail .subtitle {
  max-width: none;
  margin: .55em 0 1.5em;
  font-size: 16px;
  color: #2b2b2b;
}

.toc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  border-top: 1px solid var(--ink);
}

.toc li:last-child {
  border-bottom: 1px solid var(--ink);
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: padding-left .16s ease, background .16s ease, color .16s ease;
}

.toc a:hover,
.toc a:focus-visible {
  padding-left: 10px;
  background: var(--ink);
  color: var(--paper);
}

/* 页脚 */
.foot {
  margin-top: 88px;
  padding: 64px 20px 104px;
  background: var(--ink);
  color: var(--paper);
}

.foot-cta,
.foot-cols,
.foot .copy {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.cta-big {
  max-width: none;
  margin: 0 0 20px;
  font-size: clamp(30px, 7vw, 76px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--paper);
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: transparent;
  color: var(--paper);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.foot dl {
  margin: 0;
}

.foot dt {
  margin-bottom: 10px;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  border-bottom: 1px solid var(--paper);
}

.foot dd {
  margin: 0;
}

.foot dd a {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid #3a3a3a;
}

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

.foot .copy {
  max-width: none;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #4a4a4a;
  font-size: 16px;
  letter-spacing: .05em;
}

@media (min-width: 1024px) {
  .find {
    display: flex;
  }
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero {
    min-height: 62vh;
    padding-top: 72px;
  }

  .rail {
    position: static;
    order: 2;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 2px solid var(--ink);
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .page {
    padding: 0 16px;
  }

  .foot {
    padding: 48px 16px 100px;
  }

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

  .doc > div:not(.hero) {
    padding: 36px 0;
  }

  .brand {
    padding: 0 12px;
    font-size: 14px;
    letter-spacing: .08em;
  }
}

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

  body.menu-open .menu li {
    animation: none;
  }

  * {
    transition-duration: .01ms !important;
  }
}

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