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

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --paper: #eaf5ff;
  --white: #ffffff;
  --bd: 3px solid #000000;
  --sh: 5px 5px 0 #000000;
  --sh-s: 3px 3px 0 #000000;
  --r: 10px;
}

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

body {
  margin: 0;
  font-family: 'Noto Sans Hebrew', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0, 0, 0, 0.13) 1.1px, transparent 1.2px);
  background-size: 20px 20px;
}

body.menu-open { overflow: hidden; }

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

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

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* 顶部 */
.hd {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--blue);
  border-bottom: var(--bd);
}

.hd-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 14px;
}

.hd-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hd-side-b { justify-content: flex-end; }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh-s);
}

.brand-sm { font-size: 18px; min-height: 40px; padding: 3px 10px; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh-s);
  cursor: pointer;
  flex: 0 0 auto;
}

.burger span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
}

.burger:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.hd-nav { min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border: 3px solid transparent;
  border-radius: 8px;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--white);
  border-color: var(--ink);
  box-shadow: var(--sh-s);
}

.search {
  display: flex;
  align-items: stretch;
  flex: 0 1 auto;
  min-width: 0;
}

.search-in {
  width: 118px;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  font: inherit;
  font-size: 16px;
  background: var(--white);
  border: var(--bd);
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.search-btn {
  min-height: 40px;
  padding: 6px 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  background: var(--red);
  border: var(--bd);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.subbar {
  background: var(--ink);
  overflow-x: auto;
}

.subbar-list {
  display: flex;
  gap: 6px;
  width: max-content;
  margin: 0 auto;
  padding: 6px 12px;
  list-style: none;
}

.subbar-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.subbar-list a:hover,
.subbar-list a:focus-visible {
  background: var(--red);
  border-color: var(--white);
}

/* 全屏菜单 */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow-y: auto;
  background-color: var(--blue);
  background-image: radial-gradient(rgba(0, 0, 0, 0.18) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.overlay.is-open { visibility: visible; opacity: 1; }

.overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overlay-close {
  min-height: 44px;
  padding: 6px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  background: var(--white);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh-s);
  cursor: pointer;
}

.overlay-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.overlay-list a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.overlay-list a:hover { background: var(--red); color: var(--white); }

/* 首屏 */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 44px 18px 48px;
  text-align: center;
  background-color: var(--blue);
  background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1.4px, transparent 1.5px);
  background-size: 24px 24px;
  border-bottom: var(--bd);
  overflow: hidden;
}

.hero-in { width: 100%; max-width: 900px; }

.hero-h1 {
  margin: 0 auto;
  max-width: 16em;
  font-size: clamp(32px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow: 4px 4px 0 var(--white);
}

.hero-lead {
  max-width: 640px;
  margin: 20px auto 0;
  padding: 12px 18px;
  font-size: 17px;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.88);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  background: var(--white);
  color: var(--ink);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh);
  cursor: pointer;
}

.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.btn-red { background: var(--red); color: var(--white); }
.btn-ghost { background: var(--white); }

.hero-media {
  width: 100%;
  max-width: 980px;
  margin-top: auto;
  padding-top: 12px;
  will-change: transform;
}

.hero-media img {
  display: block;
  width: 100%;
  border: var(--bd);
  border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: var(--sh);
  background: var(--white);
}

/* 主体 */
main article[id] { scroll-margin-top: 132px; }

.wrap {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 16px 66px;
}

.side {
  position: sticky;
  top: 126px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.side-h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 2px 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

.side-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.side-list a:hover { background: var(--blue); }

.content { min-width: 0; }

.prose {
  padding: clamp(18px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh);
  counter-reset: sec;
}

.prose > article { counter-increment: sec; }

.prose > article + article {
  margin-top: 46px;
  padding-top: 36px;
  border-top: 3px dashed var(--ink);
}

.prose h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.prose > article > h2::before {
  content: counter(sec, decimal-leading-zero);
  display: inline-block;
  margin-right: 10px;
  padding: 1px 8px;
  font-size: 14px;
  font-weight: 800;
  vertical-align: middle;
  background: var(--blue);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--sh-s);
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.prose p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.8;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--red);
  font-weight: 700;
}

.prose ul,
.prose ol { margin: 0 0 18px; padding-left: 24px; }

.prose li { margin-bottom: 8px; line-height: 1.75; }

.prose img {
  display: block;
  margin: 22px auto;
  border: var(--bd);
  border-radius: 8px;
  box-shadow: var(--sh);
  background: var(--white);
}

.prose blockquote {
  margin: 22px 0;
  padding: 12px 18px;
  background: var(--white);
  border: var(--bd);
  border-left-width: 10px;
  border-left-color: var(--red);
  border-radius: var(--r);
}

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

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border-collapse: collapse;
  border: var(--bd);
  background: var(--white);
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 2px solid var(--ink);
  text-align: left;
  font-size: 16px;
}

.prose th { background: var(--blue); font-weight: 800; }

.prose hr {
  margin: 30px 0;
  border: 0;
  border-top: 3px dashed var(--ink);
}

/* 页脚 */
.ft {
  margin-top: 20px;
  padding: 34px 16px 20px;
  color: var(--white);
  background: var(--ink);
  border-top: var(--bd);
}

.ft-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 28px;
}

.ft-form { display: flex; flex-wrap: wrap; gap: 10px; }

.ft-mail {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  background: var(--white);
  border: var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh-s);
}

.ft-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 3px solid var(--white);
}

.ft-cols dl { margin: 0; }

.ft-cols dt {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.ft-cols dd { margin: 0; }

.ft-cols dd a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
}

.ft-cols dd a:hover { color: var(--red); text-decoration: underline; text-decoration-thickness: 3px; }

.ft-bot {
  max-width: 1100px;
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 3px solid var(--white);
  font-size: 16px;
}

.ft-bot p { margin: 0; }

/* 自适应 */
@media (max-width: 1120px) {
  .hd-nav { display: none; }
}

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; padding-top: 26px; }
  .side { position: static; }
  .side-list { grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); }
  .ft-top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hd-bar { padding: 8px 10px; gap: 8px; }
  .brand { font-size: 18px; padding: 3px 9px; }
  .search-in { width: 92px; font-size: 16px; }
  .search-btn { padding: 6px 10px; }
  .hero { padding: 32px 14px 40px; }
  .hero-acts { margin: 20px 0 26px; }
  .ft-cols { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .overlay { transition: none; }
  .hero-media { transform: none !important; }
}

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