* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #3a8ffe 0%, #96e0ff 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 1.05rem;
}

nav a:hover {
    opacity: 0.8;
}

.search-box {
    display: flex;
    background: rgba(255,255,255,0.25);
    border-radius: 30px;
    padding: 5px 15px;
    width: 300px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-size: 0.95rem;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.8);
}

.search-box button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
}

/* 主内容区样式 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

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

.tool-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #edf2f7;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tool-content {
    padding: 1.8rem;
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.tool-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #3a8ffe;
    border-radius: 50%;
    margin-right: 10px;
}

.tool-desc {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.tool-category {
    background: #f0f9ff;
    color: #3a8ffe;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    color: #3a8ffe;
    text-decoration: none;
    font-weight: 600;
    gap: 5px;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.tool-link:hover {
    color: #1a73e8;
}

.tool-link::after {
    content: '→';
    transition: transform 0.3s;
}

.tool-link:hover::after {
    transform: translateX(3px);
}

/* 页脚样式 */
footer {
    background: #2d3748;
    color: #cbd5e0;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #63b3ed;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
}