/* ============================================================ */
/* 本地 Inter 字体定义（替代 Google Fonts CDN） */
/* ============================================================ */
@font-face {
    font-family: 'Inter';
    src: url('../lib/inter/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../lib/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../lib/inter/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../lib/inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../lib/inter/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../lib/inter/Inter-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../lib/inter/Inter-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================================ */
/* 全局重置 - 科技感极简风格 */
/* ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fb;
    padding-top: 0;
}

/* ============================================================ */
/* 顶部通知栏 - 极简 */
/* ============================================================ */
.top-bar {
    background: #0d1117;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    letter-spacing: 0.3px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.top-bar a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}
.top-bar a:hover {
    color: #fff;
}
.top-bar .divider {
    color: rgba(255,255,255,0.08);
    margin: 0 8px;
}
.top-bar .highlight {
    color: rgba(255,255,255,0.7);
}
.top-bar i {
    opacity: 0.5;
    margin-right: 4px;
}

/* ============================================================ */
/* 主导航栏 - 科技感 */
/* ============================================================ */
.navbar-main {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.navbar-main.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}
.navbar-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 68px;
    position: relative; /* 为移动端菜单定位 */
}

/* ===== Logo ===== */
.navbar-brand-tech {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    gap: 10px;
}
.navbar-brand-tech .logo-mark {
    width: 38px;
    height: 38px;
    background: #0d1117;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    color: #fff;
    letter-spacing: -0.5px;
    position: relative;
    overflow: hidden;
}
.navbar-brand-tech .logo-mark::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.navbar-brand-tech .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.navbar-brand-tech .logo-text .brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #0d1117;
    letter-spacing: -0.5px;
}
.navbar-brand-tech .logo-text .brand-name span {
    color: #c9a84c;
}
.navbar-brand-tech .logo-text .brand-tagline {
    font-size: 9px;
    color: #999;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* ===== 导航链接 ===== */
.navbar-nav-tech {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.navbar-nav-tech .nav-item {
    position: relative;
}
.navbar-nav-tech .nav-link {
    padding: 8px 16px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
    position: relative;
}
.navbar-nav-tech .nav-link i {
    font-size: 14px;
    color: #ccc;
    transition: color 0.3s;
}
.navbar-nav-tech .nav-link:hover {
    color: #0d1117;
    background: #f0f2f5;
}
.navbar-nav-tech .nav-link:hover i {
    color: #c9a84c;
}
.navbar-nav-tech .nav-link.active {
    color: #0d1117;
    background: #f0f2f5;
    font-weight: 600;
}
.navbar-nav-tech .nav-link.active i {
    color: #c9a84c;
}
.navbar-nav-tech .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #c9a84c;
    border-radius: 2px;
}

/* ===== Bulk 数量徽章 ===== */
.bulk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c9a84c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 20px;
    margin-left: 2px;
    transition: all 0.3s;
    line-height: 18px;
}
.bulk-badge.empty {
    background: #e9ecef;
    color: #999;
}
.nav-link.active .bulk-badge {
    background: #c9a84c;
    color: #fff;
}

/* ===== 导航右侧 ===== */
.navbar-right-tech {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== 搜索框 ===== */
.search-wrapper-tech {
    position: relative;
}
.search-wrapper-tech .search-input {
    width: 160px;
    padding: 7px 16px 7px 38px;
    border: 1.5px solid #e9ecef;
    border-radius: 30px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #f8f9fa;
    outline: none;
    color: #333;
}
.search-wrapper-tech .search-input:focus {
    border-color: #c9a84c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201,168,76,0.06);
    width: 220px;
}
.search-wrapper-tech .search-input::placeholder {
    color: #bbb;
    font-size: 12px;
}
.search-wrapper-tech .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 12px;
    pointer-events: none;
}
.search-wrapper-tech .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #0d1117;
    border: none;
    color: #fff;
    padding: 3px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.3s;
    cursor: pointer;
}
.search-wrapper-tech .search-btn:hover {
    background: #c9a84c;
}

/* ===== 操作按钮 ===== */
.action-btn-tech {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-decoration: none;
    position: relative;
}
.action-btn-tech:hover {
    background: #0d1117;
    border-color: #0d1117;
    color: #fff;
}

/* ===== 汉堡菜单 ===== */
.navbar-toggler-tech {
    display: none;
    background: none;
    border: none;
    color: #444;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}
.navbar-toggler-tech:hover {
    color: #c9a84c;
}

/* ===== 移动端搜索 ===== */
.search-mobile-tech {
    display: none;
    padding: 12px 20px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
}
.search-mobile-tech .search-row {
    display: flex;
    gap: 10px;
}
.search-mobile-tech input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #e9ecef;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.search-mobile-tech input:focus {
    border-color: #c9a84c;
}
.search-mobile-tech .search-btn-mobile {
    padding: 10px 20px;
    background: #0d1117;
    border: none;
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
    white-space: nowrap;
}
.search-mobile-tech .search-btn-mobile:hover {
    background: #c9a84c;
}

/* ============================================================ */
/* 响应式 */
/* ============================================================ */
@media (max-width: 992px) {
    .navbar-toggler-tech {
        display: block;
    }
    .navbar-nav-tech {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 2px;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        border-radius: 0 0 12px 12px;
        position: absolute;
        left: 0;
        right: 0;
        top: 60px;
        z-index: 1040;
        padding: 8px 0 12px;
        border-top: 1px solid #f0f2f5;
    }
    .navbar-nav-tech.show {
        display: flex;
    }
    .navbar-nav-tech .nav-link {
        padding: 10px 20px;
        width: 100%;
        border-radius: 0;
        font-size: 14px;
        border-bottom: 1px solid #f8f9fa;
    }
    .navbar-nav-tech .nav-link:last-child {
        border-bottom: none;
    }
    .navbar-nav-tech .nav-link.active::after {
        display: none;
    }
    .search-wrapper-tech {
        display: none;
    }
    .search-mobile-tech {
        display: block;
    }
    .navbar-main .container {
        height: 60px;
        padding: 0 16px;
        position: relative;
    }
    .navbar-brand-tech .logo-text .brand-name {
        font-size: 18px;
    }
    .navbar-brand-tech .logo-mark {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .top-bar .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 4px 0;
    }
    .top-bar-left, .top-bar-right {
        justify-content: center;
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .navbar-brand-tech .logo-text .brand-tagline {
        display: none;
    }
    .top-bar .divider {
        margin: 0 4px;
    }
    .action-btn-tech {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .search-mobile-tech .search-row {
        flex-direction: column;
    }
    /* 容器高度仍为 60px，菜单 top 保持不变，避免缝隙/重叠 */
    .navbar-nav-tech {
        top: 60px;
    }
}

/* Logo 图片样式 */
.logo-img {
    display: block;
    height: 48px;
    width: auto;
}
@media (max-width: 992px) {
    .logo-img {
        height: 36px;
    }
}
@media (max-width: 576px) {
    .logo-img {
        height: 30px;
    }
}
