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

:root {
  --paper: #fafaf8;
  --mid: #4a4a4a;
  --ink: #1a1a1a;
  --line: rgba(26, 26, 26, 0.16);
  --line2: rgba(26, 26, 26, 0.34);
  --wash: rgba(74, 74, 74, 0.08);
  --r: 18px;
  --f: 'Work Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --fh: 'Outfit', 'Work Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.28'/></svg>");
  color: var(--ink);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0.35) contrast(1.04);
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line2);
  transition: color 0.15s steps(2, end), border-color 0.15s steps(2, end), transform 0.15s steps(2, end);
}

a:hover {
  border-color: var(--ink);
  background-image: linear-gradient(transparent 68%, rgba(26, 26, 26, 0.13) 68%);
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- 页头 ---------- */
.masthead {
  border-bottom: 2px solid var(--ink);
  background: rgba(250, 250, 248, 0.9);
}

.mast-inner {
  padding-top: 14px;
  padding-bottom: 12px;
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0;
  padding: 4px 0;
  min-height: 44px;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  transform: rotate(-3deg);
  object-fit: cover;
}

.brand-txt {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.contact {
  border: 1px dashed var(--line2);
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
}

.contact:hover {
  background: var(--ink);
  color: var(--paper);
  border-style: solid;
  transform: rotate(-1.2deg);
}

.nav {
  margin-top: 10px;
}

.nav-btn {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: transparent;
  transform: rotate(-0.8deg);
}

.nav-btn::-webkit-details-marker {
  display: none;
}

.nav-btn::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-2px) rotate(45deg);
}

.nav[open] .nav-btn::after {
  transform: translateY(2px) rotate(-135deg);
}

.pills {
  list-style: none;
  margin: 12px 0 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.2;
}

.pill:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: rotate(-1.4deg);
}

.pills li:nth-child(3n) .pill {
  transform: rotate(0.9deg);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px dashed var(--line2);
}

.ghost {
  position: absolute;
  right: -10px;
  top: 6px;
  z-index: 0;
  font-family: var(--fh);
  font-size: clamp(58px, 15vw, 190px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(26, 26, 26, 0.055);
  transform: translate3d(0, var(--py, 0px), 0) rotate(-6deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 44px;
  min-height: 70vh;
  padding-top: 44px;
  padding-bottom: 44px;
}

.hero-h1 {
  font-family: var(--fh);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 15em;
}

.hero-h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 9px;
  margin-top: 14px;
  background: var(--ink);
  clip-path: polygon(0 42%, 12% 12%, 34% 58%, 55% 18%, 78% 54%, 100% 24%, 100% 100%, 0 100%);
}

.lead {
  margin: 0;
  font-size: 17px;
  color: var(--mid);
  max-width: 34em;
}

.hero-fig {
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: var(--r);
  box-shadow: 0 10px 22px rgba(26, 26, 26, 0.09);
  transform: rotate(1.4deg);
}

.hero-img {
  width: 100%;
  border-radius: 12px;
}

.blot {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    radial-gradient(circle at 32% 34%, rgba(26, 26, 26, 0.22), transparent 58%),
    radial-gradient(circle at 68% 62%, rgba(74, 74, 74, 0.28), transparent 52%),
    repeating-linear-gradient(42deg, rgba(26, 26, 26, 0.09) 0 1px, transparent 1px 7px);
}

/* ---------- 正文分栏 ---------- */
.spread {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 44px;
  padding-top: 44px;
  padding-bottom: 20px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 22px;
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 16px;
}

.rail-h {
  font-family: var(--fh);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  line-height: 1.4;
}

.subtitle {
  margin: 2px 0 12px;
  font-size: 16px;
  color: var(--mid);
  letter-spacing: 0.16em;
}

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

.rail-list li {
  margin-bottom: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  border-bottom: 1px dashed var(--line);
}

.rail-list a:hover {
  transform: translateX(3px) rotate(-0.6deg);
}

.main {
  min-width: 0;
}

.article {
  min-width: 0;
}

/* ---------- 内容卡 ---------- */
.body > section {
  --rot: -0.25deg;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 7px 18px rgba(26, 26, 26, 0.07);
  padding: 26px 22px 22px;
  margin: 0 0 26px;
  transform: rotate(var(--rot));
  scroll-margin-top: 22px;
}

.body > section:nth-child(even) {
  --rot: 0.3deg;
}

.body > section::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 24px;
  width: 62px;
  height: 15px;
  background: rgba(74, 74, 74, 0.14);
  border-left: 1px dashed rgba(26, 26, 26, 0.18);
  border-right: 1px dashed rgba(26, 26, 26, 0.18);
  transform: rotate(-3deg);
}

.body h2 {
  font-family: var(--fh);
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  background-image: linear-gradient(transparent 64%, rgba(26, 26, 26, 0.13) 64%);
  display: inline-block;
  padding-bottom: 2px;
}

.body h3 {
  font-family: var(--fh);
  font-size: 19px;
  line-height: 1.4;
  margin: 22px 0 8px;
}

.body p {
  margin: 0 0 14px;
}

.body ul,
.body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.body li {
  margin-bottom: 6px;
}

.body blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--ink);
  background: var(--wash);
  color: var(--mid);
}

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

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

.body th,
.body td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.body code,
.body pre {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 15px;
}

.body pre {
  overflow-x: auto;
  background: var(--wash);
  padding: 12px;
  border-radius: 10px;
}

.body img {
  border-radius: 12px;
  margin: 8px 0 16px;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 40px;
  border-top: 2px dashed var(--line2);
  background: rgba(255, 255, 255, 0.55);
  padding: 34px 0 22px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.foot-name {
  font-family: var(--fh);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.foot-desc {
  margin: 0;
  color: var(--mid);
  font-size: 16px;
  max-width: 30em;
}

.foot-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.foot-form input {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line2);
  border-radius: 999px;
}

.foot-form button {
  min-height: 44px;
  padding: 10px 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s steps(2, end);
}

.foot-form button:hover {
  transform: rotate(-1.6deg);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  padding: 24px 0;
}

.fcol {
  margin: 0;
}

.fcol dt {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--mid);
  margin-bottom: 10px;
}

.fcol dd {
  margin: 0 0 2px;
}

.fcol dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  border-bottom: 1px dashed var(--line);
}

.copy {
  margin: 0;
  text-align: center;
  font-size: 16px;
  color: var(--mid);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- 动效 ---------- */
html.has-js .reveal {
  opacity: 0;
  transform: translateY(16px) rotate(var(--rot));
}

html.has-js .reveal.in {
  opacity: 1;
  transform: rotate(var(--rot));
  transition: opacity 0.36s steps(3, end), transform 0.36s steps(3, end);
}

@media (min-width: 900px) {
  .masthead {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .body > article {
    scroll-margin-top: 190px;
  }
}

/* ---------- 小屏 ---------- */
@media (max-width: 899px) {
  body {
    font-size: 16px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 34px;
    gap: 26px;
  }

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

  .spread {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 30px;
  }

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

  .rail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }

  .rail-list a {
    min-height: 42px;
  }

  .body > article {
    padding: 22px 16px 18px;
    --rot: 0deg;
  }

  .body > article:nth-child(even) {
    --rot: 0deg;
  }

  .foot-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 14px;
  }

  .pill {
    padding: 9px 13px;
    font-size: 16px;
  }

  .rail-list {
    grid-template-columns: 1fr;
  }
}

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

  * {
    transition: none !important;
  }

  html.has-js .reveal {
    opacity: 1;
    transform: rotate(var(--rot));
  }
}

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