/* Footer 样式 */
.footer {
    background: #2b3038;
    color: #c9d1d9;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 2px solid #1f232a;
    width: 110%;
    margin-left: -5%;
    margin-right: -5%;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}
.recommended-tools {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 16px 20px 18px;
    background: #fff;
    border: 1px solid #eef1f1;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    box-sizing: border-box;
}
.recommended-tools h3 {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}
.tuijian-container {
    width: 100%;
}
.tuijian-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: none;
}
.tuijian-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-height: 80px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tuijian-card:hover {
    background: #f0f0f0;
    border-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tuijian-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}
.tuijian-name {
    font-size: 13px;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
    color: #333;
}
.footer-links {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 15px 0;
    border-top: 1px solid #3a4048;
}
.footer-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    display: inline-block;
}
.footer-links a:hover {
    color: #009688;
    background: #e0f7f5;
    border-color: #009688;
}
.footer-info p {
    margin: 8px 0;
    font-size: 13px;
    color: #9aa4ad;
    line-height: 1.8;
}
.footer-info p:first-child {
    font-weight: 500;
}
/* 响应式：与主体 .word-main 保持一致的宽度断点 */
@media (max-width: 1024px) {
    .footer-inner {
        width: 96%;
    }
}
@media (max-width: 768px) {
    .footer {
        padding: 20px 0;
    }
    .tuijian-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    .tuijian-card {
        padding: 12px 6px;
        min-height: 70px;
    }
    .tuijian-icon {
        font-size: 24px;
    }
    .tuijian-name {
        font-size: 11px;
    }
    .footer-links {
        flex-direction: column;
        gap: 6px;
    }
    .footer-links a {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* ===== Sticky Footer：仅对结构简单的工具页生效（该页 <body> 需带 class="sticky-footer"）=====
   内容不足一屏时，深色 footer 自动贴到视口底部；内容超一屏则正常向下延展，不回归。
   首页等结构复杂的页面 <body> 不带此 class，完全不受影响。 */
body.sticky-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0;
}
body.sticky-footer .recommended-tools {
    margin: auto auto 0;
}
