/* 基础样式 */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
    "PingFang SC","Microsoft YaHei",sans-serif;
    background:#f5f6f8;
    color:#333;
    line-height:1.8;
}
a{
    text-decoration:none;
    color:inherit;
}
img{
    max-width:100%;
    height:auto;
}
ul{
    list-style:none;
}

/* 顶部导航 */
.header{
    width:100%;
    background:#ffffff;
    border-bottom:1px solid #eaeaea;
    position:sticky;
    top:0;
    z-index:1000;
}
.header .wrap{
    width:1200px;
    height:70px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.logo{
    font-size:28px;
    font-weight:700;
    color:#111;
}
.nav{
    display:flex;
    align-items:center;
    gap:35px;
}
.nav a{
    font-size:15px;
    color:#333;
    transition:0.2s;
}
.nav a:hover{
    color:#d32f2f;
}
.search-box{
    width:220px;
    height:40px;
    border:1px solid #ddd;
    border-radius:4px;
    overflow:hidden;
    display:flex;
    background:#fff;
}
.search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:0 12px;
    font-size:14px;
}
.search-box button{
    width:60px;
    border:none;
    background:#d32f2f;
    color:#fff;
    cursor:pointer;
}

/* banner */
.banner{
    width:100%;
    height:260px;
    background:linear-gradient(135deg,#222,#444);
    color:#fff;
    display:flex;
    align-items:center;
}
.banner .wrap{
    width:1200px;
    margin:0 auto;
}
.banner h1{
    font-size:42px;
    margin-bottom:10px;
}
.banner p{
    color:rgba(255,255,255,0.8);
    font-size:16px;
}

/* 左侧边栏 */
.sidebar{
    width:280px;
    flex-shrink:0;
}
.card{
    background:#fff;
    border:1px solid #e5e5e5;
    margin-bottom:20px;
}
.card-title{
    padding:16px 20px;
    font-size:18px;
    font-weight:600;
    border-bottom:1px solid #eee;
}
.category-list,
.tag-list{
    padding:18px 20px;
}
.category-list a{
    display:block;
    padding:12px 0;
    border-bottom:1px dashed #eee;
    transition:0.2s;
}
.category-list a:last-child{
    border-bottom:none;
}
.category-list a:hover,
.category-list a.active{
    color:#d32f2f;
    padding-left:5px;
}
.tag-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.tag-list a{
    display:inline-block;
    padding:6px 12px;
    border:1px solid #ddd;
    border-radius:4px;
    font-size:13px;
    background:#fafafa;
    transition:0.2s;
}
.tag-list a:hover{
    background:#d32f2f;
    border-color:#d32f2f;
    color:#fff;
}

/* 工具导航栏 */
.tool-nav{
    background:#fff;
    border-bottom:1px solid #eaeaea;
    box-shadow:0 2px 8px rgba(0,0,0,0.06);
    /* background: linear-gradient(135deg, #222, #444); */
    background: linear-gradient(135deg, #008df6, #007bff);
    padding:30px 0;
}
.tool-nav-inner{
    max-width:1200px;
    margin:0 auto;
    padding:16px 20px;
    display:flex;
    flex-direction:column;
    flex-wrap:wrap;
    gap:24px;
    align-items:flex-start;
}
.tool-group{
    display:flex;
    align-items:center;
    gap:12px;
}
.tool-label{
    font-size:16px;
    font-weight:600;
    color: #fff;
    white-space:nowrap;
    padding-right:12px;
    /* border-right:1px solid #eee; */
    min-width: 80px;
}
.tool-links{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.tool-link{
    display:flex;
    flex-direction: column;
    align-items:center;
    gap:6px;
    padding:6px 12px;
    border:1px solid #e8e8e8;
    border-radius:6px;
    background:#fafafa;
    transition:all 0.2s ease;
    font-size:13px;
    color:#555;
    min-width: 120px;
    padding:15px;
}
.tool-link:hover{
    background:#fff1f1;
    border-color:#d32f2f;
    color:#d32f2f;
    box-shadow:0 2px 8px rgba(211,47,47,0.15);
    transform:translateY(-2px);
}
.tool-icon{
    width:18px;
    height:18px;
    object-fit:contain;
}

/* footer */
.footer{
    margin-top:60px;
    background:#111;
    color:#aaa;
}
.footer .wrap{
    width:1200px;
    margin:0 auto;
    padding:60px 0;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
}
.footer-title{
    color:#fff;
    font-size:18px;
    margin-bottom:20px;
}
.footer-links a{
    display:block;
    color:#aaa;
    margin-bottom:10px;
    font-size:14px;
}
.footer-links a:hover{
    color:#fff;
}
.copyright{
    border-top:1px solid rgba(255,255,255,0.08);
    text-align:center;
    padding:20px;
    font-size:14px;
    color:#777;
}

/* 响应式 */
@media (max-width:1240px){
    .header .wrap,
    .banner .wrap,
    .container,
    .footer .wrap{
        width:100%;
        padding-left:15px;
        padding-right:15px;
    }
}
@media (max-width:900px){
    .header .wrap{
        flex-wrap:wrap;
        height:auto;
        padding-top:15px;
        padding-bottom:15px;
        gap:15px;
    }
    .nav{
        width:100%;
        overflow:auto;
    }
    .container{
        flex-direction:column;
    }
    .sidebar{
        width:100%;
    }
    .footer .wrap{
        grid-template-columns:1fr;
    }
    .tool-nav-inner{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }
    .tool-group{
        flex-wrap:wrap;
    }
}
