/*!
  OneNav 子主题美化 - 黑猫导航
  复刻 qinggongju.com 风格
  Version: 2.0
*/

/* ========== 全局配色变量覆盖 ========== */
:root {
    --theme-color: #5f9bfc;
    --hover-color: #56bbe3;
    --main-color: #444;
    --main-radius: 10px;
    --main-max-width: 1480px;
    --home-max-width: 1480px;
    --main-aside-basis-width: 130px;
    --main-bg-color: #ffffff;
    --card-bg-color: #ffffff;
    --form-color: #777;
    --form-bg: #ffffff;
    --muted-color3: #a5a8aa;
}

body {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ========== 导航栏 ========== */
.header-nav {
    height: 80px;
    backdrop-filter: saturate(2) blur(15px);
    -webkit-backdrop-filter: saturate(2) blur(15px);
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.navbar-header .logo {
    height: 36px;
}

.navbar-header li a {
    font-size: 15px;
    padding: 15px 10px;
    color: #444;
    transition: color 0.3s;
}

.navbar-header li a:hover,
.navbar-header li.current-menu-item a {
    color: #5f9bfc;
}

.navbar-header li.current-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    border-radius: 4px;
    background: #5f9bfc;
    opacity: 1;
    transition: opacity 0.3s;
}

.navbar-header li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    border-radius: 4px;
    background: #5f9bfc;
    opacity: 0;
    transition: opacity 0.3s;
}

.navbar-header li:hover::after {
    opacity: 1;
}

/* ========== 搜索区域 ========== */
.search-area {
    padding: 40px 0 20px;
    min-height: 140px;
}

.search-form .form-control {
    height: 50px;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 16px;
    border: 1px solid #e3e3e3;
    background: #ffffff;
    color: #777;
    transition: all 0.25s;
}

.search-form .form-control:focus {
    border-color: #5f9bfc;
    box-shadow: 0 0 0 3px rgba(95, 155, 252, 0.15);
}

.search-form .btn-search {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #5f9bfc;
    color: #fff;
    border: none;
}

.search-form .btn-search:hover {
    background: #56bbe3;
}

/* 搜索Tab切换 */
.search-tabs .nav-link {
    color: #777;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-tabs .nav-link.active {
    background: #5f9bfc;
    color: #fff;
}

.search-tabs .nav-link:hover:not(.active) {
    color: #5f9bfc;
    background: rgba(95, 155, 252, 0.08);
}

/* ========== 主内容区 ========== */
.tab-content {
    margin: -15px;
    padding: 15px;
    border: 1px solid #e3e3e3;
    border-radius: 15px;
    background: #ffffff;
}

.tab-content:hover {
    border-color: #9e9e9e;
}

/* ========== 侧边栏 Widget ========== */
.io-lh-widget .widget-header {
    background-color: #e3efff !important;
    color: #5f9bfc !important;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.io-lh-widget .widget-header i {
    color: #5f9bfc !important;
}

