/**
 * PC 头部导航 ——「学府严选」主题
 * 与首页主题统一：深海军蓝 #0B2350 + 古典金 #C99A3F + 纸张米色 #F7F2E6
 */
.zz-header-v2 {
  --h-navy: #0b2350;
  --h-navy-2: #142e64;
  --h-navy-3: #060f2c;
  --h-gold: #c99a3f;
  --h-gold-2: #e2bd6a;
  --h-gold-3: #8c6a1f;
  --h-cream: #f7f2e6;
  --h-cream-2: #fbf7ec;
  --h-paper: #fffaf0;
  --h-ink: #1a2540;
  --h-muted: #5b6a86;
  --h-line: rgba(11, 35, 80, 0.12);
  --h-line-gold: rgba(201, 154, 63, 0.35);
  --h-max: 1280px;
  --h-gutter: 20px;
  --h-search-max: 482px;
  --h-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "宋体", serif;
  position: relative;
  z-index: 900;
  overflow: visible;
  background: linear-gradient(180deg, var(--h-cream) 0%, var(--h-cream-2) 100%);
  box-shadow: 0 1px 0 var(--h-line);
}

.zz-header-v2::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--h-gold-3) 0%, var(--h-gold-2) 35%, var(--h-gold) 55%, var(--h-gold-3) 100%);
  z-index: 5;
}

.zz-h-top,
.zz-h-mid-wrap {
  position: relative;
  z-index: 1;
}

.zz-header-v2 .fl,
.zz-header-v2 .fr,
.zz-header-v2 .cl_b {
  float: none;
  clear: none;
}

/* ============ 顶部信息条 ============ */
.zz-h-top {
  background: var(--h-navy);
  color: rgba(255, 250, 240, 0.85);
  border-bottom: 1px solid var(--h-gold);
  position: relative;
}

.zz-h-top::after { display: none; }

.zz-h-top .wrap {
  max-width: var(--h-max);
  margin: 0 auto;
  padding: 0 var(--h-gutter);
  box-sizing: border-box;
}

.zz-h-top .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 38px;
  font-size: 13px;
  color: rgba(255, 250, 240, 0.8);
}

.zz-h-top .top-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.zz-h-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--h-navy);
  background: var(--h-gold);
  border: 1px solid var(--h-gold-3);
  font-family: var(--h-serif);
}

.zz-h-pill--live {
  animation: zz-h-pulse 2.4s ease-in-out infinite;
}

@keyframes zz-h-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 154, 63, 0.55); }
  50%      { box-shadow: 0 0 0 4px rgba(201, 154, 63, 0.0); }
}

.zz-h-top .welcome-text {
  color: var(--h-cream);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.zz-h-top .top-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
}

.zz-h-top .addSite {
  margin-left: 0;
  padding: 3px 12px;
  color: var(--h-gold-2);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--h-line-gold);
  transition: all 0.2s;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.zz-h-top .addSite:hover {
  color: var(--h-navy);
  background: var(--h-gold-2);
  border-color: var(--h-gold-2);
}

.zz-h-top .top-info { display: none; }

.zz-h-top .top-split {
  width: 1px;
  height: 14px;
  margin: 0 6px;
  background: var(--h-line-gold);
  display: inline-block;
}

.zz-h-top .top-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.zz-h-top .top-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 250, 240, 0.85);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.zz-h-top .top-icon:hover { color: var(--h-gold-2); }

.zz-h-top .top-icon-circle {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--h-navy);
  background: var(--h-gold);
  border: 1px solid var(--h-gold-3);
  transition: all 0.2s;
  font-family: var(--h-serif);
}

.zz-h-top .top-icon:hover .top-icon-circle {
  background: var(--h-gold-2);
}

.zz-h-top .top-icon-wechat .top-icon-circle,
.zz-h-top .top-icon-service .top-icon-circle {
  background: var(--h-gold);
  color: var(--h-navy);
}

@media (min-width: 900px) {
  .zz-h-top .top-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid var(--h-line-gold);
    color: var(--h-gold-2);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  .zz-h-top .top-info::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
  }
}

/* ============ 主行：Logo + 搜索 + 行动区 ============ */
.zz-h-mid-wrap {
  max-width: var(--h-max);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background: var(--h-cream);
}

