:root {
    --primary-color: #2196F3;
    --secondary-color: #607D8B;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

body {
    background: var(--bg-gradient);
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
    padding: 0;
    box-sizing: border-box;
}

/* LOGO容器 */
        .logo-container {
            text-align: center;
            margin-bottom: 30px;
            padding-top: 20px;
        }
        
        .site-logo {
            display: inline-block;
            text-decoration: none;
        }
        
        .logo-image {
            max-width: 200px;
            height: auto;
            display: block;
        }
        
        .logo-text {
            font-size: 24px;
            font-weight: bold;
            color: #333;
            margin: 0;
        }
        
        .logo-subtitle {
            font-size: 14px;
            color: #666;
            margin-top: 5px;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .logo-image {
                max-width: 150px;
            }
            
            .logo-text {
                font-size: 20px;
            }
        }
        
        @media (max-width: 480px) {
            .logo-image {
                max-width: 120px;
            }
            
            .logo-text {
                font-size: 18px;
            }
            
            .logo-container {
                margin-bottom: 20px;
                padding-top: 10px;
            }
        }
        
/* 搜索框样式 */
.search-box {
    max-width: 500px;
    width: 100%;
    margin: 0 auto 20px;
    position: relative;
    padding: 0 15px;
    box-sizing: border-box;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.search-box input:focus {
    border-color: #333;
}

/* 工具网格样式 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-item {
    width: 150px;
    height: 150px;
    border: 1px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    
    cursor: pointer;
    border-radius: 0px;
}

.tool-item:hover {
    
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.tool-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tool-title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 0 8px;
}

/* 分类筛选器 */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.category-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0px;
    cursor: pointer;
    font-size: 13px;
}

.category-btn.active,
.category-btn:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 14px;
}

.no-tools {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #777;
}

/* JSON格式化工具样式 */
.jsonf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
    border-bottom: none;
}

.jsonf-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #000;
    width: 100%;
}

.jsonf-header-left, .jsonf-header-right {
    display: flex;
    align-items: center;
}

.jsonf-tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jsonf-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0%;
    text-decoration: none;
    color: #666;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.jsonf-back-link:hover {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
    border-color: #2196F3;
    transform: translateX(-2px);
}

.jsonf-back-icon {
    width: 20px;
    height: 20px;
}

.jsonf-tool-name {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.jsonf-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 15px 0 0;
    white-space: nowrap;
}

.jsonf-avatar {
    width: 40px;
    height: 40px;
    border-radius: 0%;
    overflow: hidden;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.jsonf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 输入输出区域 */
.jsonf-input-section, .jsonf-output-section {
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.jsonf-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

.jsonf-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #000;
    border-radius: 0px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background-color: #fff;
    color: #000;
    box-sizing: border-box;
}

.jsonf-textarea:focus {
    outline: none;
    border-color: #333;
}

/* 按钮区域 */
.jsonf-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.jsonf-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0px;
    cursor: pointer;
    font-size: 13px;
}

.jsonf-btn:hover {
    background: #333;
    color: white;
    border-color: #333;
}

/* 错误信息框 */
.jsonf-error-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.jsonf-error-box {
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.jsonf-error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    color: #000;
    border-bottom: 1px solid #000;
}

