/* ==========================================================================
   nav.v2.css — 全站公共组件（V3.0 §1 Design System + Master Guide §2）
   依赖 tokens.v2.css 的 CSS 变量；本文件自带兜底值，单独引用也不会崩。
   刻意新建文件名：/assets/* 是 immutable 一年缓存，改内容必须换文件名。
   ========================================================================== */

:root {
  --nav-ink: #141518;
  --nav-surface: #1F2228;
  --nav-gold: #C5A880;
  --nav-gold-hover: #B2956E;
  --nav-bg: #F8F9FA;
  --nav-card: #FFFFFF;
  --nav-line: #E5E7EB;
  --nav-line-dark: #374151;
  --nav-head: #111827;
  --nav-body: #4B5563;
  --nav-muted: #9CA3AF;
  --nav-white: #FFFFFF;
  --nav-max: 1440px;
  --nav-pad: 48px;
  --nav-pad-m: 20px;
  --nav-h: 80px;
  --nav-r: 8px;
  --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --nav-shadow-h: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------------------- HEADER */
.nv-head {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-line);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nv-head__in {
  max-width: var(--nav-max); height: 100%; margin: 0 auto;
  padding: 0 var(--nav-pad);
  display: flex; align-items: center; gap: 28px;
}
.nv-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.nv-logo__mark {
  width: 38px; height: 38px; border-radius: 7px; flex: 0 0 auto;
  background: var(--nav-ink); color: var(--nav-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; letter-spacing: .02em;
}
.nv-logo__txt { display: flex; flex-direction: column; line-height: 1.18; }
.nv-logo__name {
  font-size: 15px; font-weight: 700; color: var(--nav-head);
  letter-spacing: -.01em; white-space: nowrap;
}
.nv-logo__sub {
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--nav-muted);
}

.nv-nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nv-nav__item { position: relative; }
.nv-nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 13px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--nav-body);
  text-decoration: none; white-space: nowrap;
  transition: background .16s, color .16s;
}
.nv-nav__link:hover, .nv-nav__item:focus-within > .nv-nav__link {
  background: #EEF0F2; color: var(--nav-head);
}
.nv-nav__link[aria-current="page"] { color: var(--nav-ink); font-weight: 600; }
.nv-caret { width: 9px; height: 9px; flex: 0 0 auto; opacity: .55; transition: transform .18s; }
.nv-nav__item:hover .nv-caret, .nv-nav__item:focus-within .nv-caret { transform: rotate(180deg); opacity: .8; }

