/* ---------- 1. 顶部导航 ---------- */
.search-icon{
  cursor: pointer;
}
.bpc-nav-search svg {
    pointer-events: auto !important;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.45;
}
.bpc-nav {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    background: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bpc-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    flex:1;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}
.bpc-nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.bpc-nav-logo img {
    height: 40px;
    display: block;
}
.bpc-nav-search {
    position: relative;
    width: 528px;
    flex: 1 1 528px;
    min-width: 0;
    background: #fff;
    height: 32px;
    border-radius:  25px;
}
input[type="text"] {
  -webkit-appearance: none;
  appearance: none;
  border: none !important;
}
.bpc-nav-search input {
    width: 100%;
    min-width: 0;
    height: 32px;
    border-radius: 999px;
    padding: 0 16px 0 16px;
    font-size: 14px;
    background: orange;
    border: 0;
    outline: none  !important;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.bpc-nav-search input::after {
    border:none !important;
}
.bpc-nav-search input:focus {
    background: #fff;
    border-color: var(--primary-color);
     border-radius: 999px;
}
.bpc-nav-search .search-icon  {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.45;
}
.bpc-nav-menu {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0 0 0 auto;
    list-style: none;
    padding: 0;
    justify-content: flex-end;
}
.bpc-nav-menu li {
    padding: 0 24px;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;

}
.bpc-nav-menu li::after {
    content:"";
    position: absolute;
    display:inline-block;
    right:0;
    height: 10px;
    width: 1px;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.5);
}
.bpc-nav-menu li:last-of-type {
    padding-right: 0;
}
.bpc-nav-menu li:last-of-type::after {
    display: none;
}

.bpc-nav-menu li:has(+ .mobile_link) {
    padding-right: 0;
}
.bpc-nav-menu li:has(+ .mobile_link)::after {
    display: none;
}
.bpc-nav-menu a {
    font-family: default_bold;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
    text-align: left;
    font-style: normal;
    text-transform: none;
    padding:2px 4px;
    border-radius: 4px;
    white-space: nowrap;
}

.bpc-nav-menu a:hover {
    background: rgba(255,255,255,0.2);
}
.bpc-nav-cta {
    color: #fff ;
}
.bpc-nav-cta:hover {
    opacity: 0.88;
}
.bpc-nav-toggle {
    display: none;
    background: none;
    border: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding:4px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px 5px 5px 5px;
}
.bpc-nav-close {
    display: none;
}
@media (max-width: 1024px) {
    .bpc-nav-search {
        width: fit-content;
    }
 }
.bpc-nav-backdrop {
    display: none;
}
body.bpc-nav-lock {
    overflow: hidden;
}
.mobile_show {
   display: none;

}
.mobile_link {
   display: none;

}

.bpc-nav-menu .mobile_link {
    display: none;
}
/* ≤1024px */
@media (max-width: 1024px) {
    .bpc-nav-inner {
        gap: 12px;
    }
    .bpc-nav-inner .bpc-nav-search { 
        flex: 1;
    }
    .mobile_show {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .bpc-nav-menu .mobile_link {
        display: flex;
    }
    .bpc-nav-search {
        width: fit-content;
    }
    .bpc-nav-toggle {
        display: flex;
    }
    .bpc-nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        margin: 0;
    
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 20px 0 16px;
        border-bottom: none;
        box-shadow: -4px 0 18px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
    }
    .bpc-nav-menu.is-open {
        transform: translateX(0);
    }
    .bpc-nav-close {
        display: flex;
        position: absolute;
        top: 12px;
        left: 12px;
        width: 32px;
        height: 32px;
        border: 0;
        /* background: rgba(0, 0, 0, 0.05); */
        border-radius: 5px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .bpc-nav-close .iconfont {
        font-size: 16px;
        color: #333;
    }
    .bpc-nav-close:hover {
        background: rgba(0, 0, 0, 0.09);
    }

    .bpc-nav-menu li {
        padding: 0;
        width: 100%;
        line-height: 1.4;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .bpc-nav-menu li::after {
        display: none;
    }
    .bpc-nav-menu a {
        display: block;
        width: 100%;
        padding: 14px ;
        font-size: 16px;
        color: #333;
        border-radius: 0;
        white-space: normal;
    }
    .bpc-nav-menu a:hover {
        text-decoration: none;
    }
    .bpc-nav-menu a.active {
        background: rgba(175, 4, 0, 0.08);
        color: var(--primary-color);
    }
    .bpc-nav-menu a:hover {
        background: rgba(0, 0, 0, 0.04);
    }
    .bpc-nav-menu .bpc-nav-cta {
        color: var(--primary-color) ;
        font-weight: bold;
    }
    /* mobile: 遮罩层 */
    .bpc-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .bpc-nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }
}

/* ---------- 搜索下拉建议 ---------- */
.bpc-search-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-height: 360px;
    overflow-x: hidden;
    overflow-y: auto;
}
.bpc-suggest-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.15s ease;
}
.bpc-suggest-item:last-child {
    border-bottom: none;
}
.bpc-suggest-item:hover,
.bpc-suggest-item.is-active {
    background: rgba(175, 4, 0, 0.05);
}
.bpc-suggest-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    white-space: normal;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
}
.bpc-suggest-date {
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
}

/* 移动端搜索建议适配 */
@media (max-width: 768px) {
    .bpc-search-suggest {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        border-radius: 0;
        max-height: 50vh;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }
    .bpc-suggest-item {
        padding: 12px 16px;
    }
    .bpc-suggest-text {
        font-size: 14px;
    }
    .bpc-suggest-date {
        font-size: 12px;
    }
}