.mt-20 {
    margin-top: 20px !important;
}

.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.tool-top-nav {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.back-img-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}
.ft-tts{
                    margin-top: -10px;
            }
                .ft-tts p {
    color: #1da36f;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
}
.ft-tts p span {
        color: #1da36f;
    font-size: 20px;
}
.back-img-content .back-img {
    position: absolute;
    top: 0px;
    background-size: cover;
    background-repeat: no-repeat;
}

.back-img-content .back-img.center {
    width: 100%;
    height: 360px;
    top: -160px;
    background-image: url("../images/bg-1734599571333.svg");
}

.back-img-content .back-img.left {
    width: 368px;
    height: 260px;
    left: 0px;
    background-image: url("../images/bg-left-png-1741691037785.png");
}

.back-img-content .back-img.right {
    width: 137px;
    height: 197px;
    right: 0px;
    background-image: url("../images/bg-right-1741674836006.svg");
}

.tool-top-tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0 38px;
}

.tool-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 10px 0;
    text-align: center;
}
.tool-item a{
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
.tool-item img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-bottom: 5px;
    transition: transform .3s;
}

.tool-item:hover img {
    transform: scale(1.1);
}

.tool-item .tool-name {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-tag-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.tool-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.tool-tag.tool-hot {
    background-color: #ff7d00;
}

.tool-tag.tool-new {
    background-color: #ff4d4f;
}

.tool-mobile-tool-section {
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    background-color: #fff;
    padding-left: 20px;
    padding-top: 20px;
    padding-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 0;
}

.tool-section-title {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.tool-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0 40px;
}

.tool-tool-size {
    font-size: 11px;
    color: #999;
}

/* 主内容区（资讯+攻略）- 整体框架 */
.tool-main-content {
    display: inline-block;
    width: 100%;
}

.tool-card-l {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    float: left;
    width: 800px;
    margin-bottom: 20px; /* 增加底部间距，为移动端堆叠做准备 */
}

.tool-card-r {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    float: right;
    width: 350px;
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tool-card-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0; /* 清除默认margin */
}

.tool-card-header .tool-more {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    padding: 2px 8px;
}

.tool-card-header .tool-more:hover {
    color: #1890ff;
}

/* 核心：手游资讯 左右分栏布局 */
.tool-news-card {
    display: grid;
    grid-template-columns: 3fr 2fr; /* 左侧品字区 右侧列表区 比例 */
    gap: 15px;
    align-items: start; /* 新增：左右两栏顶部对齐，避免互相挤压 */
    height: 100%;
}

/* 左侧：品字布局区域 */
.tool-pin-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.tool-pin-big-item {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.tool-pin-big-item img {
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    object-fit: cover;
    max-width: 100%;
    transition: all 0.6s;
}

.tool-pin-big-item:hover img {
    transform: scale(1.1)
}

.tool-pin-small-group {
    display: flex;
    gap: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.tool-pin-small-item {
    flex: 1;
    gap: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 10px 0;
    text-align: center;
}

.tool-pin-small-item .img {
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

.tool-pin-small-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    transition: all 0.6s;
}

.tool-pin-small-item .img:hover img {
    transform: scale(1.1)
}

/* 资讯文字样式 */
.tool-news-title-big {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    overflow: hidden;
}

.tool-news-title-small {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
}

.tool-news-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

/* 右侧：纯文字新闻列表 */
.tool-news-list {
    list-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 0; /* 清除默认内边距 */
    margin: 0; /* 清除默认margin */
}

.tool-news-list li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    text-overflow: ellipsis;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
}

.tool-news-list li::before {
    content: "◦";
    position: absolute;
    left: 0;
    color: #1da36f;
    font-size: 16px;
}

.tool-news-list a:hover {
    color: #1da36f;
}

/* 攻略区域样式 */
.tool-guide-list {
    list-style: none;
    padding-left: 0; /* 清除默认内边距 */
    margin: 0; /* 清除默认margin */
}

.tool-guide-list li {
    font-size: 13px;
    color: #333;
    margin: 16px 0;
    line-height: 2;
    padding-left: 15px;
    position: relative;
}

.tool-guide-list li::before {
    content: "◦";
    position: absolute;
    left: 0;
    color: #1da36f;
    font-size: 16px;
}

.tool-guide-list li a:hover {
    color: #1da36f;
}

.tool-guide-list li .name {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-guide-list li .info .t1 {
    max-width: 300px;
    font-size: 14px;
    font-weight: 400;
    color: #444444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 友情链接 */
.tool-links-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.tool-links-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0; /* 清除默认margin */
}

.tool-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tool-links a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.tool-links a:hover {
    color: #1890ff;
}

/* 页脚样式 */
.news-footer {
    background-color: #333;
    color: #aaa;
    padding: 30px 0;
    margin-top: 20px;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: white;
}

/* 响应式适配 - 重点优化手机端 */
@media (max-width: 768px) {
    /* 基础布局调整 */
    .mt-20 {
        margin-top: 10px !important; /* 减小移动端间距 */
    }
    
    .tool-container {
        width: 100%; /* 占满屏幕宽度 */
        padding: 0 10px; /* 减小左右内边距 */
    }
    
    /* 顶部导航适配 */
    .tool-top-nav {
        padding: 15px 10px; /* 减小内边距 */
        margin-bottom: 10px;
    }
    
    .tool-top-tool-list,
    .tool-tool-grid {
        gap: 0 15px; /* 减小网格间距 */
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); /* 减小图标尺寸 */
    }
    
    .tool-item img {
        width: 60px;
        height: 60px;
        border-radius: 10px; /* 按比例缩小圆角 */
    }
    
    .tool-item .tool-name {
        font-size: 12px; /* 减小字体 */
        margin-top: 5px;
    }
    
    /* 工具分类区域适配 */
    .tool-mobile-tool-section {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .tool-section-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .tool-card-header h3{
        font-size: 18px;
    }
    /* 主内容区适配 - 关键修复 */
    .tool-card-l,
    .tool-card-r {
        width: 100%; /* 占满宽度 */
        float: none; /* 取消浮动 */
        padding: 20px; /* 减小内边距 */
        margin-bottom: 15px;
    }
    
    .tool-main-content {
        display: block; /* 重置为块级元素 */
    }
    
    .tool-news-card {
        grid-template-columns: 1fr; /* 单栏布局 */
    }
    
    /* 品字布局适配 */
    .tool-pin-layout {
        gap: 10px;
    }
    
    .tool-pin-big-item img {
        height: 150px; /* 减小大图高度 */
    }
    
    .tool-pin-small-group {
        display: none;
        flex-direction: column; /* 堆叠显示 */
        gap: 10px;
    }
    
    .tool-pin-small-item img {
        height: 80px; /* 减小小图高度 */
    }
    
    .tool-news-title-big {
        font-size: 14px; /* 减小标题字体 */
        height: 35px;
        line-height: 35px;
    }
    
    /* 文字列表适配 */
    .tool-news-list {
        margin-top: 15px;
        gap: 8px;
    }
    
    .tool-news-list li,
    .tool-guide-list li {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .tool-guide-list li {
        margin: 10px 0;
    }
    
    .tool-guide-list li .name {
        font-size: 14px;
    }
    
    .tool-guide-list li .info .t1 {
        max-width: 100%; /* 占满宽度 */
        font-size: 12px;
    }
    
    /* 友情链接适配 */
    .tool-links-section {
        padding: 15px 10px;
    }
    
    .tool-links-section h3 {
        font-size: 18px;
    }
    
    .tool-links {
        gap: 10px; /* 减小链接间距 */
    }
    
    .tool-links a {
        font-size: 12px;
    }
    
    /* 页脚适配 */
    .news-footer {
        padding: 20px 0;
        font-size: 12px;
    }
    
    .footer-content {
        flex-direction: column; /* 堆叠显示 */
        gap: 15px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    /* 背景图适配（可选，根据实际需求调整） */
    .back-img-content .back-img.center {
        height: 200px;
        top: -100px;
    }
    
    .back-img-content .back-img.left {
        width: 200px;
        height: 150px;
    }
    
    .back-img-content .back-img.right {
        width: 80px;
        height: 120px;
    }
}

/* 补充平板端适配（可选） */
@media (min-width: 769px) and (max-width: 1024px) {
    .tool-card-l {
        width: 65%;
    }
    
    .tool-card-r {
        width: 32%;
    }
    
    .tool-top-tool-list,
    .tool-tool-grid {
        gap: 0 25px;
    }
}