.zz-h-mid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px var(--h-gutter) 16px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 260px;
  align-items: center;
  justify-items: stretch;
  column-gap: 40px;
  row-gap: 0;
  box-sizing: border-box;
  position: relative;
}

@media (min-width: 1101px) and (max-width: 1220px) {
  .zz-h-mid {
    grid-template-columns: 280px minmax(0, 1fr) 236px;
    column-gap: 28px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 1100px) {
  .zz-h-mid-wrap {
    padding-left: var(--h-gutter);
    padding-right: var(--h-gutter);
  }
  .zz-h-mid {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    text-align: center;
    padding: 22px 18px 24px;
    row-gap: 22px;
  }
  .zz-h-search-wrap {
    width: 100%;
    max-width: 640px;
    justify-self: center;
  }
  .zz-h-actions {
    align-items: center !important;
    justify-self: center !important;
    max-width: 380px !important;
  }
}

/* ============ Logo / 品牌 lockup（对齐首页 wj-crest 徽章） ============ */
.zz-h-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
  width: 100%;
  max-width: 300px;
  justify-self: start;
  align-self: center;
}

@media (max-width: 1100px) {
  .zz-h-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    max-width: 100%;
    justify-self: center;
  }
}

.zz-h-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.zz-h-brand__name {
  display: block;
  font-family: var(--h-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--h-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zz-h-brand__name::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--h-gold), var(--h-gold-2));
}

@media (max-width: 1100px) {
  .zz-h-brand__name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

.zz-h-brand__tag {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  max-width: 100%;
  color: var(--h-gold-3);
  letter-spacing: 0.14em;
  font-family: var(--h-serif);
}

.zz-h-brand__tag::before {
  content: "❖";
  color: var(--h-gold);
  margin-right: 5px;
  font-size: 10px;
}

.zz-h-logo-link {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: 96px;
  height: 96px;
  text-decoration: none;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--h-cream-2);
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px var(--h-gold),
    0 0 0 6px rgba(201, 154, 63, 0.16),
    0 6px 20px rgba(11, 35, 80, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.zz-h-logo-ring {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 63, 0.45);
  pointer-events: none;
  z-index: 3;
}

.zz-h-logo-pad {
  position: absolute;
  inset: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  /*background: var(--h-paper);*/
      width: 140px;
    height: 140px;
    left: -22px;
    top: -20px;
}

.zz-h-logo-link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px var(--h-gold-2),
    0 0 0 7px rgba(201, 154, 63, 0.22),
    0 10px 24px rgba(11, 35, 80, 0.16);
}

@media (max-width: 1100px) {
  .zz-h-logo-link {
    width: 84px;
    height: 84px;
  }
  .zz-h-brand__name::after {
    margin-left: auto;
    margin-right: auto;
  }
}

.zz-h-mid .h_log {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  border-radius: 0;
}

@media (max-width: 1100px) {
  .zz-h-logo-pad {
    inset: 7px;
  }
}

/* ============ 搜索区 ============ */
.zz-h-search-wrap {
  width: 100%;
  min-width: 0;
  max-width: 640px;
  justify-self: stretch;
  align-self: center;
}

@media (min-width: 1101px) {
  .zz-h-search-wrap {
    max-width: var(--h-search-max);
    justify-self: center;
  }
}

.zz-h-search-wrap .header-search-form {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--h-gold);
  background: var(--h-paper);
}

.zz-h-search-wrap .input-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 220px;
  box-sizing: border-box;
}

.zz-h-search-wrap input#keywords,
.zz-h-search-wrap input[type="text"] {
  display: block !important;
  width: 100% !important;
  min-width: 200px !important;
  height: 46px !important;
  line-height: 1.4 !important;
  padding: 0 44px 0 18px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  color: var(--h-ink) !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}

.zz-h-search-wrap input#keywords::placeholder,
.zz-h-search-wrap input[type="text"]::placeholder { color: var(--h-muted); }

.zz-h-search-wrap input#keywords:focus,
.zz-h-search-wrap input[type="text"]:focus {
  background: var(--h-cream-2) !important;
}

.zz-h-search-wrap .header-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--h-gold-3);
  pointer-events: none;
  font-size: 16px;
}

