/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav li {
    margin-left: 20px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

/* 主要内容样式 */
.main {
    padding: 40px 0;
}

/* 横幅样式 */
.banner {
    text-align: center;
    padding: 60px 0;
    background-color: #3498db;
    color: #fff;
    border-radius: 5px;
    margin-bottom: 40px;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* 工具分类样式 */
.tool-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.category-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.category-item p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* 工具列表样式 */
.tool-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-item {
    display: block;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.tool-item:hover {
    background-color: #e9ecef;
    border-left-color: #3498db;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tool-item h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.tool-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 工具详情页样式 */
.tool-detail {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.tool-detail h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 28px;
}

.tool-detail .description {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

.tool-content {
    margin-bottom: 30px;
}

.tool-form {
    max-width: 600px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.result {
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* 响应式菜单按钮（汉堡菜单） */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
}

/* 增强的响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        width: 100%;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .nav li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav a {
        display: block;
        padding: 10px;
        width: 100%;
    }
}

.result h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 底部样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav li {
        margin: 5px;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .tool-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner {
        padding: 40px 0;
    }
    
    .banner h2 {
        font-size: 24px;
    }
    
    .category-item {
        padding: 20px;
    }
}
        :root {
            --primary: #165DFF;
            --primary-light: #E8F3FF;
            --secondary: #36CFC9;
            --dark: #1D2129;
            --gray: #86909C;
            --light-gray: #F2F3F5;
            --white: #FFFFFF;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            --radius: 12px;
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: var(--dark);
            background-color: #F7F8FA;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 头部样式优化 */
        .header {
            background-color: var(--white);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
        }
        
        .logo img {
            height: 40px;
            object-fit: contain;
        }
        
        .logo h1 {
            font-size: 1.5rem;
            color: var(--primary);
            font-weight: 700;
        }
        
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--dark);
        }
        
        .nav ul {
            display: flex;
            list-style: none;
            gap: 30px;
        }
        
        .nav a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: var(--transition);
            position: relative;
            padding: 5px 0;
        }
        
        .nav a:hover {
            color: var(--primary);
        }
        
        .nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary);
            transition: var(--transition);
        }
        
        .nav a:hover::after {
            width: 100%;
        }
        
        /* 横幅区域优化 */
        .banner {
            padding: 80px 0;
            text-align: center;
            background: linear-gradient(135deg, var(--primary-light) 0%, #F0F7FF 100%);
            border-radius: var(--radius);
            margin: 40px 0;
            position: relative;
            overflow: hidden;
        }
        
        .banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23165dff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }
        
        .banner h2 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--dark);
            position: relative;
        }
        
        .banner p {
            font-size: 1.1rem;
            color: var(--gray);
            max-width: 700px;
            margin: 0 auto;
            position: relative;
        }
        
        /* 工具分类区域优化 */
        .tool-categories {
            padding: 40px 0;
        }
        
        .category-item {
            background: var(--white);
            border-radius: var(--radius);
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        
        .category-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .category-item h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .category-item h3::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 20px;
            background-color: var(--primary);
            border-radius: 2px;
        }
        
        .category-item p {
            color: var(--gray);
            margin-bottom: 20px;
        }
        
        .tool-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }
        
        .tool-item {
            text-decoration: none;
            color: var(--dark);
            background: var(--light-gray);
            border-radius: var(--radius);
            padding: 20px;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .tool-item:hover {
            background: var(--primary-light);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(22, 93, 255, 0.1);
        }
        
        .tool-item h4 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .tool-item h4 i {
            color: var(--primary);
        }
        
        .tool-item p {
            color: var(--gray);
            font-size: 0.95rem;
            margin-bottom: 0;
            flex-grow: 1;
        }
        
        /* 页脚样式 */
        footer {
            background: var(--dark);
            color: var(--white);
            padding: 60px 0 20px;
            margin-top: 60px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-col h3 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-col h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background: var(--secondary);
        }
        
        .footer-col ul {
            list-style: none;
        }
        
        .footer-col ul li {
            margin-bottom: 10px;
        }
        
        .footer-col a {
            color: #ccc;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-col a:hover {
            color: var(--secondary);
            padding-left: 5px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            color: #aaa;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .header-content {
                height: 70px;
            }
            
            .menu-toggle {
                display: block;
            }
            
            .nav {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                background: var(--white);
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
                transition: var(--transition);
            }
            
            .nav.active {
                left: 0;
            }
            
            .nav ul {
                flex-direction: column;
                padding: 20px;
                gap: 15px;
            }
            
            .banner {
                padding: 60px 20px;
            }
            
            .banner h2 {
                font-size: 2rem;
            }
            
            .tool-list {
                grid-template-columns: 1fr;
            }
        }
