/* Navbar.css - 自动内容生成方案（静态页面兼容） */
.navbar {
  width: 100%;
  margin: 0 auto;
  border: 0;
  padding: 0 35px;
  height: 70px;
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar::before {
  content: '';
  display: block;
}

.navbar::after {
  content: '';
  display: block;
}

.navbar:empty::before {
  content: ''
    ' <div class="navbar-header">'
    '   <a class="navbar-brand" href="/home">'
    '     <img src="/src/assets/images/logo.png" alt="南京踏实信息科技logo">'
    '   </a>'
    '   <span>'
    '     <div>南京踏实信息科技有限公司</div>'
    '     <div>Information Technology</div>'
    '   </span>'
    ' </div>'
    ' <ul class="navbar-nav">'
    '   <li><a href="/home">首页</a></li>'
    '   <li><a href="/products">产品中心</a></li>'
    '   <li><a href="/solutions">系统方案</a></li>'
    '   <li><a href="/cases">案例应用</a></li>'
    '   <li><a href="/news">行业资讯</a></li>'
    '   <li><a href="/aboutUs">关于我们</a></li>'
    ' </ul>';
}

.navbar-header {
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    margin: 8px 0;
    padding: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    filter: brightness(120%);
}

.navbar-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.navbar-header > span {
    display: inline-block;
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    margin: 0 0 0 10px;
}

.navbar-header > span > div:first-child {
    font-size: 15px;
    font-weight: bold;
}

.navbar-nav {
    list-style: none;
    display: flex;
    height: 70px;
}

.navbar-nav > li {
    padding: 14px 22px;
    height: 70px;
    position: relative;
}

.navbar-nav > li > a {
    font-weight: 500;
    color: #fffefe;
    padding: 10px 0;
    text-decoration: none;
    font-size: 16px;
    display: block;
    line-height: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.navbar-nav > li > a:hover::after,
.navbar-nav > li.active > a::after {
    width: 100%;
}

.navbar-nav > li.active > a {
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .navbar-nav > li {
        padding: 14px 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }

    .navbar-header > span {
        display: none;
    }

    .navbar-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        color: white;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }
}