.zz-h-search-wrap .header-search-btn {
  flex: 0 0 auto;
  height: 46px !important;
  min-width: 100px !important;
  padding: 0 24px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  color: var(--h-cream) !important;
  background: var(--h-navy) !important;
  box-shadow: none;
  font-family: var(--h-serif);
  transition: background 0.2s;
  box-sizing: border-box;
}

.zz-h-search-wrap .header-search-btn:hover {
  transform: none;
  background: var(--h-navy-3) !important;
  box-shadow: none;
  color: var(--h-gold-2) !important;
}

@media (max-width: 560px) {
  .zz-h-search-wrap .header-search-form { flex-direction: column !important; align-items: stretch !important; }
  .zz-h-search-wrap .header-search-btn { width: 100% !important; }
}

.zz-h-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .zz-h-tags { justify-content: center; }
}

.zz-h-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--h-gold-3);
  margin-right: 2px;
  letter-spacing: 0.05em;
  font-family: var(--h-serif);
}

.zz-h-tags a {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: var(--h-navy) !important;
  border: 1px solid var(--h-line);
  background: var(--h-paper);
  transition: all 0.2s;
}

.zz-h-tags a:hover {
  color: var(--h-cream) !important;
  border-color: var(--h-navy);
  background: var(--h-navy);
}

/* ============ 右侧行动区 ============ */
.zz-h-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding: 0 8px;
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 1101px) {
  .zz-h-actions {
    justify-self: end;
    align-self: center;
    max-width: 260px;
  }
}

@media (max-width: 1100px) {
  .zz-h-actions {
    align-items: center;
    max-width: 380px;
  }
}

.zz-h-tel {
  font-size: 11px;
  font-weight: 600;
  color: var(--h-muted);
  letter-spacing: 0.16em;
  text-align: right;
}

.zz-h-tel::before {
  content: "TEL";
  color: var(--h-gold-3);
  margin-right: 8px;
  font-family: var(--h-serif);
  font-weight: 700;
  letter-spacing: 0.2em;
}

@media (max-width: 1100px) {
  .zz-h-tel { text-align: center; }
}

.zz-h-tel strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--h-navy);
  font-family: var(--h-serif);
}

.zz-h-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--h-navy) !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--h-gold-2) 0%, var(--h-gold) 50%, var(--h-gold-3) 100%);
  box-shadow: 0 6px 16px rgba(201, 154, 63, 0.3);
  transition: all 0.25s;
  border: 1px solid var(--h-gold-3);
  cursor: pointer;
  font-family: var(--h-serif);
}

.zz-h-cta:hover {
  transform: translateY(-2px);
  background: var(--h-navy);
  color: var(--h-gold-2) !important;
  border-color: var(--h-gold);
}

/* ============ 主导航 ============ */
.zz-header-v2 .zz-h-navbox,
.zz-header-v2 .zz-h-navbox.nav_box {
  position: sticky;
  top: 0;
  z-index: 880;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  overflow: visible;
  background: linear-gradient(180deg, var(--h-navy-2) 0%, var(--h-navy) 100%) !important;
  border-top: 1px solid var(--h-gold);
  border-bottom: 1px solid var(--h-gold);
  box-shadow: 0 6px 18px rgba(11, 35, 80, 0.18);
  animation: none;
}

.zz-header-v2 .zz-h-navbox::before {
  content: "";
  display: block;
  height: 0;
  width: 100%;
  background: transparent;
  animation: none;
}

.zz-header-v2 .zz-h-navbox::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, transparent 0 24px, rgba(201, 154, 63, 0.04) 24px 25px),
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(201, 154, 63, 0.12), transparent 60%);
  z-index: 0;
}

.zz-header-v2 .zz-h-nav,
.zz-header-v2 .zz-h-nav.nav1 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--h-max);
  margin: 0 auto;
  padding: 0 var(--h-gutter);
  box-sizing: border-box;
  height: auto;
  display: block;
}

.zz-header-v2 .zz-h-nav ul,
.zz-header-v2 .zz-h-nav.nav1 ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  width: 100%;
}

@media (min-width: 1101px) {
  .zz-header-v2 .zz-h-nav li:first-child > a,
  .zz-header-v2 .zz-h-nav.nav1 li:first-child > a {
    padding-left: 0 !important;
  }
  .zz-header-v2 .zz-h-nav li:last-child > a,
  .zz-header-v2 .zz-h-nav.nav1 li:last-child > a {
    padding-right: 0 !important;
  }
}

