:root{
  --ink:#1f1f1f;
  --paper:#ffffff;
  --mist:#f5f5f5;
  --mute:#5c5c5c;
  --line:rgba(31,31,31,.14);
  --line-soft:rgba(31,31,31,.075);
  --e1:0 1px 2px rgba(31,31,31,.07);
  --e2:0 4px 12px rgba(31,31,31,.08);
  --e3:0 12px 28px rgba(31,31,31,.10);
  --e4:0 24px 56px rgba(31,31,31,.16);
  --r:10px;
  --bar:88px;
}

*{box-sizing:border-box}

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

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

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(58% 44% at 84% -4%, rgba(31,31,31,.07), transparent 72%),
    radial-gradient(52% 42% at 6% 34%, rgba(31,31,31,.055), transparent 74%),
    linear-gradient(180deg,#ffffff 0%,#f5f5f5 54%,#ffffff 100%);
}

a{color:var(--ink);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}

:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:3px;
  border-radius:6px;
}

main div[id],
#home,#about{
  scroll-margin-top:calc(var(--bar) + 16px);
}

/* ---------- 顶栏 ---------- */

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:10px clamp(12px,3vw,28px);
  background:rgba(255,255,255,.74);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid var(--line-soft);
  box-shadow:var(--e1);
}

.brand{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--paper);
  box-shadow:var(--e2);
  overflow:hidden;
}
.brand:hover{text-decoration:none;box-shadow:var(--e3)}
.brand-mark{width:26px;height:26px;object-fit:contain;display:block}
.brand-dot{width:14px;height:14px;border-radius:4px;background:var(--ink);display:block}

.menu-shell{
  position:relative;
  margin-left:auto;
  flex:0 0 auto;
}

.menu-btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 18px;
  list-style:none;
  cursor:pointer;
  font-size:16px;
  font-weight:500;
  letter-spacing:.02em;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:var(--e2);
  transition:box-shadow .2s ease,background .2s ease;
  user-select:none;
}
.menu-btn::-webkit-details-marker{display:none}
.menu-btn::after{
  content:"";
  width:7px;
  height:7px;
  margin-top:-3px;
  border-right:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  transform:rotate(45deg);
  transition:transform .22s ease;
}
.menu-shell[open] > .menu-btn{background:var(--mist);box-shadow:var(--e1)}
.menu-shell[open] > .menu-btn::after{transform:rotate(-135deg);margin-top:3px}

.pillbar{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  z-index:50;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  width:min(330px,calc(100vw - 26px));
  margin:0;
  padding:12px;
  list-style:none;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  box-shadow:var(--e4);
}
.pillbar li{display:flex}

.pill{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 15px;
  font-size:16px;
  font-weight:500;
  line-height:1.3;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:var(--e1);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.pill:hover{
  text-decoration:none;
  background:var(--mist);
  box-shadow:var(--e2);
  transform:translateY(-1px);
}

.contact{
  flex:0 0 auto;
  color:#fff;
  background:var(--ink);
  border-color:var(--ink);
  box-shadow:var(--e2);
  padding:8px 18px;
}
.contact:hover{background:#000;color:#fff;box-shadow:var(--e3)}

/* ---------- 首屏 ---------- */

.hero{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.06fr .94fr;
  align-items:center;
  gap:clamp(18px,4vw,56px);
  min-height:min(70vh,640px);
  padding:clamp(22px,4vw,56px) clamp(16px,4vw,48px);
}

.hero-art{
  position:relative;
  z-index:2;
  margin:0;
  aspect-ratio:4 / 3;
  max-height:60vh;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--mist);
  box-shadow:var(--e4);
  will-change:transform;
}

.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:0;
  transition:opacity .9s ease;
}
.hero-img.is-on{opacity:1}
.hero-img:only-child{opacity:1}

.del-art{
  display:grid;
  place-items:center;
  background:linear-gradient(160deg,#ffffff,#eeeeee 60%,#f7f7f7);
}
.del-art .stack{
  position:absolute;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.7);
  box-shadow:var(--e3);
}
.del-art .s1{width:54%;height:40%;transform:translate(-16%,-22%) rotate(-5deg)}
.del-art .s2{width:46%;height:34%;transform:translate(10%,6%) rotate(4deg);background:rgba(31,31,31,.06)}
.del-art .s3{width:34%;height:24%;transform:translate(-6%,34%) rotate(-2deg);background:#fff}

.hero-copy{
  position:relative;
  z-index:3;
  text-align:right;
}

.hero-copy h1{
  margin:0;
  font-size:clamp(28px,5vw,56px);
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.012em;
  text-wrap:balance;
  text-shadow:0 1px 0 #fff,0 10px 24px rgba(31,31,31,.08);
}

/* ---------- 主体 ---------- */

.board{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 258px;
  align-items:start;
  gap:clamp(20px,3.4vw,40px);
  max-width:1180px;
  margin:0 auto;
  padding:clamp(26px,4vw,60px) clamp(16px,4vw,48px) clamp(40px,6vw,80px);
}

.board-main{min-width:0}

.board-head{
  position:relative;
  margin:0 0 clamp(18px,3vw,30px);
  padding-left:16px;
}
.board-head::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  bottom:12px;
  width:4px;
  border-radius:4px;
  background:var(--ink);
}
.board-head h2{
  margin:0 0 6px;
  font-size:clamp(21px,2.6vw,28px);
  font-weight:700;
  line-height:1.32;
  letter-spacing:-.008em;
}
.subtitle{
  margin:0;
  font-size:16px;
  line-height:1.7;
  color:var(--mute);
}

