:root{
  --ink:#000000;
  --paper:#ffffff;
  --mute:#4a4a4a;
  --rail:15rem;
  --radius:28px;
}
*{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,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.7;
  font-weight:400;
  letter-spacing:.01em;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
h1,h2,h3{line-height:1.22;letter-spacing:-.02em;font-weight:700;margin:0}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* ---------- 页头：移动端顶部条 / 桌面左侧固定竖排 ---------- */
.site-head{
  position:sticky;
  top:0;
  z-index:30;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-areas:"brand contact" "nav nav";
  align-items:center;
  gap:.4rem 1rem;
  padding:.7rem 1rem;
  background:var(--paper);
  border-bottom:1px solid var(--ink);
}
.brand{
  grid-area:brand;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1.5px solid var(--ink);
  border-radius:50%;
  font-weight:700;
  font-size:.9rem;
  letter-spacing:0;
  transition:background .2s ease,color .2s ease;
}
.brand:hover{background:var(--ink);color:var(--paper)}
.nav{grid-area:nav;min-width:0}
.nav p{
  display:flex;
  gap:.25rem 1.1rem;
  margin:0;
  overflow-x:auto;
  scrollbar-width:none;
}
.nav p::-webkit-scrollbar{display:none}
.nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .1rem;
  font-size:.92rem;
  white-space:nowrap;
  border-bottom:1.5px solid transparent;
  transition:border-color .2s ease;
}
.nav a:hover,.nav a:focus-visible{border-bottom-color:var(--ink)}
.head-contact{
  grid-area:contact;
  justify-self:end;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .95rem;
  border:1.5px solid var(--ink);
  border-radius:999px;
  font-size:.88rem;
  transition:background .2s ease,color .2s ease;
}
.head-contact:hover{background:var(--ink);color:var(--paper)}

@media (min-width:1000px){
  body{padding-left:var(--rail)}
  .site-head{
    position:fixed;
    inset:0 auto 0 0;
    width:var(--rail);
    grid-template-columns:1fr;
    grid-template-areas:"brand" "nav" "contact";
    align-content:start;
    gap:2.25rem;
    padding:2rem 1.5rem;
    border-bottom:0;
    border-right:1px solid var(--ink);
    overflow-y:auto;
  }
  .brand{width:52px;height:52px;font-size:1rem}
  .nav p{flex-direction:column;gap:0;overflow:visible}
  .nav a{min-height:42px;font-size:.95rem;padding:0}
  .head-contact{justify-self:start;padding:0 1.1rem}
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:1.5rem;
  padding:2rem 1.15rem 2.5rem;
  border-bottom:1px solid var(--ink);
  align-items:center;
}
.hero-bg{
  position:absolute;
  right:-.4rem;
  bottom:-1.4rem;
  font-size:clamp(3.5rem,17vw,11rem);
  font-weight:700;
  letter-spacing:-.06em;
  line-height:1;
  white-space:nowrap;
  opacity:.07;
  pointer-events:none;
}
.hero-copy{position:relative;z-index:1;text-align:center;max-width:38rem;margin:0 auto;width:100%}
.hero-copy h1{font-size:clamp(1.9rem,6.4vw,3.4rem)}
.hero-desc{margin:1rem auto 1.5rem;max-width:32rem;color:var(--mute)}
.hero-go{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 1.65rem;
  border:1.5px solid var(--ink);
  border-radius:999px;
  font-weight:500;
  transition:background .2s ease,color .2s ease;
}
.hero-go:hover{background:var(--ink);color:var(--paper)}
.hero-media img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border:1px solid var(--ink);
  border-radius:var(--radius);
}
@media (min-width:760px){
  .hero{grid-template-columns:1fr 1fr;gap:2rem;min-height:45vh;padding:2.5rem 2rem}
}

/* ---------- 主体网格 ---------- */
.main{
  display:grid;
  gap:2rem;
  max-width:1200px;
  margin:0 auto;
  padding:2rem 1.15rem 3rem;
}
@media (min-width:1000px){
  .main{grid-template-columns:minmax(0,1fr) 16rem;align-items:start;padding:2.5rem 2rem 4rem}
}

