/* =====================================================================
   gcmod-unified-nav.css  v=20261005a
   全站统一顶部导航（Aether 风格，与官网首页 gc-header 同款）
   机制：脚本注入 <header class="gc-header"> 到每个页面顶部，
         本文件负责样式，旧导航由脚本隐藏。
   ===================================================================== */
.gc-header{
  position:sticky;top:0;z-index:60;
  background:rgba(250,250,247,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(204,120,92,.12);
  font-family:'StyreneA',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  transition:background .3s ease,border-color .3s ease;
}
html.dark .gc-header{background:rgba(25,23,20,.92);border-color:rgba(227,224,211,.12)}
.gc-header-inner{display:flex;align-items:center;justify-content:space-between;height:4rem;max-width:1180px;margin:0 auto;padding:0 1.5rem;gap:1rem}
.gc-brand{display:flex;align-items:center;gap:.7rem;flex:none;text-decoration:none;color:inherit}
.gc-brand svg{width:1.9rem;height:1.9rem;color:#191919;flex:none}
html.dark .gc-brand svg{color:#fff}
.gc-brand-txt{display:flex;flex-direction:column;justify-content:center;line-height:1.1}
.gc-brand-name{font-family:'TiemposText',serif;font-weight:500;font-size:1.05rem;color:#191919;white-space:nowrap}
html.dark .gc-brand-name{color:#fff}
.gc-brand-sub{font-size:.62rem;color:#91918d;letter-spacing:.02em;white-space:nowrap}
html.dark .gc-brand-sub{color:#c9c3b4}
.gc-nav{display:flex;align-items:center;gap:.15rem;flex:1 1 auto;justify-content:center;min-width:0}
.gc-nav a{
  padding:.4rem .8rem;border-radius:.5rem;font-size:.9rem;font-weight:500;color:#666663;
  text-decoration:none;transition:background .2s,color .2s;white-space:nowrap;
}
html.dark .gc-nav a{color:#c9c3b4}
.gc-nav a:hover{background:rgba(204,120,92,.1);color:#cc785c}
html.dark .gc-nav a:hover{color:#d4a27f}
.gc-nav a.cur{color:#cc785c;font-weight:600}
html.dark .gc-nav a.cur{color:#d4a27f}
.gc-actions{display:flex;align-items:center;gap:.5rem;flex:none}
.gc-theme-btn{
  width:2.1rem;height:2.1rem;display:inline-flex;align-items:center;justify-content:center;
  border-radius:.6rem;border:1px solid #e9e6dc;background:transparent;color:#666663;
  cursor:pointer;transition:background .2s,border-color .2s,color .2s;
}
html.dark .gc-theme-btn{border-color:rgba(227,224,211,.14);color:#c9c3b4}
.gc-theme-btn:hover{background:rgba(204,120,92,.1);color:#cc785c;border-color:rgba(204,120,92,.2)}
.gc-theme-btn .moon{display:none}
html.dark .gc-theme-btn .moon{display:inline}
html.dark .gc-theme-btn .sun{display:none}
.gc-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  border-radius:.6rem;font-size:.875rem;font-weight:500;padding:.5rem 1rem;
  cursor:pointer;transition:all .25s ease;white-space:nowrap;border:none;text-decoration:none;
  font-family:'StyreneA',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
}
.gc-btn-primary{background:#cc785c;color:#fff}
.gc-btn-primary:hover{background:#c96442}
.gc-btn-ghost{background:transparent;color:#666663;border:1px solid #e9e6dc}
html.dark .gc-btn-ghost{color:#c9c3b4;border-color:rgba(227,224,211,.14)}
.gc-btn-ghost:hover{background:rgba(204,120,92,.1);color:#cc785c;border-color:rgba(204,120,92,.2)}
.gc-burger{
  display:none!important;width:2.1rem;height:2.1rem;align-items:center;justify-content:center;
  border-radius:.6rem;border:1px solid #e9e6dc;background:transparent;color:#666663;cursor:pointer;
}
html.dark .gc-burger{border-color:rgba(227,224,211,.14);color:#c9c3b4}

/* 移动全屏菜单 */
.gc-mobile-menu{
  position:fixed;inset:0;z-index:95;display:none;flex-direction:column;gap:.25rem;
  background:rgba(250,250,247,.97);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  padding:4.5rem 1.5rem 2rem;overflow-y:auto;
}
html.dark .gc-mobile-menu{background:rgba(25,23,20,.97)}
.gc-mobile-menu a{padding:.9rem .75rem;border-radius:.75rem;font-size:1.05rem;font-weight:500;color:inherit;text-decoration:none}
.gc-mobile-menu a:hover{background:rgba(204,120,92,.1);color:#cc785c}
.gc-mobile-menu a.cur{background:rgba(0,0,0,.06);font-weight:600;color:#cc785c}
html.dark .gc-mobile-menu a.cur{background:rgba(255,255,255,.08)}
.gc-mm-close{margin-top:1rem;padding:.7rem;border-radius:.75rem;border:1px solid rgba(0,0,0,.1);background:transparent;color:inherit;font-size:.95rem;cursor:pointer}
html.dark .gc-mm-close{border-color:rgba(255,255,255,.15)}
.gc-mm-div{height:1px;background:rgba(0,0,0,.08);margin:.6rem .25rem}
html.dark .gc-mm-div{background:rgba(255,255,255,.1)}

@media (max-width:900px){
  .gc-nav{display:none}
  .gc-burger{display:inline-flex!important}
}
@media (max-width:520px){
  .gc-brand-sub{display:none}
  .gc-actions{gap:.35rem}
  .gc-actions .gc-btn{padding:.45rem .7rem;font-size:.8rem}
  .gc-theme-btn{width:1.9rem;height:1.9rem}
  .gc-header-inner{height:3.6rem}
  .gc-brand svg{width:1.6rem;height:1.6rem}
  .gc-brand-name{font-size:.95rem}
  .gc-actions .gc-btn-reg{display:none}
}
@media (prefers-reduced-motion:reduce){
  .gc-header,.gc-mobile-menu{transition:none}
}