/* ============================================================
   国安盾 · 全局头部组件（全站唯一来源 · 单一组件）
   用法：<link rel="stylesheet" href="/assets/site-header.css">
        <div id="siteHeader" data-active="home"></div>
        <script src="/assets/site-header.js"></script>（同步，紧跟占位）
   由 site-header.js 注入「公告条 + 深蓝头部」。所有选择器以 .gdh-
   作用域前缀隔离，注入元素用 <div> 而非 <header>/<nav>，避免与各页
   内联的 header/nav/logo/acc 样式互相污染；页面级裸选择器（a/svg/button）
   的影响由下方高优先级规则逐一覆盖。
   ============================================================ */
.gdh-head,
.gdh-notice{font-family:"Microsoft YaHei UI","PingFang SC","Segoe UI",sans-serif;
  -webkit-font-smoothing:auto;text-rendering:auto;box-sizing:border-box;}
.gdh-head *, .gdh-head *:before, .gdh-head *:after,
.gdh-notice *, .gdh-notice *:before, .gdh-notice *:after{box-sizing:border-box;}

/* ---------- 公告条 ---------- */
/* 文字清晰度：公告条是深色底 + 小字，禁用 antialiased（会关掉 Windows
   ClearType 亚像素平滑导致笔画发虚），恢复 auto；字重 300→400 用真实字形,
   字号 11.8→12.5px,整体提亮,根治「右侧文字模糊」。 */
.gdh-notice{position:relative;height:31px;overflow:hidden;background:#04101f;
  border-bottom:1px solid rgba(255,255,255,.055);color:#b9cde5;
  font-size:12.5px;font-weight:400;letter-spacing:.2px;
  -webkit-font-smoothing:auto;text-rendering:auto;
  transition:height .38s cubic-bezier(.4,0,.2,1),opacity .3s ease;z-index:61;}
.gdh-notice.gdh-closing{height:0;opacity:0;border-bottom-color:transparent;}
.gdh-notice .gdh-nwrap{display:flex;align-items:center;gap:9px;height:30px;
  max-width:1160px;margin:0 auto;padding:0 24px;
  animation:gdhNtIn .5s cubic-bezier(.2,.7,.3,1) both;}
@keyframes gdhNtIn{from{opacity:0;transform:translateY(-6px);}}
.gdh-notice .gdh-tag{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;height:16px;padding:0 5px;
  font-size:9.5px;font-weight:400;letter-spacing:1.1px;line-height:1;color:#dbc47c;
  border:1px solid rgba(201,162,39,.34);border-radius:2px;}
.gdh-notice .gdh-tag i.gdh-dot{width:3.5px;height:3.5px;border-radius:50%;background:#e8cf7a;
  animation:gdhNtDot 2.4s ease-out infinite;}
@keyframes gdhNtDot{
  0%{box-shadow:0 0 0 0 rgba(232,207,122,.55);opacity:1;}
  70%{box-shadow:0 0 0 4px rgba(232,207,122,0);opacity:.5;}
  100%{box-shadow:0 0 0 0 rgba(232,207,122,0);opacity:1;}}
/* 【横向滚动 v4 · 整数像素步进】
   恢复用户要求的横向跑马灯滚动,同时完整保留前几轮全部清晰度修复:
   ① 400/600 真实字重 + 12.5px 字号 + 提亮色(#bfd2e9/#eef4fd/#a6c6f5);
   ② -webkit-font-smoothing:auto(恢复 Windows ClearType 亚像素平滑);
   ③ 不用 mask-image 渐隐遮罩:纯 overflow 硬裁剪,文字全程 100% 不透明,
      避免「遮罩合成层」及两端被压成半透明发虚(原「右侧模糊」主因);
   ④ 整数像素步进 steps(N,end):终点位移为整数 px 且步数 = 位移值,
      每步恰好 1px,文字始终对齐设备像素网格,消除连续 translateX 的
      半像素重采样插值(笔画发毛/重影);⑤ 去掉 will-change 永久合成层常驻。
   JS 的 sync() 测宽后写入 --mq-half / steps() / duration,悬停或聚焦暂停。 */
