/* 基础响应式布局 */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #333;
}

.search-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 聚合搜索框样式 */
.aggregate-engine {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.engine-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.engine-tabs button {
    padding: 6px 12px;
    border: none;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
}

.engine-tabs button.active {
    background: #1a73e8;
    color: white;
}

.search-form {
    display: flex;
    border: 2px solid #dfe1e5;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
}

.search-form:focus-within {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #1a73e8;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
}

.search-form button {
    background: none;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: #5f6368;
}

/* 分类导航网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.site-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.site-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.site-links a:hover {
    background: #f5f5f5;
}

.site-links img {
    width: 16px;
    height: 16px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form input {
        padding: 10px 14px;
    }
}
