/* Resend 顶栏：本体的 transform / opacity 留给 intro.css。 */
.hl-nav {
  --nav-muted: #a1a4a5; --nav-bright: #f0f0f0;
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav); height: var(--nav-h);
  font-family: var(--font); color: var(--nav-muted);
}
.hl-nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(0,0,0,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .15s cubic-bezier(.4,0,.2,1);
}
.hl-nav.is-scrolled::before, .hl-nav.is-open::before { opacity: 1; }
.hl-nav > .hl-wrap { position: relative; height: 100%; max-width: var(--maxw); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* 字标也由页脚复用，保持原有品牌样式。 */
.hl-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; letter-spacing: .14em; color: var(--ink-1); }
.hl-mark { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(236,235,230,.85); flex: none; }
.hl-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(242,179,61,.7); }
.hl-nav-links { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; height: 100%; }
.hl-nav-link { display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 0 12px; border: 0; background: none; font: 500 14px/20px var(--font); white-space: nowrap; color: var(--nav-muted); cursor: pointer; transition: color .15s cubic-bezier(.4,0,.2,1); }
.hl-nav-link:hover, .hl-nav-link:focus-visible, .hl-nav-link[aria-expanded="true"] { color: var(--nav-bright); }
.hl-cases-toggle svg { transition: transform .2s var(--ease); }
.hl-cases-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.hl-case-panel { position: absolute; top: 100%; left: 50%; width: 680px; padding: 20px; border: 1px solid rgba(176,199,217,.145); border-radius: 24px; background: rgba(0,0,0,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(.98); transform-origin: top center; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.hl-nav-cases.is-expanded .hl-case-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.hl-nav-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.hl-nav-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px; transition: background .15s, color .15s; }
.hl-nav-card:hover, .hl-nav-card:focus-visible { background: rgba(255,255,255,.06); color: var(--nav-bright); }
.hl-nav-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; background: var(--bg-raised); }
.hl-nav-card--bean img { object-fit: contain; background: var(--ink-1); }
.hl-nav-card strong { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--nav-bright); }
.hl-nav-card > span { font-size: 16px; line-height: 1.5; }
.hl-nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hl-nav .hl-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.hl-nav .hl-lang a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; transition: color .15s; }
.hl-nav .hl-lang > span { color: var(--ink-4); }
.hl-nav .hl-lang a:hover, .hl-nav .hl-lang a[aria-current="true"] { color: var(--nav-bright); }
.hl-contact-wrap { position: relative; }
.hl-nav-contact { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border: 2px solid rgba(255,255,255,.05); border-radius: 16px; white-space: nowrap; background: linear-gradient(104deg,rgba(253,253,253,.05) 5%,rgba(240,240,228,.1) 100%); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); color: var(--nav-bright); font-size: 14px; line-height: 20px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: background-color .2s, color .2s, box-shadow .2s; }
.hl-nav-contact:hover, .hl-nav-contact:focus-visible { background-color: rgba(255,255,255,.9); color: #000; box-shadow: 0 0 18px rgba(255,255,255,.12); }
.hl-contact-tip { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, -3px); display: flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: #000; color: var(--nav-bright); font-size: 12px; line-height: 18px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
.hl-contact-tip kbd { font: inherit; padding: 0 4px; border-radius: 3px; background: var(--surface-2); color: var(--ink-2); }
.hl-contact-wrap:hover .hl-contact-tip, .hl-contact-wrap:focus-within .hl-contact-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.hl-nav.is-tip-dismissed .hl-contact-tip { opacity: 0; visibility: hidden; }
.hl-menu { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.hl-menu:hover { background: var(--surface); color: var(--nav-bright); }
.hl-menu svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hl-menu-cross { display: none; }
.hl-mobile-nav { display: none; }
@media (max-width: 860px) {
  .hl-nav-links, .hl-contact-wrap { display: none; }
  .hl-nav > .hl-wrap { padding: 0 24px; gap: 12px; }
  .hl-nav-actions { gap: 12px; }
  .hl-menu { display: inline-flex; }
  .hl-nav.is-open::before { background: #000; }
  .hl-nav.is-open .hl-menu-lines { display: none; }
  .hl-nav.is-open .hl-menu-cross { display: block; }
  .hl-nav.is-open .hl-menu { background: var(--surface); }
  .hl-mobile-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; padding: 32px 24px max(24px, env(safe-area-inset-bottom)); background: #000; }
  .hl-nav.is-open .hl-mobile-nav { display: block; }
  .hl-mobile-nav > .hl-nav-contact { display: flex; width: 100%; height: 44px; }
  .hl-mobile-list { margin-top: 28px; }
  .hl-mobile-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 24px; color: var(--nav-bright); }
  .hl-mobile-link > span { color: var(--nav-muted); font-size: 20px; }
  .hl-mobile-link:hover { color: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) {
  .hl-nav::before, .hl-nav *, .hl-nav *::before, .hl-nav *::after { transition: none !important; animation: none !important; }
}