.gdh-notice .gdh-mq{position:relative;flex:1 1 auto;min-width:0;height:18px;overflow:hidden;}
.gdh-notice .gdh-track{display:flex;align-items:center;width:max-content;
  animation:gdhMqRun 32s steps(1200,end) infinite;}
.gdh-notice.gdh-static .gdh-track{animation:none;transform:none;}
@keyframes gdhMqRun{
  from{transform:translateX(0);}
  to{transform:translateX(calc(var(--mq-half,1200) * -1px));}}
.gdh-notice .gdh-mq:hover .gdh-track,
.gdh-notice .gdh-mq:focus-within .gdh-track{animation-play-state:paused;}
.gdh-notice a.gdh-nt{flex:0 0 auto;display:flex;align-items:center;gap:8px;height:18px;
  white-space:nowrap;padding-right:24px;color:#bfd2e9;font-weight:400;text-decoration:none;}
.gdh-notice a.gdh-nt:after{content:"";flex:0 0 auto;width:3px;height:3px;border-radius:50%;
  background:rgba(255,255,255,.3);margin-left:20px;}
.gdh-notice a.gdh-nt b{flex:0 0 auto;color:#eef4fd;font-weight:600;letter-spacing:.1px;transition:color .2s;}
.gdh-notice a.gdh-nt span{color:#bfd2e9;font-weight:400;transition:color .2s;}
.gdh-notice a.gdh-nt:hover{text-decoration:none;}
.gdh-notice a.gdh-nt:hover b{color:#fff;}
.gdh-notice a.gdh-nt:hover span{color:#dde9f9;}
.gdh-notice a.gdh-go{margin-left:auto;flex:0 0 auto;padding-left:13px;
  border-left:1px solid rgba(255,255,255,.14);
  color:#a6c6f5;font-size:12.2px;font-weight:400;transition:color .18s;text-decoration:none;}
.gdh-notice a.gdh-go .gdh-arw{display:inline-block;font-style:normal;margin-left:2px;
  transition:transform .24s cubic-bezier(.2,.7,.3,1);}
.gdh-notice a.gdh-go:hover{color:#cfe0ff;text-decoration:none;}
.gdh-notice a.gdh-go:hover .gdh-arw{transform:translateX(4px);}
.gdh-notice button.gdh-x{flex:0 0 auto;width:18px;height:18px;display:flex;align-items:center;justify-content:center;
  border:0;background:transparent;color:#54677f;cursor:pointer;font-size:13px;line-height:1;font-family:inherit;
  border-radius:3px;transition:.18s;}
.gdh-notice button.gdh-x:hover{background:rgba(255,255,255,.08);color:#fff;}

/* ---------- 头部 ---------- */
/* 头部高度恒定：滚动只改背景/阴影，绝不改文档流高度。
   历史缺陷：滚动收缩 72→60px 会改变 sticky 元素在文档流中的占位高度，
   与「y>20」低阈值及浏览器 scroll anchoring 形成反馈环，导致顶部导航与整页抖动。 */
.gdh-head{position:sticky;top:0;height:72px;background:#01143d;z-index:60;
  box-shadow:0 2px 14px rgba(2,6,23,.28);transition:box-shadow .28s,background .28s;}
.gdh-head.gdh-scrolled{background:#010f2e;box-shadow:0 6px 26px rgba(2,6,23,.5);}
.gdh-head .gdh-nav{display:flex;align-items:center;height:72px;
  max-width:1160px;margin:0 auto;padding:0 24px;}
.gdh-head a.gdh-logo{display:flex;align-items:center;gap:12px;flex:0 0 auto;text-decoration:none;color:inherit;}
.gdh-head a.gdh-logo:hover{text-decoration:none;}
.gdh-head a.gdh-logo img{width:48px;height:48px;object-fit:contain;display:block;max-width:none;}
.gdh-head a.gdh-logo .gdh-txt{display:flex;flex-direction:column;line-height:1.15;}
.gdh-head a.gdh-logo .gdh-txt b{font-size:21px;letter-spacing:3px;color:#fff;font-weight:700;}
.gdh-head a.gdh-logo .gdh-txt span{font-size:11px;color:#7d8aa3;letter-spacing:1.2px;}
.gdh-head .gdh-links{display:flex;gap:28px;font-size:13.5px;color:#9aa6bb;align-items:center;
  margin-left:36px;white-space:nowrap;}
.gdh-head .gdh-links a{color:#9aa6bb;font-weight:400;letter-spacing:.6px;transition:color .2s;
  position:relative;text-decoration:none;}
.gdh-head .gdh-links a:hover{color:#fff;text-decoration:none;}
.gdh-head .gdh-links a.active{color:#fff;}
.gdh-head .gdh-links a.active:after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:-6px;
  width:16px;height:2px;border-radius:1px;background:linear-gradient(90deg,#c9a227,#e8cf7a);}
.gdh-head .gdh-right{margin-left:auto;display:flex;align-items:center;gap:16px;}

/* 账户按钮 + 悬停下拉 */
.gdh-head .gdh-acc{position:relative;display:flex;align-items:center;}
.gdh-head .gdh-acc:after{content:"";position:absolute;left:0;right:0;top:100%;height:12px;}
.gdh-head .gdh-acc button.gdh-acc-btn{height:38px;min-width:38px;padding:0 15px 0 12px;gap:7px;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;border-radius:19px;cursor:pointer;
  font-family:inherit;font-size:13px;font-weight:500;letter-spacing:.5px;
  border:1px solid rgba(96,165,250,.32);background:rgba(59,130,246,.10);color:#d4e3fb;transition:.18s;}
.gdh-head .gdh-acc button.gdh-acc-btn:hover{border-color:rgba(96,165,250,.6);
  background:rgba(59,130,246,.2);color:#fff;box-shadow:0 6px 16px rgba(37,99,235,.25);}
.gdh-head .gdh-acc button.gdh-acc-btn svg{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.gdh-head .gdh-acc button.gdh-acc-btn:not(.user):after{content:"登录";}
.gdh-head .gdh-acc button.gdh-acc-btn .gdh-name{display:none;max-width:128px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;font-weight:600;letter-spacing:.3px;}
.gdh-head .gdh-acc button.gdh-acc-btn .gdh-ava{width:24px;height:24px;flex:0 0 auto;display:none;
  align-items:center;justify-content:center;border-radius:50%;background:rgba(16,185,129,.22);color:#d9f8ec;}
.gdh-head .gdh-acc button.gdh-acc-btn .gdh-ava svg{width:15px;height:15px;fill:currentColor;stroke:none;}
.gdh-head .gdh-acc button.gdh-acc-btn.user{padding:0 14px 0 12px;border-color:rgba(96,165,250,.38);
  background:rgba(59,130,246,.14);color:#dbe9ff;}
.gdh-head .gdh-acc button.gdh-acc-btn.user:hover{border-color:rgba(96,165,250,.7);
  background:rgba(59,130,246,.26);color:#fff;}
.gdh-head .gdh-acc button.gdh-acc-btn.user .gdh-name{display:inline-block;}
.gdh-head .gdh-acc button.gdh-acc-btn.user .gdh-ava{display:none;}
.gdh-head .gdh-acc button.gdh-acc-btn.user > svg{display:none;}
.gdh-head .gdh-acc-menu{position:absolute;right:0;top:calc(100% + 10px);min-width:128px;padding:6px;
  background:#0b1a33;border:1px solid rgba(255,255,255,.14);border-radius:10px;
  box-shadow:0 18px 42px rgba(0,0,0,.5);display:none;z-index:70;}
.gdh-head .gdh-acc.user:hover .gdh-acc-menu,
.gdh-head .gdh-acc.user:focus-within .gdh-acc-menu,
.gdh-head .gdh-acc.is-admin:hover .gdh-acc-menu,
.gdh-head .gdh-acc-menu.show{display:block;}
.gdh-head .gdh-acc-menu:before{content:"";position:absolute;right:15px;top:-6px;width:10px;height:10px;
  background:#0b1a33;border-left:1px solid rgba(255,255,255,.14);
  border-top:1px solid rgba(255,255,255,.14);transform:rotate(45deg);}
.gdh-head .gdh-acc-menu a{display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:7px;
  font-size:13px;color:#c9d7ea;white-space:nowrap;text-decoration:none;}
.gdh-head .gdh-acc-menu a:hover{background:rgba(59,130,246,.2);color:#fff;text-decoration:none;}
.gdh-head .gdh-acc-menu a svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
.gdh-head .gdh-acc:not(.is-admin) .gdh-acc-menu a.admin-only{display:none;}

/* ---------- 响应式 ---------- */
@media(max-width:1180px){
  .gdh-head .gdh-links{gap:20px;margin-left:24px;font-size:13px;}
}
@media(max-width:980px){
  .gdh-head .gdh-links{display:none;}
}
@media(max-width:720px){
  .gdh-notice a.gdh-go{display:none;}
  .gdh-notice .gdh-tag{letter-spacing:.5px;padding:0 4px;}
  /* 窄屏同样不使用遮罩渐隐,保持文字 100% 不透明;分隔圆点略收窄 */
  .gdh-notice a.gdh-nt{gap:7px;padding-right:18px;}
  .gdh-notice a.gdh-nt:after{margin-left:15px;}
  .gdh-head .gdh-links{display:none;}
  .gdh-head{height:60px;}
  .gdh-head .gdh-nav{height:60px;}
  .gdh-head .gdh-right{gap:10px;}
  .gdh-head .gdh-acc button.gdh-acc-btn:not(.user){width:34px;height:34px;min-width:34px;padding:0;border-radius:50%;}
  .gdh-head .gdh-acc button.gdh-acc-btn:not(.user):after{display:none;}
  .gdh-head .gdh-acc button.gdh-acc-btn.user{width:auto;min-width:0;height:34px;padding:0 14px;border-radius:17px;}
  .gdh-head .gdh-acc button.gdh-acc-btn svg{width:16px;height:16px;}
  .gdh-head a.gdh-logo img{width:40px;height:40px;}
  .gdh-head a.gdh-logo .gdh-txt b{font-size:18px;letter-spacing:2px;}
  .gdh-head a.gdh-logo .gdh-txt span{font-size:10px;letter-spacing:.8px;}
  .gdh-head .gdh-nav,.gdh-notice .gdh-nwrap{padding:0 20px;}
}
@media(prefers-reduced-motion:reduce){
  .gdh-notice .gdh-nwrap,.gdh-notice .gdh-tag i.gdh-dot,
  .gdh-notice .gdh-track{animation:none;}
  .gdh-notice a.gdh-go .gdh-arw,.gdh-notice a.gdh-nt b,.gdh-notice a.gdh-nt span{transition:none;}
  /* 静态全可见:不自动滚动,5 条横向平铺、可手动横向滚动查看全部 */
  .gdh-notice .gdh-mq{overflow-x:auto;scrollbar-width:none;}
  .gdh-notice .gdh-mq::-webkit-scrollbar{display:none;}
  .gdh-notice .gdh-track{transform:none;}
}

/* ============================================================
   2026-11-15 全局头部「左上角直角」保险
   头部与公告条原本就未设置 border-radius（默认 0），线上复现亦为直角。
   窗口/预览容器左上角出现的圆角是 Windows 11 非最大化窗口的系统圆角
   或外层容器裁切，不属于网页样式。此处对根容器与头部显式归零，
   杜绝任何页面级覆盖样式、主题或扩展把头部重新裁成圆角。
   原规则逐字保留，零新增 ID、零新增 DOM。
   ============================================================ */
html,body{border-radius:0!important;}
.gdh-head,.gdh-notice{border-radius:0!important;}

/* ============================================================
   全宽铺满 · 响应式自适应（2026-11-16）
   · 仅放开最外层内容容器的 max-width，保留原 padding 与所有响应式断点
   · 长文本（.nsh/.lede/.h2lede/.doc 等）自身 max-width 不动，保持舒适行宽
   · 原样式/HTML/JS 逐字保留，零新增 ID
   ============================================================ */
.gdh-notice .gdh-nwrap,.gdh-head .gdh-nav{max-width:none;}