/* ---------- 正文 ---------- */
.prose{min-width:0}
.prose > article{
  border:1px solid var(--ink);
  border-radius:var(--radius);
  padding:1.6rem 1.15rem;
  margin-bottom:1.6rem;
  scroll-margin-top:9.5rem;
  transition:transform .22s ease,border-color .22s ease;
}
.prose > article.in:hover{transform:translateY(-2px)}
@media (min-width:1000px){
  .prose > article{padding:2.6rem 2rem;margin-bottom:2rem;scroll-margin-top:2rem}
}
.prose h2{font-size:clamp(1.35rem,3vw,1.85rem);margin:0 0 .7rem}
.prose h3{font-size:1.14rem;margin:1.75rem 0 .5rem}
.prose hr{height:0;border:0;border-top:1px solid var(--ink);margin:0 0 1.2rem}
.prose p{margin:0 0 1rem}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 1rem;padding-left:1.15rem}
.prose li{margin-bottom:.4rem}
.prose a{border-bottom:1px solid var(--ink)}
.prose a:hover{border-bottom-width:2px}
.prose img{border-radius:20px;margin:1.2rem 0}
.prose strong{font-weight:700}
.prose blockquote{margin:1.5rem 0;padding-left:1rem;border-left:3px solid var(--ink);color:var(--mute)}
.prose table{width:100%;border-collapse:collapse;margin:1.2rem 0;font-size:.95rem;display:block;overflow-x:auto}
.prose th,.prose td{border:1px solid var(--ink);padding:.55rem .7rem;text-align:left}

/* ---------- 侧栏 ---------- */
.aside{
  border-top:1.5px solid var(--ink);
  padding-top:1rem;
  font-size:.92rem;
}
.aside h2{font-size:.8rem;letter-spacing:.14em}
.aside hr{height:0;border:0;border-top:1px solid var(--ink);margin:.65rem 0 .8rem}
.aside-nav p{display:flex;flex-direction:column;margin:0 0 1rem}
.aside-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  font-size:.9rem;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease;
}
.aside-nav a:hover{border-bottom-color:var(--ink)}
.to-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:.85rem;
  border-bottom:1px solid var(--ink);
}
@media (min-width:1000px){
  .aside{position:sticky;top:2rem}
}

/* ---------- 页脚 ---------- */
.site-foot{
  display:grid;
  gap:1.75rem;
  padding:2rem 1.15rem 2.5rem;
  border-top:1.5px solid var(--ink);
}
.foot-top{display:grid;gap:1.5rem}
@media (min-width:760px){
  .foot-top{grid-template-columns:1fr 1.5fr;gap:2rem}
}
.foot-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1.5px solid var(--ink);
  border-radius:50%;
  font-weight:700;
  font-size:.85rem;
}
.foot-mark:hover{background:var(--ink);color:var(--paper)}
.foot-brand-name{margin:.7rem 0 0;font-weight:700;letter-spacing:-.01em}
.foot-brand-desc{margin:.4rem 0 0;max-width:26rem;color:var(--mute);font-size:.9rem}
.foot-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.foot-cols dl{margin:0}
.foot-cols dt{
  font-size:.78rem;
  letter-spacing:.12em;
  border-bottom:1px solid var(--ink);
  padding-bottom:.4rem;
  margin-bottom:.4rem;
}
.foot-cols dd{margin:0}
.foot-cols a{display:inline-flex;align-items:center;min-height:40px;font-size:.875rem}
.foot-cols a:hover{text-decoration:underline;text-underline-offset:3px}
.foot-form{
  display:grid;
  gap:.55rem;
  max-width:34rem;
  width:100%;
  border:1px solid var(--ink);
  border-radius:var(--radius);
  padding:1.15rem;
}
.foot-form label{font-size:.78rem;letter-spacing:.12em}
.foot-form .row{display:flex;gap:.55rem;flex-wrap:wrap}
.foot-form input{
  flex:1 1 10rem;
  min-height:44px;
  padding:0 1.05rem;
  border:1px solid var(--ink);
  border-radius:999px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:.95rem;
}
.foot-form button{
  min-height:44px;
  padding:0 1.35rem;
  border:1px solid var(--ink);
  border-radius:999px;
  background:var(--ink);
  color:var(--paper);
  font:inherit;
  font-size:.95rem;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}
.foot-form button:hover{background:var(--paper);color:var(--ink)}
.foot-copy{margin:0;text-align:center;font-size:.8rem;color:var(--mute)}

/* ---------- 入场动效 ---------- */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .55s ease,transform .55s ease}
.reveal.in{opacity:1;transform:none}
.prose > article.reveal.in:hover{transform:translateY(-2px)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .prose > article{transition:none}
}

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