nav.bg{ background:#222} 
text1{font-size:22px}
.alert-warning {
color: #8a6d3b;
background-color: #fcf8e3;
border-color: #faebcc;
}
.alert-dismissable .close, .alert-dismissible .close {
position: relative;
top: -2px;
right: -21px;
color: inherit;
}
.alert {
    text-align: center;
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}
.container{
    width: auto;
    max-width: 950px;
}

/* 搜索容器 */
.search-container {
    position: relative;
    width: 100%;
 
    margin-right: 15px;
}

.search-input:focus {
    border-color: #337ab7;
    box-shadow: 0 0 8px rgba(51,122,183,0.2);
}

/* 搜索按钮 */
.btn-search {
    position: absolute;
    right: 0px;
    background: none;
    border: none;
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.btn-search:hover {
    background: #f0f0f0;
    color: #337ab7;
}

/* 热搜词容器 */
.hot-search-box {
    position: absolute;
    width: 300px;
    right: -50px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* 显示时的动画 */
.hot-search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(50px);
}

/* 热搜标题 */
.hot-search-header {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.hot-search-header span {
    color: #333;
    font-weight: 600;
    margin-right: 8px;
}

.hot-search-header small {
    color: #999;
    font-size: 12px;
}

/* 热搜标签 */
.hot-search-tags {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 15px;
    background: #f5f7fa;
    border-radius: 18px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.tag:hover {
    background: #337ab7;
    color: white;
    transform: translateY(-1px);
}

.tag em {
    font-style: normal;
    margin-left: 6px;
    color: #666;
    font-size: 12px;
}

.tag:hover em {
    color: rgba(255,255,255,0.8);
}

.fa-search:before {
    content: "\f002"
}

.navbar {
    background: #222;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    margin-left: 5px;
    padding: 0;
    place-content: center;
    margin-left: 5px;
    margin-right: 5px;
}

.logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

/* 导航栏菜单项 */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-item a {
    color: #fff !important;
    font-size: 16px;
    padding: 5px 10px !important;
    border-radius: 20px;
    transition: all 0.3s;
}

.menu-item a:hover,
.menu-item a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

/* 下拉菜单 */
.dropdown-menu {
    background: #333;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-menu > li > a {
    color: #fff !important;
    padding: 10px 20px !important;
    transition: all 0.3s;
}

.dropdown-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 搜索框 */
.navbar-form {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 250px !important;
    border-radius: 20px !important;
    padding: 8px 15px !important;
    border: 2px solid #444;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #337ab7;
    box-shadow: 0 0 8px rgba(51, 122, 183, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.btn-search {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.btn-search:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #337ab7;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .navbar-nav {
        gap: 5px;
    }

    .navbar-form {
        margin-top: 10px;
    }

    .search-input {
        width: 100% !important;
    }
}
@media (max-width: 830px){
    .search-input {
        width: 190px !important;
    }
}