.zz-header-v2 .zz-h-nav li,
.zz-header-v2 .zz-h-nav.nav1 li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
}

.zz-header-v2 .zz-h-nav li + li::before,
.zz-header-v2 .zz-h-nav.nav1 li + li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(201, 154, 63, 0.22);
}

.zz-header-v2 .zz-h-nav li > a,
.zz-header-v2 .zz-h-nav li > a.index,
.zz-header-v2 .zz-h-nav li > a.navli,
.zz-header-v2 .zz-h-nav.nav1 li > a,
.zz-header-v2 .zz-h-nav.nav1 li > a.index,
.zz-header-v2 .zz-h-nav.nav1 li > a.navli {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px 18px !important;
  min-width: 0;
  height: auto !important;
  border-radius: 0 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 2px;
  white-space: nowrap;
  color: rgba(255, 250, 240, 0.95) !important;
  text-decoration: none !important;
  flex-shrink: 0;
  box-sizing: border-box;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: color 0.25s ease, background 0.25s ease;
  font-family: var(--h-serif);
}

.zz-header-v2 .zz-h-nav li > a::before,
.zz-header-v2 .zz-h-nav.nav1 li > a::before {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}

.zz-header-v2 .zz-h-nav li > a::after,
.zz-header-v2 .zz-h-nav.nav1 li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--h-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.zz-header-v2 .zz-h-nav li > a:hover,
.zz-header-v2 .zz-h-nav.nav1 li > a:hover,
.zz-header-v2 .zz-h-nav li:nth-child(n) > a:hover {
  color: var(--h-gold-2) !important;
  transform: none;
  background: rgba(201, 154, 63, 0.08) !important;
  filter: none;
  animation: none;
  box-shadow: none !important;
  border-color: transparent !important;
}

.zz-header-v2 .zz-h-nav li > a:hover::after,
.zz-header-v2 .zz-h-nav.nav1 li > a:hover::after {
  width: 60%;
}

/* 当前页：金色填充 */
.zz-header-v2 .zz-h-nav li > a.cur,
.zz-header-v2 .zz-h-nav.nav1 li > a.cur,
.zz-header-v2 .zz-h-nav li.cur > a,
.zz-header-v2 .zz-h-nav.nav1 li.cur > a {
  color: var(--h-navy) !important;
  border-color: transparent !important;
  background: linear-gradient(180deg, var(--h-gold-2) 0%, var(--h-gold) 100%) !important;
  box-shadow: inset 0 -2px 0 var(--h-gold-3) !important;
  animation: none;
}

.zz-header-v2 .zz-h-nav li > a.cur::before,
.zz-header-v2 .zz-h-nav.nav1 li > a.cur::before {
  opacity: 0;
  display: none !important;
}

.zz-header-v2 .zz-h-nav li > a.cur::after,
.zz-header-v2 .zz-h-nav.nav1 li > a.cur::after {
  display: none;
}

.zz-header-v2 .zz-h-nav li > a.cur:hover,
.zz-header-v2 .zz-h-nav.nav1 li > a.cur:hover {
  transform: none;
  filter: none;
  background: linear-gradient(180deg, var(--h-gold) 0%, var(--h-gold-2) 100%) !important;
  color: var(--h-navy-3) !important;
}

@media (max-width: 1100px) {
  .zz-header-v2 .zz-h-navbox {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
  .zz-header-v2 .zz-h-nav ul,
  .zz-header-v2 .zz-h-nav.nav1 ul {
    justify-content: flex-start;
    gap: 4px;
    padding: 0 4px;
  }
  .zz-header-v2 .zz-h-nav li:first-child > a,
  .zz-header-v2 .zz-h-nav.nav1 li:first-child > a {
    padding-left: 16px !important;
  }
  .zz-header-v2 .zz-h-nav li:last-child > a,
  .zz-header-v2 .zz-h-nav.nav1 li:last-child > a {
    padding-right: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zz-h-pill--live { animation: none; }
  .zz-h-pill--live,
  .zz-h-search-wrap .header-search-btn,
  .zz-h-cta,
  .zz-h-tags a,
  .zz-h-logo-link {
    transition: none;
  }
}