/* 正文分节：描边面板 + 错层投影 */

.board-main > div[id]{
  position:relative;
  z-index:1;
  margin:0 0 clamp(16px,2.4vw,24px);
  padding:clamp(16px,3vw,30px);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:rgba(255,255,255,.82);
}
.board-main > div[id]::before{
  content:"";
  position:absolute;
  inset:9px -7px -9px 7px;
  z-index:-1;
  border:1px solid var(--line-soft);
  border-radius:var(--r);
  background:rgba(255,255,255,.55);
  box-shadow:var(--e2);
}
.board-main > div[id] > *:last-child{margin-bottom:0}

.board-main h2{
  margin:0 0 12px;
  font-size:clamp(20px,2.4vw,26px);
  font-weight:700;
  line-height:1.34;
}
.board-main h2 + p{color:#4a4a4a}
.board-main h3{
  margin:24px 0 8px;
  font-size:18px;
  font-weight:700;
  line-height:1.4;
}
.board-main p{margin:0 0 14px}
.board-main ul,
.board-main ol{margin:0 0 16px;padding-left:1.25em}
.board-main li{margin:0 0 8px}
.board-main a{
  text-decoration:underline;
  text-decoration-color:rgba(31,31,31,.32);
  text-underline-offset:3px;
}
.board-main a:hover{text-decoration-color:var(--ink)}

.board-main figure{
  margin:18px 0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--mist);
}
.board-main figure img{width:100%}
.board-main figcaption{
  margin-top:8px;
  font-size:16px;
  color:var(--mute);
}
.board-main aside{
  margin:18px 0;
  padding:14px 16px;
  border-left:3px solid var(--ink);
  border-radius:0 var(--r) var(--r) 0;
  background:var(--mist);
}
.board-main img{
  max-width:100%;
  height:auto;
  display:block;
  border-radius:8px;
}
.board-main table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 16px;
  font-size:16px;
}
.board-main th,
.board-main td{
  border:1px solid var(--line);
  padding:8px 10px;
  text-align:left;
  vertical-align:top;
}
.board-main th{background:var(--mist);font-weight:700}
.board-main blockquote{
  margin:18px 0;
  padding:10px 16px;
  border-left:3px solid var(--line);
  color:var(--mute);
}

/* ---------- 侧栏 ---------- */

.board-side{
  position:sticky;
  top:calc(var(--bar) + 8px);
  z-index:4;
  min-width:0;
}

.side-card{
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:var(--e3);
}

.side-title{
  margin:0 0 10px;
  font-size:16px;
  font-weight:500;
  letter-spacing:.14em;
  color:var(--mute);
}

.side-list{
  margin:0;
  padding:0;
  list-style:none;
}
.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  border-left:2px solid transparent;
  border-radius:8px;
  font-size:16px;
  line-height:1.5;
  transition:background .18s ease,border-color .18s ease;
}
.side-list a:hover{
  background:var(--mist);
  border-left-color:var(--ink);
  text-decoration:none;
}

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

.foot{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px 20px;
  padding:20px clamp(16px,4vw,48px);
  border-top:1px solid var(--line);
  background:rgba(245,245,245,.9);
}

.foot-id{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  color:var(--mute);
}
.foot-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:#fff}
.foot-mark img{width:18px;height:18px;object-fit:contain;display:block}

.foot-links{
  display:flex;
  flex-wrap:wrap;
  gap:0 16px;
  min-width:0;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:var(--ink);
}

/* ---------- 响应式 ---------- */

@media (max-width:900px){
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:16px;
    gap:16px;
  }
  .hero-art{max-height:none;aspect-ratio:16 / 10}
  .hero-copy h1{font-size:clamp(26px,7.6vw,40px)}
  .board{grid-template-columns:1fr}
  .board-side{position:static;top:auto;order:2}
  .side-card{padding:14px}
  .side-list{display:flex;flex-wrap:wrap;gap:6px}
  .side-list li{flex:1 1 44%}
  .side-list a{border:1px solid var(--line-soft);border-left-width:1px;border-radius:999px;padding:8px 12px;background:#fff}
  .board-main > div[id]::before{inset:7px -4px -7px 4px}
}

@media (max-width:560px){
  body{font-size:16px}
  .topbar{gap:8px;padding:8px 12px}
  .brand{width:42px;height:42px}
  .pill{padding:8px 12px}
  .contact{padding:8px 14px}
  .board-main > div[id]{padding:14px}
  .foot{flex-direction:column;align-items:flex-start}
  .foot-links{gap:0 14px}
}

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

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