/* ==========================================================================
   首页导航栏 · 在 main.css 之上做局部覆盖
   只改头部形态（整块居中 → 横向导航），其余版式、卡片、页脚沿用原设计
   ========================================================================== */

.navbar {
  position: relative;
  background: linear-gradient(135deg, #152242 0%, #1e3158 100%);
  color: #fff;
  padding: 0 clamp(16px, 3vw, 30px);
}

.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(166, 152, 103, 0) 0%, #a69867 25%, #c4b589 50%, #a69867 75%, rgba(166, 152, 103, 0) 100%);
  opacity: 0.85;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.nav-brand img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nav-brand-name {
  font-family: 'Bembo', 'Gotham', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
}

/* 中文界面只显示中文校名，用中文字体而不是 Bembo */
html[lang="zh-CN"] .nav-brand-name {
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  font-size: 19px;
  letter-spacing: 0.06em;
}

.nav-brand-sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
}

html[lang="zh-CN"] .nav-brand-sub {
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

/* 语言按钮：原本是 fixed 悬浮，这里收进导航栏右侧，保留液态玻璃质感 */
.navbar .language-toggle {
  position: static;
  padding: 0.55rem 1.05rem;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(21, 34, 66, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.32);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.navbar .language-toggle:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* 头部收窄后，主视觉区上边距同步收紧，避免一段空白 */
.navbar + .hero-section {
  padding-top: clamp(24px, 4vw, 44px);
}

@media (max-width: 640px) {
  .navbar-inner {
    min-height: 64px;
    gap: 12px;
  }
  .nav-brand img {
    height: 44px;
  }
  .nav-brand-name {
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  html[lang="zh-CN"] .nav-brand-name {
    font-size: 15px;
  }
  .nav-brand-sub {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .navbar .language-toggle {
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
  }
}


/* 中文界面不夹英文标语：校训副标与页脚英文口号只在英文界面出现 */
html[lang="zh-CN"] .hero-subtitle,
html[lang="zh-CN"] .footer-motto {
  display: none;
}

/* 英文界面走校训原文：Educational Excellence（粗）for（金色斜体）Life and Leadership（粗） */
html[lang="en"] .hero-subtitle {
  display: block;
  font-family: var(--font-en-serif);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--primary-navy);
  margin-bottom: var(--spacing-lg);
}

html[lang="en"] .motto-italic {
  padding: 0 0.12em;
}
