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

:root{
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --ink:#171f26;
  --soft:rgba(126,158,186,.42);
  --hi:rgba(255,255,255,.95);
  --shadow:-6px -6px 16px var(--hi), 6px 6px 18px var(--soft);
  --shadow-in:inset -4px -4px 10px rgba(255,255,255,.92), inset 4px 4px 10px var(--soft);
  --line:rgba(23,31,38,.14);
}

*{box-sizing:border-box}

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

body{
  margin:0;
  padding-bottom:104px;
  font-family:'Noto Sans Hebrew', system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background:linear-gradient(155deg,#e9f2fa 0%,#f2eff6 48%,#f8eef3 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}

img{max-width:100%}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:80;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px clamp(10px,3vw,22px) calc(10px + env(safe-area-inset-bottom));
  background:rgba(240,246,251,.94);
  backdrop-filter:blur(10px);
  box-shadow:0 -8px 24px rgba(23,31,38,.10);
}

.brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 12px 0 4px;
  max-width:36vw;
  overflow:hidden;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.brand img{
  display:block;
  height:32px;
  width:auto;
}

.dock ol{
  display:flex;
  align-items:center;
  gap:4px;
  flex:1 1 auto;
  min-width:0;
  margin:0;
  padding:2px 0;
  list-style:none;
}

.dock li{
  position:relative;
  flex:0 0 auto;
}

.dock ol a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  border-radius:14px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  transition:box-shadow .15s ease, transform .15s ease;
}

.dock ol a:hover,
.dock ol a:focus-visible{
  box-shadow:var(--shadow);
  outline:none;
}

.dock ol a:active{
  transform:scale(.96);
  box-shadow:var(--shadow-in);
}

.sub{
  position:absolute;
  bottom:calc(100% + 12px);
  left:0;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:150px;
  padding:10px;
  border-radius:16px;
  background:#f4f8fc;
  box-shadow:var(--shadow);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s;
}

.sub a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 12px;
  border-radius:12px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
}

.sub a:hover{box-shadow:var(--shadow-in)}

