@charset "UTF-8";
/* Header & Navigation —— 顶部品牌栏与导航菜单样式 */

:root {
  --primary: #0d7a3d;
  --primary-dark: #095c2d;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-top: 6px solid var(--primary);
}

.header {
  padding: 16px;
  position: relative;
  overflow: hidden;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M32 0 C40 22 45 62 52 100 L100 100 L100 0 Z' fill='%230d7a3d'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  overflow: hidden;
}

.brand-text h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #0a7e6b;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 2;
}

/* Navigation */
.nav {
  background: var(--primary);
  border-top: 1px solid white;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: #fff;
  padding: 12px 18px;
  font-size: 0.95rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  background: rgba(255,255,255,0.15);
}

/* 移动端：汉堡菜单 + 两列导航 */
@media (max-width: 992px) {
  .site-header {
    border-top: none;
  }

  .header {
    padding: 12px 16px;
    background-image: none;
    background-color: #cdddd6;
  }

  .brand-text h1 {
    font-size: 1.25rem;
    letter-spacing: 1px;
  }

  .logo {
    width: 44px;
    height: 44px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    z-index: 999;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  .nav.open {
    display: block;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .nav a {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav a:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 360px) {
  .brand-text h1 {
    font-size: 1.05rem;
  }

  .logo {
    width: 38px;
    height: 38px;
  }
}
