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

:root {
  --ink: #1f1f1f;
  --ink-2: #474747;
  --ink-3: #6f6f6f;
  --paper: #ffffff;
  --paper-2: #f5f5f5;
  --line: #e4e4e4;
  --el-1: 0 1px 2px rgba(17, 17, 17, .07);
  --el-2: 0 4px 12px rgba(17, 17, 17, .09), 0 1px 2px rgba(17, 17, 17, .06);
  --el-3: 0 12px 28px rgba(17, 17, 17, .13), 0 3px 8px rgba(17, 17, 17, .06);
  --el-4: 0 30px 60px rgba(17, 17, 17, .2), 0 8px 18px rgba(17, 17, 17, .08);
  --pad: clamp(16px, 5vw, 44px);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Rubik", "Nunito Sans", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* 顶栏：品牌图标缩在角落 */
.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--el-2);
  transition: transform .18s ease, box-shadow .18s ease;
}

.brandmark:hover {
  transform: translateY(-2px);
  box-shadow: var(--el-3);
}

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

.mark-ch {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .04em;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--el-1);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.cta:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--el-3);
}

.cta-ghost {
  display: block;
  width: 44px;
}

/* 粘性锚点条 */
.anchor-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--el-2);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.anchor-bar ol {
  display: flex;
  gap: 3px;
  margin: 0;
  padding: 6px var(--pad);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-bar ol::-webkit-scrollbar {
  display: none;
}

.anchor-bar li {
  flex: 0 0 auto;
}

.anchor-bar a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 13px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--el-1);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.anchor-bar a:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--el-3);
}

.idx {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  opacity: .55;
  font-variant-numeric: tabular-nums;
}

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 45vh;
  padding: clamp(30px, 7vw, 68px) var(--pad);
  overflow: hidden;
  background: var(--paper-2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(62% 62% at 50% 44%, #fff 0%, rgba(255, 255, 255, .88) 46%, rgba(255, 255, 255, 0) 80%);
}

.collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
}

.plate {
  position: absolute;
  overflow: hidden;
  background: linear-gradient(135deg, #ededed, #dadada);
  box-shadow: var(--el-4);
  transform: translateZ(0);
}

.plate-a {
  left: 5%;
  top: 11%;
  width: min(42vw, 300px);
  aspect-ratio: 4 / 3;
  transform: rotate(-4deg);
}

.plate-b {
  right: 5%;
  bottom: 8%;
  width: min(37vw, 262px);
  aspect-ratio: 3 / 4;
  transform: rotate(5deg);
}

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

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 780px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 7px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .18em;
  box-shadow: var(--el-3);
}

.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(26px, 5.2vw, 46px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.015em;
  text-shadow: 0 2px 20px rgba(255, 255, 255, .9);
}

/* 引言 + 右侧目录 */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(20px, 4vw, 52px);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 68px) var(--pad);
}

.intro h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 33px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.01em;
}

.subtitle {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.72;
}

.rail {
  position: sticky;
  top: 86px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--el-3);
}

.rail-title {
  margin: 0 0 10px;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: .2em;
}

.rail ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 4px;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: padding .16s ease, background .16s ease, color .16s ease;
}

.rail a:hover {
  padding-left: 12px;
  background: #fff;
  color: #000;
}

.rail li:last-child a {
  border-bottom: 0;
}

/* 正文 */
.copy {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(44px, 7vw, 84px);
}

.copy div {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  padding: clamp(20px, 4vw, 42px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--el-2);
  scroll-margin-top: 92px;
}

.copy div:nth-child(odd) {
  margin-right: clamp(0px, 3vw, 34px);
}

.copy div:nth-child(even) {
  margin-left: clamp(0px, 3vw, 34px);
  z-index: 2;
  box-shadow: var(--el-3);
}

.copy h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.copy h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.copy p {
  max-width: 70ch;
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.86;
}

.copy ul,
.copy ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
  color: var(--ink-2);
  line-height: 1.82;
}

.copy li {
  margin: .42em 0;
}

.copy a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.copy a:hover {
  background: var(--ink);
  color: #fff;
}

.copy strong,
.copy b {
  color: var(--ink);
}

.copy blockquote {
  margin: 0 0 16px;
  padding: 14px 20px;
  background: #fff;
  border-left: 4px solid var(--ink);
  box-shadow: var(--el-2);
}

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

.copy figure {
  margin: 0 0 16px;
}

.copy img {
  display: block;
  box-shadow: var(--el-3);
}

.copy > div:last-child {
  margin-bottom: 0;
}

/* 回到顶部 */
.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
}

.totop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--el-3);
  transition: transform .18s ease, box-shadow .18s ease;
}

.totop a:hover {
  transform: translateY(-3px);
  box-shadow: var(--el-4);
}

/* 页脚：四栏 + 居中底栏 */
footer {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 34px;
  padding: clamp(30px, 5vw, 52px) var(--pad);
  background: var(--ink);
  color: #f5f5f5;
}

footer > p {
  flex: 1 1 190px;
  margin: 0;
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.7;
}

footer > p.f-brand {
  flex: 1 1 220px;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
}

footer > small {
  flex: 1 1 100%;
  padding-top: 18px;
  border-top: 1px solid #3b3b3b;
  color: #9d9d9d;
  font-size: 13px;
  text-align: center;
}

/* 滚动显形 */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
  }

  html.js .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity .58s ease, transform .58s cubic-bezier(.2, .7, .3, 1);
  }
}

/* 移动端 */
@media (max-width: 820px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    order: 2;
    box-shadow: var(--el-2);
  }

  .copy div:nth-child(odd),
  .copy div:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
    box-shadow: var(--el-2);
  }

  footer > p {
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .plate-a {
    left: -4%;
    top: 8%;
    width: 54vw;
  }

  .plate-b {
    right: -4%;
    bottom: 6%;
    width: 47vw;
  }

  .hero {
    min-height: 48vh;
  }

  .copy p {
    font-size: 16.5px;
  }

  .totop {
    right: 12px;
    bottom: 12px;
  }
}
</｜DSML｜ parameter>
</invoke>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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