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

:root {
  --paper: #fafaf8;
  --mid: #4a4a4a;
  --ink: #1a1a1a;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", monospace;
  --wide: "Syncopate", "Space Mono", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(rgba(26, 26, 26, .10) 1px, transparent 1px),
    radial-gradient(rgba(74, 74, 74, .07) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 4px 6px;
}

h1, h2, h3 { font-weight: 700; }

a { color: inherit; }

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

/* 顶部两行 */
.top {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 16px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .22em;
  color: var(--mid);
  border-bottom: 1px dashed rgba(26, 26, 26, .45);
}

.ticker span { text-transform: uppercase; }

.brandrow {
  display: flex;
  align-items: center;
  padding: 10px 14px 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  font-family: var(--wide);
  font-size: 21px;
  letter-spacing: .26em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(-.7deg);
}

.brand-mark { height: 30px; width: auto; display: block; }

.navrow {
  border-top: 1px solid rgba(26, 26, 26, .5);
  padding: 0 8px 4px;
}

.navrow p {
  margin: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.navrow p::-webkit-scrollbar { display: none; }

.navrow a {
  display: inline-block;
  min-height: 44px;
  padding: 12px 9px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.navrow a:hover,
.navrow a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 首屏 */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
  align-items: center;
  gap: 18px;
  padding: 26px 16px 30px;
  border-bottom: 2px solid var(--ink);
}

.hero-ghost {
  position: absolute;
  right: 6px;
  bottom: -18px;
  z-index: 0;
  font-family: var(--wide);
  font-size: clamp(90px, 20vw, 190px);
  line-height: .8;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 26, 26, .22);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 5.2vw, 46px);
  line-height: 1.24;
  letter-spacing: .02em;
  transform: rotate(-.6deg);
}

.lede {
  margin: 0;
  max-width: 34ch;
  padding-left: 12px;
  border-left: 3px solid var(--ink);
  color: var(--mid);
  font-size: 16px;
  line-height: 1.7;
}

.hero-fig {
  position: relative;
  z-index: 1;
  margin: 0;
  min-width: 0;
  transform: rotate(1.1deg);
  will-change: transform;
}

.hero-fig img {
  display: block;
  width: 100%;
  border: 2px solid var(--ink);
  box-shadow: 0 8px 22px rgba(26, 26, 26, .16);
  filter: grayscale(.3) contrast(1.06);
}

/* 主体骨架 */
.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  align-items: start;
}

.side {
  padding: 28px 16px 28px 0;
  border-right: 1px dashed rgba(26, 26, 26, .5);
}

.side-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, .16);
  border-radius: 0;
  padding: 14px 13px 6px;
  box-shadow: 0 8px 20px rgba(26, 26, 26, .10);
  transform: rotate(-.5deg);
}

.side h2 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: .3em;
  line-height: 1.5;
}

.side hr {
  border: 0;
  border-top: 2px solid var(--ink);
  width: 44px;
  margin: 0 0 10px;
}

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

.side li { margin: 0; }

.side a {
  display: block;
  min-height: 44px;
  padding: 11px 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px dotted rgba(26, 26, 26, .4);
}

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

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

/* 正文 */
.sheet {
  min-width: 0;
  padding: 26px 0 40px 28px;
}

.sheet section {
  scroll-margin-top: 122px;
  padding: 26px 0 30px;
  border-bottom: 2px solid var(--ink);
  animation: sketchIn .55s steps(4, end) both;
}

.sheet section:nth-child(2) { animation-delay: .05s; }
.sheet section:nth-child(3) { animation-delay: .1s; }
.sheet section:nth-child(4) { animation-delay: .15s; }
.sheet section:nth-child(5) { animation-delay: .2s; }
.sheet section:nth-child(6) { animation-delay: .25s; }
.sheet section:nth-child(7) { animation-delay: .3s; }

.sheet section:last-child { border-bottom: 0; }

.sheet h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: .07em;
  transform: rotate(-.3deg);
}

.sheet h2 + hr {
  border: 0;
  border-top: 2px dashed rgba(74, 74, 74, .8);
  margin: 0 0 16px;
}

.sheet h3 {
  margin: 1.3em 0 .5em;
  font-size: 19px;
  letter-spacing: .05em;
}

.sheet h3 + hr {
  border: 0;
  border-top: 1px solid rgba(26, 26, 26, .5);
  margin: 0 0 12px;
}

.sheet p { margin: 0 0 1em; }

.sheet ul,
.sheet ol { margin: 0 0 1em; padding-left: 1.4em; }

.sheet li { margin: .35em 0; }

.sheet a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.sheet img {
  display: block;
  margin: .8em 0;
  border: 1px solid rgba(26, 26, 26, .5);
  filter: grayscale(.25) contrast(1.05);
}

.sheet blockquote {
  margin: 1em 0;
  padding: 10px 14px;
  border-left: 3px solid var(--ink);
  background: rgba(26, 26, 26, .035);
  color: var(--mid);
}

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

.sheet code {
  font-family: var(--mono);
  font-size: 16px;
  background: rgba(26, 26, 26, .08);
  padding: 1px 4px;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 16px;
}

.sheet th,
.sheet td {
  border: 1px solid rgba(26, 26, 26, .55);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.sheet th { background: rgba(26, 26, 26, .06); }

/* 页脚 */
footer {
  max-width: 1080px;
  margin: 20px auto 0;
  padding: 22px 16px 34px;
  border-top: 2px solid var(--ink);
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 26px;
}

footer address {
  font-style: normal;
  font-size: 16px;
  letter-spacing: .22em;
  transform: rotate(-.6deg);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links a {
  display: inline-block;
  min-height: 44px;
  padding: 11px 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px dotted rgba(26, 26, 26, .5);
}

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

.copy {
  margin: 10px 0 0;
  font-size: 16px;
  letter-spacing: .1em;
  color: var(--mid);
}

@keyframes sketchIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) rotate(-.35deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 22px 14px 26px;
    gap: 22px;
  }

  .hero-ghost {
    font-size: 34vw;
    bottom: -8px;
    right: 2px;
  }

  .hero-fig { transform: rotate(.8deg); }

  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 14px;
  }

  .side {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .side-card { transform: none; }

  .side ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .side a {
    padding: 11px 0;
    border-bottom: 1px dotted rgba(26, 26, 26, .4);
  }

  .sheet { padding: 22px 0 36px; }

  .sheet section { scroll-margin-top: 138px; }

  footer { padding: 20px 14px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation: none !important;
    transition: none !important;
  }
  .hero-fig { transform: rotate(1.1deg); }
}

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