/* ========== 主色调 #E0CCAA 温暖风格头部 ========== */
:root {
  --gold: #E0CCAA;
  --gold-dark: #c7a97c;
  --text: #2e2b28;
  --text-light: #5e554a;
  --bg: #ffffff;
  --border: #e5ddd2;
  --shadow: 0 6px 20px rgba(0,0,0,0.04);
  --radius: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
}
.site-logo img {
  display: block;
  height: 40px;
  width: auto;
}

/* 导航 */
.site-nav {
  margin-left: 40px;
}
.site-nav__list {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.site-nav__item {
  position: relative;
}
.site-nav__item > a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 30px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.site-nav__item > a:hover {
  background: var(--gold);
  color: var(--text);
}
.site-nav__item.active > a {
  background: var(--gold-dark);
  color: #fff;
  font-weight: 600;
}

/* 下拉菜单 */
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 150px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 200;
  list-style: none;
}
.site-nav__item:hover .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.site-nav__dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.site-nav__dropdown li a:hover {
  background: var(--gold);
  color: var(--text);
}

/* 右侧操作区 */
.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 搜索 */
.site-search {
  position: relative;
}
.site-search__toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.site-search__toggle:hover {
  background: var(--gold);
  border-color: var(--gold-dark);
}
.site-search__form {
  position: absolute;
  right: 0;
  top: 50px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 6px;
  display: none;
  z-index: 300;
}
.site-search__form.active {
  display: block;
}
.site-search__form form {
  display: flex;
  align-items: center;
}
.site-search__input {
  width: 200px;
  height: 36px;
  padding: 0 16px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text);
}
.site-search__input::placeholder {
  color: #b5a690;
}
.site-search__form button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}
.site-search__form button:hover {
  background: var(--gold-dark);
  color: #fff;
}

/* 移动端汉堡 */
.site-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}
.site-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* 移动端适配 */
@media (max-width: 992px) {
  .site-nav {
    display: none;
  }
  .site-nav.open {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    z-index: 400;
    padding: 10px 0;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }
  .site-nav__item > a {
    border-radius: 0;
    padding: 14px 24px;
  }
  .site-nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 20px;
    display: none;
  }
  .site-nav__item.active .site-nav__dropdown {
    display: block;
  }
  .site-burger {
    display: flex;
  }
}