.nb-wrap{max-width:1080px;margin:0 auto;padding:0 16px}
.nb-header{position:sticky;top:0;z-index:20;background:var(--surface);border-bottom:1px solid var(--border)}
.nb-header .nb-wrap{display:flex;align-items:center;gap:16px;height:64px}
.nb-brand{display:flex;align-items:center;gap:12px}
.nb-site-title{font-weight:700;font-size:20px}
.nb-nav-toggle{display:none;border:1px solid var(--border);background:transparent;padding:8px 10px;border-radius:8px;color:var(--text)}
.nb-nav{margin-left:auto}
.nb-menu{display:flex;gap:18px;list-style:none;margin:0;padding:0}
.nb-menu a{padding:10px 6px;border-radius:6px;}
.nb-menu a:hover{background:rgba(255,255,255,.06)}
@media (max-width:900px){
  .nb-nav-toggle{display:block}
  .nb-nav{position:absolute;left:0;right:0;top:64px;background:var(--surface);display:none;border-bottom:1px solid var(--border)}
  .nb-nav.open{display:block}
  .nb-menu{flex-direction:column;padding:10px}
}

.nb-main{padding:24px 0}
.nb-breadcrumb{font-size:13px;color:var(--muted);margin:8px 0 18px 0}
.nb-content{display:grid;grid-template-columns:1fr 320px;gap:28px}
@media (max-width:1100px){.nb-content{grid-template-columns:1fr}}

.nb-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px;margin-bottom:18px}
.nb-card-title{margin:10px 0 6px}
.nb-card .nb-thumb img{width:100%;height:auto;border-radius:10px}

.nb-single .nb-title,.nb-page .nb-title,.nb-archive-head .nb-title{margin:0 0 8px}
.nb-entry{line-height:1.8}

.nb-footer{margin-top:40px;border-top:1px solid var(--border);background:var(--surface)}
.nb-footer .nb-wrap{display:flex;justify-content:space-between;gap:18px;padding:22px 16px}
.nb-btn{display:inline-block;padding:10px 16px;border:1px solid var(--border);border-radius:10px}

/* === Enhanced Navigation Bar === */
:root{
  --nav-bg: rgba(248, 250, 252, .95);
  --nav-blur: 10px;
  --nav-accent: var(--link);
  --nav-text: var(--text);
  --nav-border: var(--border);
}

.nb-header{backdrop-filter: blur(var(--nav-blur)); -webkit-backdrop-filter: blur(var(--nav-blur)); background: var(--nav-bg);}
.nb-header .nb-wrap{height:66px;background-color: #000000;}

.nb-header.is-scrolled{box-shadow: 0 8px 30px rgba(59,130,246,.15); background: rgba(248,250,252,.98);}

/* menu base */
.nb-menu{position:relative; align-items:center}
.nb-menu li{position:relative}
.nb-menu a{
  position:relative;
  font-weight:600;
  letter-spacing:.2px;
  transition: background-size .25s ease, color .2s ease, opacity .2s ease;
  color: #ffffff;
}
.nb-menu a:hover,
.nb-menu .current-menu-item > a,
.nb-menu .current_page_item > a{
  
}

/* dropdown caret */
.nb-menu .menu-item-has-children > a::after{
  content:"";
  display:inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity:.8;
}

/* submenu desktop */
.nb-menu .sub-menu{
  position:absolute;
  left:0; top: calc(100% + 10px);
  min-width: 200px;
  background: rgba(255, 255, 255, .98);
  border:1px solid var(--nav-border);
  border-radius: 12px;
  padding: 8px;
  list-style:none;
  margin:0;
  display:block;
  visibility:hidden;
  opacity:0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s step-end;
  z-index: 50;
}
.nb-menu .sub-menu li a{
  display:block;
  padding:10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.nb-menu .sub-menu li a:hover{ background: rgba(255,255,255,.06); }
.nb-menu li:hover > .sub-menu,
.nb-menu li:focus-within > .sub-menu{
  visibility:visible; opacity:1; transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility .18s step-start;
}

/* mobile menu: smooth drop + submenu accordion */
@media (max-width:900px){
  .nb-nav{overflow:hidden; max-height:0; transition:max-height .28s ease;}
  .nb-nav.open{display:block; max-height: 70vh;}
  .nb-menu .menu-item-has-children > .sub-menu{
    position:static; border:none; background:transparent; padding:6px 0; border-radius:0;
    visibility:visible; opacity:1; transform:none; display:none;
  }
  .nb-menu .menu-item-has-children.open > .sub-menu{ display:block; }
  .nb-menu .menu-item-has-children > a::after{ transform: rotate(-45deg) translateY(-1px); transition: transform .2s ease;}
  .nb-menu .menu-item-has-children.open > a::after{ transform: rotate(45deg) translateY(-1px); }
}


/* 确保所有链接都没有下划线 */
a, .nb-menu a, .nb-card a, .widget a, .pagination a { 
  text-decoration: none; 
}
a:hover, .nb-menu a:hover, .nb-card a:hover, .widget a:hover, .pagination a:hover { 
  text-decoration: none; 
}

/* Link colors tuned for light theme */
a{color:var(--link); transition: color 0.2s ease;}
a:hover{color:#0ea5e9; text-decoration: none;}

