@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

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

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #fafaf8;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.86" numOctaves="3" stitchTiles="stitch"/></filter><rect width="160" height="160" filter="url(%23n)" opacity="0.17"/></svg>');
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 14px; }
ul, menu { margin: 0; padding: 0; list-style: none; }
a { color: #1a1a1a; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 顶栏 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fafaf8;
  background-image: inherit;
  border-bottom: 2px solid #1a1a1a;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 8px 4px 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  transform: rotate(-1deg);
}
.brand-mark { font-size: 20px; line-height: 1; }
.brand-name { border-bottom: 3px solid #1a1a1a; padding-bottom: 1px; }

.dock { position: relative; }

.dock-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #fafaf8;
  background: #1a1a1a;
  border-radius: 999px;
  transition: none;
}
.dock-btn::-webkit-details-marker { display: none; }

.dock-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(290px, 80vw);
  padding: 12px;
  background: #fafaf8;
  border: 2px solid #1a1a1a;
  box-shadow: 7px 7px 0 rgba(26, 26, 26, 0.14);
  transform: rotate(-0.6deg);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid #4a4a4a;
  border-radius: 999px;
  background: #fafaf8;
  transition: transform 0.12s steps(2), box-shadow 0.12s steps(2);
}
.pill:hover,
.pill:focus-visible {
  background: #1a1a1a;
  color: #fafaf8;
  border-color: #1a1a1a;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #4a4a4a;
}

.find {
  display: flex;
  flex: 1 1 120px;
  align-items: stretch;
  min-height: 40px;
  margin-left: auto;
  border: 1.5px solid #4a4a4a;
  background: #fafaf8;
}
.find-in {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  color: #1a1a1a;
  background: transparent;
  border: 0;
  outline-offset: -3px;
}
.find-go {
  flex: 0 0 auto;
  min-width: 46px;
  min-height: 40px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fafaf8;
  background: #4a4a4a;
  border: 0;
  cursor: pointer;
}
.find-go:hover { background: #1a1a1a; }

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(230px, 45vh, 400px);
  padding: 46px 20px 66px;
  overflow: hidden;
  color: #fafaf8;
  background-color: #1a1a1a;
  background-image: radial-gradient(#4a4a4a 1.2px, transparent 1.2px);
  background-size: 15px 15px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  opacity: 0.44;
  z-index: 0;
}
.hero-in { position: relative; z-index: 1; max-width: 780px; text-align: center; }
.hero-h1 {
  margin: 0;
  font-size: clamp(29px, 7vw, 56px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero-h1::after {
  content: '';
  display: block;
  width: 128px;
  height: 6px;
  margin: 20px auto 0;
  background: #fafaf8;
  transform: rotate(-1.5deg);
}

/* ---------- 布局 ---------- */
.shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 18px 56px;
}

.rail {
  align-self: start;
  padding: 18px 16px 20px;
  border: 2px solid #1a1a1a;
  border-left-width: 6px;
  background: #fafaf8;
  transform: rotate(-0.5deg);
}
.rail-h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.rail-list { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.rail-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1.5px solid #cdcdc8;
  transition: transform 0.12s steps(2);
}
.rail-link:hover,
.rail-link:focus-visible {
  background: #1a1a1a;
  color: #fafaf8;
  border-bottom-color: #1a1a1a;
  transform: translateX(3px);
}

.rail-list li { animation: rise 0.3s steps(3) both; }
.rail-list li:nth-child(1) { animation-delay: 0.02s; }
.rail-list li:nth-child(2) { animation-delay: 0.06s; }
.rail-list li:nth-child(3) { animation-delay: 0.1s; }
.rail-list li:nth-child(4) { animation-delay: 0.14s; }
.rail-list li:nth-child(5) { animation-delay: 0.18s; }
.rail-list li:nth-child(6) { animation-delay: 0.22s; }
.rail-list li:nth-child(7) { animation-delay: 0.26s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 正文 ---------- */
.prose { min-width: 0; max-width: 720px; }

.prose > section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 2px dashed #cdcdc8;
  scroll-margin-top: 104px;
}
.prose > section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.6vw, 29px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.prose h2::after {
  content: '';
  display: block;
  width: 62px;
  height: 4px;
  margin-top: 12px;
  background: #1a1a1a;
}
.prose h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.prose h3::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: #1a1a1a;
  transform: rotate(8deg);
}

.subtitle {
  margin: 0 0 18px;
  padding-left: 11px;
  font-size: 16px;
  line-height: 1.55;
  font-style: italic;
  color: #4a4a4a;
  border-left: 3px solid #cdcdc8;
}

.prose p { font-size: 17px; }

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: none;
}
.prose ul li,
.prose ol li {
  position: relative;
  margin-bottom: 8px;
  font-size: 17px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: #4a4a4a;
  transform: rotate(12deg);
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 16px;
  background: #f1f1ec;
  border-left: 5px solid #1a1a1a;
  transform: rotate(-0.35deg);
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { background: #1a1a1a; color: #fafaf8; text-decoration-color: #fafaf8; }

.prose strong { font-weight: 700; }

.prose figure { margin: 0 0 18px; }
.prose figcaption { font-size: 16px; color: #4a4a4a; font-style: italic; }

div.hit { outline: 3px dashed #1a1a1a; outline-offset: 8px; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 3px solid #1a1a1a;
  background: #fafaf8;
  background-image: inherit;
  padding: 34px 18px 22px;
}
.foot-grid {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.foot-col { min-width: 0; }

.foot-addr {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  transform: rotate(-1deg);
  display: inline-block;
}
.foot-line {
  display: block;
  width: 74px;
  height: 4px;
  background: #1a1a1a;
  transform: rotate(-1.5deg);
}

.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-links li { min-width: 0; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1.5px solid #cdcdc8;
  transition: transform 0.12s steps(2);
}
.foot-links a:hover,
.foot-links a:focus-visible {
  border-bottom-color: #1a1a1a;
  transform: translateY(-2px);
}

.foot-links li { animation: rise 0.3s steps(3) both; }
.foot-links li:nth-child(2) { animation-delay: 0.05s; }
.foot-links li:nth-child(3) { animation-delay: 0.1s; }
.foot-links li:nth-child(4) { animation-delay: 0.15s; }

.sub {
  display: flex;
  align-items: stretch;
  min-height: 44px;
  border: 1.5px solid #1a1a1a;
  background: #fafaf8;
}
.sub-in {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  color: #1a1a1a;
  background: transparent;
  border: 0;
  outline-offset: -3px;
}
.sub-go {
  flex: 0 0 auto;
  min-width: 70px;
  min-height: 42px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fafaf8;
  background: #1a1a1a;
  border: 0;
  cursor: pointer;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: 1120px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px dashed #8e8e88;
}
.copy {
  margin: 0;
  font-size: 16px;
  color: #4a4a4a;
  letter-spacing: 0.01em;
}

/* ---------- 断点 ---------- */
@media (max-width: 559px) {
  .find { order: 3; flex: 1 1 100%; margin-left: 0; }
  .hero { padding: 38px 16px 56px; }
}

@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.1fr 1fr 1fr; align-items: start; gap: 32px; }
}

@media (min-width: 860px) {
  .masthead { padding: 12px 26px; gap: 18px; }
  .dock { display: flex; flex: 1 1 auto; }
  .dock > summary { display: none; }
  details.dock > .dock-menu,
  details:not([open]).dock > .dock-menu {
    position: static;
    display: flex;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  .find { flex: 0 1 260px; margin-left: auto; }
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 44px;
    padding: 44px 26px 72px;
  }
  .rail { position: sticky; top: 92px; }
  .prose { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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