/* Tools页面专用样式 */

/* 主要内容区域样式 */
.service-blog {
    padding: 60px 0;
}

.section_tit h2 {
    position: relative;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.three_line {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    margin: 10px auto 0;

}

/* 主要工具展示区域 */
.mt-40 {
    margin-top: 40px;
}

/* 主要工具展示样式增强 */
.col-md-7 .single-blog-post {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.col-md-7 .single-blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.col-md-5 .single-blog-post {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.col-md-5 .tools-title {
    font-size: 24px;
    margin-bottom: 15px;
}
.tools-title a:focus{
    color:#2445AF;
}

.col-md-5 .tools-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 新闻展示区域样式 */
.single-blog-post {
    transition: all 0.3s ease;
    height: 100%;
}

.single-blog-post:hover {
    transform: translateY(-5px);
}

/* 其他工具列表样式 */
.col-md-4 .single-blog-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.col-md-4 .content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.col-md-4 .tools-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.col-md-4 .tools-title {
    font-size: 18px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.col-md-4 .tools-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

/* 图片容器样式 */
.img-box {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.tools-img {
    position: relative;
    height: 350px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.tools-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tools-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 为不同区域的图片设置固定宽高比 */
.col-md-7 .tools-img,
.col-md-5 .tools-img {
    height: 400px;
}

.col-md-4 .tools-img {
    height: 220px;
}

.img-box:hover img {
    transform: scale(1.05);
}

.single-blog-post:hover .tools-img::after {
    opacity: 0.4;
}

/* 特殊图片容器样式 */
.col-md-7 .tools-img {
    height: 400px;
}

.col-md-4 .tools-img {
    height: 220px;
}

/* 内容区域样式 */
.content-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0 20px 20px;
}

.content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.tools-content {
    padding-right: 15px;
}

/* 日期样式 */
.tools-date {
    font-size: 24px;
    color: #333;
    font-weight: 400;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
}

.tools-date span {
    color: #666;
    font-weight: 300;
    margin-left: 5px;
}

/* 标题样式 */
.tools-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.tools-title a {
    color: #333;
    transition: color 0.3s ease;
    text-decoration: none;
}

.tools-title a:hover {
    color: #3498db;
}

/* 描述文本样式 */
.tools-description {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 详情链接样式 */
.detail-link {
    color: #3498db;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
    margin-top: auto;
}

.detail-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.detail-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.detail-link:hover {
    color: #2980b9;
    text-decoration: none;
}

.detail-link:hover::after {
    width: 100%;
}

.detail-link:hover i {
    transform: translateX(5px);
}

.col-md-5 .detail-link {
    font-size: 16px;
    margin-top: 5px;
}

@media (max-width: 767px) {
    .detail-link {
        font-size: 14px;
    }
    
    .col-md-5 .detail-link {
        font-size: 15px;
    }
}

/* 空数据提示样式 */
.empty-news {
    padding: 60px 0;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.empty-news i {
    font-size: 60px;
    color: #3498db;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-news p {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

@media (max-width: 767px) {
    .empty-news {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .empty-news i {
        font-size: 48px;
    }
    
    .empty-news p {
        font-size: 16px;
    }
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.pagination li {
    margin: 0 5px;
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pagination li.active span {
    background-color: #3498db;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.pagination li a:hover {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

@media (max-width: 576px) {
    .pagination {
        margin-top: 30px;
    }
    
    .pagination li a,
    .pagination li span {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 响应式调整 */
@media (max-width: 1199px) {
    .col-md-7 .tools-img {
        height: 350px;
    }
    
    .col-md-5 .tools-title {
        font-size: 22px;
    }
    
    .col-md-5 .tools-description {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .section_tit h2 {
        font-size: 28px;
    }
    
    .content-box {
        padding: 15px 0 15px 15px;
    }
    
    .col-md-7 .tools-img,
    .col-md-5 .tools-img {
        height: 350px;
    }
    
    .col-md-5 .single-blog-post {
        padding: 0 15px;
    }
    
    .col-md-5 .tools-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .col-md-5 .tools-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .col-md-4 .tools-img {
        height: 200px;
    }
    
    .col-md-4 .tools-content {
        padding: 15px;
    }
    
    .col-md-4 .tools-title {
        font-size: 16px;
    }
    
    .tools-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .tools-description {
        font-size: 14px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }
    
    .tools-img {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .mb-xs-30 {
        margin-bottom: 30px;
    }
    
    .section_tit h2 {
        font-size: 24px;
    }
    
    .content-box {
        padding: 20px 0;
    }
    
    .col-md-7 .tools-img,
    .col-md-4 .tools-img {
        height: 250px;
    }
    
    .col-md-5 .single-blog-post {
        padding: 20px 15px;
    }
    
    .mt-40 {
        margin-top: 30px;
    }
    
    .tools-title {
        font-size: 20px;
    }
    
    .tools-date {
        font-size: 20px;
    }
    
    .tools-img {
        height: 250px;
    }
    
    .tools-content {
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .section_tit h2 {
        font-size: 22px;
    }
    
    .col-md-7 .tools-img,
    .col-md-4 .tools-img {
        height: 200px;
    }
    
    .col-md-5 .single-blog-post {
        padding: 15px 10px;
    }
    
    .tools-date {
        font-size: 18px;
    }
    
    .tools-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .tools-description {
        font-size: 14px;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }
    
    .tools-img {
        height: 200px;
    }
    
    .detail-link {
        font-size: 13px;
    }
    
    .mt-40 {
        margin-top: 20px;
    }
}