/*调整全局字体大小*/
body,html{font-size:14px;}

/*左导航悬浮sidebar-menu-inner宽度调整为90px*/
.sidebar-popup.sidebar-menu-inner > div > ul > li.sidebar-item>ul{position:absolute;top:0px;left:10px;width:90px;z-index:99}
.sidebar-popup.sidebar-menu-inner ul{width:90px}
.sidebar-popup.sidebar-menu-inner ul li{width:90px}

/*搜索框搜索图标颜色*/
#search button i{color:#6C757D;font-size:18px}

/*顶部导航栏字体+图标颜色*/
.big-header-banner .page-header{box-shadow:none;transition:color .3s,background-color .3s}
.big-header-banner:not(.header-bg) .page-header .navbar-nav>li>a,.big-header-banner:not(.header-bg) .navbar-menu a:not(.dropdown-item){color:#423f3f;}
.big-header-banner:not(.header-bg) .page-header .navbar-nav>li>a:hover,.big-header-banner:not(.header-bg) .navbar-menu a:not(.dropdown-item):hover{color:#dc3545;}
.big-header-banner:not(.header-bg) .header-mini-btn path{stroke:#ffffff;}
.big-header-banner:not(.header-bg) .header-mini-btn label:hover path{stroke:#ffffff;}

/*搜索栏字体+背景*/
.header-big #search-text{color:#6C757D;}
.io-black-mode .header-big #search-text{color:#fff;}
.io-black-mode .header-big:not(.no-bg) .s-type-list{color:#fff}
.io-black-mode .header-big:not(.no-bg) .text-muted,.header-big:not(.no-bg) .search-type .menu-item a,.header-big:not(.no-bg) .big-title .h1{color:#fff!important}

/*搜索activate图标颜色*/
.header-big .search-type input:checked+label:before{content:'';border-width:8px 8px 0px 8px;border-style:solid;border-color:#ffffff transparent transparent;position:absolute;left:50%;top:0;margin-left:-8px}

/*主页搜索搜索框(头+底部)字体颜色*/
.header-big:not(.no-bg) .s-type-list{color:#000a07}
.header-big:not(.no-bg) .text-muted,.header-big:not(.no-bg) .search-type .menu-item a,.header-big:not(.no-bg) .big-title .h1{color:#3b3939!important}

/*主页header-banner底部宽度*/
.post-top{padding-bottom:50px}

/*左导航二级导航标题左侧距离*/
.sidebar-menu-inner ul li ul li a{margin-left:30px;}

/*头部导航二级导航iconfont图标*/
.navbar-collapse ul li.menu-item-has-children:after{content:'\e612';}

/*搜索部分背景样式*/
.header-big.css-color{background-size:unset;background-position:unset;animation:unset;}

/*搜索热词样式调整*/
.search-hot-text{
    position: absolute;
    z-index: 100;
    width: 100%;
    border-radius: 0 0 10px 10px;
    background: #FFF;
    box-shadow: 0px 4px 5px 0px #cccccc94;
    overflow: hidden;
}
.search-hot-text ul{
    margin: 0;
    padding: 5px 0;
}
.search-hot-text ul li{
    line-height: 30px;
    font-size: 14px;
    padding: 0px 25px;
    color: #777;
    cursor: pointer;
}
.io-black-mode .search-hot-text ul li{
    color: #fff;
}    
.search-hot-text ul li.current{
    background: #f1f1f1;
    color: #2196f3;
}
.search-hot-text ul li:hover{
    background: #f1f1f1;
    color: #2196f3;
    cursor: pointer;
}
.search-hot-text ul li span{
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    background: #e5e5e5;
    margin-right: 10px;
    border-radius: 10px;
    color: #999;
}

footer.main-footer .footer-text {
    text-align: center;
}
footer.main-footer .footer-text a {
    color: #007bff;
}
footer.main-footer .footer-text a:hover {
    color: red;
}

/*About页面*/
.panel .panel-body a {color: #007bff;}
.panel .panel-body a:hover {color: #979898;}

/*网格背景*/
.io-grey-mode .page-container .grid-bg {
    background-color: #d8d8d8;
}

 #news-container {
     width: 600px;
     height: 20px;
     overflow: hidden;
     position: relative;
 }

.news-item {
    height: 30px;
    line-height: 20px;
    padding: 0 10px;
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.news-item.show {
    opacity: 1;
}

.text-xs {
  font-size: .75rem!important;
}

.tab-widget-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: nowrap;
  overflow-x: auto;
  background-color: rgba(132,132,132,.1);
  height: 100%;
}

.tab-widget-content div {
  position: relative;
  width: 300px;
  margin: 0 10px;
}

.tab-widget-content img {
  width: 100%;
  height: 100%;
}

.tab-widget-content div:hover {
  z-index: 1;
}

.tab-widget-content div:hover::after {
  content: attr(data-desc);
  position: absolute;
  bottom: 0;
  background-color: rgba(0,0,0,0.6);
  color: white;
  width: 100%;
  right: 0%;
  text-align: center;
  font-size: .75rem!important;
}
.nav.flex-column.nav-pills {
  line-height: 36px;
}


.tab-widget-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab-widget-content img {
  border-radius: 10px; /* 添加圆角 */
}
@media screen and (max-width: 480px) {
    .home-widget-group {
        display: none;
    }
}

/* 工具卡片样式 */
.tool-card {
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-img-container {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background-color: #f8f9fa;
}

.tool-logo {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.tool-name {
    color: #333;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.2s;
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.tool-name:hover {
    color: #0066cc;
    text-decoration: none;
}

.tool-desc {
    color: #6c757d;
    font-size: 14px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.tool-meta {
    display: flex;
    margin: 10px 0;
    font-size: 13px;
}

.tool-meta span {
    color: #666;
    margin-right: 10px;
}

.tool-meta i {
    color: #0066cc;
    margin-right: 4px;
}

.tool-rating {
    margin-bottom: 15px;
}

.star {
    color: #ffc107;
    margin-right: 1px;
}

.rating-value {
    color: #6c757d;
    font-size: 13px;
    margin-left: 5px;
}

/* 收藏按钮样式 */
.btn-favorite {
    transition: all 0.2s ease;
}

.btn-favorite.active {
    background-color: #ffc107;
    color: white;
    border-color: #ffc107;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

/* 徽章样式 */
.hot-badge, .new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hot-badge {
    background-color: #ff4d4f;
    color: white;
}

.new-badge {
    background-color: #52c41a;
    color: white;
}

/* 分类标签 */
.category-tag {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 8px 0;
    padding: 5px 15px;
    background-color: #f0f2f5;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.category-tag:hover, .category-tag.active {
    background-color: #0066cc;
    color: white;
    text-decoration: none;
}

.category-tag i {
    margin-right: 5px;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-box form {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #eaeaea;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: #0066cc;
    color: white;
    border: none;
    height: 42px;
    width: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.search-box button:hover {
    background-color: #0052a3;
}

/* 搜索建议 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.suggestion-item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* 分页控件 */
.pagination {
    margin-top: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.pagination .page-item .page-link {
    color: #0066cc;
    border-radius: 5px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
}

.pagination .page-item .page-link:hover {
    background-color: #f0f2f5;
}

/* 页脚样式 */
.main-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-text {
    text-align: center;
    color: #6c757d;
}

.footer-text a {
    color: #0066cc;
    text-decoration: none;
}

/* 返回顶部按钮 */
.back-to-top, #go-to-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0066cc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show, #go-to-up.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover, #go-to-up:hover {
    background-color: #0052a3;
    transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-box input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-box button {
        right: 3px;
        top: 3px;
        height: 36px;
        width: 36px;
    }
    
    .category-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .tool-name {
        font-size: 16px;
    }
    
    .tool-desc {
        height: 50px;
        -webkit-line-clamp: 2;
    }
}

/* Toast通知样式 */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: white;
    border-radius: 5px;
    padding: 12px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 2.5s forwards;
    max-width: 300px;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.toast.success i {
    color: #28a745;
}

.toast.error i {
    color: #dc3545;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

