/* JLZ Tools - 开发者工具导航样式 */
/* 基于柒夜导航样式修改，去除搜索功能 */

@charset "utf-8";
* {
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    box-sizing: border-box;
    font-size: 14px;
}

input:focus, textarea:focus {
    outline: none;
}

body {
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
}

img {
    border: none;
    max-width: 100%;
}

li {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ef7060;
}

.cl {
    clear: both;
}

/* 左侧导航栏 */
.index-nav {
    width: 240px;
    height: 100vh;
    background-color: #FFFFFF;
    padding: 25px 5px 100px 0;
    box-shadow: 1px 0 5px 0 #eeeeee;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 9;
    overflow-y: auto;
}

.index-nav .logo {
    width: 100%;
    margin-bottom: 30px;
    padding: 0 25px;
    text-align: center;
}

.index-nav .logo h1 {
    font-size: 28px;
    font-weight: bold;
    color: #ef7060;
    margin-bottom: 5px;
}

.index-nav .logo .subtitle {
    font-size: 14px;
    color: #666;
    opacity: 0.8;
}

.index-nav .type-list {
    height: calc(100% - 180px);
    padding: 0 25px 100px;
    overflow-y: auto;
}

.index-nav .type-list .list {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.index-nav .type-list .list a {
    display: block;
    padding: 12px 15px;
    font-size: 16px;
    color: #555;
    background-color: #f8f9fa;
    border-left: 4px solid transparent;
}

.index-nav .type-list .list a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #888;
}

.index-nav .type-list .list:hover a {
    background-color: #ef7060;
    color: white;
    border-left-color: #d9534f;
}

.index-nav .type-list .list:hover a i {
    color: white;
}

.index-nav .type-list .list.active a {
    background-color: #ef7060;
    color: white;
    border-left-color: #d9534f;
}

.index-nav .type-list .list.active a i {
    color: white;
}

.index-nav .footer {
    padding: 20px 25px;
    text-align: center;
    color: #888;
    font-size: 12px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.index-nav .footer p {
    margin-bottom: 5px;
}

/* 主内容区 */
.main-content {
    margin-left: 240px;
    padding: 25px;
    min-height: 100vh;
}

/* 公告栏 */
.site-notice {
    margin-bottom: 25px;
    padding: 15px 20px;
    color: #8d6e63;
    border: 2px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.site-notice i {
    margin-right: 10px;
    color: #ef7060;
}

.site-notice .notice-title {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.site-notice .feedback-link {
    font-size: 15px;
    color: #2196F3;
    margin-left: 10px;
    font-weight: 500;
}

.site-notice .feedback-link:hover {
    text-decoration: underline;
}

/* 分类标题 */
.site-name {
    padding: 12px 15px;
    margin: 25px auto 15px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ef7060, #ff8a80);
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(239, 112, 96, 0.2);
}

.site-name i {
    margin-right: 12px;
    font-size: 18px;
}

/* 工具卡片网格 */
.site-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.site-list .list {
    width: calc(20% - 12px);
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.site-list .list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #ef7060;
    background-color: #fff9f8;
}

.site-list .list .favicon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 12px;
    object-fit: cover;
    border: 1px solid #eee;
    padding: 5px;
    background: white;
}

.site-list .list .name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.site-list .list .name i {
    margin-right: 8px;
    color: #ef7060;
    font-size: 14px;
}

.site-list .list .desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 40px;
}

.site-list .list .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.site-list .list .tag {
    font-size: 11px;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border-radius: 12px;
    color: #666;
}

.site-list .list .visit-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ef7060;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    cursor: pointer;
}

.site-list .list .visit-btn:hover {
    background-color: #d9534f;
    transform: scale(1.05);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ef7060;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 112, 96, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #d9534f;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(239, 112, 96, 0.4);
}

/* 响应式设计 */
@media only screen and (max-width: 1200px) {
    .site-list .list {
        width: calc(25% - 12px);
    }
}

@media only screen and (max-width: 992px) {
    .index-nav {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
    .site-list .list {
        width: calc(33.333% - 12px);
    }
}

@media only screen and (max-width: 768px) {
    .index-nav {
        position: relative;
        width: 100%;
        height: auto;
        padding: 15px;
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .index-nav .type-list {
        height: auto;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }
    .index-nav .type-list .list {
        flex: 1;
        min-width: calc(50% - 10px);
    }
    .index-nav .type-list .list a {
        text-align: center;
        padding: 10px;
    }
    .site-list .list {
        width: calc(50% - 12px);
    }
}

@media only screen and (max-width: 576px) {
    .site-list .list {
        width: 100%;
    }
    .index-nav .type-list .list {
        min-width: 100%;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}