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

/* =============================================
   CSS 变量 & 重置
   ============================================= */
:root {
  --c-white: #ffffff;
  --c-light: #f5f5f5;
  --c-dark: #1f1f1f;
  --c-mid: #6b6b6b;
  --c-border: #e0e0e0;
  --c-accent: #1f1f1f;
  --c-hover-bg: #ebebeb;
  --radius-card: 20px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.13);
  --header-h: 64px;
  --font-main: 'Noto Sans Hebrew', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--c-light);
  color: var(--c-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* scroll-margin for sticky header */
article[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* =============================================
   全站骨架
   ============================================= */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* =============================================
   全屏遮罩菜单
   ============================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--c-dark);
  color: var(--c-white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.menu-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.menu-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 12px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.menu-close:hover { background: rgba(255,255,255,0.1); }

.overlay-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.overlay-nav ul li a {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-white);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
}
.overlay-nav ul li a:hover {
  background: rgba(255,255,255,0.12);
}
.overlay-contact {
  margin-top: 32px;
}
.overlay-contact .contact-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color var(--transition);
}
.overlay-contact .contact-link:hover { color: var(--c-white); }

/* =============================================
   顶部导航 Header
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--c-white);
  border-bottom: 2px solid var(--c-dark);
  height: var(--header-h);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* aside > nav > ul > li > a 完整嵌套 */
.header-aside { display: flex; align-items: center; }
.header-aside nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.header-aside nav ul li a {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--c-dark);
  transition: background var(--transition);
  white-space: nowrap;
}
.header-aside nav ul li a:hover { background: var(--c-hover-bg); }

.header-brand { flex: 0 0 auto; }
.brand-link { display: flex; align-items: center; }
.logo-img { height: 36px; width: auto; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-dark);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-nav-right {
  display: flex;
  align-items: center;
}
.header-nav-right ul {
  display: flex;
  gap: 4px;
}
.header-nav-right ul li a {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--c-dark);
  transition: background var(--transition);
  white-space: nowrap;
}
.header-nav-right ul li a:hover { background: var(--c-hover-bg); }

/* 汉堡按钮 */
.hamburger {
  background: var(--c-dark);
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.hamburger:hover { background: #333; }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   Hero 区块
   ============================================= */
.hero-section {
  position: relative;
  min-height: 45vh;
  background: var(--c-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--c-dark);
}

/* 点阵底纹 */
.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #d4d4d4 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-dark);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--c-mid);
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background: var(--c-dark);
  color: var(--c-white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  min-height: 48px;
  width: fit-content;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover { background: #333; transform: translateY(-2px); }

.hero-media { display: flex; align-items: center; justify-content: center; }
.hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.hero-media-placeholder { width: 100%; }
.hero-placeholder-inner {
  width: 100%;
  padding-top: 65%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  border-radius: var(--radius-card);
  border: 2px solid var(--c-border);
}

/* =============================================
   正文主容器
   ============================================= */
.site-main { padding: 48px 0 64px; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-section { width: 100%; }

.content-article { width: 100%; }

/* =============================================
   Bento Box 正文内容
   ============================================= */
.bento-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* article 默认卡片风 */
.bento-content article {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 40px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--c-dark);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.bento-content article:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.005);
}

/* 错排：奇数节浅灰背景 */
.bento-content article:nth-child(odd) {
  background: var(--c-light);
}
.bento-content article:nth-child(even) {
  background: var(--c-white);
}

.bento-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--c-dark);
  line-height: 1.25;
}

.bento-content h3 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--c-dark);
}

.bento-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin-bottom: 14px;
}

.bento-content ul, .bento-content ol {
  padding-left: 1.4em;
  margin-bottom: 14px;
}
.bento-content ul { list-style: disc; }
.bento-content ol { list-style: decimal; }
.bento-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin-bottom: 6px;
}

.bento-content a {
  color: var(--c-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
.bento-content a:hover { opacity: 0.65; }

.bento-content strong { font-weight: 700; }
.bento-content em { font-style: italic; }

.bento-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.bento-content th {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.bento-content td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--c-border);
}
.bento-content tr:last-child td { border-bottom: none; }

/* small 眉题（h2/h3 前的装饰） */
.bento-content small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-mid);
  margin-bottom: 8px;
}

/* =============================================
   页脚 footer > article×n
   ============================================= */
.site-footer {
  background: var(--c-dark);
  color: var(--c-white);
  border-top: 2px solid var(--c-dark);
}

.footer-brand-section {
  padding: 56px 24px 32px;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand-big {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--c-white);
  margin-bottom: 12px;
}

.footer-slogan {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.6;
}

.footer-nav-section {
  padding: 40px 24px;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-nav-col strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer-nav-col ul { list-style: none; padding: 0; }
.footer-nav-col ul li { margin-bottom: 10px; }
.footer-nav-col ul li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-nav-col ul li a:hover { color: var(--c-white); }

.footer-copy-section {
  padding: 20px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   Scroll Reveal 动效
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger List */
.stagger-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s cubic-bezier(.4,0,.2,1), transform 0.45s cubic-bezier(.4,0,.2,1);
}
.stagger-item.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto !important; }
  .bento-content article:hover { transform: none; }
  .hero-cta:hover { transform: none; }
}

/* =============================================
   响应式断点
   ============================================= */

/* 平板 ≤900px */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px;
  }
  .hero-media { display: none; }
  .footer-nav-cols { grid-template-columns: 1fr 1fr; }
  .header-aside nav ul li a { padding: 10px 8px; font-size: 0.82rem; }
  .header-nav-right ul li a { padding: 10px 8px; font-size: 0.82rem; }
}

/* 移动端 ≤640px */
@media (max-width: 640px) {
  :root { --header-h: 56px; }

  .header-inner { padding: 0 16px; }
  .header-aside { display: none; }
  .header-nav-right ul { display: none; }

  .hero-h1 { font-size: 1.8rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-section { min-height: 40vh; }
  .hero-inner { padding: 28px 16px; }

  .site-main { padding: 28px 0 40px; }
  .wrap { padding: 0 12px; }

  .bento-content article { padding: 24px 20px; border-radius: 14px; }
  .bento-content h2 { font-size: 1.2rem; }

  .footer-brand-section { padding: 36px 16px 24px; }
  .footer-brand-big { font-size: 3.2rem; }
  .footer-nav-section { padding: 28px 16px; }
  .footer-nav-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-copy-section { padding: 16px 16px; }

  .overlay-nav ul li a { font-size: 1.4rem; padding: 10px 16px; }

  /* 汉堡按钮在移动端确保 tap 区域足够 */
  .hamburger {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 14px;
  }
}

/* 确保 375px 无横向滚动 */
@media (max-width: 375px) {
  .hero-h1 { font-size: 1.5rem; }
  .footer-brand-big { font-size: 2.6rem; }
}

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