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

/* ============================================================
   CSS 变量 & 基础重置
   ============================================================ */
:root {
  --paper: #fdfbf7;
  --card:  #f5f5f5;
  --ink:   #1a1a1a;
  --ink-2: #3a3a3a;
  --ink-3: #6a6a6a;
  --border: #e0e0e0;
  --accent: #1a1a1a;
  --radius: 0;
  --nav-h: 108px;
  --font: 'Noto Sans Hebrew', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-serif: Georgia, 'Noto Serif SC', 'Times New Roman', serif;
  --transition: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover, a:focus {
  color: var(--ink-2);
  text-decoration-thickness: 2px;
}

ul, ol {
  padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

p {
  margin-bottom: 1rem;
}

/* ============================================================
   页面包裹
   ============================================================ */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.header-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 0.25rem 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* 搜索框 */
.header-search {
  flex: 1;
  max-width: 320px;
  margin-left: auto;
}

.search-form {
  display: flex;
  border: 1px solid var(--ink);
}

.search-input {
  flex: 1;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-family: var(--font);
  border: none;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  min-height: 44px;
}

.search-input::placeholder {
  color: var(--ink-3);
}

.search-btn {
  padding: 0 0.75rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 汉堡按钮 */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.ham-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

/* 桌面菜单行 */
.header-menu-row {
  padding: 0 1.5rem;
  overflow-x: auto;
}

.desktop-nav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  margin: 0;
}

.desktop-nav-list dt {
  display: block;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.04em;
  border-right: 1px solid var(--border);
  min-height: 44px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* ============================================================
   全屏遮罩菜单
   ============================================================ */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
}

.fullscreen-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.fullscreen-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-size: 1.25rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-nav-list {
  padding: 0;
  margin: 0;
}

.fullscreen-nav-list dt {
  display: block;
  border-bottom: 1px solid rgba(253,251,247,0.15);
}

.fn-link {
  display: flex;
  align-items: center;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--paper);
  text-decoration: none;
  min-height: 56px;
  letter-spacing: -0.01em;
}

.fn-link:hover {
  color: var(--card);
  padding-left: 1rem;
  text-decoration: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 499;
  background: rgba(26,26,26,0.5);
  opacity: 0;
  pointer-events: none;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   主内容区
   ============================================================ */
.site-main {
  flex: 1;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-section {
  padding: 2rem 0;
}

.content-article {
  width: 100%;
}

/* Hero */
.hero-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 70vh;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.hero-text {
  padding-right: 1rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  min-height: 48px;
}

.hero-cta:hover {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 8px 8px 0 var(--card);
  max-width: 100%;
}

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

/* 标题 */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* 侧边栏 + 正文布局 */
.content-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

/* 侧边栏在左 */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.sidebar-inner {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
}

.sidebar-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.sidebar-nav {
  padding: 0;
  margin: 0;
}

.sidebar-nav dd {
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.sidebar-nav dd:last-child {
  border-bottom: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--ink-2);
  line-height: 1.4;
  min-height: 40px;
}

.sidebar-nav a:hover {
  color: var(--ink);
  padding-left: 0.5rem;
  text-decoration: none;
}

/* 正文内容 */
.main-content {
  min-width: 0;
}

/* 正文内 section 样式 */
.main-content section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: var(--nav-h);
}

.main-content section:last-child {
  border-bottom: none;
}

.main-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.main-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.main-content h2 + hr,
.main-content h3 + hr {
  margin-top: 0;
  margin-bottom: 1rem;
}

.main-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--ink-2);
}

.main-content ul,
.main-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5em;
}

.main-content li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.main-content a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.main-content strong {
  color: var(--ink);
  font-weight: 700;
}

.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.main-content th,
.main-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.main-content th {
  background: var(--card);
  font-weight: 700;
}

.main-content .card,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 4px 4px 0 rgba(26,26,26,0.06);
}

/* ============================================================
   页脚（仅 p + small）
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  margin-top: auto;
  border-top: 2px solid var(--ink);
}

.footer-brand {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.footer-copy {
  display: block;
  font-size: 0.8rem;
  color: rgba(253,251,247,0.6);
  letter-spacing: 0.04em;
}

/* ============================================================
   h2/h3 + hr 装饰
   ============================================================ */
h2 + hr,
h3 + hr {
  border-top: 2px solid var(--ink);
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* ============================================================
   Hover 微动效
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .fn-link {
    transition: padding-left 0.15s ease, color 0.15s ease;
  }
  .sidebar-nav a {
    transition: padding-left 0.12s ease, color 0.12s ease;
  }
  .hero-cta {
    transition: background 0.15s ease, color 0.15s ease;
  }
  .nav-link {
    transition: background 0.1s ease, color 0.1s ease;
  }
  .search-btn {
    transition: opacity 0.1s ease;
  }
  .fullscreen-nav {
    transition: opacity 0.2s ease;
  }
  .nav-overlay {
    transition: opacity 0.2s ease;
  }
  .fn-item {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.2s ease calc(var(--i) * 0.06s), transform 0.2s ease calc(var(--i) * 0.06s);
  }
  .fullscreen-nav.is-open .fn-item {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   响应式断点
   ============================================================ */
@media (max-width: 900px) {
  .hero-block {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2rem 0;
  }
  .hero-text {
    padding-right: 0;
  }
  .hero-media {
    justify-content: flex-start;
  }
  .hero-img {
    height: 280px;
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .sidebar-inner {
    padding: 0.75rem;
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .sidebar-nav dd {
    border-bottom: none;
  }
  .sidebar-nav a {
    border: 1px solid var(--border);
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    min-height: 40px;
    background: var(--paper);
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 98px;
  }
  .header-brand-row {
    padding: 0.5rem 1rem;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .brand-logo {
    min-height: 44px;
  }
  .header-search {
    max-width: 160px;
  }
  .header-menu-row {
    padding: 0 1rem;
  }
  .nav-link {
    font-size: 0.78rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    min-height: 44px;
  }
  .wrap {
    padding: 0 1rem;
  }
  .content-section {
    padding: 1.25rem 0;
  }
  .hero-h1 {
    font-size: 2rem;
  }
  .hero-block {
    padding: 1.5rem 0;
  }
  .footer-brand {
    font-size: 2rem;
  }
  .fullscreen-nav {
    padding: 2rem 1.5rem;
  }
  .fn-link {
    font-size: 1.25rem;
    min-height: 52px;
  }
}

@media (max-width: 375px) {
  .header-search {
    display: none;
  }
  .hero-h1 {
    font-size: 1.75rem;
  }
  .main-content h2 {
    font-size: 1.2rem;
  }
  .brand-name {
    font-size: 1.1rem;
  }
}

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