.site-header {
  position: relative;
  min-height: 350px;
  width: 100%;
  background: url('../images/header-bg.jpg') center center / cover no-repeat;
  overflow: hidden;
  color: rgba(31, 70, 39, 1);
  padding: 0;
  box-sizing: border-box;
}

/* 背景遮罩，覆盖整个header左侧区域 */
.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 350px;
  height: 100%;
  background: linear-gradient(to right, 
  rgba(255,255,255,0.6) 0%, 
  rgba(255,255,255,0.4) 40%, 
  rgba(0,0,0,0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Logo 左侧固定，垂直居中，大小随宽度等比缩放 */
.logo-container {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 20vw;
  max-width: 350px;
  min-width: 120px;
  height: auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Title和Nav整体容器，绝对居中，不受logo影响 */
.header-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80vw;
  width: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 页面标题 */
.page-title {
  font-family: Georgia, serif;
  font-size: clamp(24px, 4vw, 52px);
  margin: 0 0 20px 0;
  text-shadow:
    2px 0 4px white,
    0 2px 4px white;
  line-height: 1.1;
}

/* 导航栏，绝对定位，底部贴紧header底部 */
.main-nav {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  gap: 20px;
  white-space: nowrap;
  max-width: 90vw;
  margin: 0;
  z-index: 7;
  background: transparent;
}

/* 导航链接样式 */
.main-nav a {
  color: rgba(225, 225, 225, 1);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: clamp(12px, 1.5vw, 18px);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.main-nav a:hover {
  text-decoration: underline;
  background: rgba(31, 70, 39, 0.9);
  transform: translateY(-2px);
}

/* 手机端适配 */
@media screen and (max-width: 600px) {
  .site-header {
    min-height: auto;
     padding-bottom: 30px;
  }

  .logo-container {
    position: relative;
    width: 35vw;
    max-width: 180px;
    left: auto;
    top: auto;
    transform: none;
    margin: 10px auto 0;
  }

  .header-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 90vw;
    margin: 10px auto 0;
  }

  .main-nav {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100vw;
    padding: 8px 10px;
    gap: 10px;
    justify-content: center;
    background: transparent;
    box-sizing: border-box;
    border-radius: 0;
    z-index: 10;
    margin: 0;
  }
}
