/*
 Theme Name: TKTOC
 Theme URI: https://www.tktoc.com/
 Description: Onenav Child Theme
 Author: tktoc
 Author URI: https://www.tktoc.com/
 Template: onenav
 Version: 5.56
 Updated: 2025-08-21 23:35:45
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  onenav-child
*/


/* ========================================
   搜索框左右分栏布局样式
   ======================================== */

/* 搜索模态框分栏布局 */
.search-body-split {
    max-width: 100%;
}

.search-body-split .search-body-content {
    margin-top: 1rem;
    gap: 1rem;
}

/* 左侧搜索功能区域 */
.search-left-panel {
    padding-right: 0.75rem;
}

.search-left-panel .search-keywords-box {
    margin-bottom: 1rem;
}

.search-left-panel .search-gadget-box {
    margin-top: 0;
}

/* 右侧最新资讯区域 */
.search-right-panel {
    padding-left: 0.75rem;
    border-left: 1px solid var(--border-color, #e9ecef);
}

.search-bulletin-wrapper h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-muted, #6c757d);
}

.search-bulletin-wrapper .card {
    margin: 0;
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-bulletin-wrapper .card-body {
    padding: 0.75rem;
}

.search-bulletin-wrapper .bulletin-swiper {
    flex: 1;
    overflow: hidden;
}

.search-bulletin-wrapper .carousel-inner {
    height: auto;
    max-height: 200px;
    overflow-y: auto;
}

.search-bulletin-wrapper .carousel-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-light, #f8f9fa);
}

.search-bulletin-wrapper .carousel-item:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 767.98px) {
    .search-body-split .search-body-content {
        margin-top: 0.75rem;
        gap: 0.75rem;
    }
    
    .search-left-panel,
    .search-right-panel {
        padding-left: 0;
        padding-right: 0;
    }
    
    .search-right-panel {
        border-left: none;
        border-top: 1px solid var(--border-color, #e9ecef);
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .search-bulletin-wrapper {
        margin-top: 0;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .search-right-panel {
        border-left-color: var(--border-dark, #495057);
    }
    
    @media (max-width: 767.98px) {
        .search-right-panel {
            border-top-color: var(--border-dark, #495057);
        }
    }
    
    .search-bulletin-wrapper .card {
        border-color: var(--border-dark, #495057);
        background-color: var(--bg-dark, #343a40);
    }
    
    .search-bulletin-wrapper .carousel-item {
        border-bottom-color: var(--border-dark-light, #495057);
    }
}

/* 主题变量兼容 */
.theme-dark .search-right-panel {
    border-left-color: #495057;
}

.theme-dark .search-bulletin-wrapper .card {
    border-color: #495057;
    background-color: #343a40;
}

.theme-dark .search-bulletin-wrapper .carousel-item {
    border-bottom-color: #495057;
}

@media (max-width: 767.98px) {
    .theme-dark .search-right-panel {
        border-top-color: #495057;
    }
}