.has-sub:hover .sub,
.has-sub:focus-within .sub{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.call{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  border-radius:14px;
  background:linear-gradient(145deg,var(--blue),#b3d3ee);
  box-shadow:var(--shadow);
  font-size:16px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease;
}

.call:hover{transform:translateY(-1px)}
.call:active{transform:scale(.96); box-shadow:var(--shadow-in)}

/* ---------- 主视觉 ---------- */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:clamp(18px,4vw,52px);
  min-height:70vh;
  max-width:1140px;
  margin:0 auto;
  padding:clamp(26px,6vw,60px) clamp(16px,4vw,40px) clamp(20px,4vw,44px);
  background-image:radial-gradient(rgba(23,31,38,.13) 1.4px, transparent 1.5px);
  background-size:18px 18px;
  background-position:center;
}

.hero-figure{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:260px;
  max-height:60vh;
  overflow:hidden;
  border-radius:18px;
  background:linear-gradient(145deg,var(--blue),var(--pink));
  box-shadow:var(--shadow);
}

.hero-figure img{
  display:block;
  width:100%;
  height:100%;
  max-height:60vh;
  object-fit:cover;
  will-change:transform;
}

.ph{
  display:block;
  width:66%;
  height:64%;
  border-radius:16px;
  box-shadow:var(--shadow-in);
}

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

.hero-copy h1{
  margin:0 0 26px;
  font-size:clamp(29px,4.6vw,50px);
  line-height:1.24;
  font-weight:700;
  letter-spacing:-.01em;
  overflow-wrap:break-word;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  min-height:52px;
  padding:0 30px;
  border-radius:16px;
  background:linear-gradient(145deg,#ffffff,#e3ecf5);
  box-shadow:var(--shadow);
  font-size:17px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease;
}

.hero-cta:hover{transform:translateY(-2px)}
.hero-cta:active{transform:scale(.97); box-shadow:var(--shadow-in)}

/* ---------- 正文与右侧栏 ---------- */
.board{
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:clamp(20px,3vw,36px);
  align-items:start;
  max-width:1140px;
  margin:0 auto;
  padding:clamp(18px,4vw,44px) clamp(16px,4vw,40px) 28px;
}

.board > *{min-width:0}

.content > section{
  margin:0 0 22px;
  padding:clamp(18px,3vw,32px);
  scroll-margin-top:26px;
  background:linear-gradient(160deg,#fdfeff,#e9f1f8);
  border-bottom:4px solid var(--blue);
  box-shadow:-4px -4px 12px rgba(255,255,255,.9), 6px 8px 20px rgba(126,158,186,.26);
}

.content > section:nth-of-type(even){
  background:linear-gradient(160deg,#fffdfe,#f7ecf1);
  border-bottom-color:var(--pink);
}

.content > section:last-child{margin-bottom:0}

.content > section:target{
  box-shadow:0 0 0 2px rgba(245,224,232,.95), 6px 8px 20px rgba(126,158,186,.26);
}

.content h2{
  margin:0 0 14px;
  font-size:clamp(21px,3vw,27px);
  line-height:1.34;
  letter-spacing:-.01em;
}

.content h3{
  margin:24px 0 10px;
  font-size:19px;
  line-height:1.45;
}

.content p{margin:0 0 16px}
.content p:last-child{margin-bottom:0}

.content ul,
.content ol{margin:0 0 16px; padding-left:1.3em}
.content li{margin:0 0 8px}
.content li:last-child{margin-bottom:0}

.content a{
  color:#1b5b89;
  text-decoration-color:var(--blue);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.content strong{font-weight:700}

.content img{
  height:auto;
  border-radius:14px;
  box-shadow:var(--shadow);
}

.content blockquote{
  margin:0 0 16px;
  padding:14px 18px;
  border-radius:14px;
  box-shadow:var(--shadow-in);
}

.content table{
  width:100%;
  border-collapse:collapse;
  font-size:16px;
}

.content th,
.content td{
  padding:8px 6px;
  text-align:left;
  border-bottom:1px solid var(--line);
  overflow-wrap:break-word;
}

/* ---------- 右侧栏 ---------- */
.rail{
  position:sticky;
  top:24px;
  padding:20px 16px 16px;
  background:linear-gradient(150deg,#fdfeff,#e8eff7);
  border-bottom:4px solid var(--pink);
  box-shadow:-4px -4px 12px rgba(255,255,255,.9), 6px 8px 20px rgba(126,158,186,.24);
}

.rail h2{
  margin:0 0 4px;
  font-size:19px;
  line-height:1.4;
}

.rail .subtitle{
  margin:0 0 14px;
  font-size:16px;
  letter-spacing:.02em;
  color:#4d5f6e;
}

.rail ol{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:rail;
}

.rail li{
  counter-increment:rail;
  margin-bottom:4px;
}

.rail a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:4px 10px;
  border-radius:12px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  transition:box-shadow .15s ease;
}

.rail a::before{
  content:counter(rail,decimal-leading-zero);
  color:#7b8fa0;
  font-size:16px;
}

.rail a:hover{box-shadow:var(--shadow-in)}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px 20px;
  align-items:start;
  max-width:1140px;
  margin:0 auto;
  padding:34px clamp(16px,4vw,40px) 44px;
  font-size:16px;
}

.foot p{margin:0}

.f-brand{font-weight:700;overflow-wrap:break-word}
.f-key{color:#43535f;overflow-wrap:break-word}

.f-link a,
.f-top a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:2px solid var(--blue);
}

.f-link a:hover,
.f-top a:hover{border-bottom-color:var(--pink)}

.f-copy{
  grid-column:1 / 3;
  margin-top:8px;
  font-size:16px;
  color:#4a5763;
}

.f-top{
  grid-column:4;
  justify-self:end;
  margin-top:8px;
}

/* ---------- 断点 ---------- */
@media (max-width:860px){
  body{padding-bottom:96px}

  .dock ol{
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
  }

  .dock ol::-webkit-scrollbar{display:none}

  .sub{display:none}

  .brand{max-width:40vw}

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

  .hero-copy{order:-1}
  .hero-copy h1{margin-bottom:20px}
  .hero-figure{min-height:190px;max-height:36vh}
  .hero-figure img{max-height:36vh}

  .board{grid-template-columns:minmax(0,1fr);padding-top:16px}
  .rail{position:static}
}

@media (max-width:620px){
  .foot{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding-bottom:36px;
  }

  .f-copy{grid-column:1 / 2}
  .f-top{grid-column:2; justify-self:end}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms !important; animation-duration:.01ms !important}
  .hero-figure img{transform:none !important}
}

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