/* ============================================================
   内页导航（与首页 hm-nav 同款「玻璃导航」深蓝+金样式）
   规则提取自 home.css（首页专用，含全局 reset，不能整份引入内页）。
   两处样式需同步维护；仅 layout/site.html 引入本文件。
   ============================================================ */
:root {
  --blue-900: #00264d;
  --blue-800: #003d7a;
  --blue-700: #004ca9;
  --navy: #00305e;
  --gold: #e8a33d;
  --gold-l: #f0b040;
}

/* 内页导航为 fixed，正文让出 72px 导航高度 */
body { padding-top: 72px; }

/* ---------------- 栏目 banner（深蓝+金，与导航同风格） ---------------- */
.hm-banner { position: relative; height: 300px; overflow: hidden; background: var(--navy); }
.hm-banner img { width: 100%; height: 100%; object-fit: cover; display: block; /* 去AI化：与首页轮播同款影调（微降饱和+提对比） */ filter: saturate(.94) contrast(1.07) brightness(1.01); }
/* 去AI化：细胶片颗粒层，打破AI图的过度平滑质感（静态噪声，不影响性能） */
.hm-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hm-banner-mask {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 26, 61, .88) 0%, rgba(0, 38, 77, .6) 48%, rgba(0, 26, 61, .26) 100%);
}
.hm-banner-in {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 1160px; max-width: calc(100% - 40px); color: #fff; z-index: 2;
}
.hm-banner-in::before { content: ""; display: block; width: 46px; height: 3px; background: var(--gold); margin-bottom: 14px; }
.hm-banner-in h1 { font-size: 34px; font-weight: 700; letter-spacing: 3px; line-height: 1.25; }
.hm-banner-in p { margin-top: 10px; font-size: 14px; letter-spacing: 4px; color: var(--gold-l); text-transform: uppercase; }
@media (max-width: 768px) {
  .hm-banner { height: 180px; }
  /* 窄屏底图可视面积小，蒙层减重让场景透出来，标题居中仍保有足够对比 */
  .hm-banner-mask { background: linear-gradient(100deg, rgba(0, 26, 61, .8) 0%, rgba(0, 38, 77, .52) 50%, rgba(0, 26, 61, .3) 100%); }
  .hm-banner-in::before { width: 36px; height: 2px; margin-bottom: 10px; }
  .hm-banner-in h1 { font-size: 24px; letter-spacing: 2px; }
  .hm-banner-in p { margin-top: 6px; font-size: 12px; letter-spacing: 3px; }
}

/* 局部 reset：屏蔽旧内页样式对导航元素的继承干扰 */
.hm-nav, .hm-nav * { box-sizing: border-box; }
.hm-nav ul, .hm-nav li { list-style: none; margin: 0; padding: 0; }
.hm-nav a { text-decoration: none; }
.hm-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 玻璃导航 ---------------- */
.hm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(0, 26, 61, .82), rgba(0, 26, 61, .45));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s ease, box-shadow .3s ease;
}
.hm-nav.scrolled {
  background: rgba(0, 30, 66, .96);
  box-shadow: 0 4px 18px rgba(0, 20, 50, .35);
}
.hm-nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: none; padding: 0 24px; }
.hm-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hm-logo-img { height: 48px; width: auto; display: block; }
.hm-logo-ring {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative; background: rgba(255, 255, 255, .06);
}
.hm-logo-ring::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(232, 163, 61, .55); border-radius: 50%;
}
.hm-logo-ring b { color: var(--gold); font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.hm-logo-tx b { display: block; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: 3px; }
.hm-logo-tx i { display: block; color: var(--gold); font-style: normal; font-size: 10px; letter-spacing: 2.5px; }

.hm-menu > ul { display: flex; align-items: center; gap: 2px; }
.hm-menu { display: flex; }
.hm-nav-item { position: relative; }
.hm-nav-item > a {
  display: block; padding: 10px 12px;
  color: rgba(255, 255, 255, .92); font-size: 14.5px; font-weight: 500;
  position: relative; white-space: nowrap;
}
.hm-nav-item > a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px;
  background: var(--gold); transition: all .25s ease; transform: translateX(-50%);
}
.hm-nav-item:hover > a::after,
.hm-nav-item.cur > a::after { width: 70%; }
.hm-nav-item.cur > a { color: #fff; }
.hm-sub {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: rgba(0, 38, 77, .97);
  box-shadow: 0 8px 22px rgba(0, 15, 40, .4);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease; border-top: 2px solid var(--gold);
}
.hm-nav-item:hover .hm-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.hm-sub a {
  display: block; padding: 9px 16px; color: rgba(255, 255, 255, .85);
  font-size: 13.5px; transition: all .15s ease; border-left: 2px solid transparent;
}
.hm-sub a:hover { color: var(--gold-l); background: rgba(255, 255, 255, .05); border-left-color: var(--gold); padding-left: 20px; }

.hm-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hm-search { display: flex; align-items: center; background: rgba(255, 255, 255, .14); border-radius: 30px; padding: 0 4px 0 14px; }
.hm-search input {
  border: 0; background: transparent; color: #fff; outline: none;
  font-size: 13px; width: 108px; padding: 7px 0; transition: width .2s ease;
  max-width: 100%;
}
.hm-search input::placeholder { color: rgba(255, 255, 255, .55); }
.hm-search button {
  border: 0; background: var(--gold); width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--blue-900);
}
.hm-lang {
  display: flex; align-items: center; gap: 7px;
  color: #fff; font-size: 14.5px; letter-spacing: 1px; white-space: nowrap;
}
.hm-lang i { font-style: normal; opacity: .55; font-size: 13px; }
.hm-lang a { color: #fff; opacity: .72; transition: color .2s ease, opacity .2s ease; }
.hm-lang a.cur { opacity: 1; cursor: default; }
.hm-lang a:not(.cur):hover { opacity: 1; color: var(--gold-l); }
.hm-burger {
  display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 6px;
}
.hm-burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .25s ease; }

/* ---------------- 响应式（与首页导航一致） ---------------- */
@media (max-width: 980px) {
  .hm-menu {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(0, 30, 66, .98);
    opacity: 0; visibility: hidden;
    box-shadow: 0 14px 30px rgba(0, 15, 40, .4);
    /* 收起时禁止命中：防止内部 visibility:visible 的二级菜单透出劫持点击 */
    pointer-events: none;
  }
  .hm-nav.open .hm-menu { opacity: 1; visibility: visible; pointer-events: auto; }
  .hm-menu > ul { flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 78px); overflow: auto; }
  .hm-nav-item > a { padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .hm-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; background: rgba(0, 0, 0, .18); padding: 0; }
  .hm-sub a { padding: 11px 36px; font-size: 13px; }
  .hm-burger { display: flex; }
  .hm-search { padding-left: 10px; }
  .hm-search input { width: 84px; }
}
@media (max-width: 640px) {
  .hm-nav-in { padding: 0 14px; gap: 8px; }
  .hm-tools { gap: 10px; }
  .hm-search { padding-left: 4px; }
  .hm-search input { display: none; }
  .hm-logo-tx b { font-size: 17px; letter-spacing: 2px; }
  .hm-logo-img { height: 40px; }
  .hm-logo-tx i { font-size: 9px; letter-spacing: 1.5px; }
}
