/* ==========================================================================
   AI联播网 · 全站页头
   设计理念：深色信息条 + 悬浮玻璃导航 + 清晰文字层级
   ========================================================================== */

:root {
    --sh-ink: #111827;
    --sh-text: #374151;
    --sh-muted: #6b7280;
    --sh-line: #e8eaee;
    --sh-accent: #e8541e;
    --sh-accent-soft: #fff4ee;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: var(--sh-ink);
    color: #cbd5e1;
    font-size: 12px;
}

.topbar-inner {
    max-width: 1200px;
    height: 36px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar strong {
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-links a {
    color: #cbd5e1;
    transition: color .2s ease;
}

.topbar-links a:hover {
    color: #fff;
}

.topbar-date {
    color: #94a3b8;
}

/* ---------- 主导航 ---------- */
.custom-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sh-line);
    box-shadow: 0 2px 16px rgba(17, 24, 39, .04);
}

.navbar-container {
    max-width: 1200px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-img {
    height: 38px;
    width: auto;
}

.navbar-menu-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.navbar-nav-custom {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item-custom {
    position: relative;
}

.nav-link-custom {
    position: relative;
    display: block;
    padding: 26px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--sh-text);
    white-space: nowrap;
    transition: color .2s ease;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--sh-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
}

.nav-link-custom:hover {
    color: var(--sh-accent);
}

.nav-link-custom.active {
    color: var(--sh-ink);
}

/* 仅选中项显示下划线；覆盖旧主题中的 hover 下划线 */
.nav-link-custom:hover::after {
    transform: scaleX(0);
}

.nav-link-custom.active::after {
    transform: scaleX(1);
}

/* ---------- 下拉菜单 ---------- */
.dropdown-menu-custom {
    top: calc(100% - 4px);
    left: 6px;
    min-width: 190px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--sh-line);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, .12);
}

.dropdown-item-custom {
    padding: 9px 12px;
    font-size: 13.5px;
    border-radius: 6px;
}

.dropdown-item-custom:hover {
    background: var(--sh-accent-soft);
    color: var(--sh-accent);
}

/* ---------- 搜索 ---------- */
.search-container-custom {
    position: relative;
    margin-left: 10px;
}

.search-toggle-custom {
    width: 38px;
    height: 38px;
    border: 1px solid var(--sh-line);
    border-radius: 50%;
    background: #fff;
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.search-toggle-custom:hover {
    background: var(--sh-accent-soft);
    border-color: var(--sh-accent);
    color: var(--sh-accent);
}

.search-box-custom {
    top: calc(100% + 14px);
    width: 340px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--sh-line);
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(17, 24, 39, .16);
}

.search-input-custom {
    padding: 10px 12px;
    font-size: 14px;
    background: #f8f9fb;
    border-radius: 8px;
}

.search-input-custom:focus {
    border-color: var(--sh-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 84, 30, .12);
}

.search-submit-custom {
    padding: 0 18px;
    background: var(--sh-ink);
    border-radius: 8px;
    transition: background .2s ease;
}

.search-submit-custom:hover {
    background: var(--sh-accent);
}

/* ---------- 移动端 ---------- */
.mobile-menu-toggle,
.mobile-search-toggle {
    border-radius: 10px;
}

.mobile-menu-container {
    top: 72px;
    padding-top: 14px;
    border-right: 1px solid var(--sh-line);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--sh-accent);
    background: var(--sh-accent-soft);
}

.mobile-search-box {
    top: 72px;
    padding: 14px 18px;
}

.mobile-search-input:focus {
    border-color: var(--sh-accent);
}

.mobile-search-submit {
    background: var(--sh-ink);
    border-radius: 8px;
}

.mobile-search-submit:hover {
    background: var(--sh-accent);
}

@media (max-width: 768px) {
    .navbar-container {
        height: 64px;
        padding: 0 16px;
        gap: 12px;
    }

    .navbar-logo img {
        height: 34px;
    }

    .mobile-menu-container,
    .mobile-search-box {
        top: 64px;
    }

    .topbar-inner {
        padding: 0 16px;
        font-size: 11.5px;
    }
}
