* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #fafbfc;
    color: #0f172a;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased
}

a {
    color: #64748b;
    text-decoration: none;
}

a:hover {
    color: #4f46e5
}


/* ===== Header ===== */
header.site{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);backdrop-filter:blur(10px);border-bottom:1px solid #e2e8f0}
.nav{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-weight:800;font-size:18px;color:#0f172a;text-decoration:none;letter-spacing:.3px;display:flex;align-items:center;}
.logo img{margin-right:8px;}
.logo span{color:#4f46e5}
.nav a.link{color:#64748b;text-decoration:none;font-size:14px;margin-left:24px}
.nav a.link:hover{color:#4f46e5}
.menu-toggle{display:none;background:none;border:none;font-size:24px;line-height:1;cursor:pointer;color:#0f172a;padding:6px;}


/* ===================================================
   Tools Grid & Navigation Highlight Styles 
   =================================================== */
.related-tools-sec {
    padding-top: 60px;
}

.tools-header {
    text-align: center;
    margin-bottom: 35px;
}

.tools-header h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin: 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 悬停视觉增强：边框变蓝、向上微动、阴影加深 */
.tool-card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(37, 99, 235, 0.15);
}

.tool-card .badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.tool-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tool-card h3 {
    font-size: 1.15rem;
    color: #1e293b;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.3;
}

.tool-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.tool-card-action {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-card:hover .tool-card-action {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 查看更多工具 - 底部按钮样式 */
.tools-more-action {
    text-align: center;
    margin-top: 40px;
}

.btn-more-tools {
    display: inline-block;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
}

.btn-more-tools:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* footer */
footer {
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
    padding: 30px 0;
    color: #64748b;
    font-size: 13px
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color:#64748b;
}

@media(max-width:900px) {
    header.site .nav {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 64px;
        padding: 0 15px;
    }

    .menu-toggle {
        display: block;
    }

    header.site nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: column;
        padding: 8px 16px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
        z-index: 60;
        gap: 0;
    }

    header.site nav.open {
        display: flex;
    }

    header.site nav .link {
        padding: 12px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    header.site nav .link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}