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

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --ink-soft: rgba(23, 38, 32, 0.16);
  --paper: #f3fdf8;
  --card: rgba(255, 255, 255, 0.7);
  --r: 18px;
  --rb: 24px;
  --shadow: inset -2px -2px 8px rgba(23, 38, 32, 0.1), inset 2px 2px 7px rgba(255, 255, 255, 0.9), 6px 7px 15px rgba(23, 38, 32, 0.14);
  --shadow-sm: inset -2px -2px 6px rgba(23, 38, 32, 0.09), inset 2px 2px 5px rgba(255, 255, 255, 0.9), 3px 4px 8px rgba(23, 38, 32, 0.13);
  --font: "Noto Sans Hebrew", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle at 88% 4%, rgba(173, 216, 230, 0.55), transparent 46%),
    radial-gradient(circle at 6% 22%, rgba(180, 253, 225, 0.7), transparent 52%),
    linear-gradient(180deg, #f7fffb 0%, #eef9f4 58%, #eaf7f1 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a {
  color: #0f6a56;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

main [id] {
  scroll-margin-top: 168px;
}

/* ---------- 顶部托架 ---------- */
.dock {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 255, 250, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 6px 16px rgba(23, 38, 32, 0.12);
}

.alert {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 5px 18px;
  font-size: 16px;
  line-height: 1.5;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  border-bottom: 2px solid rgba(23, 38, 32, 0.35);
  white-space: nowrap;
  overflow: hidden;
}

.alert span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.brandrow {
  display: flex;
  align-items: center;
  padding: 8px clamp(16px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 2px 6px 2px 2px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 16px;
}

.mark {
  width: 42px;
  height: 42px;
  flex: none;
  border: 3px solid var(--ink);
  border-radius: 15px;
  background: linear-gradient(150deg, var(--mint), var(--sky));
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.mark-bare {
  display: block;
  background-image: radial-gradient(circle at 34% 32%, #fff 0 22%, transparent 23%),
    linear-gradient(150deg, var(--mint), var(--sky));
}

.brandname {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover .mark {
  transform: rotate(-6deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tabs {
  padding: 0 clamp(10px, 3vw, 48px) 10px;
}

.tabs ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabs li {
  flex: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(160deg, #ffffff, #e8f8f1);
  border: 3px solid rgba(23, 38, 32, 0.24);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out;
}

.tab:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}

.tab.on {
  background: linear-gradient(160deg, var(--mint), var(--sky));
  border-color: var(--ink);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  min-height: calc(100svh - 178px);
  padding: 34px clamp(16px, 4vw, 56px) 46px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -34% auto;
  width: 62vw;
  height: 62vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, rgba(180, 253, 225, 0.85), rgba(173, 216, 230, 0.4) 62%, transparent 72%);
  z-index: 0;
}

.collage {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 340px;
  height: clamp(300px, 46vh, 460px);
}

.frame {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: var(--rb);
  background: linear-gradient(150deg, var(--mint), var(--sky));
  box-shadow: var(--shadow);
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-a {
  width: 63%;
  aspect-ratio: 4 / 5;
  left: 0;
  top: 0;
  transform: rotate(-6deg);
  animation: bob 7.5s ease-in-out infinite;
}

.frame-b {
  width: 54%;
  aspect-ratio: 1 / 1;
  right: 0;
  bottom: 0;
  transform: rotate(7deg);
  animation: bob 9s ease-in-out infinite reverse;
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.dots {
  position: absolute;
  left: 46%;
  bottom: 6%;
  display: flex;
  gap: 7px;
  z-index: 2;
}

.dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: #fff;
}

.dots i:nth-child(2) {
  background: var(--mint);
}

.dots i:nth-child(3) {
  background: var(--sky);
}

.claim {
  position: relative;
  z-index: 1;
  text-align: right;
}

.claim h1 {
  margin: 0;
  font-size: clamp(30px, 4.9vw, 56px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.band {
  height: 26px;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: linear-gradient(90deg, var(--mint), #d5f6ee 42%, var(--sky));
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 100%);
}

/* ---------- 正文与侧栏 ---------- */
.vein {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: clamp(20px, 3.4vw, 40px);
  align-items: start;
  padding: 46px clamp(16px, 4vw, 56px) 54px;
}

.prose {
  min-width: 0;
  max-width: 74ch;
}

.prose article {
  margin: 0 0 30px;
  padding: 24px 22px;
  background: var(--card);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 3px solid var(--ink-soft);
  border-radius: var(--rb);
  box-shadow: var(--shadow);
}

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

.prose h2,
.prose h3 {
  margin: 0 0 14px;
  line-height: 1.36;
}

.prose h2 {
  font-size: clamp(21px, 2.6vw, 28px);
}

.prose h3 {
  font-size: clamp(18px, 2.1vw, 22px);
  margin-top: 22px;
}

.prose h2 span,
.prose h3 span,
.rail-head span,
.call-head span {
  display: inline-block;
  padding: 3px 15px 5px;
  background: linear-gradient(160deg, var(--mint), #dcfbf1);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.prose p {
  margin: 0 0 15px;
}

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

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.prose li {
  margin: 0 0 8px;
}

.prose li::marker {
  color: #128a6c;
  font-weight: 700;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 500;
}

.prose figure {
  margin: 18px 0;
}

.prose img {
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.prose figcaption {
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.85;
}

.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: linear-gradient(150deg, #e9fbf4, #eaf6fb);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

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

.prose code {
  padding: 1px 7px;
  font-size: 0.94em;
  background: #e7f7f1;
  border: 2px solid var(--ink-soft);
  border-radius: 8px;
}

.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  font-size: 16px;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
}

.prose th,
.prose td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 2px solid var(--ink-soft);
}

.prose th {
  background: #dff9ef;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.rail {
  position: sticky;
  top: 172px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 3px solid var(--ink);
  border-radius: var(--rb);
  box-shadow: var(--shadow);
}

.rail-head {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
}

.rail-head span {
  padding: 1px 13px 3px;
  font-size: 17px;
}

.rail-nav ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 14px;
  transition: background 0.2s ease-out, transform 0.2s ease-out;
}

.rail-nav a:hover {
  background: linear-gradient(150deg, var(--mint), #e6fbf4);
  border-color: var(--ink);
  transform: translateX(-3px);
}

/* ---------- 收尾块 ---------- */
.call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 clamp(16px, 4vw, 56px) 48px;
  padding: 32px clamp(20px, 3vw, 36px);
  background: linear-gradient(140deg, var(--sky), var(--mint));
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.call-head {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.35;
}

.call-head span {
  background: rgba(255, 255, 255, 0.72);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 26px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease-out;
}

.pill:hover {
  transform: translateY(-3px) scale(1.02);
}

.pill:active {
  transform: translateY(2px) scale(0.98);
}

/* ---------- 页脚 ---------- */
.sole {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 26px;
  padding: 30px clamp(16px, 4vw, 56px) 40px;
  border-top: 4px solid var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.sole-brand {
  margin: 0;
  max-width: 56ch;
}

.sole-brand strong {
  font-size: 19px;
}

.sole-brand span {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  opacity: 0.86;
}

.sole-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 10px;
  margin: 0;
  max-width: 340px;
}

.sole-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 12px;
}

.sole-links a:hover {
  background: var(--mint);
}

.sole-copy,
.sole-top {
  font-size: 16px;
  align-self: center;
}

.sole-top {
  justify-self: end;
}

.sole-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .frame-a,
  .frame-b,
  .pulse {
    animation: none;
  }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
    padding-top: 22px;
  }
  .claim {
    order: -1;
    text-align: left;
  }
  .collage {
    height: 300px;
    min-height: 0;
  }
  .vein {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }
  .rail {
    position: static;
    order: 2;
  }
  .rail-nav ul {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  main [id] {
    scroll-margin-top: 150px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16.5px;
  }
  .brandname {
    font-size: 18px;
  }
  .tabs {
    padding-bottom: 8px;
  }
  .prose article {
    padding: 18px 15px;
  }
  .call {
    flex-direction: column;
    align-items: flex-start;
  }
  .sole {
    grid-template-columns: 1fr;
  }
  .sole-links {
    justify-content: flex-start;
    max-width: none;
  }
  .sole-top {
    justify-self: start;
  }
  .collage {
    height: 264px;
  }
}

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