/* 全局统一导航 (深色金/红) — weiyoua.com 全站 */
.gnav, .gnav * { box-sizing: border-box; }
.gnav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(10,15,28,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,168,67,0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.gnav-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 14px; }
.gnav-logo { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .5px; flex-shrink: 0; text-decoration: none; }
.gnav-badge { width: 32px; height: 32px; border-radius: 7px; background: linear-gradient(135deg,#c41e3a,#8b0000); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; box-shadow: 0 2px 12px rgba(196,30,58,.45); }
.gnav-menu { display: flex; align-items: center; height: 100%; margin-left: 6px; }
.gnav-link { display: inline-flex; align-items: center; height: 60px; padding: 0 15px; font-size: 14px; color: #cbd5e1; text-decoration: none; position: relative; white-space: nowrap; transition: color .2s; }
.gnav-link:hover { color: #fff; }
.gnav-link.on { color: #e8c558; font-weight: 600; }
.gnav-link.on::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 2px; background: #e8c558; border-radius: 2px; }
.gnav-caret { font-size: 10px; margin-left: 4px; opacity: .7; line-height: 1; }
.gnav-item { position: relative; display: inline-flex; align-items: center; height: 100%; }
.gnav-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 132px; background: #0e1626; border: 1px solid rgba(212,168,67,.2); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.5); padding: 6px 0; display: none; z-index: 200; }
.gnav-item:hover .gnav-sub { display: block; }
.gnav-sub a { display: block; padding: 9px 18px; font-size: 14px; color: #cbd5e1; text-decoration: none; white-space: nowrap; text-align: center; }
.gnav-sub a:hover { background: rgba(212,168,67,.1); color: #e8c558; }
.gnav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gnav-search { display: flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(148,163,184,.22); border-radius: 18px; height: 34px; padding: 0 4px 0 12px; }
.gnav-search input { background: none; border: none; outline: none; color: #e2e8f0; font-size: 13px; width: 120px; }
.gnav-search input::placeholder { color: #94a3b8; }
.gnav-search button { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 14px; padding: 4px 8px; }
.gnav-search button:hover { color: #e8c558; }
.gnav-login { color: #e8c558; font-size: 13px; text-decoration: none; border: 1px solid rgba(212,168,67,.5); border-radius: 16px; padding: 6px 14px; white-space: nowrap; }
.gnav-login:hover { background: rgba(212,168,67,.12); }
.gnav-pub { color: #fff; font-size: 13px; text-decoration: none; background: linear-gradient(135deg,#c41e3a,#8b0000); border-radius: 16px; padding: 7px 14px; white-space: nowrap; }
.gnav-pub:hover { filter: brightness(1.1); }
.gnav-user { position: relative; }
.gnav-ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#c41e3a,#8b0000); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; border: 1px solid rgba(212,168,67,.4); }
.gnav-umenu { position: absolute; right: 0; top: calc(100% + 8px); background: #0e1626; border: 1px solid rgba(212,168,67,.2); border-radius: 8px; min-width: 150px; padding: 6px 0; display: none; box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 200; }
.gnav-umenu.open { display: block; }
.gnav-umenu a { display: block; padding: 9px 16px; color: #cbd5e1; font-size: 13px; text-decoration: none; }
.gnav-umenu a:hover { background: rgba(212,168,67,.1); color: #e8c558; }
.gnav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.gnav-toggle span { display: block; width: 24px; height: 2px; background: #e2e8f0; border-radius: 2px; transition: .3s; }
.gnav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 205; display: none; }
.gnav-backdrop.open { display: block; }
body.gnav-lock { overflow: hidden; }

@media (max-width: 1080px) {
  .gnav-link { padding: 0 11px; font-size: 13px; }
  .gnav-search input { width: 90px; }
}
@media (max-width: 900px) {
  /* 防止右侧抽屉式菜单撑出横向滚动 (overflow:clip 不创建滚动容器, 不影响 sticky) */
  html, body { overflow-x: clip; }
  .gnav-inner { height: 56px; padding: 0 14px; gap: 8px; }
  .gnav-toggle { display: flex; }
  .gnav-menu {
    position: fixed; top: 0; right: 0; width: 78%; max-width: 320px; height: 100vh; height: 100dvh;
    background: rgba(10,15,28,0.99); backdrop-filter: blur(20px); flex-direction: column; align-items: stretch;
    justify-content: flex-start; padding: 70px 18px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease;
    border-left: 1px solid rgba(212,168,67,.18); z-index: 210; margin-left: 0; gap: 0;
  }
  .gnav-menu.open { transform: translateX(0); }
  .gnav-link { height: auto; padding: 14px 4px; width: 100%; border-bottom: 1px solid rgba(148,163,184,.08); font-size: 16px; color: #e2e8f0; }
  .gnav-link.on { color: #e8c558; }
  .gnav-link.on::after { display: none; }
  .gnav-item { display: block; width: 100%; height: auto; }
  .gnav-item > .gnav-link { display: flex; justify-content: space-between; }
  .gnav-sub { position: static; transform: none; display: block; background: none; border: none; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .gnav-sub a { text-align: left; padding: 11px 4px; border-bottom: 1px solid rgba(148,163,184,.05); font-size: 15px; }
  .gnav-search { display: none; }
}

/* ===== 全局统一页脚 ===== */
.gfoot { background: #0a0f1c; border-top: 1px solid rgba(212,168,67,.14); color: #94a3b8; text-align: center; padding: 34px 20px 30px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.gfoot-inner { max-width: 1400px; margin: 0 auto; }
.gfoot-seal { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,#c41e3a,#8b0000); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 12px; box-shadow: 0 4px 18px rgba(196,30,58,.4); }
.gfoot-line { color: #cbd5e1; font-size: 14px; margin: 0 0 6px; letter-spacing: .5px; }
.gfoot-copy { font-size: 13px; color: #64748b; margin: 0; }
.gfoot-copy a { color: #94a3b8; text-decoration: none; }
.gfoot-copy a:hover { color: #e8c558; }

