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

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

body {
  margin: 0;
  padding-bottom: 104px;
  background: #f5f5f5;
  color: #1f1f1f;
  font-family: "JetBrains Mono", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(31, 31, 31, 0.08);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #1f1f1f;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  overflow: hidden;
}

.mark img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.dockNav {
  flex: 0 0 auto;
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}

.menu[open] summary::after {
  transform: rotate(45deg) translate(-1px, -1px);
}

.menu menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(84vw, 300px);
  padding: 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.menu menu li a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 16px;
  text-decoration: none;
}

.menu menu li a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 11px;
  border-radius: 2px;
  background: #1f1f1f;
  opacity: 0.4;
}

.menu menu li a:hover,
.menu menu li a:focus-visible {
  background: #f5f5f5;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 120px 20px 132px;
  background: #1f1f1f;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}

.heroArt {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.heroArt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.42;
}

.heroText {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.4;
  transform: rotate(-2deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.hero h1 {
  margin: 0.45em 0 0.4em;
  max-width: 20ch;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 26px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font-size: 16px;
  text-decoration: none;
}

.go::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}

.go:hover {
  background: #f5f5f5;
}

/* ---------- 主体 ---------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 46px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 24px;
  align-items: start;
}

.body {
  min-width: 0;
}

article > div {
  margin: 0 0 18px;
  padding: 30px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  scroll-margin-top: 20px;
}

@media (min-width: 961px) {
  article > div:nth-child(3n + 1) {
    margin-right: 48px;
  }
  article > div:nth-child(3n + 2) {
    margin-left: 34px;
  }
}

article h2 {
  margin: 0.2em 0 0.65em;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

article h2 > span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid #1f1f1f;
}

article h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
}

article h3 > span {
  display: inline-block;
}

article p {
  margin: 0 0 1.05em;
}

article ul,
article ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

article li {
  margin: 0.35em 0;
}

article a {
  text-underline-offset: 3px;
}

article blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 4px solid #1f1f1f;
  border-radius: 14px;
  background: #f5f5f5;
}

article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

article th,
article td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(31, 31, 31, 0.12);
  text-align: left;
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 20px;
  padding: 18px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.rail h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.railList a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 16px;
  text-decoration: none;
}

.railList a:hover,
.railList a:focus-visible {
  background: #f5f5f5;
}

.top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

/* ---------- 页脚 ---------- */
footer {
  max-width: 1160px;
  margin: 64px auto 0;
  padding: 34px 20px 30px;
  border-top: 1px solid rgba(31, 31, 31, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.fBrand a {
  display: inline-block;
  padding: 6px 0;
  font-size: clamp(1.5rem, 4.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.fNav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  max-width: 100%;
}

.fNav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  text-decoration: none;
}

.fNav a:hover,
.fNav a:focus-visible {
  background: #1f1f1f;
  color: #fff;
}

.fCopy {
  font-size: 16px;
  color: rgba(31, 31, 31, 0.62);
}

/* ---------- 滚动显现 ---------- */
.js article > div,
.js .rail {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js article > div:nth-child(odd) {
  transition-delay: 0.06s;
}

.js article > div.rev-in,
.js .rail.rev-in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 960px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 30px;
  }
  .body {
    order: 1;
  }
  .rail {
    order: 2;
    position: static;
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .hero {
    min-height: 94vh;
    padding: 104px 16px 122px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
  article > div {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .fBrand a {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js article > div,
  .js .rail {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .go,
  .menu summary::after {
    transition: none;
  }
}

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