.list-cat .list-cat-item a {
    color: #444;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.list-cat .list-cat-item a:hover,
.list-cat .list-cat-item.current-cat a {
    color: #5f9bfc;
    background: rgba(95, 155, 252, 0.08);
}

.list-cat .list-cat-item.current-cat a {
    font-weight: 600;
}

/* ========== 网址卡片 ========== */
.posts-item.sites-item {
    border-radius: 10px;
    background: #ffffff;
    margin: 5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
}

.posts-item.sites-item:hover {
    box-shadow: inset 0 0 2px rgba(116, 116, 116, 0.1), 0 20px 25px -10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.style-sites-min .sites-body {
    padding: 6px 8px;
}

.style-sites-min .item-header .item-media {
    width: 22px;
    height: 22px;
    border-radius: 40px;
    overflow: hidden;
}

.style-sites-min .item-header .item-image img {
    border-radius: 40px;
    transition: transform 0.4s ease;
}

.style-sites-min .sites-body:hover .item-image img {
    transform: scale(1.05);
}

.blur-img-bg {
    background-size: 120% !important;
    filter: blur(10px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sites-body:hover .blur-img-bg {
    transform: scale(1);
}

.style-sites-min .item-title {
    font-size: 13px;
    color: #444;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.sites-body {
    color: #444;
    transition: color 0.3s;
}

a.sites-body:hover {
    color: #5f9bfc;
}

/* ========== 分类标题 ========== */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #5f9bfc;
    border-radius: 3px;
}

/* ========== 页脚 ========== */
.footer-copyright {
    padding: 15px;
    border: 1px solid #e3e3e3;
    border-radius: 15px;
    margin: 0 35px 35px;
    background: #ffffff;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.footer-copyright a {
    color: #5f9bfc;
}

.blur-bg {
    background: #ffffff !important;
}

/* ========== 暗色模式 ========== */
.io-black-mode {
    --main-bg-color: #1b1d1f;
    --card-bg-color: #2D2E2F;
}

.io-black-mode body {
    background: #1b1d1f;
}

.io-black-mode .header-nav {
    background: rgba(29, 31, 33, 0.85) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.io-black-mode .navbar-header li a {
    color: #ccc;
}

.io-black-mode .navbar-header li a:hover,
.io-black-mode .navbar-header li.current-menu-item a {
    color: #5f9bfc;
}

.io-black-mode .tab-content {
    border-color: #3a3a3a;
    background: #1b1d1f;
}

.io-black-mode .tab-content:hover {
    border-color: #5f9bfc;
}

.io-black-mode .posts-item.sites-item {
    background: #2D2E2F;
}

.io-black-mode .posts-item.sites-item:hover {
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.05), 0 20px 25px -10px rgba(0, 0, 0, 0.4);
}

.io-black-mode .style-sites-min .item-title {
    color: #ccc;
}

.io-black-mode a.sites-body:hover {
    color: #5f9bfc;
}

.io-black-mode .list-cat .list-cat-item a {
    color: #ccc;
}

.io-black-mode .footer-copyright {
    border-color: #3a3a3a;
    background: #2D2E2F;
    color: #888;
}

.io-black-mode .io-lh-widget .widget-header {
    background-color: #27384f !important;
    color: #5f9bfc !important;
}

.io-black-mode .blur-bg {
    background: #1b1d1f !important;
}

.io-black-mode .search-form .form-control {
    background: #2D2E2F;
    border-color: #3a3a3a;
    color: #ccc;
}

.io-black-mode .search-tabs .nav-link {
    color: #999;
}

.io-black-mode .section-title {
    color: #eee;
}

/* ========== 响应式优化 ========== */
@media (max-width: 768px) {
    .header-nav {
        height: 60px;
    }
    .footer-copyright {
        margin: 0 15px 15px;
    }
    .tab-content {
        margin: -10px;
        padding: 10px;
    }
    .search-area {
        min-height: 100px;
        padding: 20

/* ========== 高优先级覆盖（修复颜色不生效） ========== */

/* 导航栏强制蓝色毛玻璃 */
.header-nav.blur-bg {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: saturate(2) blur(15px) !important;
    -webkit-backdrop-filter: saturate(2) blur(15px) !important;
}

/* 主导航文字颜色 */
.blur-bg .navbar-header li a,
.header-nav .navbar-header li a,
.navbar-header li a {
    color: #444 !important;
}

.blur-bg .navbar-header li a:hover,
.header-nav .navbar-header li a:hover,
.navbar-header li a:hover,
.blur-bg .navbar-header li.current-menu-item a,
.header-nav .navbar-header li.current-menu-item a {
    color: #5f9bfc !important;
}

/* 搜索按钮蓝色 */
.btn.vc-theme.search-submit,
.btn-theme {
    background-color: #5f9bfc !important;
    border-color: #5f9bfc !important;
}

.btn.vc-theme.search-submit:hover,
.btn-theme:hover {
    background-color: #56bbe3 !important;
}

/* Widget标题蓝色背景 */
.io-lh-widget .widget-header,
.widget-title {
    background-color: #e3efff !important;
    color: #5f9bfc !important;
    border-radius: 8px !important;
}

/* 侧边栏分类链接 */
.list-cat .list-cat-item a {
    color: #444 !important;
    border-radius: 8px !important;
    transition: all 0.3s !important;
}

.list-cat .list-cat-item a:hover,
.list-cat .list-cat-item.current-cat a {
    color: #5f9bfc !important;
    background: rgba(95, 155, 252, 0.08) !important;
}

/* 卡片hover蓝色 */
.sites-body:hover {
    color: #5f9bfc !important;
}

/* 链接hover统一蓝色 */
a:hover {
    color: #5f9bfc !important;
}

/* 当前页面指示条 */
.navbar-header li.current-menu-item::after,
.navbar-header li::after {
    background: #5f9bfc !important;
}

/* 滚动阴影 */
.header-nav {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* 搜索框聚焦 */
.form-control:focus {
    border-color: #5f9bfc !important;
    box-shadow: 0 0 0 3px rgba(95, 155, 252, 0.15) !important;
}

/* 返回顶部 */
.go-to-top,
.back-to-top {
    background: #5f9bfc !important;
}

/* 分页激活 */
.pagination .current,
.page-numbers.current {
    background: #5f9bfc !important;
    border-color: #5f9bfc !important;
}
