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

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

:root {
  --paper: #fafaf8;
  --ink: #1a1a1a;
  --gray: #4a4a4a;
  --line: rgba(26, 26, 26, 0.32);
  --glass: rgba(250, 250, 248, 0.76);
  --bar: 74px;
  --head: 'Barlow Condensed', 'Barlow', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --text: 'Barlow', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

body {
  margin: 0;
  padding-bottom: calc(var(--bar) + 20px);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

img { max-width: 100%; }

h1, h2, h3, dt, summary, .brand, .cta, .jump, .cta-big, .side small, .foot small {
  font-family: var(--head);
  letter-spacing: 0.02em;
}

p { margin: 0 0 14px; }

a { color: var(--ink); }

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

/* ---------- 底部固定条 ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--bar);
  padding: 8px 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(11px) grayscale(1);
  backdrop-filter: blur(11px) grayscale(1);
  border-top: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 4px 2px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.brand .mark {
  height: 32px;
  width: auto;
  filter: grayscale(1) contrast(1.15);
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px 16px 10px 14px;
  transform: rotate(-0.7deg);
}

.menu { position: relative; }

.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px 22px 12px 20px;
}

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

.menu[open] > summary {
  position: relative;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.bar-ico {
  position: relative;
  width: 18px;
  height: 12px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.bar-ico::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 2px;
  background: var(--ink);
}

.menu[open] .bar-ico { border-color: var(--paper); }
.menu[open] .bar-ico::after { background: var(--paper); }

.menu > menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  margin: 0;
  padding: 92px 22px 130px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow-y: auto;
  background: rgba(250, 250, 248, 0.97);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.menu > menu li a {
  display: block;
  min-height: 54px;
  padding: 12px 8px;
  font-family: var(--head);
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}

.menu > menu li a:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-0.4deg);
}

/* ---------- 主区 ---------- */
main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
  min-height: 70vh;
  padding: 30px 18px 40px;
  border-bottom: 2px solid var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 46%;
  height: 14px;
  background: var(--ink);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
}

.hero-art {
  position: relative;
  margin: 0;
  height: 52vh;
  min-height: 240px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px 36px 26px 32px;
  background: #edede7;
  filter: grayscale(1) contrast(1.08);
  transform: rotate(-0.7deg);
}

.hero-art--bare {
  background-image: repeating-linear-gradient(48deg, #eaeae4 0 9px, #f7f7f3 9px 18px);
}

.hero-art .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero-art .shot:first-child { opacity: 1; }

.hero-art.rot2 .shot { animation: cyc2 8s linear infinite; }
.hero-art.rot2 .shot:nth-child(2) { animation-delay: 4s; }
.hero-art.rot3 .shot { animation: cyc3 12s linear infinite; }
.hero-art.rot3 .shot:nth-child(2) { animation-delay: 4s; }
.hero-art.rot3 .shot:nth-child(3) { animation-delay: 8s; }

@keyframes cyc2 {
  0% { opacity: 0; }
  2% { opacity: 1; }
  48% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes cyc3 {
  0% { opacity: 0; }
  2% { opacity: 1; }
  31% { opacity: 1; }
  33.4% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-txt {
  position: relative;
  text-align: center;
}

.hero-txt h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 5.2vw, 54px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border: 2px dashed var(--ink);
  border-radius: 22px 10px 20px 12px;
  transform: rotate(-0.9deg);
}

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

.grid {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 18px 12px;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 22px;
  padding: 16px 14px 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(9px) grayscale(1);
  backdrop-filter: blur(9px) grayscale(1);
  border: 2px solid var(--ink);
  border-radius: 28px;
  transform: rotate(-0.6deg);
  box-shadow: 6px 6px 0 rgba(26, 26, 26, 0.12);
}

.side small {
  display: block;
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--gray);
}

.side h2 {
  margin: 2px 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

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

.side li a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}

.side li a:hover { color: var(--ink); }

/* ---------- 正文 ---------- */
.body {
  min-width: 0;
  max-width: 760px;
  overflow-wrap: break-word;
}

.body section {
  padding: 26px 0 30px;
  border-bottom: 1px dashed var(--line);
  scroll-margin-top: 22px;
}

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

.body h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3.6vw, 33px);
  font-weight: 600;
  line-height: 1.25;
}

.body h3 {
  margin: 22px 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

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

.body li { margin: 6px 0; }

.body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  background: #f1f1ec;
  border-left: 5px solid var(--ink);
  transform: rotate(-0.25deg);
}

.body img {
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 28px;
}

.body figure { margin: 18px 0; }

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

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

.body code {
  font-size: 0.95em;
  background: #efefe9;
  padding: 1px 5px;
}

.body pre {
  overflow-x: auto;
  padding: 14px;
  background: #efefe9;
  border: 1px solid var(--line);
}

.body pre code { background: none; padding: 0; }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 24px 26px;
  max-width: 1120px;
  margin: 34px auto 0;
  padding: 34px 18px 22px;
  border-top: 2px solid var(--ink);
}

.foot-callout {
  padding: 18px 16px 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px) grayscale(1);
  backdrop-filter: blur(8px) grayscale(1);
  border: 2px solid var(--ink);
  border-radius: 28px;
  transform: rotate(0.5deg);
  box-shadow: -6px 6px 0 rgba(26, 26, 26, 0.12);
}

.foot small {
  display: block;
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--gray);
}

.foot-callout h2 {
  margin: 2px 0 14px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
}

.cta-big {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px 18px 10px 16px;
}

.foot dl { margin: 0; }

.foot dt {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--gray);
}

.foot dd { margin: 0; }

.foot dd a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px dotted var(--line);
}

.foot dd a:hover { color: var(--gray); }

.foot-end {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

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

.end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.end-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--gray);
  text-decoration: none;
}

.end-links a:hover { color: var(--ink); }

/* ---------- 滚动显现 ---------- */
.rv {
  opacity: 0;
  transform: translateY(14px) rotate(-0.3deg);
  transition: opacity 0.45s steps(4, end), transform 0.5s steps(3, end);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-callout { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px 16px 34px;
  }
  .hero-art {
    height: 34vh;
    min-height: 170px;
    transform: rotate(-0.4deg);
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 22px;
  }
  .side {
    position: static;
    transform: none;
  }
  .side ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
}

@media (max-width: 480px) {
  .brand { font-size: 18px; }
  .cta { padding: 0 12px; font-size: 16px; }
  .menu > summary { padding: 0 11px; }
  .foot { grid-template-columns: 1fr; }
  .menu > menu li a { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .shot { animation: none !important; }
  .rv {
    opacity: 1;
    transition: none;
    transform: none;
  }
}

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