/*!
 * nav-v73.css — 全站统一导航（暗蓝色立体按钮 + 特细沙金边框）
 *
 * 目标：196 个页面导航结构与视觉完全一致，点击在新标签打开。
 * 与 assets/css/style.css 的 .site-header / .nav 基础规则配合使用，
 * 本文件在其之后加载，覆盖外观。
 */

/* ---------- 布局 ---------- */
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.header-inner .logo { flex: 0 0 auto; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: .75rem;
  margin-inline-start: auto;
}

/* ---------- 主按钮：暗蓝立体 + 沙金细边 ---------- */
.nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 8px;
  white-space: nowrap;
  color: #e3efff;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  background: linear-gradient(180deg, #24508c 0%, #16325c 46%, #0d1f3d 100%);
  border: 1px solid rgba(201, 162, 39, .50);
  box-shadow:
    inset 0 0 0 .5px rgba(240, 215, 140, .20),
    inset 0 1px 0 rgba(200, 225, 255, .30),
    inset 0 -2px 3px rgba(0, 0, 0, .50),
    0 2px 0 #071429,
    0 3px 7px rgba(0, 0, 0, .38);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .60);
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease,
              color .15s ease, border-color .15s ease;
}
.nav a:hover {
  color: #fff;
  background: linear-gradient(180deg, #2f63a8 0%, #1d3f70 46%, #102648 100%);
  border-color: rgba(232, 201, 92, .85);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(247, 231, 168, .28),
    inset 0 1px 0 rgba(210, 235, 255, .42),
    inset 0 -2px 3px rgba(0, 0, 0, .45),
    0 3px 0 #071429,
    0 6px 14px rgba(0, 0, 0, .45),
    0 0 12px rgba(201, 162, 39, .30);
}
.nav a:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .65),
              inset 0 -1px 0 rgba(255, 255, 255, .12),
              0 1px 0 #071429;
}
.nav a:focus-visible {
  outline: 2px solid rgba(247, 231, 168, .9);
  outline-offset: 2px;
}
/* 当前页：沙金实心边 + 微光 */
.nav a[aria-current="page"] {
  border-color: rgba(232, 201, 92, .95);
  color: #fff8dc;
  box-shadow:
    inset 0 0 0 1px rgba(247, 231, 168, .35),
    inset 0 1px 0 rgba(210, 235, 255, .40),
    inset 0 -2px 3px rgba(0, 0, 0, .45),
    0 2px 0 #071429,
    0 0 14px rgba(201, 162, 39, .38);
}

/* ---------- 语言切换：尺寸对齐主按钮 ---------- */
.site-header .lang-switch {
  padding: 5px 9px;
  font-size: .74rem;
  font-weight: 700;
  border-width: 1px;
  border-radius: 8px;
  border-color: rgba(150, 200, 255, .55);
  color: #dbe9ff;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.25;
  transition: all .15s ease;
}
.site-header .lang-switch:hover {
  background: #5ab0ff;
  border-color: #5ab0ff;
  color: #06224d;
}
.site-header .lang-switch[aria-current="true"] {
  background: rgba(201, 162, 39, .18);
  border-color: rgba(232, 201, 92, .85);
  color: #ffeaa5;
  cursor: default;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .header-inner { gap: 10px; }
  .nav { gap: 4px; font-size: .72rem; }
  .nav a { padding: 5px 8px; }
  .site-header .lang-switch { padding: 4px 7px; font-size: .7rem; }
}

/* 中屏：导航整体换到第二行，避免挤压 logo 与语言按钮 */
@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; padding-block: 8px; }
  .nav { flex: 1 1 100%; order: 3; margin-inline-start: 0; justify-content: flex-start; }
  .site-header .lang-switch { order: 2; margin-inline-start: auto; }
}

@media (max-width: 640px) {
  .header-inner { gap: 6px; }
  .nav { gap: 4px; font-size: .68rem; }
  .nav a { padding: 4px 7px; border-radius: 7px; }
  .site-header .lang-switch { padding: 3px 7px; font-size: .68rem; }
}

/* ---------- RTL（阿拉伯语）：flex 自动镜像，无需额外处理 ---------- */

/* 窄屏装饰层（.dust/orb）会撑宽页面，裁切防止横向滚动 */
.banner-hero, .q-banner { overflow: hidden; }
