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

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

:root {
  --ink: #1f1f1f;
  --ink-2: #5c5c5c;
  --line: rgba(31, 31, 31, 0.12);
  --bg: #f5f5f5;
  --card: rgba(255, 255, 255, 0.74);
  --rad: 18px;
}

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

body {
  margin: 0;
  font-family: 'Noto Sans Hebrew', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(31, 31, 31, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: hidden;
}

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

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

/* ===== 左侧胶囊竖导航 ===== */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 108px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 10px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--line);
  overflow: visible;
}

.mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
  overflow: hidden;
  flex: none;
  transition: transform 0.2s ease;
}

.mark:hover { transform: rotate(-6deg); }
.mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

.navbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.navbox > summary {
  list-style: none;
  cursor: pointer;
  width: 88px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 16px;
  line-height: 1;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbox > summary::-webkit-details-marker { display: none; }
.navbox > summary:hover { background: var(--ink); color: #fff; }

.pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 88px;
}

.pills a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 8px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pills a:hover { background: var(--ink); color: #fff; transform: translateX(3px); }

@media (min-width: 901px) {
  .navbox:not([open]) > .pills { display: flex; }
}

/* ===== 主体骨架 ===== */
main { margin-left: 108px; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 42px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 45vh;
  padding: 52px 18px 46px;
  margin: 0 -28px 26px;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(160deg, #ffffff 0%, #f5f5f5 62%, #efefef 100%);
}

.mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(31, 31, 31, 0.14) 1px, transparent 1px);
  background-size: 17px 17px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 76%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 20px 24px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 22px 44px rgba(0, 0, 0, 0.06);
}

.hero h1 {
  margin: 0;
  font-size: clamp(27px, 4.4vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.collage { position: absolute; inset: 0; pointer-events: none; }

.shot {
  position: absolute;
  width: min(26vw, 250px);
  height: auto;
  border-radius: var(--rad);
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.shot0 { left: 2%; top: 13%; transform: rotate(-5deg); }
.shot1 { right: 2%; bottom: 11%; transform: rotate(4deg); }

/* ===== 内容区 ===== */
.board {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.side {
  position: sticky;
  top: 22px;
  padding: 16px;
  border-radius: var(--rad);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.side h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.side .subtitle {
  margin: 3px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.side-list a:hover { background: rgba(31, 31, 31, 0.07); transform: translateX(2px); }

/* ===== Bento 卡片网格 ===== */
.prose {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 16px;
}

.prose > * {
  min-width: 0;
  padding: 22px 22px 20px;
  border-radius: var(--rad);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 16px 34px rgba(0, 0, 0, 0.045);
  scroll-margin-top: 96px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.prose > *:hover {
  transform: scale(1.012);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08), 0 22px 44px rgba(0, 0, 0, 0.07);
}

.prose > *:nth-child(6n + 1) { grid-column: span 4; }
.prose > *:nth-child(6n + 2) { grid-column: span 2; }
.prose > *:nth-child(6n + 3) { grid-column: span 2; }
.prose > *:nth-child(6n + 4) { grid-column: span 2; }
.prose > *:nth-child(6n + 5) { grid-column: span 2; }
.prose > *:nth-child(6n) { grid-column: span 4; }

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.prose h3 {
  margin: 18px 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }

.prose .subtitle,
.prose p.subtitle {
  margin: -4px 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.prose ul, .prose ol { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin: 0 0 6px; }

.prose a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose blockquote {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 12px 12px 0;
}

.prose code {
  font-size: 15px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(31, 31, 31, 0.07);
}

/* ===== 页脚 ===== */
.foot { margin-left: 108px; }

.foot-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 34px;
  border-top: 1px solid var(--line);
}

.foot dl { margin: 0; min-width: 120px; }

.foot dt {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.foot dd { margin: 0; font-size: 15px; line-height: 1.9; }

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-right: 12px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease;
}

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

.copy {
  margin: 0 0 0 auto;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 40px;
}

/* ===== 动效 ===== */
.reveal { opacity: 0; transform: translateY(16px); }

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .prose > *:hover, .mark:hover, .pills a:hover, .side-list a:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ===== 断点 ===== */
@media (max-width: 1080px) {
  .board { grid-template-columns: 186px minmax(0, 1fr); }
  .shot { width: min(24vw, 190px); }
}

@media (max-width: 900px) {
  body { font-size: 16px; }

  .rail {
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mark { width: 42px; height: 42px; border-radius: 13px; }

  .navbox { width: auto; align-items: flex-end; }

  .navbox > summary {
    width: auto;
    padding: 0 18px;
    min-height: 42px;
    font-size: 16px;
  }

  .pills {
    position: absolute;
    right: 12px;
    top: 62px;
    width: 210px;
    padding: 10px;
    gap: 6px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  }

  .pills a {
    justify-content: flex-start;
    text-align: left;
    font-size: 16px;
    min-height: 44px;
    padding: 8px 14px;
  }

  main { margin-left: 0; padding-top: 64px; }
  .foot { margin-left: 0; }

  .wrap { padding: 0 15px 32px; }

  .hero {
    margin: 0 -15px 20px;
    min-height: 0;
    padding: 34px 14px 30px;
    border-radius: 0 0 24px 24px;
  }

  .collage { display: none; }

  .hero-in { padding: 18px 18px 20px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 36px); }
  .lead { font-size: 16px; }

  .board { grid-template-columns: 1fr; gap: 16px; }
  .side { position: static; }

  .prose { grid-template-columns: 1fr; }
  .prose > *:nth-child(n) { grid-column: 1 / -1; }
  .prose > * { padding: 18px 16px; scroll-margin-top: 76px; }

  .foot-in { flex-direction: column; padding: 20px 15px 40px; gap: 8px; }
  .copy { margin-left: 0; line-height: 1.6; }
  .foot dl { min-width: 0; }
}

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