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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: rgba(0, 0, 0, 0.16);
  --line-inv: rgba(255, 255, 255, 0.24);
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --r: 18px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans Hebrew', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

a:focus-visible,
a:hover:focus {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ---------- 顶部：品牌行 + 菜单行 ---------- */

.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem var(--pad) 0;
  border-bottom: 1px solid var(--line-inv);
}

.brand-row {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0;
  color: var(--paper);
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.menu {
  padding: 0.2rem 0 0.45rem;
}

.menu p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  margin: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 100vh;
  padding: clamp(3rem, 8vw, 8rem) var(--pad);
  background: var(--ink);
  color: var(--paper);
}

.hero-fig {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #141414;
}

.hero-fig--empty {
  background: #141414;
}

.hero-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero-desc {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.85rem 2.4rem;
  border: 2px solid var(--paper);
  border-radius: var(--r);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 主体：左栏目录 + 右栏正文 ---------- */

.board {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) var(--pad);
}

.rail {
  position: sticky;
  top: 8rem;
  align-self: start;
  border-top: 3px solid var(--ink);
  padding-top: 0.9rem;
}

.rail-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.rail-list {
  display: flex;
  flex-direction: column;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  padding-left: 0.6rem;
}

.flow {
  min-width: 0;
}

.flow section {
  scroll-margin-top: 9rem;
}

.flow > section {
  padding: clamp(2rem, 4vw, 3.4rem) 0;
  border-top: 1px solid var(--line);
}

.flow > section:first-child {
  padding-top: 0;
  border-top: 0;
}

.flow h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.flow h2 > span {
  display: inline-block;
  padding-bottom: 0.1em;
  border-bottom: 7px solid var(--ink);
}

.flow h3 {
  margin: 2.2rem 0 0.8rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.flow h3 > span {
  display: inline-block;
  padding-bottom: 0.12em;
  border-bottom: 3px solid var(--ink);
}

.flow p {
  margin: 0 0 1.15rem;
  max-width: 64ch;
  line-height: 1.78;
}

.flow ul,
.flow ol {
  margin: 0 0 1.4rem;
  padding-left: 1.35rem;
  max-width: 64ch;
}

.flow li {
  margin: 0 0 0.55rem;
  line-height: 1.72;
}

.flow li::marker {
  font-weight: 700;
}

.flow a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1px;
}

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

.flow figure {
  margin: 0 0 1.6rem;
  border-radius: var(--r);
  border-bottom: 5px solid var(--ink);
  overflow: hidden;
}

.flow figure img {
  display: block;
  width: 100%;
  border-radius: var(--r);
}

.flow blockquote {
  margin: 0 0 1.6rem;
  padding: 1.1rem 1.35rem;
  background: #f4f4f4;
  border-left: 5px solid var(--ink);
  border-radius: 0 var(--r) var(--r) 0;
}

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

.flow table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6rem;
  font-size: 1rem;
}

.flow th,
.flow td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.flow th {
  font-weight: 800;
  border-bottom: 2px solid var(--ink);
}

.flow strong {
  font-weight: 800;
}

/* ---------- 页脚 ---------- */

.site-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 6rem) var(--pad);
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 clamp(1.4rem, 4vw, 2.6rem);
}

.foot-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 6px solid var(--paper);
  padding-bottom: 0.06em;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.foot-brand {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.foot-col {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

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

.foot-copy {
  grid-column: 1 / -1;
  margin-top: clamp(1.8rem, 5vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-inv);
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
}

/* ---------- 滚动显现 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  .menu p {
    gap: 0.2rem 1rem;
  }

  .menu a {
    font-size: 0.95rem;
    min-height: 44px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: clamp(1.8rem, 7vw, 3rem) var(--pad) clamp(2.6rem, 8vw, 4rem);
    gap: 1.6rem;
  }

  .hero-copy {
    order: -1;
    gap: 1.2rem;
  }

  .hero-fig {
    aspect-ratio: 16 / 11;
    max-height: 44vh;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 4.4rem);
  }

  .board {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 2.4rem;
  }

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

  .rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 1rem;
  }

  .rail-list a {
    border-bottom: 0;
    padding-right: 0.15rem;
  }

  .rail-list a:hover,
  .rail-list a:focus-visible {
    padding-left: 0;
    padding-right: 0.5rem;
  }

  .flow section {
    scroll-margin-top: 11rem;
  }

  .site-foot {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .foot-cta a {
    font-size: clamp(1.9rem, 11vw, 2.8rem);
  }

  .site-foot {
    grid-template-columns: 1fr;
  }

  .foot-brand {
    border-bottom: 1px solid var(--line-inv);
    padding-bottom: 0.8rem;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .menu a,
  .hero-cta,
  .rail-list a,
  .foot-cta a,
  .foot-col a {
    transition: none;
  }
}

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