.jsonf-error-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.jsonf-error-close {
    background: none;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.jsonf-error-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.jsonf-error-inner-box {
    border: 1px solid #000;
    padding: 15px;
    background-color: #fff;
}

.jsonf-error-message {
    color: #c0392b;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

#message-container {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 0px;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .tool-item {
        width: 130px;
        height: 130px;
    }
    
    .tool-icon {
        width: 48px;
        height: 48px;
    }
    
    /* 搜索框调整 */
    .search-box {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .search-box input {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .category-filter {
        gap: 5px;
    }
    
    .category-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    /* JSON工具头部调整 */
    .jsonf-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .jsonf-header-left {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .jsonf-header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-top: 0;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .jsonf-tool-name {
        font-size: 18px;
        max-width: 200px;
    }
    
    .jsonf-title {
        font-size: 16px;
        margin: 0 8px 0 0;
    }
    
    .jsonf-avatar {
        width: 32px;
        height: 32px;
    }
    
    .jsonf-back-link {
        width: 32px;
        height: 32px;
    }
    
    .jsonf-back-icon {
        width: 16px;
        height: 16px;
    }
    
    .jsonf-buttons {
        gap: 8px;
    }
    
    .jsonf-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .tool-item {
        width: 100%;
        height: 140px;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
    }
    
    /* 搜索框进一步调整 */
    .search-box {
        padding: 0 15px;
    }
    
    .search-box input {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    /* JSON工具调整 */
    .jsonf-header {
        flex-wrap: nowrap;
    }
    
    .jsonf-tool-name {
        font-size: 16px;
        max-width: 120px;
    }
    
    .jsonf-title {
        font-size: 14px;
        margin: 0 6px 0 0;
    }
    
    .jsonf-avatar {
        width: 28px;
        height: 28px;
    }
    
    .jsonf-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .jsonf-btn {
        width: auto;
        max-width: none;
        flex: 1 0 auto;
        min-width: 80px;
    }
}

#message-container {
  background-color: #333;
  color: white;
  padding: 20px;
  border-radius: 0px;
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

/* 粒子特效 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}


.container {
    position: relative;
    z-index: 1;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

.simple-footer {
                background-color: #fff;
                border-top: 1px solid #000;
                margin-top: 60px;
                padding: 20px 0;
                font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
            }
            
            .footer-wrapper {
                max-width: 1200px;
                margin: 0 auto;
                padding: 0 20px;
            }
            
            .footer-main {
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: nowrap;
            }
            
            .footer-column {
                padding: 0 10px;
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            /* 版权列样式 */
            .copyright-col {
                justify-content: flex-start;
            }
            
            .copyright {
                text-align: left;
                font-size: 13px;
                color: #666;
                line-height: 1.4;
            }
            
            .copyright p {
                margin: 2px 0;
            }
            
            /* 备案列样式 */
            .beian-col {
                justify-content: center;
            }
            
            .beian-links {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 4px;
            }
            
            .beian-links a {
                color: #666;
                text-decoration: none;
                font-size: 12px;
            }
            
            .beian-links a:hover {
                color: #2196F3;
            }
            
            /* 友情链接列样式 */
            .links-col {
                justify-content: flex-end;
            }
            
            .friend-links {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .friend-links span {
                color: #666;
                font-size: 13px;
                white-space: nowrap;
            }
            
            .friend-links a {
                color: #666;
                text-decoration: none;
                font-size: 12px;
                padding: 2px 6px;
                border: 1px solid #ddd;
                border-radius: 2px;
                white-space: nowrap;
            }
            
            .friend-links a:hover {
                color: #2196F3;
                border-color: #2196F3;
                background-color: rgba(33, 150, 243, 0.05);
            }
            
            /* 响应式设计 - 平板 */
            @media (max-width: 768px) {
                .footer-main {
                    flex-wrap: wrap;
                    gap: 15px;
                }
                
                .footer-column {
                    flex: none;
                    width: 100%;
                    justify-content: center;
                    padding: 5px 0;
                }
                
                .copyright-col {
                    order: 3;
                }
                
                .beian-col {
                    order: 1;
                }
                
                .links-col {
                    order: 2;
                }
                
                .copyright {
                    text-align: center;
                }
                
                .friend-links {
                    justify-content: center;
                }
            }
            
            /* 响应式设计 - 手机 */
            @media (max-width: 480px) {
                .simple-footer {
                    padding: 15px 0;
                    margin-top: 40px;
                }
                
                .footer-wrapper {
                    padding: 0 15px;
                }
                
                .friend-links {
                    gap: 6px;
                }
                
                .friend-links span {
                    font-size: 12px;
                }
                
                .friend-links a {
                    font-size: 11px;
                    padding: 2px 4px;
                }
                
                .copyright {
                    font-size: 12px;
                }
                
                .beian-links a {
                    font-size: 11px;
                }
            }
            
            /* 响应式设计 - 小手机 */
            @media (max-width: 360px) {
                .friend-links {
                    flex-direction: column;
                    align-items: center;
                    gap: 8px;
                }
                
                .friend-links span {
                    width: 100%;
                    text-align: center;
                }
                
                .friend-links a {
                    width: 100%;
                    text-align: center;
                    padding: 4px 8px;
                }
            }
            
/* 首页信息框 */
.weather-info-bar {
    width: 100%;
    border: 1px solid #fff;
    padding: 12px 20px;
    margin: 0 auto 20px;
    box-sizing: border-box;
    background-color: #f4faff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 25px;
    text-align: center;
}

.weather-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 2px;
}

@media (min-width: 1024px) {
    .weather-info-bar {
        font-size: 15px;
        padding: 12px 25px;
    }
    
    .weather-icon {
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .weather-info-bar {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .weather-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 767px) {
    .weather-info-bar {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .weather-icon {
        width: 16px;
        height: 16px;
    }
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-tools {
    text-align: center;
    padding: 40px;
    color: #666;
    grid-column: 1 / -1;
}