/* dropdown */
.nv-drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 268px;
  background: var(--nav-card); border: 1px solid var(--nav-line);
  border-radius: var(--nav-r); box-shadow: var(--nav-shadow-h);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s; z-index: 1001;
}
.nv-nav__item:hover .nv-drop, .nv-nav__item:focus-within .nv-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nv-drop__hd {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--nav-muted); padding: 8px 10px 6px;
}
.nv-drop a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border-radius: 6px; text-decoration: none;
  font-size: 14px; font-weight: 500; color: var(--nav-body);
}
.nv-drop a:hover { background: #F3F4F6; color: var(--nav-head); }
.nv-drop a i { font-style: normal; font-size: 11.5px; color: var(--nav-muted); }

/* CTA */
.nv-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.nv-btn {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 11px 18px; border-radius: 6px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; transition: background .16s, border-color .16s, color .16s;
}
.nv-btn--ghost { background: transparent; color: var(--nav-head); border-color: var(--nav-line); }
.nv-btn--ghost:hover { border-color: var(--nav-head); background: #F3F4F6; }
.nv-btn--gold { background: var(--nav-gold); color: #1A1A1A; }
.nv-btn--gold:hover { background: var(--nav-gold-hover); }
.nv-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

.nv-burger {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--nav-line); border-radius: 6px; background: #fff;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nv-burger span { display: block; width: 17px; height: 1.6px; background: var(--nav-head); position: relative; }
.nv-burger span::before, .nv-burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: var(--nav-head);
}
.nv-burger span::before { top: -5.5px; } .nv-burger span::after { top: 5.5px; }

/* ---------------------------------------------------------------- FOOTER */
.nv-foot {
  background: var(--nav-ink); color: var(--nav-muted);
  padding: 80px 0 32px; margin-top: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nv-foot__in { max-width: var(--nav-max); margin: 0 auto; padding: 0 var(--nav-pad); }
.nv-foot__grid {
  display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.15fr; gap: 44px;
}
.nv-foot h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--nav-gold); margin: 0 0 16px;
}
/* 深底上的标题/品牌字必须是浅色，压过全局 h1..h6 的深墨色 */
.nv-foot h1, .nv-foot h2, .nv-foot h3, .nv-foot h4, .nv-foot h5, .nv-foot h6 { color: var(--nav-gold); }
.nv-foot__brand .nv-logo__mark { background: var(--nav-gold); color: var(--nav-ink); }
.nv-foot__brand .nv-logo__name { color: var(--nav-white); }
.nv-foot__brand .nv-logo__sub { color: var(--nav-muted); }
.nv-foot__blurb { font-size: 13.5px; line-height: 1.7; margin: 16px 0 18px; max-width: 34ch; }
.nv-foot__stat {
  display: flex; align-items: baseline; gap: 10px; padding: 11px 0;
  border-top: 1px solid #262A31;
}
.nv-foot__stat b { font-size: 21px; font-weight: 700; color: var(--nav-white); line-height: 1; }
.nv-foot__stat span { font-size: 12.5px; }
.nv-foot__list { list-style: none; margin: 0; padding: 0; }
.nv-foot__list li { margin-bottom: 9px; }
.nv-foot__list a {
  font-size: 13.5px; color: var(--nav-muted); text-decoration: none;
  transition: color .15s;
}
.nv-foot__list a:hover { color: var(--nav-gold); }
.nv-foot__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.nv-foot__chip {
  font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  padding: 5px 10px; border-radius: 4px;
  background: var(--nav-surface); color: #D6D9DE; border: 1px solid #2C313A;
}
.nv-foot__sales { list-style: none; margin: 0 0 16px; padding: 0; }
.nv-foot__sales li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #262A31; font-size: 13.5px;
}
.nv-foot__sales b { color: var(--nav-white); font-weight: 600; }
.nv-foot__sales em { font-style: normal; font-size: 12px; color: #9CA3AF; }
.nv-foot__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 54px; padding-top: 24px; border-top: 1px solid #262A31;
  font-size: 12.5px; color: #9CA3AF;
}
.nv-foot__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.nv-foot__legal a { color: #9CA3AF; text-decoration: none; }
.nv-foot__legal a:hover { color: var(--nav-gold); }

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 1180px) {
  .nv-head__in { gap: 16px; }
  .nv-nav__link { padding: 10px 9px; font-size: 13.5px; }
  .nv-btn { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 960px) {
  .nv-head { height: 64px; }
  .nv-head__in { padding: 0 var(--nav-pad-m); flex-wrap: wrap; }
  .nv-nav, .nv-cta { display: none; width: 100%; }
  .nv-head.is-open { height: auto; }
  .nv-head.is-open .nv-nav,
  .nv-head.is-open .nv-cta {
    display: flex; flex-direction: column; align-items: stretch;
    padding: 0 var(--nav-pad-m) 16px; gap: 0;
  }
  .nv-head.is-open .nv-nav__link { width: 100%; padding: 13px 4px; font-size: 15px;
    border-bottom: 1px solid var(--nav-line); border-radius: 0; }
  .nv-head.is-open .nv-drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--nav-line);
    border-radius: 0; margin: 0 0 8px 8px; padding: 4px 0; min-width: 0;
  }
  .nv-head.is-open .nv-cta { margin-top: 14px; gap: 9px; }
  .nv-head.is-open .nv-btn { width: 100%; justify-content: center; padding: 13px; }
  .nv-burger { display: flex; }
  .nv-foot { padding: 52px 0 26px; }
  .nv-foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .nv-foot__bar { margin-top: 36px; }
}
@media (max-width: 560px) {
  .nv-foot__grid { grid-template-columns: 1fr; }
  .nv-logo__sub { display: none; }
}

/* NV34FIX:BEGIN — 深色环境里的金色改回香槟，下拉面板文字提亮
   .mega-panel 是深底，用浅色 --mute 之外的中性色 */
.mega-panel h4 { color: #9CA3AF; }
.mega-panel a:hover { color: #C5A880; }
.nav-item.has-mega:hover > a { color: var(--clay); }
/* NV34FIX:END */
