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

:root {
  --sky: #c8e0f4;
  --rose: #f5e0e8;
  --ink: #171f26;
  --bg: #e8eff6;
  --paper: #f1f6fb;
  --muted: #4d5f6d;
  --line: rgba(23, 31, 38, 0.13);
  --sh-out: -6px -6px 14px rgba(255, 255, 255, 0.95), 6px 6px 16px rgba(23, 31, 38, 0.12);
  --sh-in: inset 4px 4px 9px rgba(23, 31, 38, 0.16), inset -4px -4px 9px rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Noto Sans Hebrew', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background: linear-gradient(160deg, #eef4fa 0%, var(--bg) 48%, #e2ebf4 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

/* ---------- 顶部：品牌独占一行 + 胶囊菜单 ---------- */
.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brandrow {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(145deg, #f8fbfe, #e4edf6);
  box-shadow: var(--sh-out);
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.logo,
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--rose), #e7ccd8);
  box-shadow: var(--sh-in);
  font-weight: 700;
  font-size: 0.95rem;
}

.logo {
  object-fit: cover;
  box-shadow: var(--sh-out);
}

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

.pill-nav {
  padding: 5px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--sh-out);
  max-width: 100%;
}

.pill-nav p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.pill-nav a:hover,
.pill-nav a:focus-visible {
  background: #fff;
  box-shadow: var(--sh-out);
}

.pill-nav a:active {
  box-shadow: var(--sh-in);
  transform: scale(0.97);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, #d9eaf8, #bcd7ee);
  box-shadow: var(--sh-out);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:active {
  box-shadow: var(--sh-in);
  transform: scale(0.97);
}

/* ---------- 主栅格：内容在左，侧栏贴右 ---------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

main > div {
  grid-column: 1;
  scroll-margin-top: 1.4rem;
}

main > .hero {
  grid-column: 1 / -1;
}

main > aside {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 16px;
}

/* ---------- Hero：左文右图，紧凑，点阵底纹 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  min-height: 45vh;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 16px;
  background-image: radial-gradient(circle at 1px 1px, rgba(23, 31, 38, 0.14) 1px, transparent 0),
    linear-gradient(150deg, #f8fbfe, #e5eef7);
  background-size: 18px 18px, 100% 100%;
  box-shadow: var(--sh-out);
}

.hero-copy {
  text-align: left;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.24;
  letter-spacing: 0.02em;
  font-weight: 700;
  word-break: break-word;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(145deg, #f8e6ee, #eed3df);
  box-shadow: var(--sh-out);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-btn:active {
  box-shadow: var(--sh-in);
  transform: scale(0.97);
}

.hero-art {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #dfeaf5, #f3e6ec);
  box-shadow: var(--sh-in);
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-art img.is-on {
  opacity: 1;
}

.hero-ph {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(23, 31, 38, 0.16) 1px, transparent 0);
  background-size: 14px 14px;
}

/* ---------- 正文区块 ---------- */
main > div:not(.hero) {
  padding-bottom: 1.7rem;
  border-bottom: 1px solid var(--line);
}

main > div:not(.hero):last-of-type {
  border-bottom: 0;
}

main div h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.28rem, 3vw, 1.68rem);
  line-height: 1.38;
  letter-spacing: 0.01em;
}

main div p.subtitle,
main div .subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

main div p {
  margin: 0 0 1rem;
}

main div ul,
main div ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

main div li {
  margin-bottom: 0.45rem;
}

main div > article,
main div > section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  background: #fbfdff;
}

main div > article > p:last-child,
main div > section > p:last-child {
  margin-bottom: 0;
}

main div a {
  text-underline-offset: 3px;
}

/* ---------- 侧栏 ---------- */
aside.side {
  padding: 1.15rem;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--sh-out);
}

aside.side h2 {
  margin: 0 0 0.4rem;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

aside.side p.subtitle {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--muted);
}

aside.side .side-links {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

aside.side .side-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.93rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

aside.side .side-links a:hover,
aside.side .side-links a:focus-visible {
  background: #fff;
  box-shadow: var(--sh-out);
}

aside.side .side-links a:active {
  box-shadow: var(--sh-in);
  transform: scale(0.98);
}

/* ---------- 页脚：仅 p 与 small，两栏两行 ---------- */
footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.7rem 22px 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem 1.6rem;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

footer .foot-brand {
  max-width: 44ch;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--muted);
}

footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  justify-content: flex-end;
}

footer .foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

footer small {
  font-size: 0.85rem;
  color: var(--muted);
  align-self: center;
}

footer .to-top {
  justify-self: end;
}

footer .to-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--paper);
  box-shadow: var(--sh-out);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

footer .to-top a:active {
  box-shadow: var(--sh-in);
  transform: scale(0.97);
}

/* ---------- 入场 ---------- */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  main {
    grid-template-columns: minmax(0, 1fr);
  }

  main > aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-art {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }

  .topbar {
    padding: 14px 16px 0;
  }

  main,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .menurow {
    align-items: flex-start;
  }

  .cta {
    min-height: 42px;
  }

  footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  footer .foot-links,
  footer .to-top {
    justify-content: flex-start;
    justify-self: start;
  }
}

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

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-art img {
    transition: none;
  }
}

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