@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

:root {
  --paper: #fafaf8;
  --ink: #1a1a1a;
  --gray: #4a4a4a;
  --line: rgba(26, 26, 26, 0.8);
  --soft: rgba(26, 26, 26, 0.14);
  --glass: rgba(255, 255, 255, 0.55);
  --r: 10px;
  --sketch: 255px 14px 225px 16px / 16px 225px 14px 255px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Space Grotesk', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}

::selection { background: var(--ink); color: var(--paper); }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }

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

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* 顶部：品牌居中、菜单分列两侧的胶囊组 */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(7px) saturate(120%);
  border-bottom: 2px solid var(--ink);
}

.top-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
}

.nav-side { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-1.6deg);
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.13);
  transition: transform 110ms steps(2), box-shadow 110ms steps(2);
}

.brand:hover { transform: rotate(1.2deg) translateY(-2px); box-shadow: 5px 5px 0 rgba(26, 26, 26, 0.18); }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  background: var(--glass);
  border: 1.6px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: transform 110ms steps(2), background 110ms linear, color 110ms linear;
}

.pill:hover { background: var(--ink); color: var(--paper); transform: rotate(-1.3deg) translateY(-1px); }
.pill-go { border-style: dashed; }

/* 主区 */
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 52px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 26px;
  min-height: 45vh;
  padding: 30px 0 34px;
  overflow: hidden;
}

.hero-ghost {
  position: absolute;
  left: -1%;
  top: 46%;
  z-index: 0;
  transform: translateY(-50%) rotate(-3.2deg);
  font-size: clamp(46px, 11vw, 130px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(26, 26, 26, 0.07);
  white-space: nowrap;
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; text-align: center; }

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 46px);
  text-wrap: balance;
}

.hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  transform: rotate(1.5deg);
  box-shadow: 7px 7px 0 rgba(26, 26, 26, 0.12);
  animation: nudge 900ms steps(1) 1;
}

.hero-art::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 82px;
  height: 20px;
  transform: translateX(-50%) rotate(-4.5deg);
  background: rgba(74, 74, 74, 0.22);
  border-radius: 2px;
}

@keyframes nudge {
  from { transform: rotate(1.5deg) translate(4px, -3px); }
  to { transform: rotate(1.5deg) translate(0, 0); }
}

.hero-img {
  display: block;
  width: 100%;
  border-radius: 6px;
  filter: grayscale(0.35) contrast(1.06);
}

.hero-blot {
  display: block;
  height: 186px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, rgba(26, 26, 26, 0.12) 0 6px, rgba(26, 26, 26, 0.03) 6px 13px);
}

/* 正文：左便签 aside + 右内容列 */
.page-body {
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  gap: 34px;
  padding-top: 26px;
  border-top: 2px dashed rgba(26, 26, 26, 0.35);
}

.rail {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 14px 12px;
  background: var(--glass);
  border: 1.6px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(7px);
  transform: rotate(-0.8deg);
  box-shadow: 4px 4px 0 rgba(26, 26, 26, 0.08);
}

.rail-cap {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--gray);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 10px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--gray);
  text-decoration: none;
  border-left: 3px solid rgba(26, 26, 26, 0.22);
  transition: border-color 100ms steps(2), color 100ms linear, transform 100ms steps(2);
}

.rail-list a:hover {
  color: var(--ink);
  border-left-color: var(--ink);
  transform: translateX(3px);
}

.content-col { min-width: 0; }

.masthead {
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 3px solid var(--ink);
}

.masthead h2 { margin: 0 0 6px; font-size: clamp(22px, 2.7vw, 30px); }

.subtitle { margin: 0; color: var(--gray); font-size: 17px; }

.content-col > section {
  padding: 28px 0 6px;
  margin-top: 12px;
  border-top: 2px dashed rgba(26, 26, 26, 0.3);
  scroll-margin-top: 104px;
}

.content-col > section:first-of-type { border-top: 0; margin-top: 0; padding-top: 10px; }

.content-col h2 { margin: 0 0 12px; font-size: clamp(22px, 2.7vw, 30px); }
.content-col h3 { margin: 24px 0 10px; font-size: 20px; }

.content-col p { margin: 0 0 16px; }
.content-col ul,
.content-col ol { margin: 0 0 16px; padding-left: 24px; }
.content-col li { margin: 0 0 8px; }

.content-col blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--glass);
  border-left: 6px solid var(--ink);
  border-radius: 0 var(--r) var(--r) 0;
}

.content-col figure {
  margin: 22px 0;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  transform: rotate(-0.9deg);
}

.content-col img { border-radius: 6px; filter: grayscale(0.25) contrast(1.05); }

.content-col time {
  font-size: 16px;
  color: var(--gray);
  border-bottom: 2px dotted var(--gray);
}

/* 页脚：大块 + 三列定义列表 + 居中版权 */
.site-foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 18px 26px;
  border-top: 3px solid var(--ink);
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 20px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--r);
  transform: rotate(-0.6deg);
}

.cta-brand {
  margin: 0;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border: 2px solid var(--paper);
  border-radius: 999px;
  transition: background 120ms linear, color 120ms linear;
}

.cta-go:hover { background: var(--paper); color: var(--ink); }

.foot-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 22px;
  margin: 30px 0 20px;
}

.foot-nav dl { margin: 0; }
.foot-nav dt {
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gray);
}
.foot-nav dd { margin: 0; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 110ms steps(2);
}

.foot-nav a:hover { border-bottom-color: var(--ink); }

.foot-copy {
  margin: 0;
  padding-top: 16px;
  font-size: 16px;
  text-align: center;
  color: var(--gray);
  border-top: 2px dashed rgba(26, 26, 26, 0.3);
}

/* 滚动显现 */
.js .masthead,
.js .content-col > section { opacity: 0; transform: translateY(14px); }

.js .masthead.in,
.js .content-col > section.in {
  opacity: 1;
  transform: none;
  transition: opacity 240ms steps(3), transform 240ms steps(3);
}

@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; gap: 18px; }
  .rail { position: static; top: auto; transform: rotate(-0.6deg); }
  .rail-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .rail-list li { flex: 0 0 auto; }
  .rail-list a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid rgba(26, 26, 26, 0.22);
  }
}

@media (max-width: 760px) {
  .top-nav { grid-template-columns: 1fr; gap: 8px; padding: 10px 12px; }
  .brand { order: -1; justify-self: center; }
  .nav-side { justify-content: center; }
  .hero { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 22px 0 26px; }
  .hero-art { transform: rotate(-1.1deg); max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-ghost { font-size: 46px; top: 38%; }
  .page-main { padding: 0 14px 40px; }
  .site-foot { padding: 26px 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
  .js .masthead,
  .js .content-col > section { opacity: 1; transform: none; transition: none; }
  .pill, .brand, .rail-list a, .foot-nav a, .cta-go { transition: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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