:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --bg-color: rgba(255, 255, 255, 0.829);
    --text-color: #333;
    --text-light: #666;
}

/* 使用本地背景图片 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), 
                url('./img/background.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
}

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

.navbar {
    background-color: var(--bg-color);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    margin-left: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.search-container {
    margin: 20px 0;
}

#search {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.tool-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tool-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.tool-card h3 {
    margin: 10px 0;
    color: #2c3e50;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    min-height: 40px;
}

.tool-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.tool-link:hover {
    background-color: var(--secondary-color);
}

.no-results {
    text-align: center;
    color: white;
    grid-column: 1 / -1;
    padding: 40px 0;
}